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
Create the Solr Server client Create a list of SolrInputDocuments Iterate through the sample records
@Test public void addRecords() throws SolrServerException, IOException, ParseException { for (String[] record : sampleRecords) { // Create a new SolrInputDocument for this record // Iterate through this sample record for (int i = 0; i < record.length; i++) { } // Add the SolrInputDocument for this record to the list of SolrDocuments } // Add and commit the SolrInputDocuments to the Solr Server }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) throws IOException, SolrServerException {\n\n\n CloudSolrClient cloudSolrClient = new CloudSolrClient(args[0]);\n cloudSolrClient.setDefaultCollection(args[1]);\n cloudSolrClient.connect();\n\n SolrInputDocument solrInputDocument = new SolrInputDocument();\n String id = Long.toString(System.currentTimeMillis());\n solrInputDocument.addField(\"id\", id);\n\n// Test Special character Removal\n String testString = \"ZB*2227*2Z4\";\n solrInputDocument.addField(\"whitespace\", testString);\n solrInputDocument.addField(\"standard\", testString);\n\n// Test Special character Removal\n// Test hello this phrasing\n SolrInputDocument solrInputDocument2 = new SolrInputDocument();\n String id2 = Long.toString(System.currentTimeMillis());\n solrInputDocument2.addField(\"id\", id2);\n\n String testString2 = \"Hello, this! @ [at] <sat> {here}\";\n solrInputDocument2.addField(\"whitespace\", testString2);\n solrInputDocument2.addField(\"standard\", testString2);\n\n// Test hello this phrasing\n// Test hello this word a phrase slop phrasing\n SolrInputDocument solrInputDocument3 = new SolrInputDocument();\n String id3 = Long.toString(System.currentTimeMillis());\n solrInputDocument3.addField(\"id\", id3);\n\n String testString3 = \"hello, this is a test!\";\n solrInputDocument3.addField(\"whitespace\", testString3);\n solrInputDocument3.addField(\"standard\", testString3);\n\n\n// Test hello this word a phrase slop phrasing\n SolrInputDocument solrInputDocument4 = new SolrInputDocument();\n String id4 = Long.toString(System.currentTimeMillis());\n solrInputDocument4.addField(\"id\", id4);\n\n String testString4 = \"hello, this word a test!\";\n solrInputDocument4.addField(\"whitespace\", testString4);\n solrInputDocument4.addField(\"standard\", testString4);\n\n cloudSolrClient.add(solrInputDocument);\n cloudSolrClient.add(solrInputDocument2);\n cloudSolrClient.add(solrInputDocument3);\n cloudSolrClient.add(solrInputDocument4);\n cloudSolrClient.commit();\n }", "public void queryData() throws SolrServerException {\n\t\tfinal SolrQuery query = new SolrQuery(\"*:*\");\r\n\t\tquery.setRows(2000);\r\n\t\t// 5. Executes the query\r\n\t\tfinal QueryResponse response = client.query(query);\r\n\r\n\t\t/*\t\tassertEquals(1, response.getResults().getNumFound());*/\r\n\r\n\t\t// 6. Gets the (output) Data Transfer Object.\r\n\t\t\r\n\t\t\r\n\t\r\n\t\tif (response.getResults().iterator().hasNext())\r\n\t\t{\r\n\t\t\tfinal SolrDocument output = response.getResults().iterator().next();\r\n\t\t\tfinal String from = (String) output.getFieldValue(\"from\");\r\n\t\t\tfinal String to = (String) output.getFieldValue(\"to\");\r\n\t\t\tfinal String body = (String) output.getFieldValue(\"body\");\r\n\t\t\t// 7.1 In case we are running as a Java application print out the query results.\r\n\t\t\tSystem.out.println(\"It works! I found the following book: \");\r\n\t\t\tSystem.out.println(\"--------------------------------------\");\r\n\t\t\tSystem.out.println(\"ID: \" + from);\r\n\t\t\tSystem.out.println(\"Title: \" + to);\r\n\t\t\tSystem.out.println(\"Author: \" + body);\r\n\t\t}\r\n\t\t\r\n\t\tSolrDocumentList list = response.getResults();\r\n\t\tSystem.out.println(\"list size is: \" + list.size());\r\n\r\n\r\n\r\n\t\t/*\t\t// 7. Otherwise asserts the query results using standard JUnit procedures.\r\n\t\tassertEquals(\"1\", id);\r\n\t\tassertEquals(\"Apache SOLR Essentials\", title);\r\n\t\tassertEquals(\"Andrea Gazzarini\", author);\r\n\t\tassertEquals(\"972-2-5A619-12A-X\", isbn);*/\r\n\t}", "protected abstract void initialize(List<Sample> samples, QueryGenerator queryGenerator);", "public static SolrInputDocument createSolrInputDoc(Map<String, Object> fldNames2ValsMap)\n {\n \tif (fldNames2ValsMap == null)\n \t\treturn null;\n SolrInputDocument solrInputDoc = new SolrInputDocument();\n for (String fldName : fldNames2ValsMap.keySet())\n {\n Object valObj = fldNames2ValsMap.get(fldName);\n if (valObj instanceof Collection<?>)\n for (Object singleValObj : (Collection<?>) valObj)\n solrInputDoc.addField(fldName, singleValObj, 1.0f );\n else\n solrInputDoc.addField(fldName, valObj, 1.0f );\n }\n return solrInputDoc;\n }", "public static SolrInputDocument createSolrInputDoc(Map<String, Object> fldNames2ValsMap)\n {\n \tif (fldNames2ValsMap == null)\n \t\treturn null;\n SolrInputDocument solrInputDoc = new SolrInputDocument();\n for (String fldName : fldNames2ValsMap.keySet())\n {\n Object valObj = fldNames2ValsMap.get(fldName);\n if (valObj instanceof Collection<?>)\n for (Object singleValObj : (Collection<?>) valObj)\n solrInputDoc.addField(fldName, singleValObj, 1.0f );\n else\n solrInputDoc.addField(fldName, valObj, 1.0f );\n }\n return solrInputDoc;\n }", "public abstract NamedList<Object> request(final SolrRequest request) throws SolrServerException, IOException;", "@Override\n\tpublic void runRead(SolrDocument option, String time_field, long start, long end, Statistic stat, String... fq) {\n\t\tSystem.out.println(\"SolrReaderSingle\");\n\t\t\n\t\tSolrClient solr = new HttpSolrClient.Builder((String) option.get(\"solr_reader_url_s\")).build();\n\t\t\n\t\tString[] var_list = option.get(\"indexList_s\").toString().split(\"\\\\^\");\n\t\tSystem.out.println(option.get(\"indexList_s\").toString());\n\t\tSystem.out.println(var_list.length);\n\t\ttry {\n\t\t\tThread.sleep(2000);\n\t\t} catch (InterruptedException e2) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te2.printStackTrace();\n\t\t}\n\t\t\n\t\tString query_field = option.get(\"query_field_s\").toString(); // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n\t\tString value_field = option.get(\"value_field_s\").toString(); // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n\t\tSystem.out.println(query_field + \" \" + value_field);\n\t\t\n\t\tlong interval = (long) option.get(\"interval_l\");\n\t\tlong gap = (long) option.get(\"gap_l\");\n\t\tint group_num = (int) (gap/interval);\n\t\t\n\t\tHashMap<String, ArrayList<ArrayList<Double>>> resource = new HashMap<String, ArrayList<ArrayList<Double>>>();\n\t\tfor (int i = 0; i < var_list.length; i++) {\n\t\t\tresource.put(var_list[i], new ArrayList<ArrayList<Double>>());\n\t\t\tfor (int j = 0; j < group_num; j++) {\n\t\t\t\tresource.get(var_list[i]).add(new ArrayList<Double>()); //+++++++++++++++++++++++++++++++++++++++++\n\t\t\t}\n\t\t}\n\t\t\n\t\tSolrQuery solrQuery = new SolrQuery();\n\t\tsolrQuery.setQuery(\"*:*\");\n\t\tString[] fq_list = new String[fq.length+1];\n\t\tfor (int j = 0; j < fq.length; j++) {\n\t\t\tfq_list[j] = fq[j];\n\t\t}\n\t\tfq_list[fq.length] = \"timestamp_l:[\" + start + \" TO \" + end + \"]\";\n\t\tsolrQuery.setFilterQueries(fq_list);\n\t\tsolrQuery.setRows(100000);\n\t\tsolrQuery.setSort(\"timestamp_l\", ORDER.asc);\n\t\tsolrQuery.setFields(query_field, value_field, \"timestamp_l\");\n\t\t\n\t\tqueryList = new ArrayList<String>();\n\t\tqueryMap = new HashMap<String, Integer>();\n\t\tqueryArray = new ArrayList<ArrayList<Double>>();\n\t\tfor (int i = 0; i < var_list.length; i++) {\n\t\t\tqueryList.add(var_list[i]);\n\t\t\tqueryMap.put(var_list[i], i);\n\t\t\tqueryArray.add(new ArrayList<Double>());\n\t\t}\n\t\t\n\t\tQueryResponse response = new QueryResponse();\n\t\tSolrDocumentList docs = new SolrDocumentList();\n\t\t\n\t\t\n\t\t\n\t\twhile (true) {\n\t\t\ttry {\n\t\t\t\tresponse = solr.query(solrQuery);\n\t\t\t\tbreak;\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.out.print(\"ÍøÂçreadÒì³£\");\n\t\t\t\ttry {\n\t\t\t\t\tThread.sleep(6000);\n\t\t\t\t} catch (InterruptedException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tsolr.close();\n\t\t} catch (IOException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t}\n\t\t\n\t\tdocs = response.getResults();\n\t\t\n\t\tSystem.out.println(\"Êý¾ÝÁ¿£º\"+docs.size());\n\t\ttry {\n\t\t\tThread.sleep(2000);\n\t\t} catch (InterruptedException e2) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te2.printStackTrace();\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < docs.size(); i++) {\n\t\t\tString var = docs.get(i).get(query_field).toString();\n\t\t\tif (!queryMap.keySet().contains(var)) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tlong timestamp_tmp = (long) docs.get(i).get(\"timestamp_l\");\n\t\t\tint x = (int) ((timestamp_tmp-start)/interval);\n\t\t\tdouble tmp_double = 0;\n\t\t\tif (docs.get(i).get(value_field) instanceof Double) {\n\t\t\t\ttmp_double = (Double) docs.get(i).get(value_field);\n\t\t\t} else if (docs.get(i).get(value_field) instanceof Float) {\n\t\t\t\ttmp_double = (Float) docs.get(i).get(value_field);\n\t\t\t} else if (docs.get(i).get(value_field) instanceof Integer) {\n\t\t\t\ttmp_double = (Integer) docs.get(i).get(value_field);\n\t\t\t} else if (docs.get(i).get(value_field) instanceof Long) {\n\t\t\t\ttmp_double = (Long) docs.get(i).get(value_field);\n\t\t\t} else if (docs.get(i).get(value_field) instanceof String){\n\t\t\t\ttry {\n\t\t\t\t\ttmp_double = Double.parseDouble((String) docs.get(i).get(value_field));\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (x >= group_num) continue;\n\t\t\tresource.get(var).get(x).add(tmp_double);\n\t\t}\n\t\t\n\t\tfor (String it : queryMap.keySet()) {\n\t\t\tfor (int i = 0; i < group_num; i++) {\n\t\t\t\tqueryArray.get(queryMap.get(it)).add(stat.run(resource.get(it).get(i)));\n\t\t\t}\n\t\t}\n\t\t\n\t\tattrList = new String[var_list.length];\n\t\tfor (int i = 0; i < var_list.length; i++) {\n\t\t\tattrList[i] = \"_\" + (new Integer(i)).toString();\n\t\t}\n\t\t\n//\t\tWriteCSV writer = new WriteCSV();\n//\t\ttry {\n//\t\t\twriter.writeArrayCSV(queryArray, attrList, \".\", \"data.csv\");\n//\t\t} catch (IOException e) {\n//\t\t\t// TODO Auto-generated catch block\n//\t\t\te.printStackTrace();\n//\t\t}\n\t}", "@Before\r\n\tpublic void setUp() {\r\n\t\t//client = new HttpSolrServer(\"http://127.0.0.1:8983/solr/biblo\");\r\n\t\tclient = new HttpSolrServer(\"http://192.168.1.34:8983/solr/collection3_shard1_replica1\");\r\n\t}", "private void createDocs() {\n\t\t\n\t\tArrayList<Document> docs=new ArrayList<>();\n\t\tString foldername=\"E:\\\\graduate\\\\cloud\\\\project\\\\data\\\\input\";\n\t\tFile folder=new File(foldername);\n\t\tFile[] listOfFiles = folder.listFiles();\n\t\tfor (File file : listOfFiles) {\n\t\t\ttry {\n\t\t\t\tFileInputStream fisTargetFile = new FileInputStream(new File(foldername+\"\\\\\"+file.getName()));\n\t\t\t\tString fileContents = IOUtils.toString(fisTargetFile, \"UTF-8\");\n\t\t\t\tString[] text=fileContents.split(\"ParseText::\");\n\t\t\t\tif(text.length>1){\n\t\t\t\t\tString snippet=text[1].trim().length()>100 ? text[1].trim().substring(0, 100): text[1].trim();\n\t\t\t\t\tDocument doc=new Document();\n\t\t\t\t\tdoc.setFileName(file.getName().replace(\".txt\", \"\"));\n\t\t\t\t\tdoc.setUrl(text[0].split(\"URL::\")[1].trim());\n\t\t\t\t\tdoc.setText(snippet+\"...\");\n\t\t\t\t\tdocs.add(doc);\n\t\t\t\t}\n\t\t\t}catch(IOException e){\n\t\t\t\te.printStackTrace();\n\t\t\t}\t\n\t\t}\t\n\t\tDBUtil.insertDocs(docs);\n\t}", "public SolrInputDocument collect(FlexDocument f) {\n\n\t\tSolrInputDocument cls_doc = new SolrInputDocument();\n\n\t\tfor( FlexLine l : f ){\n\t\t\tString fieldName = l.field();\n\t\t\tfor( String val : l.values() ){\n\t\t\t\tcls_doc.addField(fieldName, val);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn cls_doc;\n\t}", "public SolrDocumentList getById(Collection<String> ids) throws SolrServerException, IOException {\n return getById(ids, null);\n }", "@Before\n public void setUp() {\n response = new DocumentsResponse();\n testDocList = new ArrayList<>();\n testDocList.add(new DocumentTestData().createTestDocument(1));\n }", "public ClsNodeDocument[] GetDocuments (String transID, String dataFlow,String[] operationArr, ClsNodeDocument[] searchDocs);", "public static void main(String[] args) throws Exception {\r\n\t\tfinal SolrClient test = new SolrClient();\r\n\r\n\t\ttest.setUp();\r\n\t\ttest.indexDocument();\r\n\t\ttest.queryData();\r\n\t\ttest.tearDown();\r\n\t}", "public static void setUpExample(DatabaseClient client)\n throws IOException, ResourceNotFoundException, ForbiddenUserException, FailedRequestException {\n XMLDocumentManager docMgr = client.newXMLDocumentManager();\n\n InputStreamHandle contentHandle = new InputStreamHandle();\n\n for (String filename: filenames) {\n try ( InputStream docStream = Util.openStream(\"data\"+File.separator+filename) ) {\n if (docStream == null) throw new IOException(\"Could not read document example\");\n\n contentHandle.set(docStream);\n\n docMgr.write(\"/example/\"+filename, contentHandle);\n }\n }\n }", "public UpdateResponse add(Collection<SolrInputDocument> docs) throws SolrServerException, IOException {\n return add(docs, -1);\n }", "QueryResponse query(SolrParams solrParams) throws SolrServerException;", "@Test\n public void bulkUploadTest() throws IOException {\n\n JsonArray result = searchService.matchAllQuery(getIndexes(), 10);\n assertEquals(6, result.size());\n }", "public CursorArrayList<SolrSample> fetchSolrSampleByText(\r\n final String searchTerm,\r\n final Collection<Filter> filters,\r\n final Collection<String> domains,\r\n final String webinSubmissionAccountId,\r\n final String cursorMark,\r\n final int size) {\r\n final Query query = buildQuery(searchTerm, filters, domains, webinSubmissionAccountId);\r\n query.addSort(Sort.by(\"id\")); // this must match the field in solr\r\n\r\n return solrSampleRepository.findByQueryCursorMark(query, cursorMark, size);\r\n }", "@Test\r\n\tpublic void indexOneLater() throws Exception {\n\t\tSolrInputDocument sd = new SolrInputDocument();\r\n\t\tsd.addField(\"id\", \"addone\");\r\n\t\tsd.addField(\"channelid\", \"9999\");\r\n\t\tsd.addField(\"topictree\", \"tptree\");\r\n\t\tsd.addField(\"topicid\", \"tpid\");\r\n\t\tsd.addField(\"dkeys\", \"测试\");\r\n\t\tsd.addField(\"title\", \"junit 标题\");\r\n\t\tsd.addField(\"ptime\", new Date());\r\n\t\tsd.addField(\"url\", \"/junit/test/com\");\r\n//\t\t\tSystem.out.println(doc);\r\n//\t\tbuffer.add(sd);\r\n\t\tdocIndexer.addDocumentAndCommitLater(sd, 1);\r\n\t}", "private void createSampleSearch() {\n String userNameToFind = \"mweston\";\n CustomUser user = userService.findByUserName(userNameToFind);\n List<Search> searches = user.getSearches();\n long mwestonUserId = user.getId();\n\n /**\n * The below check is done because when using a Postgres database I will not be using the\n * create-drop but instead validate so I do not want to make too many sample API requests\n * (such as every time I start up this application).\n */\n if(searches.size() > 0) {\n return ;\n }\n\n Search search = searchService.createSearch(SpringJPABootstrap.SAMPLE_ADDRESS);\n searchService.saveSearch(search, mwestonUserId);\n\n Search secondSearch = searchService.createSearch(SpringJPABootstrap.SAMPLE_ADDRESS_TWO);\n searchService.saveSearch(secondSearch, mwestonUserId);\n\n searchService.createSearch(SpringJPABootstrap.STONERIDGE_MALL_RD_SAMPLE_ADDRESS);\n\n search = searchService.createSearch(SpringJPABootstrap.SAMPLE_ADDRESS);\n searchService.saveSearch(search, mwestonUserId);\n\n search = searchService.createSearch(SpringJPABootstrap.SAMPLE_ADDRESS);\n searchService.saveSearch(search, mwestonUserId);\n\n search = searchService.createSearch(SpringJPABootstrap.SAMPLE_ADDRESS);\n searchService.saveSearch(search, mwestonUserId);\n\n search = searchService.createSearch(SpringJPABootstrap.SAMPLE_ADDRESS);\n searchService.saveSearch(search, mwestonUserId);\n }", "public static void main(String[] args) throws MalformedURLException {\n HttpClient httpClient = new StdHttpClient.Builder() \n .url(\"http://localhost:5984\") \n .build(); \n //Connect to CouchDB instance\n CouchDbInstance dbInstance = new StdCouchDbInstance(httpClient);\n //Point to Person database\n CouchDbConnector db = dbInstance.createConnector(\"person\", true);\n //Student Object\n Student s = new Student();\n s.setFirstname(\"aoifes\");\n s.setSurname(\"sayers\");\n s.setEmail(\"[email protected]\");\n\n List<String> listOfIds = db.getAllDocIds();\n System.out.println(listOfIds);\n System.out.println(listOfIds.get(0));\n String firstStud = listOfIds.get(0);\n Student stud = db.get(Student.class, firstStud);\n System.out.println(stud.getTnumber());\n\n db.create((s));\n\n\n\n HttpClient httpClient1 = new StdHttpClient.Builder() \n .url(\"http://localhost:5984\") \n .build(); \n\n }", "@Test\n public void testDocumentsResponse() {\n DocumentsResponse testResponse = new DocumentsResponse(testDocList);\n checkDocumentsList(testResponse);\n }", "@Override\n public void doInit() throws ResourceException {\n super.doInit();\n setNegotiated(false); // Turn off content negotiation for now\n if (isExisting()) {\n try {\n SolrRequestInfo solrRequestInfo = SolrRequestInfo.getRequestInfo();\n if (null == solrRequestInfo) {\n final String message = \"No handler or core found in \" + getRequest().getOriginalRef().getPath();\n doError(Status.CLIENT_ERROR_BAD_REQUEST, message);\n setExisting(false);\n } else {\n solrRequest = solrRequestInfo.getReq();\n if (null == solrRequest) {\n final String message = \"No handler or core found in \" + getRequest().getOriginalRef().getPath();\n doError(Status.CLIENT_ERROR_BAD_REQUEST, message);\n setExisting(false);\n } else {\n solrResponse = solrRequestInfo.getRsp();\n solrCore = solrRequest.getCore();\n schema = solrRequest.getSchema();\n String responseWriterName = solrRequest.getParams().get(CommonParams.WT);\n if (null == responseWriterName) {\n responseWriterName = JSON; // Default to json writer\n }\n String indent = solrRequest.getParams().get(\"indent\");\n if (null == indent || ! (\"off\".equals(indent) || \"false\".equals(indent))) {\n // indent by default\n ModifiableSolrParams newParams = new ModifiableSolrParams(solrRequest.getParams());\n newParams.remove(indent);\n newParams.add(\"indent\", \"on\");\n solrRequest.setParams(newParams);\n }\n responseWriter = solrCore.getQueryResponseWriter(responseWriterName);\n contentType = responseWriter.getContentType(solrRequest, solrResponse);\n final String path = getRequest().getRootRef().getPath();\n if ( ! RestManager.SCHEMA_BASE_PATH.equals(path)) {\n // don't set webapp property on the request when context and core/collection are excluded \n final int cutoffPoint = path.indexOf(\"/\", 1);\n final String firstPathElement = -1 == cutoffPoint ? path : path.substring(0, cutoffPoint);\n solrRequest.getContext().put(\"webapp\", firstPathElement); // Context path\n }\n SolrCore.preDecorateResponse(solrRequest, solrResponse);\n\n // client application can set a timeout for update requests\n Object updateTimeoutSecsParam = getSolrRequest().getParams().get(UPDATE_TIMEOUT_SECS);\n if (updateTimeoutSecsParam != null)\n updateTimeoutSecs = (updateTimeoutSecsParam instanceof Number)\n ? ((Number) updateTimeoutSecsParam).intValue()\n : Integer.parseInt(updateTimeoutSecsParam.toString());\n\n }\n }\n } catch (Throwable t) {\n if (t instanceof OutOfMemoryError) {\n throw (OutOfMemoryError) t;\n }\n setExisting(false);\n throw new ResourceException(t);\n }\n }\n }", "public interface ItemService {\n\n /**\n * 导入商品数据到索引库\n * @return\n */\n TaotaoResult importAllItems() throws SolrServerException, IOException;\n}", "@Test\n public void testSetAndGetDocuments() {\n DocumentsResponse testResponse = new DocumentsResponse();\n testResponse.setDocuments(testDocList);\n checkDocumentsList(testResponse);\n }", "public static void main(String[] args) {\n SampleCRUDQuickstart p = new SampleCRUDQuickstart();\n\n try {\n logger.info(\"Starting SYNC main\");\n p.getStartedDemo();\n logger.info(\"Demo complete, please hold while resources are released\");\n } catch (Exception e) {\n e.printStackTrace();\n logger.error(String.format(\"Cosmos getStarted failed with %s\", e));\n } finally {\n logger.info(\"Closing the client\");\n p.shutdown();\n }\n }", "@Test\n public void getUserList() {\n\n for (int i = 0; i < 3; i++) {\n //mongoTemplate.createCollection(\"test111111\" + i);\n mongoTemplate.executeCommand(\"{create:\\\"sfe\"+ i +\"\\\", autoIndexId:true}\");\n }\n }", "public static void main(String[] args) throws IOException, SolrServerException {\n search();\n }", "public static void setUpExample(DatabaseClient client) throws IOException {\n\t\tXMLDocumentManager docMgr = client.newXMLDocumentManager();\n\n\t\tInputStreamHandle contentHandle = new InputStreamHandle();\n\n\t\tfor (String filename: filenames) {\n\t\t\tInputStream docStream = Util.openStream(\n\t\t\t\t\t\"data\"+File.separator+filename);\n\t\t\tif (docStream == null)\n\t\t\t\tthrow new IOException(\"Could not read document example\");\n\n\t\t\tcontentHandle.set(docStream);\n\n\t\t\tdocMgr.write(\"/example/\"+filename, contentHandle);\n\t\t}\n\t}", "public SolrDocumentList getById(Collection<String> ids, SolrParams params) throws SolrServerException, IOException {\n if (ids == null || ids.isEmpty()) {\n throw new IllegalArgumentException(\"Must provide an identifier of a document to retrieve.\");\n }\n\n ModifiableSolrParams reqParams = new ModifiableSolrParams(params);\n if (StringUtils.isEmpty(reqParams.get(CommonParams.QT))) {\n reqParams.set(CommonParams.QT, \"/get\");\n }\n reqParams.set(\"ids\", (String[]) ids.toArray(new String[ids.size()]));\n\n return query(reqParams).getResults();\n }", "@Override public ArrayList<Sample> getAllSamples()\n {\n try\n {\n return clientDoctor.getAllSamples();\n }\n catch (RemoteException e)\n {\n throw new RuntimeException(\"Error while fetching all samples. Please try again.\");\n }\n }", "public ClsNodeDocument[] GetDocuments (String transID, String dataFlow, ClsNodeDocument[] searchDocs);", "List<SolrSystemDTO> showAllSolrSystems(UserDTO userDTO);", "@Role\npublic interface SolrInstance extends Initializable\n{\n /**\n * Add a {@link SolrInputDocument} to the Solr index.\n * <p/>\n * Note: Does not apply until you call {@link #commit()}.\n * \n * @param solrDocument the document.\n * @throws SolrServerException if problems occur.\n * @throws IOException if problems occur.\n */\n void add(SolrInputDocument solrDocument) throws SolrServerException, IOException;\n\n /**\n * Add a list of {@link SolrInputDocument} to the Solr index. This is a batch operation.\n * <p/>\n * Note: Does not apply until you call {@link #commit()}.\n * \n * @param solrDocuments the documents.\n * @throws SolrServerException if problems occur.\n * @throws IOException if problems occur.\n */\n void add(List<SolrInputDocument> solrDocuments) throws SolrServerException, IOException;\n\n /**\n * Delete a single entry from the Solr index.\n * <p/>\n * Note: Does not apply until you call {@link #commit()}.\n * \n * @param id the ID of the entry.\n * @throws SolrServerException if problems occur.\n * @throws IOException if problems occur.\n */\n void delete(String id) throws SolrServerException, IOException;\n\n /**\n * Delete a list of entries from the Solr index. This is a batch operation.\n * <p/>\n * Note: Does not apply until you call {@link #commit()}.\n * \n * @param ids the list of entry IDs\n * @throws SolrServerException if problems occur.\n * @throws IOException if problems occur.\n */\n void delete(List<String> ids) throws SolrServerException, IOException;\n\n /**\n * Delete entries from the index based on the result of the given query.\n * <p/>\n * Note: Does not apply until you call {@link #commit()}.\n * \n * @param query the Solr query.\n * @throws SolrServerException if problems occur.\n * @throws IOException if problems occur.\n */\n void deleteByQuery(String query) throws SolrServerException, IOException;\n\n /**\n * Commit the recent (uncommitted) changes to the Solr server.\n * \n * @throws SolrServerException if problems occur.\n * @throws IOException if problems occur.\n */\n void commit() throws SolrServerException, IOException;\n\n /**\n * Cancel the local uncommitted changes that were not yet pushed to the Solr server.\n * \n * @throws SolrServerException if problems occur.\n * @throws IOException if problems occur.\n */\n void rollback() throws SolrServerException, IOException;\n\n /**\n * Query the server's index using the Solr Query API.\n * \n * @param solrParams Solr Query API.\n * @return the query result.\n * @throws SolrServerException if problems occur.\n */\n QueryResponse query(SolrParams solrParams) throws SolrServerException;\n\n /**\n * Query solr, and stream the results. Unlike the standard query, this will send events for each Document rather\n * then add them to the {@link QueryResponse}.\n * <p>\n * Although this function returns a {@link QueryResponse} it should be used with care since it excludes anything\n * that was passed to callback. Also note that future version may pass even more info to the callback and may not\n * return the results in the {@link QueryResponse}.\n * \n * @param params query parameters\n * @param callback the object to notify\n * @return the query result\n * @throws SolrServerException if problems occur\n * @throws IOException if problems occur\n */\n QueryResponse queryAndStreamResponse(SolrParams params, StreamingResponseCallback callback)\n throws SolrServerException, IOException;\n}", "@Override\n\tprotected DocumentCollection getInitialDocuments() {\n\t\treturn Core.getInstance().getRemoteDocuments();\n\t}", "Set<Document> findDocuments(Map<String, String> fields, int offset, int numberOfResults);", "public abstract List<ClinicalDocument> findClinicalDocumentEntries(int firstResult, int maxResults);", "@Override\n public Collection<Object> createComponents(\n Client client,\n ClusterService clusterService,\n ThreadPool threadPool,\n ResourceWatcherService resourceWatcherService,\n ScriptService scriptService,\n NamedXContentRegistry xContentRegistry,\n Environment environment,\n NodeEnvironment nodeEnvironment,\n NamedWriteableRegistry namedWriteableRegistry,\n IndexNameExpressionResolver indexNameExpressionResolver) {\n service = new StoredSynonymsService(client, clusterService, \".stored_synonyms\");\n\n List<Object> components = new ArrayList<>();\n components.add(service);\n\n return components;\n }", "@RequestMapping(value = \"/nmr/samples\", method = RequestMethod.GET)\n\tpublic @ResponseBody List<SamplePrediction> getSamples(final HttpServletRequest request,\n\t\t\tfinal HttpServletResponse response) {\n\t\tList<SamplePrediction> samples = new ArrayList<SamplePrediction>();\n\t\tsamples.add(new SamplePrediction());\n\t\treturn samples;\n\t}", "public static void createSimple() throws Exception {\n\t\t// create a sesame memory sail\n\t\tMemoryStore memoryStore = new MemoryStore();\n\n\t\t// create a lucenesail to wrap the memorystore\n\t\tLuceneSail lucenesail = new LuceneSail();\n\t\tlucenesail.setParameter(LuceneSail.INDEX_CLASS_KEY, SolrIndex.class.getName());\n\t\tlucenesail.setParameter(SolrIndex.SERVER_KEY, \"embedded:\");\n\n\t\t// wrap memorystore in a lucenesail\n\t\tlucenesail.setBaseSail(memoryStore);\n\n\t\t// create a Repository to access the sails\n\t\tSailRepository repository = new SailRepository(lucenesail);\n\t\trepository.initialize();\n\n\t\ttry ( // add some test data, the FOAF ont\n\t\t\t\tSailRepositoryConnection connection = repository.getConnection()) {\n\t\t\tconnection.begin();\n\t\t\tconnection.add(SolrSailExample.class.getResourceAsStream(\"/org/openrdf/sail/lucene/examples/foaf.rdfs\"), \"\",\n\t\t\t\t\tRDFFormat.RDFXML);\n\t\t\tconnection.commit();\n\n\t\t\t// search for resources that mention \"person\"\n\t\t\tString queryString = \"PREFIX search: <\" + LuceneSailSchema.NAMESPACE + \"> \\n\"\n\t\t\t\t\t+ \"PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> \\n\" + \"SELECT * WHERE { \\n\"\n\t\t\t\t\t+ \"?subject search:matches ?match . \\n\" + \"?match search:query \\\"person\\\" ; \\n\"\n\t\t\t\t\t+ \" search:property ?property ; \\n\" + \" search:score ?score ; \\n\"\n\t\t\t\t\t+ \" search:snippet ?snippet . \\n\" + \"?subject rdf:type ?type . \\n\" + \"} LIMIT 3 \\n\"\n\t\t\t\t\t+ \"BINDINGS ?type { \\n\" + \" (<http://www.w3.org/2002/07/owl#Class>) \\n\" + \"}\";\n\t\t\ttupleQuery(queryString, connection);\n\n\t\t\t// search for property \"name\" with domain \"person\"\n\t\t\tqueryString = \"PREFIX search: <\" + LuceneSailSchema.NAMESPACE + \"> \\n\"\n\t\t\t\t\t+ \"PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> \\n\" + \"SELECT * WHERE { \\n\"\n\t\t\t\t\t+ \"?subject rdfs:domain ?domain . \\n\" + \"?subject search:matches ?match . \\n\"\n\t\t\t\t\t+ \"?match search:query \\\"chat\\\" ; \\n\" + \" search:score ?score . \\n\"\n\t\t\t\t\t+ \"?domain search:matches ?match2 . \\n\" + \"?match2 search:query \\\"person\\\" ; \\n\"\n\t\t\t\t\t+ \" search:score ?score2 . \\n\" + \"} LIMIT 5\";\n\t\t\ttupleQuery(queryString, connection);\n\n\t\t\t// search in subquery and filter results\n\t\t\tqueryString = \"PREFIX search: <\" + LuceneSailSchema.NAMESPACE + \"> \\n\" + \"SELECT * WHERE { \\n\"\n\t\t\t\t\t+ \"{ SELECT * WHERE { \\n\" + \" ?subject search:matches ?match . \\n\"\n\t\t\t\t\t+ \" ?match search:query \\\"person\\\" ; \\n\" + \" search:property ?property ; \\n\"\n\t\t\t\t\t+ \" search:score ?score ; \\n\" + \" search:snippet ?snippet . \\n\" + \"} } \\n\"\n\t\t\t\t\t+ \"FILTER(CONTAINS(STR(?subject), \\\"Person\\\")) \\n\" + \"} \\n\" + \"\";\n\t\t\ttupleQuery(queryString, connection);\n\n\t\t\t// search for property \"homepage\" with domain foaf:Person\n\t\t\tqueryString = \"PREFIX search: <\" + LuceneSailSchema.NAMESPACE + \"> \\n\"\n\t\t\t\t\t+ \"PREFIX foaf: <http://xmlns.com/foaf/0.1/> \\n\"\n\t\t\t\t\t+ \"PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> \\n\"\n\t\t\t\t\t+ \"CONSTRUCT { ?x rdfs:domain foaf:Person } \\n\" + \"WHERE { \\n\" + \"?x rdfs:domain foaf:Person . \\n\"\n\t\t\t\t\t+ \"?x search:matches ?match . \\n\" + \"?match search:query \\\"homepage\\\" ; \\n\"\n\t\t\t\t\t+ \" search:property ?property ; \\n\" + \" search:score ?score ; \\n\"\n\t\t\t\t\t+ \" search:snippet ?snippet . \\n\" + \"} LIMIT 3 \\n\";\n\t\t\tgraphQuery(queryString, connection);\n\t\t} finally {\n\t\t\trepository.shutDown();\n\t\t}\n\t}", "public static void main(String[] args) throws IOException{\n \n List<List<String>> results;\n String query = \"ADD QUERY OR CATEGORY FOR SEARCH\";\n \n //ADD USER ID WHO SEARCHES\n Long userId = 1;\n PersonalizedSearch searchObj = new PersonalizedSearch();\n \n final CredentialsProvider credsProvider = new BasicCredentialsProvider();\n credsProvider.setCredentials(AuthScope.ANY, new UsernamePasswordCredentials(\"elastic\",\"elastic\"));\n \n \n RestHighLevelClient client = new RestHighLevelClient(\n RestClient.builder(\n new HttpHost(\"localhost\",9200),\n new HttpHost(\"localhost\",9201))\n .setHttpClientConfigCallback(new RestClientBuilder.HttpClientConfigCallback() {\n @Override\n public HttpAsyncClientBuilder customizeHttpClient(HttpAsyncClientBuilder hacb) {\n return hacb.setDefaultCredentialsProvider(credsProvider);\n }\n }));\n \n /**\n * ---------COMMENT OUT ONE OF THE FOLLOWING TO DO A PERSONALIZED SEARCH FOR A SIGNED IN OR/AND AN ANONYMOUS USER--------\n */\n\n System.out.println(\"Starting collecting queryless/queryfull submissions...\");\n System.out.println(\"\");\n// searchObj.performQuerylessSearchWithPersonalization(client);\n// searchObj.performQueryfullSearchWithPersonalization(client);\n// results = searchObj.performPharm24PersonalizedQueryfullSearch(client, userId, query);\n// results = searchObj.performPharm24PersonalizedQuerylessSearch(client, userId, query);\n \n for(int i=0; i<results.size(); i++){\n for(int j = 0; j<results.get(i).size();j++){\n System.out.println(results.get(i).get(j));\n }\n System.out.println(\"-------RERANKED---------\");\n }\n\n System.out.println(\"\");\n System.out.println(\"I\\'m done!\");\n \n \n }", "public ClsNodeDocument[] GetDocuments (ClsNodeDocument[] searchDocs);", "protected abstract void instantiateDataForAddNewTemplate (AsyncCallback<DATA> callbackOnSampleCreated) ;", "public static void main(final String[] args) throws IOException {\n // Instantiate a client that will be used to call the service.\n DocumentAnalysisClient client = new DocumentAnalysisClientBuilder()\n .credential(new AzureKeyCredential(\"{key}\"))\n .endpoint(\"https://{endpoint}.cognitiveservices.azure.com/\")\n .buildClient();\n\n File invoice = new File(\"./formrecognizer/azure-ai-formrecognizer/src/samples/resources/Sample-W2.jpg\");\n Path filePath = invoice.toPath();\n BinaryData invoiceData = BinaryData.fromFile(filePath, (int) invoice.length());\n\n SyncPoller<OperationResult, AnalyzeResult> analyzeW2Poller =\n client.beginAnalyzeDocument(\"prebuilt-tax.us.w2\", invoiceData);\n\n AnalyzeResult analyzeTaxResult = analyzeW2Poller.getFinalResult();\n\n for (int i = 0; i < analyzeTaxResult.getDocuments().size(); i++) {\n AnalyzedDocument analyzedTaxDocument = analyzeTaxResult.getDocuments().get(i);\n Map<String, DocumentField> taxFields = analyzedTaxDocument.getFields();\n System.out.printf(\"----------- Analyzing Document %d -----------%n\", i);\n DocumentField w2FormVariantField = taxFields.get(\"W2FormVariant\");\n if (w2FormVariantField != null) {\n if (DocumentFieldType.STRING == w2FormVariantField.getType()) {\n String merchantName = w2FormVariantField.getValueAsString();\n System.out.printf(\"Form variant: %s, confidence: %.2f%n\",\n merchantName, w2FormVariantField.getConfidence());\n }\n }\n\n DocumentField employeeField = taxFields.get(\"Employee\");\n if (employeeField != null) {\n System.out.println(\"Employee Data: \");\n if (DocumentFieldType.MAP == employeeField.getType()) {\n Map<String, DocumentField> employeeDataFieldMap = employeeField.getValueAsMap();\n DocumentField employeeName = employeeDataFieldMap.get(\"Name\");\n if (employeeName != null) {\n if (DocumentFieldType.STRING == employeeName.getType()) {\n String merchantAddress = employeeName.getValueAsString();\n System.out.printf(\"Employee Name: %s, confidence: %.2f%n\",\n merchantAddress, employeeName.getConfidence());\n }\n }\n DocumentField employeeAddrField = employeeDataFieldMap.get(\"Address\");\n if (employeeAddrField != null) {\n if (DocumentFieldType.STRING == employeeAddrField.getType()) {\n String employeeAddress = employeeAddrField.getValueAsString();\n System.out.printf(\"Employee Address: %s, confidence: %.2f%n\",\n employeeAddress, employeeAddrField.getConfidence());\n }\n }\n }\n }\n\n DocumentField employerField = taxFields.get(\"Employer\");\n if (employerField != null) {\n System.out.println(\"Employer Data: \");\n if (DocumentFieldType.MAP == employerField.getType()) {\n Map<String, DocumentField> employerDataFieldMap = employerField.getValueAsMap();\n DocumentField employerNameField = employerDataFieldMap.get(\"Name\");\n if (employerNameField != null) {\n if (DocumentFieldType.STRING == employerNameField.getType()) {\n String employerName = employerNameField.getValueAsString();\n System.out.printf(\"Employee Name: %s, confidence: %.2f%n\",\n employerName, employerNameField.getConfidence());\n }\n }\n\n DocumentField employerIDNumberField = employerDataFieldMap.get(\"IdNumber\");\n if (employerIDNumberField != null) {\n if (DocumentFieldType.STRING == employerIDNumberField.getType()) {\n String employerIdNumber = employerIDNumberField.getValueAsString();\n System.out.printf(\"Employee ID Number: %s, confidence: %.2f%n\",\n employerIdNumber, employerIDNumberField.getConfidence());\n }\n }\n }\n }\n\n DocumentField localTaxInfosField = taxFields.get(\"LocalTaxInfos\");\n if (localTaxInfosField != null) {\n System.out.println(\"Local Tax Info data:\");\n if (DocumentFieldType.LIST == localTaxInfosField.getType()) {\n Map<String, DocumentField> localTaxInfoDataFields = localTaxInfosField.getValueAsMap();\n DocumentField localWagesTips = localTaxInfoDataFields.get(\"LocalWagesTipsEtc\");\n if (DocumentFieldType.DOUBLE == localTaxInfosField.getType()) {\n System.out.printf(\"Local Wages Tips Value: %.2f, confidence: %.2f%n\",\n localWagesTips.getValueAsDouble(), localTaxInfosField.getConfidence());\n }\n }\n }\n\n DocumentField taxYearField = taxFields.get(\"TaxYear\");\n if (taxYearField != null) {\n if (DocumentFieldType.STRING == taxYearField.getType()) {\n String taxYear = taxYearField.getValueAsString();\n System.out.printf(\"Tax year: %s, confidence: %.2f%n\",\n taxYear, taxYearField.getConfidence());\n }\n }\n\n DocumentField taxDateField = taxFields.get(\"TaxDate\");\n if (employeeField != null) {\n if (DocumentFieldType.DATE == taxDateField.getType()) {\n LocalDate taxDate = taxDateField.getValueAsDate();\n System.out.printf(\"Tax Date: %s, confidence: %.2f%n\",\n taxDate, taxDateField.getConfidence());\n }\n }\n\n DocumentField socialSecurityTaxField = taxFields.get(\"SocialSecurityTaxWithheld\");\n if (localTaxInfosField != null) {\n if (DocumentFieldType.DOUBLE == socialSecurityTaxField.getType()) {\n Double socialSecurityTax = socialSecurityTaxField.getValueAsDouble();\n System.out.printf(\"Social Security Tax withheld: %.2f, confidence: %.2f%n\",\n socialSecurityTax, socialSecurityTaxField.getConfidence());\n }\n }\n }\n }", "public SearchServiceRestClientImpl(HttpPipeline httpPipeline) {\n this.httpPipeline = httpPipeline;\n this.dataSources = new DataSourcesImpl(this);\n this.indexers = new IndexersImpl(this);\n this.skillsets = new SkillsetsImpl(this);\n this.synonymMaps = new SynonymMapsImpl(this);\n this.indexes = new IndexesImpl(this);\n this.service = RestProxy.create(SearchServiceRestClientService.class, this.httpPipeline);\n }", "public static void retrieveDocumentReferences(Vector<DataValueDescriptor[]> rows, String hostname, String portNumber, String collections, \n\t\t\tString queryString, int maxResults, String applicationName, String applicationPassword ) {\n\t\t\n\t\ttry {\n\t\t\t// obtain the OmniFind specific SIAPI Search factory implementation\n\t\t\tSearchFactory searchFactory = (SearchFactory) Class.forName(\"com.ibm.es.api.search.RemoteSearchFactory\").newInstance();\n\t\t\tApplicationInfo appinfo = searchFactory.createApplicationInfo(applicationName);\n\t\t\tappinfo.setPassword(applicationPassword);\n\t\t\tint collectionSize=0;\n\t\t\tString[] collectionIDs=null;\n\n\t\t\tQuery query = searchFactory.createQuery(queryString);\n\t\t\tquery.setRequestedResultRange(0, maxResults);\n\t\t\tquery.setQueryLanguage(\"en_US\");\n\t\t\tquery.setSpellCorrectionEnabled(true);\n\t\t\tquery.setPredefinedResultsEnabled(true);\n\t\t query.setReturnedAttribute(Query.RETURN_RESULT_FIELDS, true);\n\t\t query.setReturnedAttribute(Query.RETURN_RESULT_URI, true);\n\t\t query.setSortKey(BaseQuery.SORT_KEY_NONE);\n\n\t\t\tProperties config = new Properties();\n\t\t\tconfig.setProperty(\"hostname\", hostname);\n\t\t\tconfig.setProperty(\"port\", portNumber);\n\t\t\tconfig.setProperty(\"timeout\", \"60\");\n\t\t\tconfig.setProperty(\"username\", applicationName);\n\t\t\tconfig.setProperty(\"password\", applicationPassword);\n\n\t\t\t// obtain the Search Service implementation\n\t\t\tSearchService searchService = searchFactory.getSearchService(config);\n\t\t Searchable searchable = null;\n//\t\t String collectionID = null;\n\n\t\t logger.logInfo(\"Collections = \" + collections);\n\t\t //if there are no collections specified select all collections and construct a list of collectionIDs\n\t\t if ( null == collections || \"*\".equals(collections) ) {\n\t\t \t\n\t\t \tRemoteFederator federator = searchService.getFederator(appinfo, appinfo.getId());\n\t\t \tif ( null == federator ) {\n\t\t \t\tlogger.logWarning(GDBMessages.SIAPI_OMNIFIND_RESOLVE_ERROR, \"Unable to resolve Omnifind Federator for app \" + \n\t\t \t\t\t\tapplicationName + \", appID \" + appinfo.getId() + \n\t\t \t\t\t\t\" - check collection name and id match, and check security for search app - returning no results\");\n\t\t \t\treturn;\n\t\t \t}\n\t\t\t CollectionInfo[] CollectionInfos = federator.getCollectionInfos();\n\t\t\t collectionIDs = new String[CollectionInfos.length];\n\t\t\t \n\t\t\t for (int i=0;i<CollectionInfos.length;i++)\n\t\t\t \tcollectionIDs[i] = CollectionInfos[i].getID();\n\t\t\t \n\t\t\t collectionSize = CollectionInfos.length;\n\t\t\t \n\t\t } else {\n\n\t\t\t\t// Create an array of the list of collections from which search results are to be obtained\n\t\t\t\tString[] collectionNames = collections.split(\",\");\n\t\t\t\tcollectionIDs = new String[collectionNames.length];\n\t\t\t\tfor (int i=0;i<collectionNames.length;i++)\n\t\t\t\t\tcollectionIDs[i] = CollectionIDfromName(searchService,appinfo,collectionNames[i]);\n\t\t\t\t\n\t\t\t\tcollectionSize = collectionNames.length;\n\t\t }\n\n//\t\t String[] collectionIDs = collectionID.split(\",\");\n//\t\t String[] collectionIDs = {\"col_92810\",\"col_56175\",\"Graham\",\"SSCatsa\",\"col_57441\"};\n\n\t\t logger.logInfo(\" CollectionSize= \" + collectionSize +\n\t\t \t\t\", CollectionIDs = \" + Arrays.asList( collectionIDs ) );\n\t\t \n//\t\t String[] collectionIDs = {collectionID};\n//\t\t String[] collectionIDs = new String[2];\n//\t\t collectionIDs[0] = \"col_57441\";\n//\t\t collectionIDs[1] = \"SSCatsa\";\n\n\t\t for ( int collectionCount=0; collectionCount<collectionSize; collectionCount++ ) {\n\n\t\t\t searchable = searchService.getSearchable(appinfo,collectionIDs[collectionCount].trim());\n\t\t\t\tResultSet rs = searchable.search(query);\n\n//\t\t\t\tlogger.logInfo(\"Estimated results: \" + rs.getEstimatedNumberOfResults());\n//\t\t\t\tlogger.logInfo(\"Available results: \" + rs.getAvailableNumberOfResults());\n\t\t\t\tlogger.logInfo(\"Evaluation time: \" + rs.getQueryEvaluationTime());\n\n\t if (rs != null) {\n\t\t\t\t\t// get the array of results from the ResultSet\n\t\t\t\t\tResult r[] = rs.getResults();\n\t\t\t\t\tif (r != null) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t// walk the results list and print out the\n\t\t\t\t\t\t// document identifier\n\t\t\t\t\t\tint numResults = r.length;\n\t\t\t\t\t\tlogger.logInfo(\"Number of results: \" + numResults );\n\t\t\t\t\t\t\n\t\t\t\t\t\tfor (int k = 0; k < numResults; k++) {\n//\t\t \t\t\t\tget the entry element\n\t\t \t\tString uri = r[k].getDocumentID();\n\n//\t\t \t\tlogger.logInfo(\"Description = \" +r[k].getDescription());\n\t\t \t\tif ( null == uri ) continue;\n\n\t\t \t\t\t\t//documentPath = (String) documentPath.subSequence(0,documentPath.length()-1);\n\t\t \t\t\n\t\t \t\t// DRV 09/12/10 - Removing:\n\t\t \t\t// 1) decoding of URIs and hence, 2) option to hash on the encoded or decoded URIs \n//\t\t \t\t\t\tString documentPath = URLDecoder.decode( uri, Charset.defaultCharset().name() );\n//\t\t \t\tint id = hashDecodedPaths ? documentPath.hashCode() : uri.hashCode();\n\t\t \t\t\t\t\n\t\t \t\t\t\tint id = uri.hashCode();\n\t\t \t\t\t\t\n\t\t \t\t\t\tlogger.logInfo(\"Adding row with docHashID: \" + id + \", docURI: \" + uri);\n//\t\t \t\t\t\tlogger.logInfo(\"Other row info description: \" + r[k].getDescription());\n\t\t \t\t\t\t\n\t\t \t\t\t\trows.add( new DataValueDescriptor[] { new SQLInteger(id), new SQLChar(uri), new SQLChar(r[k].getDescription()) } );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t }\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tlogger.logException(GDBMessages.SIAPI_EE_DOC_SEARCH_RESOLVE_ERROR, \"Unable to resolve Omnifind EE document search, cause: \", e);\n\t\t}\n\t}", "protected abstract List<List<SearchResults>> processStream();", "public Document getRepositoryDocument(String baseURL, String filters[], String serverUserId, String serverPassword) throws Exception {\n HttpClient client = new HttpClient();\r\n client.getParams().setSoTimeout(30000);\r\n if (serverUserId.length() > 0 && serverPassword.length() > 0) {\r\n Credentials creds = new UsernamePasswordCredentials(serverUserId, new String(serverPassword));\r\n client.getState().setCredentials(AuthScope.ANY, creds);\r\n client.getParams().setAuthenticationPreemptive(true);\r\n client.getParams().setCredentialCharset(\"UTF-8\");\r\n }\r\n String filter = \"\";\r\n for (int i = 0; filters != null && i < filters.length; i++) {\r\n filter += filters[i];\r\n if (i < filters.length - 1) {\r\n filter += \",\";\r\n }\r\n }\r\n currentRequest = new PostMethod(baseURL + \"/SolutionRepositoryService?component=getSolutionRepositoryDoc&filter=\" + URLEncoder.encode(filter, \"UTF-8\"));\r\n try {\r\n int status = client.executeMethod(currentRequest);\r\n if (status == HttpStatus.SC_UNAUTHORIZED) {\r\n throw new Exception(\"User authentication failed.\");\r\n } else if (status == HttpStatus.SC_NOT_FOUND) {\r\n throw new Exception(\"Repository service not found on server.\");\r\n } else if (status != HttpStatus.SC_OK) {\r\n throw new Exception(\"Server error: HTTP status code \" + status);\r\n } else {\r\n InputStream postResult = currentRequest.getResponseBodyAsStream();\r\n SAXReader reader = new SAXReader();\r\n return reader.read(postResult);\r\n }\r\n } finally {\r\n try {\r\n currentRequest.releaseConnection();\r\n } catch (Exception e) {\r\n // ignore\r\n }\r\n currentRequest = null;\r\n }\r\n }", "Records_type createRecordsFor(SearchTask st,\n int[] preferredRecordSyntax,\n int start,\n int count, String recordFormatSetname)\n {\n Records_type retval = new Records_type();\n \n LOGGER.finer(\"createRecordsFor(st, \"+start+\",\"+count+\")\");\n LOGGER.finer(\"pref rec syn = \" + preferredRecordSyntax);\n LOGGER.finer(\"record setname = \" + recordFormatSetname);\n LOGGER.finer(\"search task = \" + st);\n \n // Try and do a normal present\n try\n {\n \tif ( start < 1 ) \n \t throw new PresentException(\"Start record must be > 0\",\"13\");\n \tint numRecs = st.getTaskResultSet().getFragmentCount();\n \t\n \tLOGGER.finer(\"numresults = \" + numRecs);\n \tint requestedNum = start + count - 1;\n \tif ( requestedNum > numRecs ) {\n \t count = numRecs - (start - 1);\n \t if (start + count -1 > numRecs) {\n \t\tLOGGER.finer(requestedNum + \" < \" + numRecs);\n \t\tthrow new PresentException\n \t\t (\"Start+Count-1 (\" +requestedNum + \") must be < the \" + \n \t\t \" number of items in the result set: \" +numRecs ,\"13\");\n \t }\n \t}\n \t\n \t\n \tif ( st == null )\n \t throw new PresentException(\"Unable to locate result set\",\"30\");\n \t\n \tVector v = new Vector();\n \tretval.which = Records_type.responserecords_CID;\n \tretval.o = v;\n \t\n \tOIDRegisterEntry requested_syntax = null;\n \tString requested_syntax_name = null;\n \tif ( preferredRecordSyntax != null ) {\n \t requested_syntax = reg.lookupByOID(preferredRecordSyntax);\n \t if(requested_syntax==null) { // unsupported record syntax\n \t\tStringBuffer oid=new StringBuffer();\n \t\tfor(int i=0; i<preferredRecordSyntax.length; i++) {\n \t\t if(i!=0)\n \t\t\toid.append('.');\n \t\t oid.append(preferredRecordSyntax[i]);\n \t\t}\n \t\tLOGGER.warning(\"Unsupported preferredRecordSyntax=\"\n \t\t\t +oid.toString());\n \t\t\n \t\t// Need to set up diagnostic in here\n \t\tretval.which = Records_type.nonsurrogatediagnostic_CID;\n \t\tDefaultDiagFormat_type default_diag = \n \t\t new DefaultDiagFormat_type();\n \t\tretval.o = default_diag;\n \t\t\n \t\tdefault_diag.diagnosticSetId = reg.oidByName(\"diag-1\");\n \t\tdefault_diag.condition = BigInteger.valueOf(239);\n \t\tdefault_diag.addinfo = new addinfo_inline14_type();\n \t\tdefault_diag.addinfo.which = \n \t\t addinfo_inline14_type.v2addinfo_CID;\n \t\tdefault_diag.addinfo.o = (Object)(oid.toString());\n \t\treturn retval;\n \t }\n \t LOGGER.finer(\"requested_syntax=\"+requested_syntax);\n \t requested_syntax_name = requested_syntax.getName();\n\t if(requested_syntax_name.equals(\"usmarc\")) {\n\t\t//HACK! USMARC not yet supported...\n\t\trequested_syntax_name = \"sutrs\";\n\t }\n \t LOGGER.finer(\"requested_syntax_name=\"+requested_syntax_name);\n \t}\n \telse\n {\n\t requested_syntax_name = \"sutrs\"; //REVISIT: should this be\n \t //default? We're sure to have it...\n \t requested_syntax = reg.lookupByName(requested_syntax_name);\n }\n \t\n \tst.setRequestedSyntax(requested_syntax);\n \tst.setRequestedSyntaxName(requested_syntax_name);\n \t\t\n \tInformationFragment[] raw_records;\n \tRecordFormatSpecification rfSpec = \n \t new RecordFormatSpecification\n \t\t(requested_syntax_name, null, recordFormatSetname);\n \tLOGGER.finer(\"calling getFragment(\"+(start)+\",\"+count+\")\");\n \traw_records = st.getTaskResultSet().getFragment(start, count, rfSpec);\n \t\n \tif ( raw_records == null )\n \t throw new PresentException(\"Error retrieving records\",\"30\");\n \n \tfor ( int i=0; i<raw_records.length; i++ ) {\n \t\tLOGGER.finer(\"Adding record \"+i+\" to result\");\n \t\t\n \t\tNamePlusRecord_type npr = new NamePlusRecord_type();\n \t\tnpr.name = raw_records[i].getSourceCollectionName();\n \t\tnpr.record = new record_inline13_type();\n \t\tnpr.record.which = record_inline13_type.retrievalrecord_CID;\n \t\tEXTERNAL_type rec = new EXTERNAL_type();\n \t\tnpr.record.o = rec;\n \t\t\n \t\tif ( requested_syntax_name.equals(Z3950Constants.RECSYN_HTML) \n \t\t || requested_syntax_name.equals(\"sgml\")) {\n \t\t LOGGER.finer(\"Returning OctetAligned record for \"\n \t\t\t\t +requested_syntax_name);\n rec.direct_reference = \n \t\t\treg.oidByName(requested_syntax_name);\n \t\t rec.encoding = new encoding_inline0_type();\n \t\t rec.encoding.which = \n \t\t\tencoding_inline0_type.octet_aligned_CID;\n \t\t String raw_string = (String)raw_records[i].getOriginalObject();\n \t\t rec.encoding.o = raw_string.getBytes(); \n \t\t if(raw_string.length()==0) {\n \t\t\t\n \t\t\t// can't make a html record\n \t\t\tretval.which = Records_type.nonsurrogatediagnostic_CID;\n \t\t\tDefaultDiagFormat_type default_diag =\n \t\t\t new DefaultDiagFormat_type();\n \t\t\tretval.o = default_diag;\n \t\t\t\n \t\t\tdefault_diag.diagnosticSetId = reg.oidByName(\"diag-1\");\n \t\t\tdefault_diag.condition = BigInteger.valueOf(227);\n \t\t\tdefault_diag.addinfo = new addinfo_inline14_type();\n \t\t\tdefault_diag.addinfo.which = \n \t\t\t addinfo_inline14_type.v2addinfo_CID;\n \t\t\tdefault_diag.addinfo.o = \n \t\t\t (Object)\"1.2.840.10003.5.109.3\";\n \t\t\treturn retval;\n \t\t\t\n \t\t }\n \t\t}\n \t\telse if ( requested_syntax_name.equals\n \t\t\t (Z3950Constants.RECSYN_XML) ) {\n \t\n \t\t // Since XML is our canonical internal schema, \n \t\t //all realisations of InformationFragment\n \t\t // are capable of providing an XML representation of \n \t\t //themselves, so just use the\n \t\t // Fragments getDocument method.\n \t\t LOGGER.finer(\"Returning OctetAligned XML\");\n \t\t java.io.StringWriter sw = new java.io.StringWriter();\n \t\t \n \t\t try\n \t\t\t{\n \t\t\t OutputFormat format = \n \t\t\t\tnew OutputFormat\n \t\t\t\t (raw_records[i].getDocument() );\n \t\t\t XMLSerializer serial = \n \t\t\t\tnew XMLSerializer( sw, format );\n \t\t\t serial.asDOMSerializer();\n \t\t\t serial.serialize( raw_records[i].getDocument().\n \t\t\t\t\t getDocumentElement() );\n \t\t\t}\n \t\t catch ( Exception e )\n \t\t\t{\n \t\t\t LOGGER.severe(\"Problem serializing dom tree to\" + \n \t\t\t\t\t \" result record\" + e.getMessage());\n \t\t\t}\n \t\t \n \t\t rec.direct_reference = \n \t\t\treg.oidByName(requested_syntax_name);\n \t\t rec.encoding = new encoding_inline0_type();\n \t\t rec.encoding.which = \n \t\t\tencoding_inline0_type.octet_aligned_CID;\n \t\t rec.encoding.o = sw.toString().getBytes(); \t \n\t\t} else {//if ( requested_syntax_name.equals\n\t\t // (Z3950Constants.RECSYN_SUTRS)){\n \t\t rec.direct_reference = \n \t\t\treg.oidByName(requested_syntax_name);\n \t\t rec.encoding = new encoding_inline0_type();\n \t\t rec.encoding.which = \n \t\t\tencoding_inline0_type.single_asn1_type_CID;\n \t\t rec.encoding.o = \n \t\t\t((String)(raw_records[i].getOriginalObject()));\n \t\t}\n \t\tv.add(npr);\n \t\t\n \t}\n }\n catch ( PresentException pe ) {\n \tLOGGER.warning(\"Processing present exception: \"+pe.toString());\n \t\n // Need to set up diagnostic in here\n \tretval.which = Records_type.nonsurrogatediagnostic_CID;\n DefaultDiagFormat_type default_diag = new DefaultDiagFormat_type();\n retval.o = default_diag;\n \n default_diag.diagnosticSetId = reg.oidByName(\"diag-1\");\n \n if ( pe.additional != null )\n \t default_diag.condition = \n \t BigInteger.valueOf( Long.parseLong(pe.additional.toString()) );\n else\n default_diag.condition = BigInteger.valueOf(0);\n \n default_diag.addinfo = new addinfo_inline14_type();\n default_diag.addinfo.which = addinfo_inline14_type.v2addinfo_CID;\n default_diag.addinfo.o = (Object)(pe.toString());\n } \n \n LOGGER.finer(\"retval = \" + retval);\n return retval;\n }", "public ClsNodeDocument[] GetDocuments (String transID, String dataFlow);", "public static void initialize(String solrServerUrl) {\n SolrClient innerSolrClient = new HttpSolrClient.Builder(solrServerUrl).build();\n\n if (PropertiesLoader.SOLR_SERVER_CACHING) {\n int maxCachingEntries = PropertiesLoader.SOLR_SERVER_CACHING_MAX_ENTRIES;\n int maxCachingSeconds = PropertiesLoader.SOLR_SERVER_CACHING_AGE_SECONDS;\n solrServer = new CachingSolrClient(innerSolrClient, maxCachingEntries, maxCachingSeconds, -1); //-1 means no maximum number of connections \n log.info(\"SolrClient initialized with caching properties: maxCachedEntrie=\"+maxCachingEntries +\" cacheAgeSeconds=\"+maxCachingSeconds);\n } else {\n solrServer = new HttpSolrClient.Builder(solrServerUrl).build();\n log.info(\"SolClient initialized without caching\");\n }\n\n // some of the solr query will never using cache. word cloud(cache memory) + playback resolving etc. (cache poisoning)\n noCacheSolrServer = new HttpSolrClient.Builder(solrServerUrl).build();\n\n // solrServer.setRequestWriter(new BinaryRequestWriter()); // To avoid http\n // error code 413/414, due to monster URI. (and it is faster)\n\n instance = new NetarchiveSolrClient();\n\n if (PropertiesLoader.SOLR_SERVER_CHECK_INTERVAL > 0) {\n indexWatcher = new IndexWatcher(\n innerSolrClient, PropertiesLoader.SOLR_SERVER_CHECK_INTERVAL, instance::indexStatusChanged);\n }\n\n log.info(\"SolrClient initialized with solr server url:\" + solrServerUrl);\n }", "Collection<Document> getDocuments();", "private void createDocWords() {\n\t\tArrayList<DocWords> docList=new ArrayList<>();\n\t\ttry {\n\t\t\tBufferedReader in = new BufferedReader(new FileReader(\"E:\\\\graduate\\\\cloud\\\\project\\\\data\\\\docWords.txt\"));\n\t\t\tString line = \"\";\n\t\t\twhile ((line = in.readLine()) != null) {\n\t\t\t\tString parts[] = line.split(\" \");\n\t\t\t\tDocWords docWords=new DocWords();\n\t\t\t\tdocWords.setDocName(parts[0].replace(\".txt\", \"\"));\n\t\t\t\tdocWords.setCount(Float.parseFloat(parts[1]));\n\t\t\t\tdocList.add(docWords);\n\t\t\t}\n\t\t\tin.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tDBUtil.insertDocWords(docList);\n\t}", "private SolrIndexer()\n {\n fieldMap = new HashMap<String, String[]>();\n transMapMap = new HashMap<String, Map<String, String>>();\n customMethodMap = new HashMap<String, Method>();\n customMixinMap = new HashMap<String, SolrIndexerMixin>();\n indexDate = new Date();\n }", "private static List<Supplier> createSupplierData(ConsumerQuery query, boolean testing) {\n\t\tRepository repository;\n\t\t\n\t\t//use name of processes in query to retrieve subset of relevant supplier data from semantic infrastructure\n\t\tList<String> processNames = new ArrayList<String>();\t\n\n\t\tif (query.getProcesses() == null || query.getProcesses().isEmpty()) {\n\t\t\tSystem.err.println(\"There are no processes specified!\");\n\t\t} else {\n\t\t\n\t\tfor (Process process : query.getProcesses()) {\n\t\t\tprocessNames.add(process.getName());\n\t\t}\n\t\t}\n\t\t\t\n\t\t\n\t\tlong startTime = System.currentTimeMillis();\n\n\t\tif (testing == false) {\n\n\t\t\tMap<String, String> headers = new HashMap<String, String>();\n\t\t\theaders.put(\"Authorization\", AUTHORISATION_TOKEN);\n\t\t\theaders.put(\"accept\", \"application/JSON\");\n\n\t\t\trepository = new SPARQLRepository(SPARQL_ENDPOINT );\n\n\t\t\trepository.initialize();\n\t\t\t((SPARQLRepository) repository).setAdditionalHttpHeaders(headers);\n\n\t\t} else {\n\n\t\t\t//connect to GraphDB\n\t\t\trepository = new HTTPRepository(GRAPHDB_SERVER, REPOSITORY_ID);\n\t\t\trepository.initialize();\n\t\t}\n\t\t\n\t\t//creates a SPARQL query that is run against the Semantic Infrastructure\n\t\tString strQuery = SparqlQuery.createQueryMVP(processNames);\n\t\t\n\t\t//System.out.println(strQuery);\n\n\t\t//open connection to GraphDB and run SPARQL query\n\t\tSet<SparqlRecord> recordSet = new HashSet<SparqlRecord>();\n\t\tSparqlRecord record;\n\t\ttry(RepositoryConnection conn = repository.getConnection()) {\n\n\t\t\tTupleQuery tupleQuery = conn.prepareTupleQuery(QueryLanguage.SPARQL, strQuery);\t\t\n\n\t\t\t//if querying the local KB, we need to set setIncludeInferred to false, otherwise inference will include irrelevant results.\n\t\t\t//when querying the Semantic Infrastructure the non-inference is set in the http parameters.\n\t\t\tif (testing == true) {\n\t\t\t\t//do not include inferred statements from the KB\n\t\t\t\ttupleQuery.setIncludeInferred(false);\n\t\t\t}\n\n\t\t\ttry (TupleQueryResult result = tupleQuery.evaluate()) {\t\t\t\n\n\t\t\t\twhile (result.hasNext()) {\n\n\t\t\t\t\tBindingSet solution = result.next();\n\n\t\t\t\t\t//omit the NamedIndividual types from the query result\n\t\t\t\t\tif (!solution.getValue(\"processType\").stringValue().equals(\"http://www.w3.org/2002/07/owl#NamedIndividual\")\n\t\t\t\t\t\t\t&& !solution.getValue(\"certificationType\").stringValue().equals(\"http://www.w3.org/2002/07/owl#NamedIndividual\")\n\t\t\t\t\t\t\t&& !solution.getValue(\"materialType\").stringValue().equals(\"http://www.w3.org/2002/07/owl#NamedIndividual\")) {\n\n\t\t\t\t\t\trecord = new SparqlRecord();\n\t\t\t\t\t\trecord.setSupplierId(solution.getValue(\"supplierId\").stringValue().replaceAll(\"\\\\s+\",\"\"));\n\t\t\t\t\t\trecord.setProcess(stripIRI(solution.getValue(\"processType\").stringValue().replaceAll(\"\\\\s+\",\"\")));\n\t\t\t\t\t\trecord.setMaterial(stripIRI(solution.getValue(\"materialType\").stringValue().replaceAll(\"\\\\s+\",\"\")));\n\t\t\t\t\t\trecord.setCertification(stripIRI(solution.getValue(\"certificationType\").stringValue().replaceAll(\"\\\\s+\",\"\")));\n\n\t\t\t\t\t\trecordSet.add(record);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\n\t\t\t}\tcatch (Exception e) {\n\t\t\t\tSystem.err.println(e.getMessage());\n\t\t\t\tSystem.err.println(\"Wrong test data!\");\n\t\t\t}\n\t\t\t\n\n\t\t\t\n\n\t\t}\n\n\t\t//close connection to KB repository\n\t\trepository.shutDown();\n\n\t\tlong stopTime = System.currentTimeMillis();\n\t\tlong elapsedTime = stopTime - startTime;\n\n\t\tif (testing == true ) {\n\t\tSystem.out.println(\"The SPARQL querying process took \" + elapsedTime/1000 + \" seconds.\");\n\t\t}\n\n\t\t//get unique supplier ids used for constructing the supplier structure below\n\t\tSet<String> supplierIds = new HashSet<String>();\n\t\tfor (SparqlRecord sr : recordSet) {\n\t\t\tsupplierIds.add(sr.getSupplierId());\n\t\t}\n\n\t\tCertification certification = null;\n\t\tSupplier supplier = null;\n\t\tList<Supplier> suppliersList = new ArrayList<Supplier>();\n\n\t\t//create a map of processes and materials relevant for each supplier\n\t\tMap<String, SetMultimap<Object, Object>> multimap = new HashMap<String, SetMultimap<Object, Object>>();\n\n\t\tfor (String id : supplierIds) {\n\t\t\tSetMultimap<Object, Object> map = HashMultimap.create();\n\n\t\t\tString supplierID = null;\n\n\t\t\tfor (SparqlRecord sr : recordSet) {\n\n\t\t\t\tif (sr.getSupplierId().equals(id)) {\n\n\t\t\t\t\tmap.put(sr.getProcess(), sr.getMaterial());\n\n\t\t\t\t\tsupplierID = sr.getSupplierId();\n\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tmultimap.put(supplierID, map);\n\t\t}\t\t\n\n\t\tProcess process = null;\n\n\t\t//create supplier objects (supplier id, processes (including materials) and certifications) based on the multimap created in the previous step\n\t\tfor (String id : supplierIds) {\n\t\t\tSetMultimap<Object, Object> processAndMaterialMap = null;\n\n\t\t\tList<Certification> certifications = new ArrayList<Certification>();\n\t\t\tList<Process> processes = new ArrayList<Process>();\t\t\n\n\t\t\tfor (SparqlRecord sr : recordSet) {\n\n\t\t\t\tif (sr.getSupplierId().equals(id)) {\n\n\t\t\t\t\t//add certifications\n\t\t\t\t\tcertification = new Certification(sr.getCertification());\n\t\t\t\t\tif (!certifications.contains(certification)) {\n\t\t\t\t\t\tcertifications.add(certification);\n\t\t\t\t\t}\n\n\t\t\t\t\t//add processes and associated materials\n\t\t\t\t\tprocessAndMaterialMap = multimap.get(sr.getSupplierId());\n\n\t\t\t\t\tString processName = null;\n\n\t\t\t\t\tSet<Object> list = new HashSet<Object>();\n\n\t\t\t\t\t//iterate processAndMaterialMap and extract process and relevant materials for that process\n\t\t\t\t\tfor (Entry<Object, Collection<Object>> e : processAndMaterialMap.asMap().entrySet()) {\n\n\t\t\t\t\t\tSet<Material> materialsSet = new HashSet<Material>();\n\n\t\t\t\t\t\t//get list/set of materials\n\t\t\t\t\t\tlist = new HashSet<>(e.getValue());\n\n\t\t\t\t\t\t//transform to Set<Material>\n\t\t\t\t\t\tfor (Object o : list) {\n\t\t\t\t\t\t\tmaterialsSet.add(new Material((String)o));\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tprocessName = (String) e.getKey();\n\n\t\t\t\t\t\t//add relevant set of materials together with process name\n\t\t\t\t\t\tprocess = new Process(processName, materialsSet);\n\n\t\t\t\t\t\t//add processes\n\t\t\t\t\t\tif (!processes.contains(process)) {\n\t\t\t\t\t\t\tprocesses.add(process);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\n\t\t\t\t\tsupplier = new Supplier(id, processes, certifications );\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tsuppliersList.add(supplier);\n\t\t}\n\n\t\treturn suppliersList;\n\n\t}", "public abstract List<ClinicalDocument> findAllClinicalDocuments();", "public DocumentReader ()\n {\n this.instanceStatus = new ServiceInstanceStatus(serviceStatus);\n this.instanceStatus.notifyCreation();\n }", "public void index(List<ParsedDocument> pdocs,int qid) {\n\t\ttry {\n\t\t\tint count = iw.maxDoc()+1;\n\t\t\tDocument doc = null;\n\t\t\tIndexDocument iDoc=null;\n\t\t\tfor (ParsedDocument pdoc : pdocs) {\n\t\t\t\t\n\t\t\t\tiDoc=parseDocument(pdoc);\n\t\t\t\tif(iDoc==null){\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tField queryField = new Field(\"qid\", qid+\"\", Store.YES,\n\t\t\t\t\t\tIndex.NOT_ANALYZED);\n\t\t\t\tField uniqueField = new Field(\"id\", count + \"\", Store.YES,\n\t\t\t\t\t\tIndex.NOT_ANALYZED);\n\t\t\t\tField titleField = new Field(\"title\", iDoc.getTitle(),\n\t\t\t\t\t\tStore.YES, Index.ANALYZED, TermVector.YES);\n\t\t\t\tField bodyField = new Field(\"body\", iDoc.getBody(), Store.YES,\n\t\t\t\t\t\tIndex.ANALYZED, TermVector.YES);\n\t\t\t\tField urlField = new Field(\"url\", iDoc.getUrl(), Store.YES,\n\t\t\t\t\t\tIndex.NOT_ANALYZED);\n\t\t\t\tField anchorField = new Field(\"anchor\", iDoc.getAnchor(), Store.YES,\n\t\t\t\t\t\tIndex.ANALYZED, TermVector.YES);\n\n\t\t\t\tdoc = new Document();\n\t\t\t\tdoc.add(uniqueField);//标示不同的document\n\t\t\t\tdoc.add(queryField);//标示不同的query\n\t\t\t\tdoc.add(titleField);\n\t\t\t\tdoc.add(bodyField);\n\t\t\t\tdoc.add(urlField);\n\t\t\t\tdoc.add(anchorField);\n\t\t\t\t\n\t\t\t\tiw.addDocument(doc);\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\tiw.commit();\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} \n\t}", "public static SolrIndexer indexerFromProperties(Properties indexingProperties, String searchPath[])\n {\n SolrIndexer indexer = new SolrIndexer();\n indexer.propertyFilePaths = searchPath;\n indexer.fillMapFromProperties(indexingProperties);\n\n return indexer;\n }", "public static void main(String[] args) {\n\t\tNotesThread.sinitThread();\n\n\t\t// *** Opening a IBM Notes Session\n\t\tSession session = River.getSession(River.LOTUS_DOMINO, null, null, getPassword(args));\n\t\tSystem.out.println(\"Session opened: \" + session.getUserName());\n\n\t\t// *** Opening/creating the test database\n\n\t\t// Checking if the test database exists\n\t\tIndexedDatabase database = session.getDatabase(AddressBook.class, \"\", filepath);\n\n\t\t// If not, then we create a new one\n\t\tif (!database.isOpen()) {\n\t\t\tdatabase = session.createDatabase(AddressBook.class, \"\", filepath);\n\n\t\t\t// If it could not be created, then we finish the demo\n\t\t\tif (!database.isOpen()) {\n\t\t\t\tSystem.out.println(\"I could not create the test database at the local client, with the name '\" + filepath + \"'\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"Database opened: \" + database.getName());\n\t\tSystem.out.println(\"\");\n\t\n\t\t// *** Deleting all documents\n\t\tSystem.out.println(\"Deleting any existent document...\");\n\t\tdatabase.getAllDocuments().deleteAll();\n\n\t\t// *** Creating five hundred person documents\n\t\tSystem.out.println(\"Creating documents with random data...\");\n\t\tfor (int i = 0; i < 500; i++) {\n\n\t\t\t//Getting some random values \n\t\t\tString name = RandomValues.getAFirstName();\n\t\t\tString lastName = RandomValues.getALastName();\n\t\t\tString domain = RandomValues.getADomain();\n\n\t\t\t//Saving as a new document\n\t\t\tdatabase.createDocument(Person.class)\n\t\t\t.setField(\"FirstName\", name)\n\t\t\t.setField(\"LastName\", lastName)\n\t\t\t.setField(\"FullName\", name + \" \" + lastName)\n\t\t\t.setField(\"InternetAddress\", (name + \".\" + lastName + \"@\" + domain).toLowerCase())\n\t\t\t.generateId()\n\t\t\t.save();\n\t\t}\n\n\t\t// *** Searching for people with a last name 'Thomas'\n\t\tString query = \"FirstName=\\\"Thomas\\\"\";\n\n\t\tSystem.out.println(\"\");\n\t\tSystem.out.println(\"Searching for '\" + query + \"'...\");\n\t\tDocumentIterator it = database.search(query);\n\n\t\t// Printing the results\n\t\tSystem.out.println(\"Found:\");\n\n\t\tSystem.out.println(\"\");\n\t\tSystem.out.println(\"(ID) FULL NAME: EMAIL\");\n\t\tfor(Document doc : it) {\n\t\t\tPerson p = doc.getAs(Person.class);\n\t\t\tSystem.out.println(\"(\" + p.getId() + \") \" + p.getFieldAsString(\"FullName\") + \": \" + p.getFieldAsString(\"InternetAddress\"));\n\t\t}\n\n\t\t// *** Finding who has an specific id\t\t\n\t\tfinal String lookingForTheId = \"P10B7\";\n\t\t\n\t\tSystem.out.println(\"\");\t\t\n\t\tSystem.out.println(\"Looking for the id \" + lookingForTheId + \"...\");\n\n\t\tDocument p = database.getDocument(Person.class, lookingForTheId);\n\t\t\n\t\tif (p.isOpen()) {\n\t\t\tSystem.out.println(\"His/her name is \" + p.getFieldAsString(\"FullName\") + \" and his email address is \" + p.getFieldAsString(\"InternetAddress\"));\n\t\t} else {\n\t\t\tSystem.out.println(\"Not found.\");\n\t\t}\n\n\t\t// *** Closing the session\n\t\tRiver.closeSession(River.LOTUS_DOMINO);\n\t\tNotesThread.stermThread();\n\n\t\tSystem.out.println(\"Done.\");\n\t}", "public static void main (String args[]) {\r\n\t String lspName = args[0];\r\n\t if (!lspName.startsWith (\"http://\")) {\r\n\t lspName = \"http://localhost:8080/\" + lspName;\r\n\t }\r\n\r\n String queryFilename = null;\r\n if (args.length == 2) {\r\n queryFilename = args[1];\r\n }\r\n\r\n try {\r\n SDARTSBean startsBean =\r\n \t new SDARTSBean (lspName);\r\n\r\n System.out.println (\"-----------------------------\");\r\n System.out.println (\"Finding supported interfaces of \" + lspName);\r\n String result1 = startsBean.getInterface();\r\n System.out.println (result1);\r\n System.out.println (\"-----------------------------\");\r\n System.out.println (\"Getting subcollection info for \" + lspName);\r\n String result2 = startsBean.getSubcollectionInfo();\r\n System.out.println (result2);\r\n System.out.println (\"-----------------------------\");\r\n String[] subcolNames = getSubCollectionNames (result2);\r\n int len = subcolNames.length;\r\n for (int i = 0 ; i < len ; i++) {\r\n String name = subcolNames[i];\r\n System.out.println (\"Getting subcollection info for \" + lspName +\r\n \":\" + name);\r\n String result3 = startsBean.getPropertyInfo(name);\r\n System.out.println (result3);\r\n System.out.println (\"-----------------------------\");\r\n }\r\n\r\n if (queryFilename != null) {\r\n StringBuffer sb = new StringBuffer();\r\n String testQuery = \"\";\r\n BufferedReader br =\r\n new BufferedReader (\r\n new InputStreamReader (\r\n new FileInputStream (queryFilename)));\r\n String line = null;\r\n while ( (line = br.readLine()) != null ) {\r\n sb.append (line);\r\n }\r\n\r\n testQuery = sb.toString();\r\n IntHolder total = new IntHolder();\r\n String result3 = startsBean.search (null,testQuery,total,1000);\r\n System.out.println (\"-----------------------------\");\r\n System.out.println (\"Found \" + total.value + \" hits.\");\r\n System.out.println (result3);\r\n System.out.println (\"-----------------------------\");\r\n }\r\n }\r\n catch (SDLIPException e) {\r\n System.out.println (e.getCode());\r\n e.printStackTrace();\r\n XMLObject details = e.getDetails();\r\n if (details != null) {\r\n try {\r\n System.out.println (\"DETAILS:\");\r\n System.out.println (details.getString());\r\n }\r\n catch (Exception e2) {\r\n e2.printStackTrace();\r\n }\r\n }\r\n System.exit(1);\r\n }\r\n catch (Exception e) {\r\n e.printStackTrace();\r\n System.exit(1);\r\n }\r\n }", "Set<Document> findDocuments(Map<String, String> fields);", "private void get_products_search()\r\n\r\n {\n MakeWebRequest.MakeWebRequest(\"get\", AppConfig.SALES_RETURN_PRODUCT_LIST,\r\n AppConfig.SALES_RETURN_PRODUCT_LIST + \"[\" + Chemist_ID + \",\"+client_id +\"]\", this, true);\r\n\r\n// MakeWebRequest.MakeWebRequest(\"out_array\", AppConfig.SALES_RETURN_PRODUCT_LIST, AppConfig.SALES_RETURN_PRODUCT_LIST,\r\n// null, this, false, j_arr.toString());\r\n //JSONArray jsonArray=new JSONArray();\r\n }", "@Bean\n\tpublic SolrClient solrClient() throws Exception {\n\t\t\n\t\tfinal String solrUrl = \"http://192.168.182.132:8983/solr\";\n\t\treturn new HttpSolrClient.Builder(solrUrl).withConnectionTimeout(10000).withSocketTimeout(60000).build();\n\t}", "public static void main(String[] args) {\n\t\tMongoClient client = new MongoClient(\"localhost\", 27017);\n\t\t// getting access to database.. if not available, it will create new one with this name 'test'\n\t\tMongoDatabase database = client.getDatabase(\"test\");\n\t\t// getting Collections from database.if not available, it will create new one with this name 'Employee'\n\t\tMongoCollection<Document> collection = database.getCollection(\"Employee\");\n\t\t//put data in map Collection\n\t\t/*\n\t\t Map<String,Object> m=new HashMap<>();\n\t\t\tm.put(\"id\", \"500\");\n\t\t\tm.put(\"name\", \"krishna\");\n\t\t\tm.put(\"address\", \"mum\");\n\t\t\tm.put(\"phone\", \"546325\");\n\t\t*/\n\t\t/**\n\t\t * Map Collection can not be used to store data. for mongo, we have to use document class of mongo\n\t\t * To store multiple document at a time,add document in list collection and store.\n\t\t * e.g.,\n\t\t * \n\t\t */\n\t\t\n\t\t// Creating single documents to add in mongo collections\n\t\t/*\n\t\tDocument document = new Document();\n\t\tdocument.append(\"id\", \"200\");\n\t\tdocument.append(\"name\", \"radha\");\n\t\tdocument.append(\"address\", \"pune\");\n\t\tdocument.append(\"phone\", \"78564\");\n\t\t*/\n\t\t/*//adding document to collection\n\t\tcollection.insertOne(document);*/\n\t\t\n\t\t// Creating multiple documents to add in mongo collections\n\t\t/**\n\t\t * Creating multiple documents instances\n\t\t */\n\t\tDocument document1 = new Document();\n\t\tdocument1.append(\"id\", \"300\");\n\t\tdocument1.append(\"name\", \"rani\");\n\t\tdocument1.append(\"address\", \"kol\");\n\t\tdocument1.append(\"phone\", \"56975\");\n\t\t\n\t\tDocument document2 = new Document();\n\t\tdocument2.append(\"id\", \"301\");\n\t\tdocument2.append(\"name\", \"sushma\");\n\t\tdocument2.append(\"address\", \"shimla\");\n\t\tdocument2.append(\"phone\", \"65987\");\n\t\t\n\t\tDocument document3 = new Document();\n\t\tdocument3.append(\"id\", \"302\");\n\t\tdocument3.append(\"name\", \"mamta\");\n\t\tdocument3.append(\"address\", \"delhi\");\n\t\tdocument3.append(\"phone\", \"78564\");\n\t\t\n\t\t/**\n\t\t * Adding multiple document instances in list Collection\n\t\t */\n\t\tList<Document> listOfDocuments=new ArrayList<>();\n\t\tlistOfDocuments.add(document1);\n\t\tlistOfDocuments.add(document2);\n\t\tlistOfDocuments.add(document3);\n\t\t\n\t\t//----------Calling insertMany(-) to save multiple document instances placed in list\n\t\n\t\tcollection.insertMany(listOfDocuments);\n\t\t\n\t\tSystem.out.println(\"documents inserted successfully\");\n\t\t// closing connection\n\t\tclient.close();\n\n\t}", "void createSolrSystem(SolrSystemDTO systemDTO, UserDTO userDTO);", "@POST\n\t@Path(\"students\")\n\t@Consumes(MediaType.APPLICATION_JSON)\n\t@Produces(MediaType.APPLICATION_JSON)\n\tpublic Response searchStudent(ParamsObject input){\n\t\tMap<String,List<String>> map = new HashMap<String,List<String>>();\n\t\tArrayList<Students> studentRecords = new ArrayList<Students>();\n\t\tJSONArray resultArray = new JSONArray();\n\t\tJSONObject finalResult = new JSONObject();\n\t\tint total = -1;\n\t\tint begin = 1;\n\t\tint end = 20;\n\ttry{\n\t\tif (input.getFirstname()!=null){\n\t\t\tSystem.out.println(\"got firstname\"+input.getFirstname());\n\t\t\tArrayList<String> firstnameList = new ArrayList<String>();\n\t\t\tfirstnameList.add(input.getFirstname());\n\t\t\tmap.put(\"firstName\",firstnameList);\n\t\t}\n\t\tif (input.getLastname()!=null){\n\t\t\tArrayList<String> lastnameList = new ArrayList<String>();\n\t\t\tlastnameList.add(input.getLastname());\n\t\t\tmap.put(\"lastName\",lastnameList);\n\t\t}\n\t\tif (input.getEmail()!=null){\n\t\t\tArrayList<String> emailList = new ArrayList<String>();\n\t\t\temailList.add(input.getEmail());\n\t\t\tmap.put(\"email\",emailList);\n\t\t}\n\t\tif (input.getDegreeyear()!=null){\n\t\t\tArrayList<String> degreeyearList = new ArrayList<String>();\n\t\t\tdegreeyearList.add(input.getDegreeyear());\n\t\t\tmap.put(\"expectedLastYear\",degreeyearList);\n\t\t}\n\t\tif (input.getEnrollmentstatus()!=null){\n\t\t\tArrayList<String> enrollmentstatusList = new ArrayList<String>();\n\t\t\tenrollmentstatusList.add(input.getEnrollmentstatus());\n\t\t\tmap.put(\"enrollmentStatus\",enrollmentstatusList);\n\t\t}\n\t\tif (input.getCampus()!=null){\n\t\t\tArrayList<String> campusList = new ArrayList<String>();\n\t\t\tcampusList.add(input.getCampus());\n\t\t\tmap.put(\"campus\",campusList);\n\t\t}\n\t\tif (input.getCompany()!=null){\n\t\t\tArrayList<String> companyList = new ArrayList<String>();\n\t\t\tcompanyList.add(input.getCompany());\n\t\t\tmap.put(\"companyName\",companyList);\n\t\t}\n\t\tif (input.getNeuid()!=null){\n\t\t\tArrayList<String> neuIdList = new ArrayList<String>();\n\t\t\tneuIdList.add(input.getNeuid());\n\t\t\tmap.put(\"neuId\",neuIdList);\n\t\t}\n\t\tif (input.getUndergradmajor()!=null){\n\t\t\tArrayList<String> undergradmajor = new ArrayList<String>();\n\t\t\tundergradmajor.add(input.getUndergradmajor());\n\t\t\tmap.put(\"majorName\",undergradmajor);\n\t\t}\n\t\tif (input.getNuundergrad()!=null){\n\t\t\tArrayList<String> nuundergrad = new ArrayList<String>();\n\t\t\tnuundergrad.add(input.getUndergradmajor());\n\t\t\tmap.put(\"institutionName\",nuundergrad);\n\t\t}\n\t\tif (input.getCoop()!=null){\n\t\t\tArrayList<String> coop = new ArrayList<String>();\n\t\t\tcoop.add(input.getCoop());\n\t\t\tmap.put(\"companyName\",coop);\n\t\t}\n\t\tif (input.getGender()!=null){\n\t\t\tArrayList<String> gender = new ArrayList<String>();\n\t\t\tgender.add(input.getGender());\n\t\t\tmap.put(\"gender\",gender);\n\t\t}\n\t\tif (input.getRace()!=null){\n\t\t\tArrayList<String> race = new ArrayList<String>();\n\t\t\trace.add(input.getRace());\n\t\t\tmap.put(\"race\",race);\n\t\t}\n\t\tif (input.getBeginindex()!=null){\n\t\t\tbegin = Integer.valueOf(input.getBeginindex());\n\t\t}\n\t\tif (input.getEndindex()!=null){\n\t\t\tend = Integer.valueOf(input.getEndindex());\n\t\t}\n\t\tstudentRecords = (ArrayList<Students>) studentDao.getAdminFilteredStudents(map, begin, end);\n\t\ttotal = studentDao.getAdminFilteredStudentsCount(map);\n\t\t\n\t\tfor(Students st : studentRecords) {\n\t\t\tJSONObject studentJson = new JSONObject();\n\t\t\tJSONObject eachStudentJson = new JSONObject(st);\n\t\t\tjava.util.Set<String> keys = eachStudentJson.keySet();\n\t\t\tfor(int i=0;i<keys.toArray().length; i++){\n\t\t\t\tstudentJson.put(((String) keys.toArray()[i]).toLowerCase(), eachStudentJson.get((String) keys.toArray()[i]));\n\t\t\t}\n\t\t\tstudentJson.put(\"notes\",administratorNotesDao.getAdministratorNoteRecordByNeuId(studentJson.get(\"neuid\").toString()));\n\t\t\tresultArray.put(studentJson);\n\t\t}\n\t\tfinalResult.put(\"students\", resultArray);\n\t\tfinalResult.put(\"beginindex\", begin);\n\t\tfinalResult.put(\"endindex\", end);\n\t\tfinalResult.put(\"totalcount\", total);\n\t\t\n\t\t}\n\t\tcatch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t\treturn Response.status(Response.Status.INTERNAL_SERVER_ERROR).entity(\"please check the request.\").build();\n\t\t}\n\t\treturn Response.status(Response.Status.OK).entity(finalResult.toString()).build();\n\t}", "private static void performInitialSync() throws IOException,ConfigurationException {\n\n LOGGER.info(\"Starting to perform initial sync\");\n //tapDump is basically that -- a dump of all data currently in CB.\n TapStream tapStream = tapClient.tapDump(tapName);\n SolrBatchImportEventHandler couchbaseToSolrEventHandler = new SolrBatchImportEventHandler();\n startupBatchDisruptor(couchbaseToSolrEventHandler);\n RingBuffer<CouchbaseEvent> ringBuffer = disruptor.getRingBuffer();\n\n CouchbaseEventProducer producer = new CouchbaseEventProducer(ringBuffer);\n //While there is data keep reading and producing\n while (!tapStream.isCompleted()) {\n while (tapClient.hasMoreMessages()) {\n ResponseMessage responseMessage;\n responseMessage = tapClient.getNextMessage();\n if (null != responseMessage) {\n String key = responseMessage.getKey();\n String value = new String(responseMessage.getValue());\n producer.onData(new String[] {key, value}, responseMessage.getOpcode());\n\n }\n }\n }\n LOGGER.info(\"Finished initial sync\");\n shutdownBatchDisruptor();\n //Since this event handler is batch based, we need to let it know we are done and it could flush the remaining data.\n couchbaseToSolrEventHandler.flush();\n\n }", "public DocumentListFeed getAllDocuments() throws MalformedURLException, IOException, ServiceException;", "public interface IndexDocsInES {\n\n void indexDocs(Client client, String index_name, String type_name, List<Pair> docs);\n}", "protected void sampleNewDocuments(\n String stateFile,\n int[][] newWords,\n String outputResultFile) throws Exception {\n if (verbose) {\n System.out.println();\n logln(\"Perform regression using model from \" + stateFile);\n logln(\"--- Test burn-in: \" + this.testBurnIn);\n logln(\"--- Test max-iter: \" + this.testMaxIter);\n logln(\"--- Test sample-lag: \" + this.testSampleLag);\n }\n\n // input model\n inputModel(stateFile);\n\n words = newWords;\n labels = null; // for evaluation\n D = words.length;\n\n // initialize structure\n initializeDataStructure();\n\n if (verbose) {\n logln(\"test data\");\n logln(\"--- V = \" + V);\n logln(\"--- D = \" + D);\n int docTopicCount = 0;\n for (int d = 0; d < D; d++) {\n docTopicCount += docTopics[d].getCountSum();\n }\n\n int topicWordCount = 0;\n for (DirMult topicWord : topicWords) {\n topicWordCount += topicWord.getCountSum();\n }\n\n logln(\"--- docTopics: \" + docTopics.length + \". \" + docTopicCount);\n logln(\"--- topicWords: \" + topicWords.length + \". \" + topicWordCount);\n }\n\n // initialize assignments\n sampleZ(!REMOVE, ADD, !REMOVE, ADD, !OBSERVED);\n\n if (verbose) {\n logln(\"After initialization\");\n int docTopicCount = 0;\n for (int d = 0; d < D; d++) {\n docTopicCount += docTopics[d].getCountSum();\n }\n\n int topicWordCount = 0;\n for (DirMult topicWord : topicWords) {\n topicWordCount += topicWord.getCountSum();\n }\n\n logln(\"--- docTopics: \" + docTopics.length + \". \" + docTopicCount);\n logln(\"--- topicWords: \" + topicWords.length + \". \" + topicWordCount);\n }\n\n // iterate\n ArrayList<double[]> predResponsesList = new ArrayList<double[]>();\n for (iter = 0; iter < this.testMaxIter; iter++) {\n sampleZ(!REMOVE, !ADD, REMOVE, ADD, !OBSERVED);\n\n if (iter >= this.testBurnIn && iter % this.testSampleLag == 0) {\n if (verbose) {\n logln(\"--- iter = \" + iter + \" / \" + this.testMaxIter);\n }\n\n // update current dot products\n this.docLabelDotProds = new double[D];\n for (int d = 0; d < D; d++) {\n double[] empDist = docTopics[d].getEmpiricalDistribution();\n for (int k = 0; k < K; k++) {\n this.docLabelDotProds[d] += lambdas[k] * empDist[k];\n }\n }\n\n // compute prediction values\n double[] predResponses = computePredictionValues();\n predResponsesList.add(predResponses);\n }\n }\n\n if (verbose) {\n logln(\"After iterating\");\n int docTopicCount = 0;\n for (int d = 0; d < D; d++) {\n docTopicCount += docTopics[d].getCountSum();\n }\n\n int topicWordCount = 0;\n for (DirMult topicWord : topicWords) {\n topicWordCount += topicWord.getCountSum();\n }\n\n logln(\"\\t--- docTopics: \" + docTopics.length + \". \" + docTopicCount);\n logln(\"\\t--- topicWords: \" + topicWords.length + \". \" + topicWordCount);\n }\n\n // output result during test time\n if (verbose) {\n logln(\"--- Outputing result to \" + outputResultFile);\n }\n PredictionUtils.outputSingleModelRegressions(\n new File(outputResultFile),\n predResponsesList);\n }", "public void createClusters() {\n\t\t/*\n\t\t * double simAvg = documentDao.getSimilarity(avg); double simMax =\n\t\t * documentDao.getSimilarity(max); double simMin =\n\t\t * documentDao.getSimilarity(min);\n\t\t */\n\n\t\t// initClusters();\n\n\t\tList<Document> docList = documentDao.getDocumentListOrderBySimilarity();\n\t\tList<Cluster> clusterList = clusterDao.getClusterList();\n\n\t\tint i = 0;\n\t\tCluster cluster = clusterList.get(i);\n\t\tfor (Document document : docList) {\n\t\t\twhile (document.getSimilarity() < cluster.getLow()) {\n\t\t\t\tcluster = clusterList.get(++i);\n\t\t\t}\n\t\t\tif (document.getSimilarity() < cluster.getHigh() && document.getSimilarity() >= cluster.getLow()) {\n\t\t\t\tdocument.setClusterId(cluster.getId());\n\t\t\t\tdocumentDao.insertDocument(document);\n\t\t\t}\n\t\t}\n\n\t}", "public static void main(String[] args) \n\t{\n\t\tClassPathXmlApplicationContext context = null;\n\t\ttry {\n\t\t\tcontext = new ClassPathXmlApplicationContext(\"ApplicationContext.xml\");\n\t\t\tNlpDocumentsDao docDao = (NlpDocumentsDao) context.getBean(\"nlpDocumentsDao\");\t\t\t\n\t\t\tString docId = \"12771596\";\n\t\t\t/*List<NlpPatientHitsDocs> nlpDocRecs = docDao.getNlpDocsWithHits(docId);\n\n\t\t\tfor (int i=0; i<nlpDocRecs.size(); i++) {\n\t\t\t\tNlpPatientHitsDocs nlpRecord = nlpDocRecs.get(i);\n\t\t\t\tSystem.out.println(\"Document:\\n\"+nlpRecord.getNote_content().substring(0, 100));\n\t\t\t}\t*/\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t} catch(Throwable th) {\n\t\t\tth.printStackTrace();\n\t\t} finally {\n\t\t\tcontext.close();\n\t\t}\n\t}", "public DataResourceBuilder _sample_(List<Resource> _sample_) {\n this.dataResourceImpl.setSample(_sample_);\n return this;\n }", "public interface IDocumentaryService {\n\n public List<Documentary> getByOffset(int offset);\n\n public int getCount();\n\n public Documentary getById(String id);\n\n public int insert(Documentary doc);\n\n public int update(Documentary doc);\n\n public List<Documentary> search(String key);\n}", "public void setSamples(List<Sample> samples)\n {\n this.samples = samples;\n }", "protected List<String> startServers(int nServer) throws Exception {\n String temporaryCollection = \"tmp_collection\";\n\n for (int i = 1; i <= nServer; i++) {\n // give everyone there own solrhome\n File jettyDir = createTempDir(\"jetty\").toFile();\n jettyDir.mkdirs();\n setupJettySolrHome(jettyDir);\n JettySolrRunner jetty = createJetty(jettyDir, null, \"shard\" + i);\n jetty.start();\n jettys.add(jetty);\n }\n\n try (SolrClient client = createCloudClient(temporaryCollection)) {\n assertEquals(0, CollectionAdminRequest\n .createCollection(temporaryCollection, \"conf1\", shardCount, 1)\n .setCreateNodeSet(\"\")\n .process(client).getStatus());\n for (int i = 0; i < jettys.size(); i++) {\n assertTrue(CollectionAdminRequest\n .addReplicaToShard(temporaryCollection, \"shard\"+((i % shardCount) + 1))\n .setNode(jettys.get(i).getNodeName())\n .process(client).isSuccess());\n }\n }\n\n ZkStateReader zkStateReader = jettys.get(0).getCoreContainer().getZkController().getZkStateReader();\n\n // now wait till we see the leader for each shard\n for (int i = 1; i <= shardCount; i++) {\n zkStateReader.getLeaderRetry(temporaryCollection, \"shard\" + i, 15000);\n }\n\n // store the node names\n List<String> nodeNames = new ArrayList<>();\n for (Slice shard : zkStateReader.getClusterState().getCollection(temporaryCollection).getSlices()) {\n for (Replica replica : shard.getReplicas()) {\n nodeNames.add(replica.getNodeName());\n }\n }\n\n this.waitForRecoveriesToFinish(temporaryCollection,zkStateReader, true);\n // delete the temporary collection - we will create our own collections later\n this.deleteCollection(temporaryCollection);\n this.waitForCollectionToDisappear(temporaryCollection);\n System.clearProperty(\"collection\");\n\n return nodeNames;\n }", "private void startDoc(Attributes attributes) {\n\n\t\t// Start storing the document in the content store\n\t\tstartCaptureContent();\n\n\t\t// Create a new Lucene document\n\t\tcurrentLuceneDoc = new Document();\n\t\tcurrentLuceneDoc.add(new Field(\"fromInputFile\", fileName, Store.YES, Index.NOT_ANALYZED,\n\t\t\t\tTermVector.NO));\n\n\t\t// Store attribute values from the <doc> tag as fields\n\t\tfor (int i = 0; i < attributes.getLength(); i++) {\n\t\t\tString attName = attributes.getLocalName(i);\n\t\t\tString value = attributes.getValue(i);\n\n\t\t\tcurrentLuceneDoc.add(new Field(attName, value, Store.YES, Index.ANALYZED_NO_NORMS,\n\t\t\t\t\tTermVector.WITH_POSITIONS_OFFSETS));\n\t\t}\n\n\t\t// Report indexing progress\n\t\treportDocumentStarted(attributes);\n\t}", "public static SolrDocumentList getDocsFromFieldedQuery(SolrServer solrServer, String solrFldName, String solrFldVal, String requestHandlerName)\n\t{\n\t SolrQuery query = new SolrQuery();\n\t query.setQuery(solrFldName + \":\" + solrFldVal);\n\t query.setQueryType(requestHandlerName);\n\t query.setFacet(false);\n\t try\n\t {\n\t QueryResponse response = solrServer.query(query);\n\t return response.getResults();\n\t }\n\t catch (SolrServerException e)\n\t {\n\t e.printStackTrace();\n\t }\n\n\t return null;\n\t}", "public interface ItemService {\n TaotaoResult importItems() throws IOException, SolrServerException;\n}", "private static void createIndex() {\n XML_Shell workFile = new XML_Shell();\n String messageFromServer = ClientService.getLastMessageFromServer();\n\n try {\n XML_Manager.stringToDom(messageFromServer, workFile);\n } catch (SAXException | ParserConfigurationException | IOException | TransformerException e) {\n e.printStackTrace();\n }\n\n }", "@Override\r\n\tpublic void start() {\n\t\t\r\n\t\tServerAddress serverurl=new ServerAddress(host, port);\r\n\t\tList<ServerAddress> listServer=new ArrayList<ServerAddress>();\r\n\t\tlistServer.add(serverurl);\r\n\t\tMongoCredential credential=MongoCredential.createCredential(user, database, password.toCharArray());\r\n\t\tList<MongoCredential> listCre=new ArrayList<MongoCredential>();\r\n\t\tlistCre.add(credential);\r\n\t\tmongoClient = new MongoClient(listServer, listCre);\r\n\t\tmongoDB = mongoClient.getDatabase(database);\r\n\t\tmongoCollection = mongoDB.getCollection(collection);\r\n\r\n\t}", "public static void main(String[] args) throws IOException{\n\t\tint termIndex = 1;\n\t\t\n\t\t// startOffset holds the start offset for each term in\n\t\t// the corpus.\n\t\tlong startOffset = 0;\n\t\t\t\n\t\t// unique_terms is true if there are atleast one more\n\t\t// unique term in corpus.\n\t\tboolean unique_terms = true;\n\t\t\n\t\t\n\t\t//load the stopwords from the HDD\n\t\tString stopwords = getStopWords();\n\t\t\n\t\t// allTokenHash contains all the terms and its termid\n\t\tHashMap<String, Integer> allTermHash = new HashMap<String, Integer>();\n\t\t\n\t\t// catalogHash contains the term and its position in\n\t\t// the inverted list present in the HDD.\n\t\tHashMap<Integer, Multimap> catalogHash = new HashMap<Integer, Multimap>();\n\t\t\n\t\t// finalCatalogHash contains the catalogHash for the invertedIndexHash\n\t\t// present in the HDD.\n\t\tHashMap<Integer, String> finalCatalogHash = new HashMap<Integer, String>();\n\t\t\n\t\t// token1000Hash contains the term and Dblocks for the first 1000\n\t\tHashMap<Integer, Multimap> token1000DocHash = new HashMap<Integer, Multimap>();\n\t\t\n\t\t// documentHash contains the doclength of all the documents in the corpus\n\t\tHashMap<String, String> documentHash = new HashMap<String, String>();\t\n\t\t\n\t\t// id holds the document id corresponding to the docNumber.\n\t\tint id = 1;\n\t\t\n\t\t// until all unique terms are exhausted\n\t\t// pass through the documents and index the terms.\n\t\t//while(unique_terms){\n\t\t\t\n\t\t\tFile folder = new File(\"C:/Naveen/CCS/IR/AP89_DATA/AP_DATA/ap89_collection\");\n\t\t\t//File folder = new File(\"C:/Users/Naveen/Desktop/TestFolder\");\n\t\t\tFile[] listOfFiles = folder.listFiles();\n\t\t\t\n\t\t\t//for each file in the folder \n\t\t\tfor (File file : listOfFiles) {\n\t\t\t if (file.isFile()) {\n\t\t\t \t\n\t\t\t \tString str = file.getPath().replace(\"\\\\\",\"//\");\n\t\t\t \t\n\t\t\t \t\n\t\t\t\t\t//Document doc = new Document();\n\t\t\t //System.out.println(\"\"+str);\n\t\t\t\t\t//variables to keep parse document.\n\t\t\t\t\tint docCount = 0;\n\t\t\t\t\tint docNumber = 0;\n\t\t\t\t\tint endDoc = 0;\n\t\t\t\t\tint textCount = 0;\n\t\t\t\t\tint noText = 0;\n\t\t\t\t\tPath path = Paths.get(str);\n\t\t\t\t\t\n\t\t\t\t\t//Document id and text\n\t\t\t\t\tString docID = null;\n\t\t\t\t\tString docTEXT = null;\n\t\t\t\t\t\n\t\t\t\t\t//Stringbuffer to hold the text of each document\n\t\t\t\t\tStringBuffer text = new StringBuffer();\n\t\t\t\t\t\n\t\t\t\t\tScanner scanner = new Scanner(path);\n\t\t\t\t\twhile(scanner.hasNext()){\n\t\t\t\t\t\tString line = scanner.nextLine();\n\t\t\t\t\t\tif(line.contains(\"<DOC>\")){\n\t\t\t\t\t\t\t++docCount;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(line.contains(\"</DOC>\")){\n\t\t\t\t\t\t\t++endDoc;\n\t\t\t\t\t\t\tdocTEXT = text.toString();\n\t\t\t\t\t\t\t//docTEXT = docTEXT.replaceAll(\"[\\\\n]\",\" \");\n\t\t\t\t\t\t\tSystem.out.println(\"ID: \"+id);\n\t\t\t\t\t\t\t//System.out.println(\"TEXT: \"+docTEXT);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// text with stop words removed\n\t\t\t\t\t\t\tPattern pattern1 = Pattern.compile(\"\\\\b(?:\"+stopwords+\")\\\\b\\\\s*\", Pattern.CASE_INSENSITIVE);\n\t\t\t\t\t\t\tMatcher matcher1 = pattern1.matcher(docTEXT);\n\t\t\t\t\t\t\tdocTEXT = matcher1.replaceAll(\"\");\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// text with stemming\n\t\t\t\t\t\t\t//docTEXT = stemmer(docTEXT);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tint docLength = 1;\n\t\t\t\t\t\t\t// regex to build the tokens from the document text\n\t\t\t\t\t\t\tPattern pattern = Pattern.compile(\"\\\\w+(\\\\.?\\\\w+)*\");\n\t\t\t\t\t\t\tMatcher matcher = pattern.matcher(docTEXT.toLowerCase());\n\t\t\t\t\t\t\twhile (matcher.find()) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tfor (int i = 0; i < matcher.groupCount(); i++) {\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t// alltermHash contains term and term id\n\t\t\t\t\t\t\t\t\t// if term is present in the alltermHash\n\t\t\t\t\t\t\t\t\tif(allTermHash.containsKey(matcher.group(i))){\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tint termId = allTermHash.get(matcher.group(i));\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t//if term is present in the token1000Hash\n\t\t\t\t\t\t\t\t\t\t//then update the dblock of the term.\n\t\t\t\t\t\t\t\t\t\tif(token1000DocHash.containsKey(termId)){\n\t\t\t\t\t\t\t\t\t\t\tMultimap<String, String> dBlockUpdate = token1000DocHash.get(termId);\n\t\t\t\t\t\t\t\t\t\t\t//Multimap<Integer, Integer> dBlockUpdate = token1000DocHash.get(matcher.group(i));\n\t\t\t\t\t\t\t\t\t\t\tif(dBlockUpdate.containsKey(id)){\n\t\t\t\t\t\t\t\t\t\t\t\tdBlockUpdate.put(String.valueOf(id), String.valueOf(matcher.start()));\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\t\t\t\tdBlockUpdate.put(String.valueOf(id), String.valueOf(matcher.start()));\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t//if term is not present in the token1000hash\n\t\t\t\t\t\t\t\t\t\t//then add the token with its dBlock\n\t\t\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\t\t\tMultimap<String, String> dBlockInsert = ArrayListMultimap.create();\n\t\t\t\t\t\t\t\t\t\t\tdBlockInsert.put(String.valueOf(id), String.valueOf(matcher.start()));\n\t\t\t\t\t\t\t\t\t\t\ttoken1000DocHash.put(termId, dBlockInsert);\t\n\t\t\t\t\t\t\t\t\t\t}\t\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t// if the term is not present I will put the term into allTermHash\n\t\t\t\t\t\t\t\t\t// put corresponding value into the token1000DocHash and increment\n\t\t\t\t\t\t\t\t\t// termIndex\n\t\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\t\tallTermHash.put(matcher.group(i),termIndex);\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tMultimap<String, String> dBlockInsert = ArrayListMultimap.create();\n\t\t\t\t\t\t\t\t\t\tdBlockInsert.put(String.valueOf(id), String.valueOf(matcher.start()));\n\t\t\t\t\t\t\t\t\t\ttoken1000DocHash.put(termIndex, dBlockInsert);\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\ttermIndex++;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tdocLength++;\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\n\t\t\t\t\t\t\t\tif(id%1000 == 0){\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t// then dump index file to HDD\n\t\t\t\t\t\t\t\t\twriteInvertedIndex(token1000DocHash,\"token1000DocHash\");\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t// update catalog file\n\t\t\t\t\t\t\t\t\t// to populate catalogHash with the offset\n\t\t\t\t\t\t\t\t\tfor(Entry<Integer, Multimap> entry : token1000DocHash.entrySet()){\n\t\t\t\t\t\t\t\t\t\tif(catalogHash.containsKey(entry.getKey())){\n\t\t\t\t\t\t\t\t\t\t\tint len = (entry.getKey()+\":\"+entry.getValue()).length();\n\t\t\t\t\t\t\t\t\t\t\t//String offset = String.valueOf(startOffset)+\":\"+String.valueOf(len);\n\t\t\t\t\t\t\t\t\t\t\tMultimap<String, String> catUpdate = catalogHash.get(entry.getKey());\n\t\t\t\t\t\t\t\t\t\t\tcatUpdate.put(String.valueOf(startOffset), String.valueOf(len));\n\t\t\t\t\t\t\t\t\t\t\tcatalogHash.put(entry.getKey(), catUpdate);\n\t\t\t\t\t\t\t\t\t\t\tstartOffset += len+2;\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\t\t\tint len = (entry.getKey()+\":\"+entry.getValue()).length();\n\t\t\t\t\t\t\t\t\t\t\t//String offset = String.valueOf(startOffset)+\":\"+String.valueOf(len);\n\t\t\t\t\t\t\t\t\t\t\tMultimap<String, String> catInsert = ArrayListMultimap.create();\n\t\t\t\t\t\t\t\t\t\t\tcatInsert.put(String.valueOf(startOffset), String.valueOf(len));\n\t\t\t\t\t\t\t\t\t\t\tcatalogHash.put(entry.getKey(), catInsert);//entry.getValue());\n\t\t\t\t\t\t\t\t\t\t\tstartOffset += len+2;\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t}\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t//clear the token1000DocHash\n\t\t\t\t\t\t\t\t\ttoken1000DocHash.clear();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tdocumentHash.put(docID, \"\"+id+\":\"+docLength);\n\t\t\t\t\t\t\tid++;\n\t\t\t\t\t\t\ttext = new StringBuffer();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(line.contains(\"<DOCNO>\")){\n\t\t\t\t\t\t\t++docNumber;\n\t\t\t\t\t\t\tdocID = line.substring(8, 21);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(line.contains(\"<TEXT>\")){\n\t\t\t\t\t\t\t++textCount;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if((line.contains(\"<DOC>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"</DOC>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"<DOCNO>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"<FILEID>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"<FIRST>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"<SECOND>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"<HEAD>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"</HEAD>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"<BYLINE>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"</BYLINE>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"<UNK>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"</UNK>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"<DATELINE>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"<NOTE>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"</NOTE>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"</TEXT>\"))||\n\t\t\t\t\t\t\t\t(line.contains(\"<TEXT>\"))){\n\t\t\t\t\t\t\t ++noText;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(endDoc == docCount - 1){\n\t\t\t\t\t\t\ttext.append(line);\n\t\t\t\t\t\t\ttext.append(\" \");\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\n\t\t\t }//end of if - to check if this is a file and parse.\n\t\t\t \n\t\t\t}//end of for loop to load each file\n\t\t\t\n\t\t//}//end of while loop \n\t\t\n\t// write catalogfile to the hdd to check.\n\t\t\t\n\t\t\t// then dump index file to HDD\n\t\t\twriteInvertedIndex(token1000DocHash,\"token1000DocHash\");\n\t\t\t\n\t\t\t// update catalog file\n\t\t\t// to populate catalogHash with the offset\n\t\t\tfor(Entry<Integer, Multimap> entry : token1000DocHash.entrySet()){\n\t\t\t\tif(catalogHash.containsKey(entry.getKey())){\n\t\t\t\t\tint len = (entry.getKey()+\":\"+entry.getValue()).length();\n\t\t\t\t\t//String offset = String.valueOf(startOffset)+\":\"+String.valueOf(len);\n\t\t\t\t\tMultimap<String, String> catUpdate = catalogHash.get(entry.getKey());\n\t\t\t\t\tcatUpdate.put(String.valueOf(startOffset), String.valueOf(len));\n\t\t\t\t\tcatalogHash.put(entry.getKey(), catUpdate);\n\t\t\t\t\tstartOffset += len+2;\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tint len = (entry.getKey()+\":\"+entry.getValue()).length();\n\t\t\t\t\t//String offset = String.valueOf(startOffset)+\":\"+String.valueOf(len);\n\t\t\t\t\tMultimap<String, String> catInsert = ArrayListMultimap.create();\n\t\t\t\t\tcatInsert.put(String.valueOf(startOffset), String.valueOf(len));\n\t\t\t\t\tcatalogHash.put(entry.getKey(), catInsert);//entry.getValue());\n\t\t\t\t\tstartOffset += len+2;\n\t\t\t\t\t\n\t\t\t\t}\t\t\t\t\t\t\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\twriteInvertedIndex(catalogHash,\"catalogHash\");\n\t\t\tprintHashMapSI(allTermHash);\n\t\t\tprintHashMapSS(documentHash);\n\t\t\t\n\t\t\tlong InvIndstartOffset = 0;\n\t\t\t\n\t\t\t//write it to file\n \n\t\t\t//change the finalcatalogHash to the form termid:startoffset:length\n\t\t\tfor (Integer name: catalogHash.keySet()){\n\t String key = name.toString();\n\t String value = catalogHash.get(name).toString(); \n\t //System.out.println(key + \" \" + value); \n\t String finalTermIndex = genInvertedIndex(key, value);\n\t finalTermIndex = key+\":\"+finalTermIndex;\n\t int indexLength = finalTermIndex.length();\n\t \n\t \n\t PrintWriter writer = new PrintWriter(new BufferedWriter\n\t \t\t(new FileWriter(\"C:/Users/Naveen/Desktop/TestRuns/LastRun/InvertedIndex\", true)));\n\t writer.println(finalTermIndex);\n\t writer.close();\n\t \n\t //update the finalcatalogHash\n\t //Multimap<String, String> catInsert = ArrayListMultimap.create();\n\t\t\t\t//catInsert.put(String.valueOf(InvIndstartOffset), String.valueOf(indexLength));\n\t\t\t\tfinalCatalogHash.put(name, String.valueOf(InvIndstartOffset)+\":\"+String.valueOf(indexLength));//entry.getValue());\n\t\t\t\tInvIndstartOffset += indexLength+2;\n\t \n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\tprintHashMapIS(finalCatalogHash);\n\t\t\t\n\t}", "public static void main(String[] args) {\n File plasmadb = new File(\"D:\\\\dev\\\\proxy\\\\DATA\\\\PLASMADB\");\r\n File indexdb = new File(\"D:\\\\dev\\\\proxy\\\\DATA\\\\INDEX\");\r\n try {\r\n plasmaWordIndex index = new plasmaWordIndex(plasmadb, indexdb, true, 555, 1000, new serverLog(\"TESTAPP\"), false);\r\n Iterator containerIter = index.wordContainers(\"5A8yhZMh_Kmv\", plasmaWordIndex.RL_WORDFILES, true);\r\n while (containerIter.hasNext()) {\r\n System.out.println(\"File: \" + (indexContainer) containerIter.next());\r\n }\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n \r\n }", "public static void main(String[] args) {\n\n MongoClientOptions mongoClientOptions = MongoClientOptions.builder().connectionsPerHost(500).build();\n MongoClient mongoClient = new MongoClient(new ServerAddress(), mongoClientOptions);\n final MongoDatabase db = mongoClient.getDatabase(\"varun_db\");\n final MongoCollection<Document> person = db.getCollection(\"person\");\n for (Document doc : person.find()) {\n printDoc(doc);\n }\n person.drop();\n for(int i=0;i<10;i++) {\n Document smith = new Document(\"name\", \"smith\"+i)\n .append(\"age\", 30)\n .append(\"profession\", \"programmer\"+i);\n person.insertOne(smith);\n }\n final Document document = person.find().first();\n printDoc(document);\n\n final ArrayList<Document> into = person.find().into(new ArrayList<Document>());\n for (Document doc : into)\n printDoc(doc);\n\n final MongoCursor<Document> mongoCursor = person.find().iterator();\n try {\n while (mongoCursor.hasNext())\n printDoc(mongoCursor.next());\n } finally {\n mongoCursor.close();\n }\n\n System.out.println(\"total count is \"+ person.count());\n\n System.out.println(\"filter\");\n Bson filterDoc=new Document(\"name\",\"smith9\");\n final FindIterable<Document> filter = person.find().filter(filterDoc);\n for(Document doc:filter)\n printDoc(doc);\n Bson filterDoc2=eq(\"name\",\"smith8\");\n final FindIterable<Document> filter2 = person.find().filter(filterDoc2);\n for(Document doc:filter2)\n printDoc(doc);\n\n }", "public void startinitializeHelloWorldWS(\n\n sample.ws.HelloWorldWSStub.InitializeHelloWorldWS initializeHelloWorldWS10,\n\n final sample.ws.HelloWorldWSCallbackHandler callback)\n\n throws java.rmi.RemoteException{\n\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[5].getName());\n _operationClient.getOptions().setAction(\"initializeCourseWS\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n \n \n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\n \n\n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env=null;\n final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\n\n \n //Style is Doc.\n \n \n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\n initializeHelloWorldWS10,\n optimizeContent(new javax.xml.namespace.QName(\"http://ws.sample/\",\n \"initializeHelloWorldWS\")));\n \n // adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // create message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message context to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n\n \n _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {\n public void onMessage(org.apache.axis2.context.MessageContext resultContext) {\n try {\n org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();\n \n java.lang.Object object = fromOM(resultEnv.getBody().getFirstElement(),\n sample.ws.HelloWorldWSStub.InitializeHelloWorldWSResponse.class,\n getEnvelopeNamespaces(resultEnv));\n callback.receiveResultinitializeHelloWorldWS(\n (sample.ws.HelloWorldWSStub.InitializeHelloWorldWSResponse)object);\n \n } catch (org.apache.axis2.AxisFault e) {\n callback.receiveErrorinitializeHelloWorldWS(e);\n }\n }\n\n public void onError(java.lang.Exception error) {\n\t\t\t\t\t\t\t\tif (error instanceof org.apache.axis2.AxisFault) {\n\t\t\t\t\t\t\t\t\torg.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;\n\t\t\t\t\t\t\t\t\torg.apache.axiom.om.OMElement faultElt = f.getDetail();\n\t\t\t\t\t\t\t\t\tif (faultElt!=null){\n\t\t\t\t\t\t\t\t\t\tif (faultExceptionNameMap.containsKey(faultElt.getQName())){\n\t\t\t\t\t\t\t\t\t\t\t//make the fault by reflection\n\t\t\t\t\t\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(faultElt.getQName());\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Exception ex=\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t(java.lang.Exception) exceptionClass.newInstance();\n\t\t\t\t\t\t\t\t\t\t\t\t\t//message class\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.String messageClassName = (java.lang.String)faultMessageMap.get(faultElt.getQName());\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Object messageObject = fromOM(faultElt,messageClass,null);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnew java.lang.Class[]{messageClass});\n\t\t\t\t\t\t\t\t\t\t\t\t\tm.invoke(ex,new java.lang.Object[]{messageObject});\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t callback.receiveErrorinitializeHelloWorldWS(new java.rmi.RemoteException(ex.getMessage(), ex));\n } catch(java.lang.ClassCastException e){\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorinitializeHelloWorldWS(f);\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorinitializeHelloWorldWS(f);\n } catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorinitializeHelloWorldWS(f);\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorinitializeHelloWorldWS(f);\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorinitializeHelloWorldWS(f);\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorinitializeHelloWorldWS(f);\n } catch (org.apache.axis2.AxisFault e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorinitializeHelloWorldWS(f);\n }\n\t\t\t\t\t\t\t\t\t } else {\n\t\t\t\t\t\t\t\t\t\t callback.receiveErrorinitializeHelloWorldWS(f);\n\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t callback.receiveErrorinitializeHelloWorldWS(f);\n\t\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 callback.receiveErrorinitializeHelloWorldWS(error);\n\t\t\t\t\t\t\t\t}\n }\n\n public void onFault(org.apache.axis2.context.MessageContext faultContext) {\n org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);\n onError(fault);\n }\n\n public void onComplete() {\n try {\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\n } catch (org.apache.axis2.AxisFault axisFault) {\n callback.receiveErrorinitializeHelloWorldWS(axisFault);\n }\n }\n });\n \n\n org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;\n if ( _operations[5].getMessageReceiver()==null && _operationClient.getOptions().isUseSeparateListener()) {\n _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();\n _operations[5].setMessageReceiver(\n _callbackReceiver);\n }\n\n //execute the operation client\n _operationClient.execute(false);\n\n }", "public List<Document> execute(){\n if(!advancedQuery)\n return convertToDocumentsList(executeRegularQuery());\n else\n return convertToDocumentsList(executeAdvancedQuery());\n }", "public List<IResult> getResults(List<Integer> relatedDocs, String query) {\r\n\r\n // results\r\n List<IResult> rs = new ArrayList<>();\r\n List<Double> documentVector, queryVector = new ArrayList<>();\r\n\r\n Map<String, Integer> termFreqs = this.preprocessor.processQuery(query);\r\n\r\n for(String op : new String[]{\"and\", \"or\", \"not\"}) {\r\n termFreqs.remove(op);\r\n }\r\n\r\n\r\n double highestVal = 0;\r\n\r\n // query TF-IDF vector\r\n for(String term : termFreqs.keySet()) {\r\n\r\n // unknown term == contained in no doc\r\n if(!this.index.getDict().containsKey(term)) {\r\n continue;\r\n }\r\n\r\n // # docs where term occurs in\r\n int termTotalFreq = this.index.getTermInDocCount(term);\r\n\r\n // query tf-idf vector\r\n double qTfIdf = this.tfidf.tfidfQuery(termFreqs.get(term), termTotalFreq);\r\n queryVector.add(qTfIdf);\r\n\r\n if(qTfIdf > highestVal) highestVal = qTfIdf;\r\n }\r\n\r\n // query vector normalization\r\n for(int i = 0; i < queryVector.size(); i++) {\r\n queryVector.set(i, queryVector.get(i)/highestVal);\r\n }\r\n\r\n\r\n for(int docId : relatedDocs) {\r\n documentVector = new ArrayList<>();\r\n highestVal = 0;\r\n\r\n for(String term : termFreqs.keySet()) {\r\n\r\n // unknown term == contained in no doc\r\n if(!this.index.getDict().containsKey(term)) {\r\n continue;\r\n }\r\n\r\n // document tf-idf vector\r\n double dTfIdf = this.tfidf.getTfIdf(term, docId);\r\n documentVector.add(dTfIdf);\r\n\r\n if(dTfIdf > highestVal) highestVal = dTfIdf;\r\n }\r\n\r\n // document vector normalization\r\n for(int i = 0; i < documentVector.size(); i++) {\r\n documentVector.set(i, documentVector.get(i)/highestVal);\r\n }\r\n\r\n Result result = new Result();\r\n result.setDocumentId(this.docs.get(docId).getUrl());\r\n result.setDocument(this.docs.get(docId));\r\n result.setScore((float) CosineSimilarity.process(documentVector, queryVector));\r\n rs.add(result);\r\n }\r\n\r\n Collections.sort(rs, new ResultComparator());\r\n\r\n // limit number of results\r\n if(rs.size() > IndexerConfig.MAX_RESULT_COUNT)\r\n rs = rs.subList(0, IndexerConfig.MAX_RESULT_COUNT);\r\n\r\n // rank it\r\n for(int i = 0; i < rs.size(); i++) {\r\n ((Result) rs.get(i)).setRank (i + 1);\r\n }\r\n\r\n return rs;\r\n }", "private static List<Payload> createPayloads(\n File indexDescriptor, List<Pair<String, List<Pair<String, String>>>> corpus) throws IOException {\n LuceneIndexDescriptor descriptor = new LuceneIndexDescriptor(indexDescriptor.toURI().toURL());\n List<Payload> payloads = new ArrayList<>(corpus.size());\n for (Pair<String, List<Pair<String, String>>> recordDef : corpus) {\n Document document = new Document();\n for (Pair<String, String> content : recordDef.getValue()) {\n LuceneIndexField indexField = descriptor.getFieldForIndexing(content.getKey());\n Field field = new Field(content.getKey(), content.getValue(), indexField.getStore(),\n indexField.getIndex(), indexField.getTermVector());\n document.add(field);\n }\n Record record = new Record(recordDef.getKey(), \"foo\", new byte[0]);\n Payload payload = new Payload(record);\n payload.getObjectData().put(Payload.LUCENE_DOCUMENT, document);\n IndexUtils.assignBasicProperties(payload);\n payloads.add(payload);\n }\n return payloads;\n }", "public static ArrayList<Document> getDocumentList() {\n\t\tRequestContent rp = new RequestContent();\n\t\trp.type = RequestType.GET_DOCUMENTS;\n\t\tReceiveContent rp1 = sendReceive(rp);\n\t\tArrayList<Document> doc = (ArrayList<Document>) rp1.parameters[0];\n\t\treturn doc;\n\t}", "public void run(){\n ObjectWriter ow = new ObjectMapper().writer().withDefaultPrettyPrinter();\n\n// // We want to read the meta data from the beginning, we use seekToBeginning\n// consumer.seekToBeginning(consumer.assignment());\n\n // Poll for data\n logger.info(\"Polling stations metadata\");\n ConsumerRecords<String, Station> records = consumer.poll(Duration.ofSeconds(3));\n\n int recordCount = records.count();\n logger.info(\"Received \" + recordCount + \" records\");\n\n BulkRequest bulkRequest = new BulkRequest();\n String index;\n\n for (ConsumerRecord<String, Station> record : records){\n\n //Do something , for now we print\n logger.info(\"Topic: \" + record.topic() + \", Key: \" + record.key());\n logger.info(\"Value: \" + record.value());\n logger.info(\"Partition: \"+ record.partition() + \", Offset: \" + record.offset());\n\n if(record.topic().equals(\"ParkingStations_metadata\")){\n index = \"parking_metadata\";\n }else{\n if(record.topic().equals(\"EChargingStations_metadata\")) {\n index = \"e_charging_metadata\";}\n else{\n index = \"misc\";\n }\n }\n\n try {\n String id = record.value().getCode();\n logger.info(\"Inserting document : \" +index +\"/_doc/\"+ id);\n\n //Converting the Station to JSONString\n String jsonStation = ow.writeValueAsString(record.value());\n\n\n //Prepare data for bulk insert into ElasticSearch\n bulkRequest.add(new IndexRequest(index).id(id).source(jsonStation, XContentType.JSON));\n\n } catch (NullPointerException e){\n logger.warn(\"Skipping bad data: \" + record.value());\n }\n catch (JsonProcessingException e) {\n logger.warn(\"Count not parse this object to JSON: \" + e.getMessage());\n }\n }\n\n // We only commit if we recieved something\n // Bulk Insert of Data\n try{\n if (recordCount > 0) {\n BulkResponse bulkItemResponses = elasticSearchClient.bulk(bulkRequest, RequestOptions.DEFAULT);\n if (!bulkItemResponses.hasFailures()) {\n logger.info(\"Status of bulk request : \" + bulkItemResponses.status());\n logger.info(\"Committing offsets...\");\n consumer.commitSync();\n logger.info(\"Offsets have been committed\");\n }else{\n for (BulkItemResponse bulkItemResponse : bulkItemResponses) {\n if (bulkItemResponse.isFailed()) {\n BulkItemResponse.Failure failure = bulkItemResponse.getFailure();\n logger.error(\"Failure ID : \" + failure.getId() + \"\\tFailure Index : \"\n + failure.getIndex() + \"\\tFailure Message : \" + failure.getMessage());\n }\n }\n }\n\n Thread.sleep(500);\n }\n\n }\n catch(IOException e){\n logger.error(\"IO Exception while saving data into ElasticSearch \" + e.getMessage());\n }\n catch (InterruptedException e) {\n e.printStackTrace();\n }\n finally{\n consumer.close();\n }\n\n\n }", "public static void main(String args[]) {\n\t\tNuxeoClient client = new NuxeoClient.Builder().url(\"http://localhost:8080/parliament\")\n\t\t// NuxeoClient client = new NuxeoClient.Builder().url(\"http://tourismministry.phoenixsolutions.com.np:8888/parliament\")\n\t\t\t\t.authentication(\"Administrator\", \"Administrator\").schemas(\"*\") // fetch all document schemas\n\t\t\t\t.connect();\n\t\tRepository repository = client.repository();\n\n//Menu\n\t//create\n\t\tDocument file = Document.createWithName(\"One\", \"Band\");\n\t\tDocument menu = Document.createWithName(\"menu\", \"Folder\");\n\t\t// menu.setPropertyValue(\"band:abbr\", \"ELF\");\n\t\trepository.createDocumentByPath(\"/\", menu);\n\t\tDocument report = Document.createWithName(\"report-list\", \"Report-List\");\n\t\trepository.createDocumentByPath(\"/menu\", report);\n\t\tDocument event = Document.createWithName(\"event-list\", \"Event-List\");\n\t\trepository.createDocumentByPath(\"/menu\", event);\n\t\tDocument meeting = Document.createWithName(\"meeting-list\", \"Meeting-List\");\n\t\trepository.createDocumentByPath(\"/menu\", meeting);\n\t\tDocument ics = Document.createWithName(\"integrated-central-status-list\", \"Integrated-Central-Status-List\");\n\t\trepository.createDocumentByPath(\"/menu\", ics);\n\n\n\t\tUserManager userManager = client.userManager();\n\n\t\tcreateUsers(userManager,\"operator\",\"Operator\",\"operator\");\n\t\tcreateUsers(userManager,\"secretary\",\"Secretary\",\"secretary\");\n\t\tcreateUsers(userManager,\"depsecretary\",\"DepSecretary\",\"depsecretary\");\n\t\tcreateUsers(userManager,\"education\",\"Education\",\"education\");\n\t\tcreateUsers(userManager,\"health\",\"Health\",\"health\");\n\t\tcreateUsers(userManager,\"tourism\",\"Tourism\",\"tourism\");\n\n\t\tString[] memberUsersSecretariat = {\"operator\",\"secretary\",\"depsecretary\"};\n\t\tString[] memberUsersBeruju = {\"education\",\"health\",\"tourism\"};\n\t\tcreateGroup(userManager,\"secretariat\",\"Secretariat\",memberUsersSecretariat);\n\t\tcreateGroup(userManager,\"beruju\",\"Beruju\",memberUsersBeruju);\n\t\n//fetching\n\n\t\t// Document myfile = repository.fetchDocumentByPath(\"/default-domain/workspaces/Bikings/Liferay/One\");\n\t\t// String title = myfile.getPropertyValue(\"band:band_name\"); // equals to folder\n\t\t// System.out.println(title);\n\n\n// file upload\n\n\t\t// Document domain = client.repository().fetchDocumentByPath(\"/default-domain\");\n\n\t\t// Let's first retrieve batch upload manager to handle our batch:\n\t\t// BatchUploadManager batchUploadManager = client.batchUploadManager();\n\n\t\t// // // getting local file\n\t\t// ClassLoader classLoader = new NuxeoConnect().getClass().getClassLoader();\n\t\t// File file = new File(classLoader.getResource(\"dipesh.jpg\").getFile());\n\n\t\t// // // create a new batch\n\t\t// BatchUpload batchUpload = batchUploadManager.createBatch();\n\t\t// Blob fileBlob = new FileBlob(file);\n\t\t// batchUpload = batchUpload.upload(\"0\", fileBlob);\n\n\t\t// // // attach the blob\n\t\t\n\t\t// Document doc = client.repository().fetchDocumentByPath(\"/default-domain/workspaces/Phoenix/DipeshCollection/dipeshFile\");\n\t\t// doc.setPropertyValue(\"file:content\", batchUpload.getBatchBlob());\n\t\t// doc = doc.updateDocument();\n\t\t// // get\n\t\t// Map pic = doc.getPropertyValue(\"file:content\");\n\t\t// System.out.print(pic);\n\t}", "@PostMapping(\"/search\")\n public String showSearchResult(@RequestParam(name = \"searchBox\") String myString, Model model) throws IOException {\n List<String> productImageNames = new ArrayList<String>();\n List<String> productAudioNames = new ArrayList<String>();\n List<String> productVideoNames = new ArrayList<String>();\n System.out.println(\"Products found by findAll():\");\n System.out.println(\"----------------------------\");\n User user = userService.getCurrentUser();\n for (SolrSearch solrSearch : this.productRepository.findByName( myString)){\n// List<File> file = fileRepository.findByFileName(product);\n// productNames.add(file.get(0).getFileName().toString());\n String extension = \"\";\nSystem.out.println(solrSearch.getOriginalName());\n int i = solrSearch.getOriginalName().lastIndexOf('.');\n if (i > 0) {\n extension = solrSearch.getOriginalName().substring(i+1);\n }\n\n extension.toLowerCase();\nSystem.out.println(user);\n if(user!=null){\n List<File> file = fileService.fildFileByfile_name_metadata(solrSearch.getOriginalName());\n if(!file.isEmpty()){\n if((file.get(0).getUserId()==user.getId()) || (file.get(0).getPrivacy().equals(\"public\"))){\n if(extension.equals(\"jpg\")){\n productImageNames.add(solrSearch.getOriginalName());\n }else if(extension.equals(\"mp3\")){\n productAudioNames.add(solrSearch.getOriginalName());\n }else if(extension.equals(\"mp4\")){\n productVideoNames.add(solrSearch.getOriginalName());\n }\n }\n }\n }\n\n else {\n List<File> file = fileService.fildFileByfile_name_metadata(solrSearch.getOriginalName());\n System.out.println(file);\n if(!file.isEmpty()){\n System.out.println(\"0000000000000000000000000000000000000\");\n System.out.println(file.get(0).getPrivacy());\n if(file.get(0).getPrivacy().equals(\"public\")){\n if(extension.equals(\"jpg\")){\n productImageNames.add(solrSearch.getOriginalName());\n System.out.println(\"1111111111111111111111111111\");\n }else if(extension.equals(\"mp3\")){\n productAudioNames.add(solrSearch.getOriginalName());\n System.out.println(\"22222222222222222222222222222\");\n }else if(extension.equals(\"mp4\")){\n productVideoNames.add(solrSearch.getOriginalName());\n }\n }\n }\n }\nSystem.out.println(\"5555555555555555555555555555555555555\");\n System.out.println(solrSearch.getOriginalName());\n System.out.println(solrSearch);\n }\n// List<String> fileNames = new ArrayList<String>();\n// for(File i:fileService.findFileByuser_id()){\n// fileNames.add(i.getFileName());\n// }\n model.addAttribute(\"imagefiles\", storageService.loadAll2(productImageNames).map(\n path -> \"files/\"+path.getFileName().toString())\n .collect(Collectors.toList()));\n model.addAttribute(\"audiofiles\", storageService.loadAll2(productAudioNames).map(\n path -> \"files/\"+path.getFileName().toString())\n .collect(Collectors.toList()));\n model.addAttribute(\"videofiles\", storageService.loadAll2(productVideoNames).map(\n path -> \"files/\"+path.getFileName().toString())\n .collect(Collectors.toList()));\n\n\n if(user!= null) {\n model.addAttribute(\"message\", \"logged_in\");\n model.addAttribute(\"numberImage\",fileService.findFileNumberByuser_idAndtype(\".jpg\"));\n model.addAttribute(\"numberAudio\",fileService.findFileNumberByuser_idAndtype(\".mp3\"));\n model.addAttribute(\"numberVideo\",fileService.findFileNumberByuser_idAndtype(\".mp4\"));\n }\nSystem.out.println(\"bhbhbhjbhjbhjbhjbhjbhbhjbh\");\nSystem.out.println(myString);\n\n return \"searchResult\";\n }", "public void search(Indexer indexer, CityIndexer cityIndexer, Ranker ranker, String query, boolean withSemantic, ArrayList<String> chosenCities, ObservableList<String> citiesByTag, boolean withStemming, String saveInPath, String queryId, String queryDescription) {\n String[] originalQueryTerms = query.split(\" \");\n String originQuery = query;\n docsResults = new HashMap<>();\n parser = new Parse(withStemming, saveInPath, saveInPath);\n HashSet<String> docsOfChosenCities = new HashSet<>();\n query = \"\" + query + queryDescription;\n HashMap<String, Integer> queryTerms = parser.parseQuery(query);\n HashMap<String, ArrayList<Integer>> dictionary = indexer.getDictionary();\n if (!withStemming){\n setDocsInfo(saveInPath + \"\\\\docsInformation.txt\");\n }\n else{\n setDocsInfo(saveInPath + \"\\\\docsInformation_stemming.txt\");\n }\n\n\n //add semantic words of each term in query to 'queryTerms'\n if(withSemantic) {\n HashMap<String,ArrayList<String>> semanticWords = ws.connectToApi(originQuery);\n }\n\n //give an ID to query if it's a regular query (not queries file)\n if(queryId.equals(\"\")){\n queryId = \"\" + Searcher.queryID;\n Searcher.queryID++;\n }\n\n String postingDir;\n if (!withStemming) {\n postingDir = \"\\\\indexResults\\\\postingFiles\";\n } else {\n postingDir = \"\\\\indexResults\\\\postingFiles_Stemming\";\n }\n int pointer = 0;\n\n //find docs that contain the terms in the query in their text\n HashMap<String, Integer> queryTermsIgnoreCase = new HashMap<>();\n for (String term : queryTerms.keySet()) {\n String originTerm = term;\n if (!dictionary.containsKey(term.toUpperCase()) && !dictionary.containsKey(term.toLowerCase())) {\n continue;\n }\n if(dictionary.containsKey(term.toLowerCase())){\n term = term.toLowerCase();\n }\n else {\n term = term.toUpperCase();\n }\n queryTermsIgnoreCase.put(term,queryTerms.get(originTerm));\n pointer = dictionary.get(term).get(2);\n String chunk = (\"\" + term.charAt(0)).toUpperCase();\n\n //get the relevant line from posting file\n BufferedReader br = null;\n try {\n br = new BufferedReader(new FileReader(new File(saveInPath + postingDir + \"\\\\posting_\" + chunk + \".txt\")));\n String line = \"\";\n int i = 1;\n while ((line = (br.readLine())) != null) {\n if (i == pointer) {\n break;\n }\n i++;\n }\n br.close();\n\n //get docs from posting line and add them to the data structure 'docsResults'\n if(line != null) {\n findDocsFromLine(line, term);\n }\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n //find docs that contain the chosen cities in their text\n for (String cityTerm : chosenCities) {\n if (!dictionary.containsKey(cityTerm) && !dictionary.containsKey(cityTerm.toLowerCase())) {\n continue;\n }\n if(dictionary.containsKey(cityTerm.toLowerCase())){\n cityTerm = cityTerm.toLowerCase();\n }\n pointer = dictionary.get(cityTerm).get(2);\n // char chunk = indexer.classifyToPosting(term).charAt(0);\n String chunk = (\"\" + cityTerm.charAt(0)).toUpperCase();\n\n //get the relevant line from posting file\n BufferedReader br = null;\n try {\n br = new BufferedReader(new FileReader(new File(saveInPath + postingDir + \"\\\\posting_\" + chunk + \".txt\")));\n String line = \"\";\n int i = 1;\n while ((line = (br.readLine())) != null) {\n if (i == pointer) {\n break;\n }\n i++;\n }\n br.close();\n\n //get docs from posting line and add them to the data structure 'docsOfChosenCities'\n String docs = line.substring(0, line.indexOf(\"[\") - 1); //get 'docsListStr'\n String[] docsArr = docs.split(\";\");\n for (String docInfo : docsArr) {\n String doc = docInfo.substring(0, docInfo.indexOf(\": \"));\n while(doc.charAt(0) == ' '){\n doc = doc.substring(1);\n }\n docsOfChosenCities.add(doc);\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n //find docs that contain the chosen cities in their city tag\n if(!chosenCities.isEmpty()){\n for (String cityDicRec: chosenCities) {\n //get pointer to posting from cityDictionary\n try {\n pointer = cityIndexer.getCitiesDictionary().get(cityDicRec);\n } catch (NumberFormatException e) {\n e.printStackTrace();\n }\n //get the relevant line from posting file\n BufferedReader br = null;\n try {\n br = new BufferedReader(new FileReader(new File(saveInPath + \"\\\\cityIndexResults\" + \"\\\\posting_city\" + \".txt\")));\n String line = \"\";\n int i = 1;\n while ((line = (br.readLine())) != null) {\n if (i == pointer) {\n break;\n }\n i++;\n }\n br.close();\n\n //get docs from posting line and add them to the data structure 'docsOfChosenCities'\n String docs = line.substring(line.indexOf(\"[\") + 1, line.indexOf(\"]\")); //get 'docsListStr'\n String[] docsArr = docs.split(\"; \");\n for (String doc : docsArr) {\n docsOfChosenCities.add(doc);\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n\n\n ranker.rank(docsResults, docsOfChosenCities, queryTermsIgnoreCase, dictionary, docsInfo,entities, queryId);\n }", "@Override\r\n\tpublic List<Client> search(HttpServletRequest request) throws ParseException {\n\t\tClientSearchBean searchBean = new ClientSearchBean();\r\n\t\tsearchBean.setNameLike(getStringFilter(\"name\", request));\r\n\t\tsearchBean.setGender(getStringFilter(GENDER, request));\r\n\t\tDateTime[] birthdate = getDateRangeFilter(BIRTH_DATE, request);//TODO add ranges like fhir do http://hl7.org/fhir/search.html\r\n\t\tDateTime[] deathdate = getDateRangeFilter(DEATH_DATE, request);\r\n\t\tif (birthdate != null) {\r\n\t\t\tsearchBean.setBirthdateFrom(birthdate[0]);\r\n\t\t\tsearchBean.setBirthdateTo(birthdate[1]);\r\n\t\t}\r\n\t\tif (deathdate != null) {\r\n\t\t\tsearchBean.setDeathdateFrom(deathdate[0]);\r\n\t\t\tsearchBean.setDeathdateTo(deathdate[1]);\r\n\t\t}\r\n\t\t\r\n\t\tString clientId = getStringFilter(\"identifier\", request);\r\n\t\tif (!StringUtils.isEmptyOrWhitespaceOnly(clientId)) {\r\n\t\t\tClient c = clientService.find(clientId);\r\n\t\t\tList<Client> clients = new ArrayList<Client>();\r\n\t\t\tclients.add(c);\r\n\t\t\treturn clients;\r\n\t\t}\r\n\t\t\r\n\t\tAddressSearchBean addressSearchBean = new AddressSearchBean();\r\n\t\taddressSearchBean.setAddressType(getStringFilter(ADDRESS_TYPE, request));\r\n\t\taddressSearchBean.setCountry(getStringFilter(COUNTRY, request));\r\n\t\taddressSearchBean.setStateProvince(getStringFilter(STATE_PROVINCE, request));\r\n\t\taddressSearchBean.setCityVillage(getStringFilter(CITY_VILLAGE, request));\r\n\t\taddressSearchBean.setCountyDistrict(getStringFilter(COUNTY_DISTRICT, request));\r\n\t\taddressSearchBean.setSubDistrict(getStringFilter(SUB_DISTRICT, request));\r\n\t\taddressSearchBean.setTown(getStringFilter(TOWN, request));\r\n\t\taddressSearchBean.setSubTown(getStringFilter(SUB_TOWN, request));\r\n\t\tDateTime[] lastEdit = getDateRangeFilter(LAST_UPDATE, request);//TODO client by provider id\r\n\t\t//TODO lookinto Swagger https://slack-files.com/files-pri-safe/T0EPSEJE9-F0TBD0N77/integratingswagger.pdf?c=1458211183-179d2bfd2e974585c5038fba15a86bf83097810a\r\n\t\tString attributes = getStringFilter(\"attribute\", request);\r\n\t\tsearchBean.setAttributeType(StringUtils.isEmptyOrWhitespaceOnly(attributes) ? null : attributes.split(\":\", -1)[0]);\r\n\t\tsearchBean.setAttributeValue(StringUtils.isEmptyOrWhitespaceOnly(attributes) ? null : attributes.split(\":\", -1)[1]);\r\n\t\t\r\n\t\treturn clientService.findByCriteria(searchBean, addressSearchBean, lastEdit == null ? null : lastEdit[0],\r\n\t\t lastEdit == null ? null : lastEdit[1]);\r\n\t}", "public static void main(String[] args) {\n\t\tString reviewer=\"reviewer_\"; \n\t\tString client=\"client_\"; \n\t\tString review_text=\"review_text\"; \n\t\tString product=\"prod_\";\n\t\tint rating; \n\t\t\n\t\tMongoHelper m = new MongoHelper(); \n\t\tcoll = m.getCollectiono(); \n\t\t\n\t\tRandom rg=new Random(); \n\t\tSystem.out.println( \"reviewer \" + \"client \" +\n\t\t \" review_text \" + \" product \" ); \n\t\t\n\t\t client = \"cust_b\" ; \n\t\t for ( int pr=1; pr<5; pr++ ) {\n\t\t\t product = \"prod_a\" + pr; \n\t\t for ( int i=1 ; i< 5; ++i) {\n\t\t\t int rand=rg.nextInt(30); \n\t\t\t reviewer = \"reviewer_\" + rand; \n\t\t\t rating=rg.nextInt(10)+ 1; \n\t\t\t int d=rg.nextInt(200); \n\t\t\t Calendar cal= Calendar.getInstance();\n\t\t\t cal.add(Calendar.DATE, d*(-1) ); \n\t\t\t cal.add(Calendar.HOUR, d*(-1) );\n\t\t\t\t SimpleDateFormat sdf=new SimpleDateFormat(DATA_FORMAT_NOW); \n\t\t\t\t String review_date= sdf.format(cal.getTime()); \n\t\t\t\t ReviewData rd=new ReviewData(reviewer, client, review_text, product, rating, review_date); \n\t//\t\t System.out.println( reviewer + \" \" + client + \" \"+ \n\t//\t\t review_text + \" \"+ product + \" \" + rating + \" \"+ review_date); \n\t\t\t BasicDBObject doc = rd.getMongoDoc();\n\t\t\t System.out.println (doc); \n\t\t\t coll.insert(doc); \n\t\t }\n\t\t } \n\t\t\n\t\t System.out.println(\" ===============\"); \n\n\t\t DBCursor cursor=coll.find();\n\t\t\ttry {\n\t\t\t\tint i=1; \n\t\t\t\twhile (cursor.hasNext()) {\n\t\t\t\t\tDBObject obj=cursor.next(); \n\t\t\t\t\tSystem.out.println( \" db: \" + i + \"\\n\" + obj ); \n\t\t\t\t\ti++; \n\t\t\t\t}\n\t\t\t} finally {\n\t\t\t\tcursor.close(); \n\t\t\t}\n\t\t\n\t\t\n\t}", "public Collection<Service> createServices();", "@RequestMapping(value = \"/upload/students\", method = RequestMethod.POST)\n\tpublic ResponseEntity<?> importStudents(@RequestBody final InputStreamWrapper inputStreamWrapper) throws MapSkillsException {\n\t\tfinal StudentPoiParser studentPoi = new StudentPoiParser();\n\t\tfinal List<Student> students = studentPoi.toObjectList(inputStreamWrapper.getInputStream());\n\t\tinstitutionService.saveStudents(students);\n\t\treturn new ResponseEntity<>(HttpStatus.OK);\n\t}", "@Override\r\n\tprotected void indexDocument(PluginServiceCallbacks callbacks, JSONResponse jsonResults, HttpServletRequest request,\r\n\t\t\tIndexing indexing) throws Exception {\n\t\t\r\n\t}" ]
[ "0.6103863", "0.5778356", "0.5644294", "0.5562849", "0.5562849", "0.5484818", "0.5400432", "0.53610086", "0.53129965", "0.52502745", "0.5142853", "0.5134689", "0.50703096", "0.50690156", "0.50503874", "0.5037872", "0.5019194", "0.5010924", "0.4957435", "0.4944024", "0.49351016", "0.49220756", "0.49189076", "0.49096859", "0.48719704", "0.48643738", "0.48383188", "0.48358136", "0.4831154", "0.4819579", "0.48121667", "0.48083973", "0.48056132", "0.48050764", "0.47951192", "0.47739077", "0.47738716", "0.47666568", "0.47515038", "0.4717314", "0.47041735", "0.46811622", "0.46771988", "0.4660221", "0.4644822", "0.46362934", "0.46272296", "0.4623037", "0.4615647", "0.45965368", "0.45866945", "0.4571586", "0.45678094", "0.45671043", "0.45649892", "0.45594922", "0.455949", "0.45384243", "0.45349142", "0.453264", "0.4524443", "0.45190164", "0.45170274", "0.4509496", "0.450537", "0.44991076", "0.4493311", "0.44909602", "0.44888535", "0.44788548", "0.44785798", "0.44762444", "0.44619638", "0.4454289", "0.44451803", "0.44387972", "0.44379854", "0.44293097", "0.44272882", "0.4426901", "0.44249383", "0.4412131", "0.44113883", "0.44082612", "0.43990457", "0.43954536", "0.43938226", "0.43920437", "0.43898228", "0.43894693", "0.43787852", "0.43726104", "0.43725547", "0.43722844", "0.4369937", "0.43689027", "0.4367951", "0.43617126", "0.43577516", "0.43469363" ]
0.76547563
0
Solr expects a certain format. This method takes a date in format yyyyMMdd and returns the correct Solr format
public static String formatSolrDate(String dateString) throws ParseException { SimpleDateFormat outputFormat = new SimpleDateFormat( "yyyy-MM-dd'T'HH:mm:ss'Z'"); String inputFormat = "MM/dd/yyyy"; return outputFormat.format(new SimpleDateFormat(inputFormat) .parse(dateString)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String formatDateForQuery(java.util.Date date){\n return (new SimpleDateFormat(\"yyyy-MM-dd\")).format(date);\n }", "java.lang.String getFoundingDate();", "private String formatDate(String dateString) {\n DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern(\"LLL dd, yyyy\");\n LocalDate localDate = LocalDate.parse(dateString.substring(0, 10));\n return dateTimeFormatter.format(localDate);\n }", "private String YYYYMMDD(String str) {\n\t\tString[] s = str.split(\"/\");\n\t\treturn s[0] + parseToTwoInteger(Integer.parseInt(s[1].trim())) + parseToTwoInteger(Integer.parseInt(s[2].trim()));\n\t}", "public String format (Date date , String dateFormat) ;", "java.lang.String getStartDateYYYYMMDD();", "String getStartDateParam(String dateString);", "public java.sql.Date format(String date) {\n int i = 0;\n int dateAttr[];\n dateAttr = new int[3];\n for(String v : date.split(\"/\")) {\n dateAttr[i] = Integer.parseInt(v);\n i++;\n }\n\n GregorianCalendar gcalendar = new GregorianCalendar();\n gcalendar.set(dateAttr[2], dateAttr[0]-1, dateAttr[1]); // Year,Month,Day Of Month\n java.sql.Date sdate = new java.sql.Date(gcalendar.getTimeInMillis());\n return sdate;\n }", "public String dateFormatter(String fromDate) {\n\t\tString newDateString=\"\";\n\t\ttry {\n\t\t\tfinal String oldFormat = \"yyyy/MM/dd\";\n\t\t\tfinal String newFormat = \"yyyy-MM-dd\";\n\t\t\tSimpleDateFormat sdf = new SimpleDateFormat(oldFormat);\n\t\t\tDate d = sdf.parse(fromDate);\n\t\t\tsdf.applyPattern(newFormat);\n\t\t\tnewDateString = sdf.format(d);\n\t\t} catch(Exception exp) {\n\t\t\tthrow ExceptionUtil.getYFSException(ExceptionLiterals.ERRORCODE_INVALID_DATE, exp);\n\t\t}\n\t\treturn newDateString;\n\t}", "private String convertDateVN(String date) {\r\n String arrDate[] = date.split(\"-\");\r\n date = arrDate[2] + \"/\" + arrDate[1] + \"/\" + arrDate[0];\r\n return date;\r\n }", "private String formatReleaseDate(String releaseDate) {\n SimpleDateFormat format = new SimpleDateFormat(\"yyyy-MM-dd\");\n Date dateObject;\n try {\n dateObject = format.parse(releaseDate);\n }\n catch (ParseException pe) {\n Log.e(LOG_TAG, \"Error while retrieving movie information\");\n return releaseDate;\n }\n format = new SimpleDateFormat(\"LLL dd, yyyy\");\n\n return format.format(dateObject);\n }", "private String validateDateString(String dateString) {\n String returnValue = null;\n DateFormat dateFormat1 = new SimpleDateFormat(\"yyyy-MM-dd\");\n DateFormat dateFormat2 = new SimpleDateFormat(\"yyyy-MM\");\n DateFormat dateFormat3 = new SimpleDateFormat(\"yyyy\");\n Date date = null;\n \n if (dateString == null || dateString.equals(\"\")) {\n return dateString;\n }\n else {\n try {\n date = dateFormat1.parse(dateString);\n returnValue = dateFormat1.format(date);\n }\n catch (ParseException e1) {\n try {\n date = dateFormat2.parse(dateString);\n returnValue = dateFormat2.format(date);\n }\n catch (ParseException e2) {\n try {\n date = dateFormat3.parse(dateString);\n returnValue = dateFormat3.format(date);\n }\n catch (ParseException e3) {\n logger.warn(\"Couldn't parse date string using any of the recognized formats: \" + dateString);\n } \n }\n }\n }\n \n return returnValue;\n }", "private static String convertToDDMMYYYY(Date date) {\n\t\tString returnStr = \"\";\n\t\ttry {\n\t\tDateFormat format1 = new SimpleDateFormat(\"dd/MM/yyyy\");\n\t\treturnStr = format1.format(date);\n\t\t\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn returnStr;\n\t}", "private String convertDate(String date){\r\n String arrDate[] = date.split(\"/\");\r\n date = arrDate[2] + \"-\" + arrDate[1] + \"-\" + arrDate[0];\r\n return date;\r\n }", "public Date formatDate( String date, String format )\n throws ParseException {\n SimpleDateFormat dateFormat = new SimpleDateFormat(format);\n dateFormat.setLenient(false);\n return dateFormat.parse(date);\n }", "public static String convertDateToStandardFormat(String inComingDateformat, String date)\r\n\t{\r\n\t\tString cmName = \"DateFormatterManaager.convertDateToStandardFormat(String,String)\";\r\n\t\tString returnDate = \"\";\r\n\t\ttry\r\n\t\t{\r\n\t\t\tif (date != null && !date.trim().equals(\"\"))\r\n\t\t\t{\r\n\t\t\t\tif (inComingDateformat != null && !inComingDateformat.trim().equals(\"\"))\r\n\t\t\t\t{\r\n\t\t\t\t\tSimpleDateFormat sdf = new SimpleDateFormat(inComingDateformat);\r\n\t\t\t\t\tDate parsedDate = sdf.parse(date);\r\n\t\t\t\t\tSimpleDateFormat standardsdf = new SimpleDateFormat(\"dd/MM/yyyy\");\r\n\t\t\t\t\treturnDate = standardsdf.format(parsedDate);\r\n\t\t\t\t} else\r\n\t\t\t\t{\r\n\t\t\t\t\treturnDate = date;\r\n\t\t\t\t\tlogger.cterror(\"CTBAS00113\", cmName, date);\r\n\t\t\t\t}\r\n\t\t\t} else\r\n\t\t\t{\r\n\t\t\t\tlogger.ctdebug(\"CTBAS00114\", cmName);\r\n\t\t\t}\r\n\t\t} catch (ParseException pe) // just in case any runtime exception occurred just return input datestr as it is\r\n\t\t{\r\n\t\t\treturnDate = date;\r\n\t\t\tlogger.cterror(\"CTBAS00115\", pe, cmName, date, inComingDateformat);\r\n\t\t}\r\n\t\treturn returnDate;\r\n\t}", "public Date parse (String dateAsString , String dateFormat) throws Exception ;", "public static Date strToDate(String strDate)\r\n/* 127: */ {\r\n/* 128:178 */ SimpleDateFormat formatter = new SimpleDateFormat(\"yyyyMMdd\");\r\n/* 129:179 */ ParsePosition pos = new ParsePosition(0);\r\n/* 130:180 */ Date strtodate = formatter.parse(strDate, pos);\r\n/* 131:181 */ return strtodate;\r\n/* 132: */ }", "private String getFormattedDate(String date) {\n SimpleDateFormat dateFormat = new SimpleDateFormat(getString(R.string.received_import_date_format));\n SimpleDateFormat desiredDateFormat = new SimpleDateFormat(getString(R.string.desired_import_date_format));\n Date parsedDate;\n try {\n parsedDate = dateFormat.parse(date);\n return desiredDateFormat.format(parsedDate);\n } catch (ParseException e) {\n // Return an empty string in case of issues parsing the date string received.\n e.printStackTrace();\n return \"\";\n }\n }", "public Date formatForDate(String data) throws ParseException{\n //definindo a forma da Data Recebida\n DateFormat formatUS = new SimpleDateFormat(\"dd-MM-yyyy\");\n return formatUS.parse(data);\n }", "public static String formatDate(String date){\n String formatedDate = date;\n if (!date.matches(\"[0-9]{2}-[0-9]{2}-[0-9]{4}\")){\n if (date.matches(\"[0-9]{1,2}/[0-9]{1,2}/([0-9]{2}|[0-9]{4})\"))\n formatedDate = date.replace('/', '-');\n if (date.matches(\"[0-9]{1,2}.[0-9]{1,2}.([0-9]{2}|[0-9]{4})\")){\n if (formatedDate.matches(\"[0-9]{1}.[0-9]{1,2}.([0-9]{2}|[0-9]{4})\"))\n formatedDate = \"0\" + formatedDate;\n if (formatedDate.matches(\"[0-9]{2}.[0-9]{1}.([0-9]{2}|[0-9]{4})\"))\n formatedDate = formatedDate.substring(0, 3) + \"0\" + \n formatedDate.substring(3);\n if (formatedDate.matches(\"[0-9]{2}.[0-9]{2}.[0-9]{2}\")){\n String thisYear = String.valueOf(LocalDate.now().getYear());\n String century = thisYear.substring(0,2);\n /* If the last two digits of the date are larger than the two last digits of \n * the current date, then we can suppose that the year corresponds to the last \n * century.\n */ \n if (Integer.valueOf(formatedDate.substring(6)) > Integer.valueOf(thisYear.substring(2)))\n century = String.valueOf(Integer.valueOf(century) - 1);\n formatedDate = formatedDate.substring(0, 6) + century +\n formatedDate.substring(6); \n }\n }\n }\n return formatedDate;\n }", "org.apache.xmlbeans.XmlString xgetFoundingDate();", "private String convertToDateFormat(String inputDateString) throws DateTimeParseException {\n\t\treturn inputDateString;\n\t}", "private static void formatDate (XmlDoc.Element date) throws Throwable {\n\t\tString in = date.value();\n\t\tString out = DateUtil.convertDateString(in, \"dd-MMM-yyyy\", \"yyyy-MM-dd\");\n\t\tdate.setValue(out);\n\t}", "public static String convertDate(String dbDate) throws ParseException //yyyy-MM-dd\n {\n String convertedDate = \"\";\n\n Date date = new SimpleDateFormat(\"yyyy-MM-dd\").parse(dbDate);\n\n convertedDate = new SimpleDateFormat(\"MM/dd/yyyy\").format(date);\n\n return convertedDate ;\n }", "private static String convertDate(String dateString) {\n String date = null;\n\n try {\n //Parse the string into a date variable\n Date parsedDate = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss\").parse(dateString);\n\n //Now reformat it using desired display pattern:\n date = new SimpleDateFormat(DATE_FORMAT).format(parsedDate);\n\n } catch (ParseException e) {\n Log.e(TAG, \"getDate: Error parsing date\", e);\n e.printStackTrace();\n }\n\n return date;\n }", "private void checkCorrectDateFormat(String date) {\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss\", Locale.getDefault());\n sdf.setLenient(false);\n try {\n sdf.parse(date);\n } catch (ParseException e) {\n throw new IllegalArgumentException(\n \"Google Calendar Event Date must follow\" + \" the format: \\\"yyyy-MM-dd'T'HH:mm:ss\\\"\");\n }\n }", "java.lang.String getStartDateYYYY();", "public static String getFormattedDate(String dateStr, String toformat)\r\n\t{\r\n\t\tString mName = \"getFormattedDate()\";\r\n\t\tIDateFormatter dateFormatter = null;\r\n\t\tDateFormatConfig dateFormat = null;\r\n\t\tString formattedDate = null;\r\n\t\tdateFormat = getDateFormat(toformat);\r\n\t\ttry\r\n\t\t{\r\n\t\t\tdateFormatter = (IDateFormatter) ResourceLoaderUtils.createInstance(dateFormat.getFormatterClass(),\r\n\t\t\t\t\t(Object[]) null);\r\n\t\t\tformattedDate = dateFormatter.formatDate(dateStr, dateFormat.getJavaDateFormat());\r\n\t\t} catch (Exception exp)\r\n\t\t{\r\n\t\t\tlogger.cterror(\"CTBAS00112\", exp, mName);\r\n\r\n\t\t}\r\n\t\treturn formattedDate;\r\n\t}", "public static String date_d(String sourceDate,String format) throws ParseException {\n SimpleDateFormat sdf_ = new SimpleDateFormat(\"yyyy-MM-dd\");\n SimpleDateFormat sdfNew_ = new SimpleDateFormat(format);\n return sdfNew_.format(sdf_.parse(sourceDate));\n }", "@Test\n public void generatedFormatIsParsable()\n {\n Date originalDate = new Date();\n String dateAsString = DateTimeAdapter.printDate( originalDate );\n Date parsedDate = DateTimeAdapter.parseDate( dateAsString );\n \n assertThat( parsedDate, equalTo( originalDate ) );\n }", "public String changeDateFormat(String dateStr) {\n String inputPattern = \"MMM-dd-yyyy\";\n String outputPattern = \"MMMM dd, yyyy\";\n SimpleDateFormat inputFormat = new SimpleDateFormat(inputPattern);\n SimpleDateFormat outputFormat = new SimpleDateFormat(outputPattern);\n\n Date date = null;\n String str = null;\n\n try {\n date = inputFormat.parse(dateStr);\n str = outputFormat.format(date);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n return str;\n\n }", "public void setString (String s) { //set method\n full_Date = s;\n if(!isValidDate(full_Date)) throw new IllegalArgumentException(\"Invalid Date Format!\");\n\n Year = Integer.parseInt(full_Date.substring(0,3));\n Month = Integer.parseInt(full_Date.substring(4,5));\n Day = Integer.parseInt(full_Date.substring(6,7));\n\n \n}", "private static Date getFormattedDate(String date){\n\t\tString dateStr = null;\n\t\tif(date.length()<11){\n\t\t\tdateStr = date+\" 00:00:00.0\";\n\t\t}else{\n\t\t\tdateStr = date;\n\t\t}\n\t\tDate formattedDate = null;\n\t\ttry {\n\t\t\tformattedDate = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss.S\").parse(dateStr);\n\t\t} catch (ParseException e) {\n\t\t\tCommonUtilities.createErrorLogFile(e);\n\t\t}\n\t\treturn formattedDate;\n\n\t}", "protected void guessDateFormat(String dateStr) {\n if (log4j.isDebugEnabled()) {log4j.debug(BaseMessages.getString(PKG, \"MVSFileParser.DEBUG.Guess.Date\"));} //$NON-NLS-1$\n String[] dateSplit = dateStr.split(\"/\"); //$NON-NLS-1$\n String yrFmt = null;\n int yrPos = -1;\n int dayPos = -1;\n // quick look for either yyyy/xx/xx or xx/xx/yyyy\n for (int i=0; i<dateSplit.length; i++) {\n int aDigit = Integer.parseInt(dateSplit[i]); \n if (dateSplit[i].length() == 4) {\n yrFmt = \"yyyy\"; //$NON-NLS-1$\n yrPos = i;\n } else if (aDigit>31) {\n // found 2-digit year\n yrFmt = \"yy\"; //$NON-NLS-1$\n yrPos = i;\n } else if (aDigit > 12) {\n // definitely found a # <=31,\n dayPos = i;\n }\n }\n if (yrFmt != null) {\n StringBuffer fmt = new StringBuffer();\n if (dayPos >=0) {\n // OK, we know everything.\n String[] tmp = new String[3];\n tmp[yrPos] = yrFmt;\n tmp[dayPos] = \"dd\"; //$NON-NLS-1$\n for (int i=0; i<tmp.length; i++) {\n fmt.append(i>0?\"/\":\"\"); //$NON-NLS-1$ //$NON-NLS-2$\n fmt.append(tmp[i] == null ? \"MM\":tmp[i]); //$NON-NLS-1$\n }\n if (log4j.isDebugEnabled()) {log4j.debug(BaseMessages.getString(PKG, \"MVSFileParser.DEBUG.Guess.Date.Obvious\"));} //$NON-NLS-1$\n } else {\n // OK, we have something like 2010/01/01 - I can't\n // tell month from day. So, we'll guess. If it doesn't work on a later\n // date, we'll flip it (the alternate).\n \n StringBuffer altFmt = new StringBuffer();\n if (yrPos == 0) {\n fmt.append(yrFmt).append(\"/MM/dd\"); //$NON-NLS-1$\n altFmt.append(yrFmt).append(\"/dd/MM\"); //$NON-NLS-1$\n } else {\n fmt.append(\"MM/dd/\").append(yrFmt); //$NON-NLS-1$\n altFmt.append(\"dd/MM/\").append(yrFmt); //$NON-NLS-1$\n }\n this.alternateFormatString = altFmt.toString();\n if (log4j.isDebugEnabled()) {log4j.debug(BaseMessages.getString(PKG, \"MVSFileParser.DEBUG.Guess.Date.Ambiguous\"));} //$NON-NLS-1$\n }\n this.dateFormatString = fmt.toString();\n this.dateFormat = new SimpleDateFormat(dateFormatString);\n if (log4j.isDebugEnabled()) {log4j.debug(BaseMessages.getString(PKG, \"MVSFileParser.DEBUG.Guess.Date.Decided\", this.dateFormatString));} //$NON-NLS-1$\n try {\n dateFormat.parse(dateStr);\n } catch (ParseException ex) {\n if (log4j.isDebugEnabled()) {log4j.debug(BaseMessages.getString(PKG, \"MVSFileParser.DEBUG.Guess.Date.Unparsable\", dateStr));} //$NON-NLS-1$\n }\n } else {\n // looks ilke something like 01/02/05 - where's the year?\n if (log4j.isDebugEnabled()) {log4j.debug(BaseMessages.getString(PKG, \"MVSFileParser.DEBUG.Guess.Date.Year.Ambiguous\"));} //$NON-NLS-1$\n return;\n }\n \n }", "private static String convertDate(String date) {\n\t\tlong dateL = Long.valueOf(date);\n\t\tDate dateTo = new Date(dateL);\n\t\tDateFormat format = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss'Z'\");\n\t\tString formatted = format.format(dateTo);\n\t\tSystem.out.println(\"Date formatted: \" + formatted);\n\t\treturn formatted;\n\t}", "public String convertDateFormate(String dt) {\n String formatedDate = \"\";\n if (dt.equals(\"\"))\n return \"1970-01-01\";\n String[] splitdt = dt.split(\"-\");\n formatedDate = splitdt[2] + \"-\" + splitdt[1] + \"-\" + splitdt[0];\n \n return formatedDate;\n \n }", "void xsetFoundingDate(org.apache.xmlbeans.XmlString foundingDate);", "public static void main(String[] args) {\n\t\t SimpleDateFormat sdf = new SimpleDateFormat (\"dd-MM-yyyy\");\n\t\t\t\t sdf.setLenient(false);\n\t\t\t\t String input = \"13-02-2018\"; \n\t\t\t\t System.out.println(\"Given Date is:\"+ input); \n\t\t\t\t Date dt;\n\t\t\t\t try {\n\t\t\t\t dt = sdf.parse(input); \n\t\t\t\t System.out.println(dt); \n\t\t\t\t } catch (ParseException e) { \n\t\t\t\t System.out.println(\"Invalid date entered :\" + input); \n\t\t\t\t }\n\n\t}", "private String formatDate(String dateStr) {\n try {\n SimpleDateFormat fmt = new SimpleDateFormat(Properties.DATE_FORMAT_ALL);\n Date date = fmt.parse(dateStr);\n SimpleDateFormat fmtOut = new SimpleDateFormat(Properties.DATE_FORMAT);\n return fmtOut.format(date);\n } catch (ParseException e) {\n System.out.println( Properties.K_WARNING + \" \" + e.getMessage());\n }\n return \"\";\n }", "public static String formatDate(String strDate) {\n return formatDate(strDate, false);\n }", "private LocalDate parse(String format) {\r\n\t\tString lista[] = format.split(\"/\"); // DD - MM - YYYY\r\n\t\tint dia = Integer.parseInt(lista[0]);\r\n\t\tint mes = Integer.parseInt(lista[1]);\r\n\t\tint ano = Integer.parseInt(lista[2]);\r\n\t\tLocalDate date = LocalDate.of(ano, mes, dia);\r\n\t\treturn date;\r\n\t}", "public static String yyyymmdddToddmmyyyy(String strDate) {\n DateFormat formatter = new SimpleDateFormat(\"yyyy-MM-dd\");\n Date date = null;\n try {\n date = (Date) formatter.parse(strDate);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n SimpleDateFormat newFormat = new SimpleDateFormat(\"dd-MM-yyyy\");\n String finalString = newFormat.format(date);\n return finalString;\n }", "public static String convertDateToSend(String gotdate){\n Calendar calendar = Calendar.getInstance();\n calendar.setTimeInMillis(Long.parseLong(gotdate));\n SimpleDateFormat inputFormat = new SimpleDateFormat(\"yyyyMMddHHmmss\");\n SimpleDateFormat outputFormat = new SimpleDateFormat(\"dd MMM yyyy\");\n /*Date parsedDate = null;\n try {\n parsedDate = inputFormat.parse(gotdate);\n } catch (ParseException e) {\n e.printStackTrace();\n }*/\n String formattedDate = outputFormat.format(calendar.getTime());\n return formattedDate;\n }", "public String dateStr(String date) {\n\t\treturn AnalyticsUDF.dateFormatter(date);\n\t}", "private int parseMDYYYYtoJDate(String sDate) throws OException\r\n\t{\r\n final int month = 0;\r\n final int day = 1;\r\n final int year = 2;\r\n int result = OCalendar.today();\r\n String separator = \"\";\r\n\r\n if(sDate.indexOf(\"/\") > 0)\r\n separator = \"/\";\r\n else if(sDate.indexOf(\"-\") > 0)\r\n separator = \"-\";\r\n else if(sDate.indexOf(\"\\\\\") > 0)\r\n separator = \"\\\\\";\r\n else\r\n return result;\r\n\r\n String subDate[] = sDate.split(separator);\r\n if(subDate.length != 3)\r\n return result;\r\n\r\n if((subDate[day].length() != 1 && subDate[day].length() != 2)\r\n || (subDate[month].length() != 1 && subDate[month].length() != 2)\r\n || (subDate[year].length() != 2 && subDate[year].length() != 4))\r\n return result;\r\n\r\n // Fix Month to MM\r\n if(subDate[month].length() == 1)\r\n subDate[month] = \"0\" + subDate[month];\r\n\r\n // Fix Day to DD\r\n if(subDate[day].length() == 1)\r\n subDate[day] = \"0\" + subDate[day];\r\n\r\n // Fix Year to YYYY\r\n if(subDate[year].length() == 2)\r\n subDate[year] = \"20\" + subDate[year];\r\n\r\n\r\n // Convert to Julian Date using YYYYMMDD convert function\r\n result = OCalendar.convertYYYYMMDDToJd(subDate[year] + subDate[month] + subDate[day]);\r\n\r\n return result;\r\n\t}", "@Override\n\tpublic Date convert(String source) {\n\t\tif (StringUtils.isValid(source)) {\n\t\t\tDateFormat dateFormat;\n\t\t\tif (source.indexOf(\":\") != -1) {\n\t\t\t\tdateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n\t\t\t} else {\n\t\t\t\tdateFormat = new SimpleDateFormat(\"yyyy-MM-dd\"); \n\t\t\t}\n\t\t\t//日期转换为严格模式\n\t\t dateFormat.setLenient(false); \n\t try {\n\t\t\t\treturn dateFormat.parse(source);\n\t\t\t} catch (ParseException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t} \n\t\t}\n\t\treturn null;\n\t}", "protected Date handleDateExtractionAndParsing(String dateField, String dateFormat, Map<String, Object> data,\n\t\t\tString base, PreprocessChainContext chainContext) throws DataProblemException {\n\n\t\tif (dateField == null)\n\t\t\treturn null;\n\n\t\tDate resultDate = null;\n\n\t\tObject dateFieldData = null;\n\t\tif (dateField.contains(\".\")) {\n\t\t\tdateFieldData = XContentMapValues.extractValue(dateField, data);\n\t\t} else {\n\t\t\tdateFieldData = data.get(dateField);\n\t\t}\n\n\t\tif (dateFieldData != null) {\n\t\t\tif (!(dateFieldData instanceof String)) {\n\t\t\t\tString msg = \"Value for field '\" + dateField + \"' is not a String, so can't be parsed to the date object.\";\n\t\t\t\taddDataWarning(chainContext, msg);\n\t\t\t\tthrow new DataProblemException();\n\t\t\t} else {\n\t\t\t\tString dateStr = dateFieldData.toString();\n\t\t\t\tif (dateStr != null && !dateStr.isEmpty()) {\n\t\t\t\t synchronized(dateFormatter) {\n \t\t\t\t\tdateFormatter.applyPattern(dateFormat);\n \t\t\t\t\ttry {\n \t\t\t\t\t\tresultDate = dateFormatter.parse(dateStr);\n \t\t\t\t\t} catch (ParseException e) {\n \t\t\t\t\t\tString msg = dateField + \" parameter value of \" + dateStr + \" could not be parsed using \" + dateFormat\n \t\t\t\t\t\t\t\t+ \" format.\";\n \t\t\t\t\t\taddDataWarning(chainContext, msg);\n \t\t\t\t\t\tthrow new DataProblemException();\n \t\t\t\t\t}\n\t\t\t\t }\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn resultDate;\n\t}", "@Override\n public StringBuffer format(Date date, StringBuffer toAppendTo, FieldPosition fieldPosition) {\n String value = ISO8601Utils.format(date, true);\n toAppendTo.append(value);\n return toAppendTo;\n }", "public String ConvertDate(){\r\n//\t\tDate date=JavaUtils.getSystemDate();\r\n//\t DateFormat df = new SimpleDateFormat(\"yyyy/MM/dd\");\r\n\t String pattern = \"yyyy-MM-dd\";\r\n\t SimpleDateFormat simpleDateFormat = new SimpleDateFormat(pattern);\r\n\r\n\t String date = simpleDateFormat.format(new Date());\r\n//\t System.out.println(date);\r\n\t \r\n//\t String s = df.format(date);\r\n//\t String result = s;\r\n//\t try {\r\n//\t date=df.parse(result);\r\n//\t } catch (ParseException e) {\r\n//\t // TODO Auto-generated catch block\r\n//\t e.printStackTrace();\r\n//\t }\r\n\t return date;\r\n\t }", "String getEndDateParam(String dateString);", "java.lang.String getFromDate();", "private static String PubmedQueryToLucene(String PubmedQuery) {\r\n String luceneQuery = \"\";\r\n //remove hasabstract components\r\n PubmedQuery = PubmedQuery.replaceAll(\"(NOT|AND|OR) hasabstract\\\\[text\\\\]\", \"\");\r\n PubmedQuery = PubmedQuery.replaceAll(\"hasabstract\\\\[text\\\\] (NOT|AND|OR)\", \"\");\r\n PubmedQuery = PubmedQuery.replaceAll(\"hasabstract\\\\[text\\\\]\", \"\");\r\n PubmedQuery = PubmedQuery.replaceAll(\"(NOT|AND|OR) hasabstract\", \"\");\r\n PubmedQuery = PubmedQuery.replaceAll(\"hasabstract (NOT|AND|OR)\", \"\");\r\n PubmedQuery = PubmedQuery.replaceAll(\"hasabstract\", \"\");\r\n\r\n //replace date component\r\n String dateRangeRestriction = \"\";\r\n // e.g. (\\\"0001/01/01\\\"[PDAT] : \\\"2013/03/14\\\"[PDAT])\r\n String dateRange = \"\\\\(\\\"(\\\\d+/\\\\d+/\\\\d+)\\\"\\\\[PDAT\\\\]\\\\s*:\\\\s*\\\"(\\\\d+/\\\\d+/\\\\d+)\\\"\\\\[PDAT\\\\]\\\\)\";\r\n Pattern dateRangePattern = Pattern.compile(dateRange);\r\n Matcher matcher = dateRangePattern.matcher(PubmedQuery);\r\n if(matcher.find()){\r\n String startDate = matcher.group(1);\r\n String endDate = matcher.group(2);\r\n// System.out.println(\" > \" + startDate + \" \" + endDate );\r\n dateRangeRestriction = dateRangeRestriction(startDate, endDate);\r\n PubmedQuery = PubmedQuery.replaceAll(dateRange, \"CustomDateRangeRestriction\");\r\n }\r\n\r\n \r\n// System.out.println(\">>>\" + PubmedQuery );\r\n //Special Case, when query is just a number, consider it as a PMID\r\n // TO DO : add extra cases for more than one PMIDs too \r\n if(PubmedQuery.trim().matches(\"\\\\d+\")){\r\n luceneQuery = \"PMID:\" + PubmedQuery.trim();\r\n } else { //General case of query, not just a number \r\n ArrayList <String> parts = new <String> ArrayList();\r\n //Find parts [between parentheses]\r\n if(PubmedQuery.contains(\"(\") & PubmedQuery.contains(\")\"))//parentheses in the string\r\n {\r\n String tmpStr = \"\";\r\n String indexField =\"\";\r\n boolean insideIndexField = false;\r\n\r\n for(int i = 0; i < PubmedQuery.length() ; i++ ){\r\n if(PubmedQuery.charAt(i) == '(' | PubmedQuery.charAt(i) == ')') { // new part start\r\n tmpStr = tmpStr.trim();\r\n if(!tmpStr.equals(\"\")){\r\n parts.add(handlePhrases(tmpStr));\r\n tmpStr = \"\";\r\n }\r\n parts.add(\" \" + PubmedQuery.charAt(i) + \" \");\r\n } else if(PubmedQuery.charAt(i) == '[' & tmpStr.trim().equals(\"\")) { // index field opening a part, refers to previus part (i.e. ( ... ...)[...] case)\r\n //handle index field here because the previus part will be not available to handlePhrases\r\n insideIndexField = true;\r\n } else if(insideIndexField) { \r\n if(PubmedQuery.charAt(i) == ']'){// end of index field (opening a part)\r\n tmpStr = tmpStr.trim();\r\n if( !tmpStr.equals(\"\")){ // add this index field to previus element\r\n String luceneField = supportedIndexFields.get(tmpStr);\r\n if(luceneField != null){ // field supported\r\n boolean previusPartFound = false;\r\n boolean previusIsParenthesis = false;\r\n int j = parts.size()-1;\r\n while(j >= 0 & !previusPartFound){ \r\n String prevPart = parts.get(j).trim();\r\n if(prevPart.equals(\")\")){\r\n previusIsParenthesis = true;\r\n } else if(prevPart.equals(\"(\") & previusIsParenthesis){ //beginig of previus paretheses reached\r\n String prevClause = \"\";\r\n for(int k = parts.size()-1; k >= j ; k--){\r\n prevClause = parts.get(k) + prevClause;\r\n parts.remove(k);\r\n }\r\n parts.add(luceneField + \":\" + prevClause);\r\n previusPartFound = true;\r\n } else if(!previusIsParenthesis){ // not parentheses, it's a single term\r\n parts.remove(j);// remove part without index field\r\n parts.add( luceneField + \":\" + prevPart);// add again with index field\r\n previusPartFound = true;\r\n }\r\n j--;\r\n }\r\n }\r\n tmpStr = \"\";\r\n }\r\n insideIndexField = false;\r\n } else {\r\n tmpStr += PubmedQuery.charAt(i);\r\n }\r\n } else { // continue existing part\r\n tmpStr += PubmedQuery.charAt(i);\r\n }\r\n }\r\n tmpStr = tmpStr.trim();\r\n if(!tmpStr.equals(\"\")){\r\n parts.add(handlePhrases(tmpStr));\r\n }\r\n } else { // no paretheses, do further handling\r\n luceneQuery = handlePhrases(PubmedQuery); \r\n }\r\n\r\n //handle boolean operators\r\n boolean fisrtPhrase = true;\r\n for(int i = 0 ; i < parts.size() ; i ++){\r\n String currentPart = parts.get(i);\r\n if(!currentPart.startsWith(\" OR \") & !currentPart.startsWith(\" -\") & !currentPart.startsWith(\" +\") & !currentPart.equals(\" ) \")){\r\n if(fisrtPhrase){\r\n luceneQuery += \" +\";\r\n fisrtPhrase = false;\r\n } else {\r\n if(!parts.get(i-1).endsWith(\" OR \") & !parts.get(i-1).endsWith(\" -\") & !parts.get(i-1).endsWith(\" +\")){\r\n luceneQuery += \" +\";\r\n }\r\n } \r\n } // add default operator + when required (no OR or - is present for that term)\r\n luceneQuery += parts.get(i);\r\n }\r\n }\r\n // replace \"CustomDateRangeRestriction\" with real restriction\r\n// System.out.println(\" *>>>\" + luceneQuery );\r\n if(luceneQuery.contains(\"CustomDateRangeRestriction\")){\r\n luceneQuery = luceneQuery.replaceAll(\"CustomDateRangeRestriction\", dateRangeRestriction);\r\n }\r\n // replace \" + (\" with \" +(\"\r\n if(luceneQuery.contains(\" + (\")){\r\n luceneQuery = luceneQuery.replaceAll(\" \\\\+ \\\\(\", \" +(\");\r\n }\r\n // replace \" - (\" with \" -(\"\r\n if(luceneQuery.contains(\" - (\")){\r\n luceneQuery = luceneQuery.replaceAll(\" \\\\- \\\\(\", \" -(\");\r\n } \r\n// System.out.println(\" *>>>\" + luceneQuery );\r\n\r\n return luceneQuery;\r\n }", "private String getDate(String str) {\n String[] arr = str.split(\"T\");\n DateFormat formatter = new SimpleDateFormat(\"yyyy-mm-d\", Locale.US);\n Date date = null;\n try {\n date = formatter.parse(arr[0]);\n } catch (java.text.ParseException e) {\n Log.e(LOG_TAG, \"Could not parse date\", e);\n }\n SimpleDateFormat dateFormatter = new SimpleDateFormat(\"MMM d, yyyy\", Locale.US);\n\n return dateFormatter.format(date);\n }", "private String formatDate(String date)\n\t{\n\t\tif(date == null || date.isEmpty())\n\t\t{\n\t\t\treturn \"\";\n\t\t}\n\t\telse\n\t\t{\n\t\t\tString[] dateSplit = date.split(\"/\");\n\t\t\tif(dateSplit.length != 3)\n\t\t\t{\n\t\t\t\treturn \"\";\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\treturn getMonthName(dateSplit[0]) + \" \"+ dateSplit[1]+\", \"+ dateSplit[2];\n\t\t\t}\n\t\t}\n\t}", "public Date getConvertedDate(String dateToBeConverted) {\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"dd/MM/yy hh:mm:ss\");\n\t\ttry{\n\t\t\tbookedDate = sdf.parse(dateToBeConverted);\n\t\t} catch(Exception e) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\t\treturn bookedDate;\n\t}", "private static String dateFormatter(String date) {\n\t\tString[] dateArray = date.split(AnalyticsUDFConstants.SPACE_SEPARATOR);\n\t\ttry {\n\t\t\t// convert month which is in the format of string to an integer\n\t\t\tDate dateMonth = new SimpleDateFormat(AnalyticsUDFConstants.MONTH_FORMAT, Locale.ENGLISH).parse(dateArray[1]);\n\t\t\tCalendar cal = Calendar.getInstance();\n\t\t\tcal.setTime(dateMonth);\n\t\t\t// months begin from 0, therefore add 1\n\t\t\tint month = cal.get(Calendar.MONTH) + 1;\n\t\t\tString dateString = dateArray[5] + AnalyticsUDFConstants.DATE_SEPARATOR + month + AnalyticsUDFConstants.DATE_SEPARATOR + dateArray[2];\n\t\t\tDateFormat df = new SimpleDateFormat(AnalyticsUDFConstants.DATE_FORMAT_WITHOUT_TIME);\n\t\t\treturn df.format(df.parse(dateString));\n\t\t} catch (ParseException e) {\n\t\t\treturn null;\n\t\t}\n\t}", "public String toString() { //toString method\n String startDateString2= \"\"; //Initialize\n try{\n Date date1 = new SimpleDateFormat(\"yyyyMMdd\").parse(full_Date);\n DateFormat df2 = new SimpleDateFormat(\"MMM dd, yyyy\");\n startDateString2 = df2.format(date1);\n \n return startDateString2;\n }catch(ParseException e){\n e.printStackTrace();\n }\n return startDateString2;\n \n}", "public static Date stringToDate(String date)\r\n/* 29: */ {\r\n/* 30: 39 */ log.debug(\"DateUtil.stringToDate()\");\r\n/* 31: */ try\r\n/* 32: */ {\r\n/* 33: 41 */ return sdfDate.parse(date);\r\n/* 34: */ }\r\n/* 35: */ catch (ParseException e)\r\n/* 36: */ {\r\n/* 37: 43 */ log.fatal(\"DateUtil.stringToDate抛出异常\", e);\r\n/* 38: */ }\r\n/* 39: 44 */ return new Date();\r\n/* 40: */ }", "private String formatDate(Date dateObject) {\r\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"LLL dd, yyyy\");\r\n return dateFormat.format(dateObject);\r\n }", "private static LocalDate readDateFromArguments(String dayString, String monthString, String yearString) {\n\t\tint day = 0, month = 0, year = 0 ;\n\t\ttry{\n\t\t\tday = Integer.parseInt(dayString);\n\t\t\tmonth = Integer.parseInt(monthString);\n\t\t\tyear = Integer.parseInt(yearString);\n\t\t}\n\t\tcatch(Exception e) {\n\t\t\tSystem.out.println(\"The dates should be in the format DD MM YY in integer numbers\");\n\t\t\texitArgumentError(); \n\t\t}\n\t\t\t\n\t\treturn LocalDate.of(year,month,day);\n\n\t}", "public static String dateStr(String str)\n {\n String month = str.split(\"/\")[0];\n String day = str.split(\"/\")[1];\n String year = str.split(\"/\")[2];\n return day + \"-\" + month + \"-\" + year;\n }", "public Date formatDate( String dob )\n throws ParseException {\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"MM/dd/yyyy\");\n dateFormat.setLenient(false);\n return dateFormat.parse(dob);\n }", "private String changeDateFormat (String oldDate) throws ParseException {\n // Source: https://stackoverflow.com/questions/3469507/how-can-i-change-the-date-format-in-java\n final String OLD_FORMAT = \"MM/dd/yyyy\";\n final String NEW_FORMAT = \"yyyyMMdd\";\n String newDateString;\n SimpleDateFormat sdf = new SimpleDateFormat(OLD_FORMAT);\n Date d = sdf.parse(oldDate);\n sdf.applyPattern(NEW_FORMAT);\n newDateString = sdf.format(d);\n return newDateString;\n }", "java.lang.String getEndDateYYYY();", "DateFormat getSourceDateFormat();", "public static Date changeDateFormat(String date, String format){\n SimpleDateFormat sdf = new SimpleDateFormat(format);\n try {\n return sdf.parse(date);\n } catch (ParseException e) {\n e.printStackTrace();\n return null;\n }\n }", "@SuppressLint(\"SimpleDateFormat\") public static String parse(String date, String format){\r\n\t\ttry {\r\n\t\t\tSimpleDateFormat localFormatter= new SimpleDateFormat(format);\r\n\t\t\tlocalFormatter.setLenient(false);\r\n\t\t\tString formattedDate=localFormatter.parse(date).toString();\r\n\t\t\t\r\n\t\t\t//days, months, years\r\n\t\t\tif(format.equals(formats[0])) return convertDate(formattedDate);\r\n\t\t\t\r\n\t\t\t//hours, minutes, seconds\r\n\t\t\telse if(format.equals(formats[1])) return convertHoursMinsSecs(formattedDate);\t\r\n\t\t\t\r\n\t\t\t//hours, minutes\r\n\t\t\telse if(format.equals(formats[2])) return convertHoursMins(formattedDate);\t\r\n\t\t\t\r\n\t\t\treturn \"\";\r\n\t\t\r\n\t\t} catch (ParseException e) {\r\n\t\t\t//e.printStackTrace();\r\n\t\t\treturn \"\";\r\n\t\t}\r\n\t}", "public static HISDate valueOf(String date, String format) throws HISDateException {\r\n HISDate ret = null;\r\n String datStr = date;\r\n String formatStr = format;\r\n if (datStr != null) {\r\n // Wir haben ein Datum gegeben...\r\n datStr = format(datStr);\r\n if (datStr.toUpperCase().equals(\"TODAY\") || datStr.toUpperCase().equals(\"NOW\") || datStr.toUpperCase().equals(\"CURRENT\")) {\r\n // Schlüsselwort für aktuelles Datum !!\r\n if (formatStr != null) {\r\n logger.debug(\"Unnötige Format-Angabe für TODAY!\");\r\n }\r\n // Hole aktuelles Datum:\r\n ret = HISDate.getToday();\r\n } else {\r\n // Kein Schlüsselwort für Datum...\r\n try {\r\n // Betrachte Formatangabe:\r\n if (formatStr == null) {\r\n // Kein Format gegeben.\r\n // Muss Format aus Datumswert erraten:\r\n formatStr = HISDate.guessFormat(datStr);\r\n } else {\r\n // Schlüsselworte ersetzen oder Format validieren:\r\n formatStr = HISDate.substKeysCheckFormat(formatStr);\r\n } // endif (Formatangabe nicht null)\r\n\r\n // Wenn wir bis hierhin kommen, haben wir eine\r\n // gültige Formatangabe in Grossschrift...\r\n\r\n // Versuche jetzt, die Werte zu holen:\r\n int y = -1;\r\n int m = -1;\r\n int d = -1;\r\n String sep = formatStr.substring(3);\r\n StringTokenizer datTokenizer = new StringTokenizer(datStr, sep);\r\n for (int i = 0; i < 3; i++) {\r\n char component = formatStr.charAt(i);\r\n if (!datTokenizer.hasMoreTokens()) {\r\n if (component == 'Y') {\r\n y = HISDate.getToday().getYear();\r\n break;\r\n }\r\n }\r\n String val = datTokenizer.nextToken();\r\n switch (component) {\r\n case 'D': {\r\n d = Integer.parseInt(val);\r\n break;\r\n }\r\n case 'M': {\r\n m = ArrayUtils.indexOf(MONTH_SHORT, val);\r\n if (m < 0) {\r\n m = Integer.parseInt(val);\r\n }\r\n break;\r\n }\r\n case 'Y': {\r\n int intVal = Integer.parseInt(val);\r\n if (val.length() == 2) {\r\n // Zweistellige Jahresangaben ergänzen:\r\n if (intVal < 50) {\r\n intVal += 2000; // 2000...2049\r\n } else {\r\n intVal += 1900; // 1950...1999\r\n }\r\n }\r\n y = intVal;\r\n break;\r\n }\r\n // Andere können wegen checkFormat() nicht mehr vorkommen...\r\n } // endswitch (aktuelle Datums-Komponente)\r\n } // endfor (drei Datumskomponenten)\r\n if (datTokenizer.hasMoreTokens()) {\r\n // Fehler, es gibt mehr als zwei Separatoren !!\r\n throw new HISException(datStr + \" ist ungültiger Datumswert. Ein Datum besteht nur aus drei Komponenten!\");\r\n }\r\n\r\n // Datums-Objekt erzeugen:\r\n ret = new HISDate(y, m, d);\r\n } catch (Exception ex) {\r\n throw new HISDateException(\"Fehler beim Erzeugen eines Datums-Objekts aus \" + datStr + \": \", ex);\r\n }\r\n }\r\n }\r\n return ret;\r\n }", "private String formatDate(Date dateObject) {\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"LLL dd, yyyy\");\n return dateFormat.format(dateObject);\n }", "public static String dateStr(String input ){\n String mm = input.substring(0,2);\n String dd = input.substring(3,5);\n String yyyy = input.substring(6,10);\n return dd + \" - \" + mm + \" - \" + yyyy;\n }", "private static Date getDate(String sdate)\n\t{\n\t\tDate date = null;\n\t\tSimpleDateFormat formatter = new SimpleDateFormat(\"MM/dd/yyyy\");\n\t\ttry {\n\t\t\tdate = formatter.parse(sdate);\n\t\t} catch (ParseException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn date;\n\t}", "public static java.util.Date convertFromStringToDate(String strDate){\n\t\tSimpleDateFormat format = new SimpleDateFormat(\"dd-MMM-yyyy\"); /*This stringDate is come from UI*/\n\t\tjava.util.Date date = null;\n\t\tif(strDate != null && !strDate.trim().isEmpty()){\n\t\t\ttry {\n\t\t\t\tdate = format.parse(strDate);\n\t\t\t\tSystem.out.println(strDate);\n\t\t\t} catch (ParseException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\t\n\t\treturn date;\n\t}", "public static String parseDate(String input) {\n String year = input.substring(0, 4);\n String month = input.substring(5, 7);\n String day = input.substring(8, 10);\n return year + \"-\" + month + \"-\" + day;\n }", "public static String formatDate(String dateValue) {\n Date uploadDateTime = null;\n try {\n uploadDateTime = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\", Locale.US).parse(dateValue);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n return new SimpleDateFormat(\"dd/MM/yyyy HH:mm\", Locale.US).format(uploadDateTime);\n }", "private Date convertMongoToDate(String dateString, String timeString) {\n int year = Integer.parseInt(dateString.substring(0, 4));\n //Log.e(\"KARA\", \"year \" + year);\n int month = Integer.parseInt(dateString.substring(5, 7));\n //Log.e(\"KARA\", \"month \" + month);\n int day = Integer.parseInt(dateString.substring(8, 10));\n //Log.e(\"KARA\", \"day \" + day);\n int hour = Integer.parseInt(timeString.substring(0, 2));\n //Log.e(\"KARA\", \"hour \" + hour);\n int min = Integer.parseInt(timeString.substring(3, 5));\n return new Date(year - 1900, month - 1, day, hour, min);\n }", "public String getActualRegisterDate(String inputDate) {\n\t\tString finalDate=\"\";\r\n\t\ttry{\r\n\t\t\tCalendar cal = Calendar.getInstance();\r\n\t\t\t\r\n\t\t\tint month = cal.get(Calendar.MONTH)+1;\r\n\t\t\tint year = cal.get(Calendar.YEAR);\r\n//\t\t\tSystem.out.println(\"year: \"+year+\" and moth\"+month);\r\n\t\t\tStringTokenizer st = new StringTokenizer(inputDate,\"/-\");\r\n\t\t\tMap<Integer,Integer> monthMap=new HashMap<Integer,Integer>();\r\n\t\t\tint key=0;\r\n\t\t while (st.hasMoreElements()) {\r\n\t\t int token = Integer.parseInt(st.nextToken());\r\n\t\t //System.out.println(\"token = \" + token);\r\n\t\t monthMap.put(key, token);\r\n\t\t key++;\r\n\t\t }//loop ends\r\n\t\t int monthCompare=0;\r\n\t\t int date=0;\r\n\t\t for (Map.Entry<Integer, Integer> map : monthMap.entrySet()){\r\n\t\t \tif(map.getKey()==0){\r\n\t\t \tmonthCompare=map.getValue();\r\n//\t\t \tSystem.out.println(monthCompare);\r\n\t\t \tif(monthCompare<month){\r\n\t\t \t\tyear=year+1;\r\n\t\t \t}\r\n\t\t \t}\r\n\t\t \tif(map.getKey()==1){\r\n\t\t \t\tdate=map.getValue();\r\n\t\t \t}\r\n\t\t \t\r\n\t\t }\r\n\t\t finalDate=year+\"-\"+String.format(\"%02d\",monthCompare)+\"-\"+String.format(\"%02d\",date);\r\n\t\t return finalDate;\r\n\t\t}catch(Exception e){\r\n\t\t\t//System.out.println(\"Exception is: \"+e.getMessage());\r\n\t\t\tlogger.info(\"Exception in actual register date\"+e.getMessage());\r\n\t\t\t\r\n\t\t}\r\n\t\treturn finalDate;\r\n\t}", "public void parseDate(String d)\n {\n\tdate.set(d);\n String [] dateList = d.split(\"-\");\n \n year.set(Integer.valueOf(dateList[0]));\n month.set(Integer.valueOf(dateList[1]));\n day.set(Integer.valueOf(dateList[2]));\n }", "public static String ddmmyyyyToyyyymmddd(String strDate) {\n DateFormat formatter = new SimpleDateFormat(\"dd-MM-yyyy\");\n Date date = null;\n try {\n date = (Date) formatter.parse(strDate);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n SimpleDateFormat newFormat = new SimpleDateFormat(\"yyyy-MM-dd\");\n String finalString = newFormat.format(date);\n return finalString;\n }", "public static SearchDate parse(StringBuilder sb, String srch)\n\t\t{\n\t\t\tif(sb.length() > 0 && sb.charAt(0) == '\"')\n\t\t\t\tsb.delete(0, 1);\n\t\t\tjava.util.Calendar now = java.util.Calendar.getInstance();\n\t\t\tInteger d, m, y, h, min = null, sec = null, mill = null;\n\t\t\tfinal boolean [] local = new boolean [] {false};\n\t\t\tboolean doubleZero = sb.length() >= 2 && sb.charAt(0) == '0' && sb.charAt(1) == '0';\n\t\t\tboolean tripleZero = doubleZero && sb.length() >= 3 && sb.charAt(2) == '0';\n\t\t\tint num = parseInt(sb);\n\t\t\tif(num >= 0)\n\t\t\t{ // num could be day or time\n\t\t\t\ttrim(sb);\n\t\t\t\tint month = parseMonth(sb, srch);\n\t\t\t\tif(month >= 0)\n\t\t\t\t{ // num was the day. Now year and/or hour may be specified\n\t\t\t\t\td = Integer.valueOf(num);\n\t\t\t\t\tm = Integer.valueOf(month);\n\t\t\t\t\tif(sb.length() > 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!Character.isWhitespace(sb.charAt(0)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tint year = parseInt(sb);\n\t\t\t\t\t\t\tif(year >= 0)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tif(year < 100)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tyear += (now.get(Calendar.YEAR) / 100) * 100;\n\t\t\t\t\t\t\t\t\tif(year > now.get(Calendar.YEAR))\n\t\t\t\t\t\t\t\t\t\tyear -= 100;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse if(year <= now.get(Calendar.YEAR))\n\t\t\t\t\t\t\t\t{}\n\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\tthrow new IllegalArgumentException(\"Illegal year in search \"\n\t\t\t\t\t\t\t\t\t\t+ srch);\n\t\t\t\t\t\t\t\ty = Integer.valueOf(year);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\ty = null;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\ty = null;\n\t\t\t\t\t\tint [] hm = parseTime(sb, srch, local);\n\t\t\t\t\t\tif(hm != null)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\th = Integer.valueOf(hm[0]);\n\t\t\t\t\t\t\tif(hm.length > 1 && hm[1] >= 0)\n\t\t\t\t\t\t\t\tmin = Integer.valueOf(hm[1]);\n\t\t\t\t\t\t\tif(hm.length > 2 && hm[2] >= 0)\n\t\t\t\t\t\t\t\tsec = Integer.valueOf(hm[2]);\n\t\t\t\t\t\t\tif(hm.length > 3 && hm[3] >= 0)\n\t\t\t\t\t\t\t\tmill = Integer.valueOf(hm[3]);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\th = null;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\ty = h = null;\n\t\t\t\t}\n\t\t\t\telse if(parseSuffix(sb, num))\n\t\t\t\t{ // num was the day, with no month/year specified\n\t\t\t\t\tnow.add(Calendar.MONTH, -1);\n\t\t\t\t\tif(num < 1 && num > now.getActualMaximum(Calendar.DAY_OF_MONTH))\n\t\t\t\t\t{\n\t\t\t\t\t\tnow.add(Calendar.MONTH, 1);\n\t\t\t\t\t\tif(num < 1 || num > 31)\n\t\t\t\t\t\t\tthrow new IllegalArgumentException(\"Illegal day in search \" + srch);\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tthrow new IllegalArgumentException(\"Illegal day in search \" + srch\n\t\t\t\t\t\t\t\t+ \" for \" + print(MONTHS[now.get(Calendar.MONTH) - 1]));\n\t\t\t\t\t}\n\t\t\t\t\td = Integer.valueOf(num);\n\t\t\t\t\tint [] hm = parseTime(sb, srch, local);\n\t\t\t\t\tif(hm != null)\n\t\t\t\t\t{\n\t\t\t\t\t\th = Integer.valueOf(hm[0]);\n\t\t\t\t\t\tif(hm.length > 1 && hm[1] >= 0)\n\t\t\t\t\t\t\tmin = Integer.valueOf(hm[1]);\n\t\t\t\t\t\tif(hm.length > 2 && hm[2] >= 0)\n\t\t\t\t\t\t\tsec = Integer.valueOf(hm[2]);\n\t\t\t\t\t\tif(hm.length > 3 && hm[3] >= 0)\n\t\t\t\t\t\t\tmill = Integer.valueOf(hm[3]);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\th = null;\n\t\t\t\t\tm = null;\n\t\t\t\t\ty = null;\n\t\t\t\t\th = null;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{ // num was the time\n\t\t\t\t\tm = null;\n\t\t\t\t\ty = null;\n\t\t\t\t\td = null;\n\t\t\t\t\th = null;\n\t\t\t\t\tif((num == 0 && !tripleZero) || (num > 0 && num < 24 && !doubleZero))\n\t\t\t\t\t\th = Integer.valueOf(num);\n\t\t\t\t\telse if(num >= 2400 || num % 100 >= 60)\n\t\t\t\t\t\tthrow new IllegalArgumentException(\"Illegal time in search \" + srch + \": \"\n\t\t\t\t\t\t\t+ num);\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\th = Integer.valueOf(num / 100);\n\t\t\t\t\t\tmin = Integer.valueOf(num % 100);\n\t\t\t\t\t}\n\t\t\t\t\tif(sb.length() > 0 && sb.charAt(0) == ':')\n\t\t\t\t\t{\n\t\t\t\t\t\tsb.delete(0, 1);\n\t\t\t\t\t\tint s = parseInt(sb);\n\t\t\t\t\t\tif(s >= 0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tsec = Integer.valueOf(s);\n\t\t\t\t\t\t\tif(sb.length() > 0 && sb.charAt(0) == '.')\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tint mil = parseInt(sb);\n\t\t\t\t\t\t\t\tif(mil >= 0)\n\t\t\t\t\t\t\t\t\tmill = Integer.valueOf(mil);\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}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\td = null;\n\t\t\t\tint month = parseMonth(sb, srch);\n\t\t\t\tif(month < 0)\n\t\t\t\t{\n\t\t\t\t\tnum = parseWeekDay(sb, srch);\n\t\t\t\t\tif(num < 0)\n\t\t\t\t\t\tthrow new IllegalArgumentException(\"Illegal data value in search: \" + srch);\n\t\t\t\t\ttrim(sb);\n\t\t\t\t\tInteger wd = Integer.valueOf(num);\n\t\t\t\t\tnum = parseInt(sb);\n\t\t\t\t\tif(num < 0)\n\t\t\t\t\t\th = null;\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\th = Integer.valueOf(num);\n\t\t\t\t\t\tif(sb.length() > 0 && (sb.charAt(0) == 'Z' || sb.charAt(0) == 'z'))\n\t\t\t\t\t\t\tsb.delete(0, 1);\n\t\t\t\t\t}\n\t\t\t\t\tif(sb.length() > 0 && sb.charAt(0) == '\"')\n\t\t\t\t\t\tsb.delete(0, 1);\n\t\t\t\t\treturn new SearchDate(null, wd, null, null, h, min, null, null, local[0]);\n\t\t\t\t}\n\t\t\t\tm = Integer.valueOf(month);\n\t\t\t\tif(sb.length() > 0)\n\t\t\t\t{\n\t\t\t\t\tif(!Character.isWhitespace(sb.charAt(0)))\n\t\t\t\t\t{\n\t\t\t\t\t\tint year = parseInt(sb);\n\t\t\t\t\t\tif(year >= 0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(year < 100)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tyear += (now.get(Calendar.YEAR) / 100) * 100;\n\t\t\t\t\t\t\t\tif(year > now.get(Calendar.YEAR))\n\t\t\t\t\t\t\t\t\tyear -= 100;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if(year <= now.get(Calendar.YEAR))\n\t\t\t\t\t\t\t{}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\tthrow new IllegalArgumentException(\"Illegal year in search \" + srch);\n\t\t\t\t\t\t\ty = Integer.valueOf(year);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\ty = null;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\ty = null;\n\t\t\t\t\tint [] hm = parseTime(sb, srch, local);\n\t\t\t\t\tif(hm != null)\n\t\t\t\t\t{\n\t\t\t\t\t\th = Integer.valueOf(hm[0]);\n\t\t\t\t\t\tif(hm.length > 1 && hm[1] >= 0)\n\t\t\t\t\t\t\tmin = Integer.valueOf(hm[1]);\n\t\t\t\t\t\tif(hm.length > 2 && hm[2] >= 0)\n\t\t\t\t\t\t\tsec = Integer.valueOf(hm[2]);\n\t\t\t\t\t\tif(hm.length > 3 && hm[3] >= 0)\n\t\t\t\t\t\t\tmill = Integer.valueOf(hm[3]);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\th = null;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\ty = h = null;\n\t\t\t}\n\t\t\tif(sb.length() > 0 && sb.charAt(0) == '\"')\n\t\t\t\tsb.delete(0, 1);\n\t\t\treturn new SearchDate(d, null, m, y, h, min, sec, mill, local[0]);\n\t\t}", "Date getDateField();", "public static Date parseDate(DateFormat format, String dateStr) throws ParseException {\n\t\tDate date = null;\n\t\tif (dateStr != null && !dateStr.isEmpty()) {\n\t\t\tdate = format.parse(dateStr);\n\t\t}\n\t\treturn date;\n\t}", "public static String formateDate(String date, String initDateFormat, String endDateFormat) throws ParseException {\n\t\t\n\t\treturn new SimpleDateFormat(endDateFormat).format( new SimpleDateFormat(initDateFormat).parse(date));\n//\t\treturn parsedDate;\n\n\t}", "void setFoundingDate(java.lang.String foundingDate);", "private Date stringToDate(String datum)\r\n\t{\n\t\tSimpleDateFormat df = new SimpleDateFormat(\"dd.MM.yyyy\");\r\n\t\ttry\r\n\t\t{\r\n\t\t\tDate d = df.parse(datum);\r\n\t\t\treturn d;\r\n\t\t}\r\n\t\tcatch (ParseException e)\r\n\t\t{\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "public static String getParsableDate(String rawDateTime) throws InvalidDateFormatException {\n try {\n String[] separatedDateTime = rawDateTime.split(\" \");\n String[] date = separatedDateTime[0].split(\"/\");\n if (date[0].length() < 2) {\n date[0] = \"0\" + date[0];\n }\n if (date[1].length() < 2) {\n date[1] = \"0\" + date[1];\n }\n String formattedDate = date[2] + \"-\" + date[1] + \"-\" + date[0];\n return formattedDate;\n } catch (Exception e) {\n throw new InvalidDateFormatException(DATE_FORMAT_ERROR_MESSAGE);\n }\n }", "public static Date stringToDate(String dateString) {\n for(String format: DATE_FORMATS){\n try {\n return new SimpleDateFormat(format).parse(dateString);\n }\n catch (Exception e){}\n }\n throw new IllegalArgumentException(\"Date is not parsable\");\n }", "java.lang.String getToDate();", "private static void addDateTypeToIndexField(String fieldName, Map<String, Object> indexFieldProperties) {\n // create keyword type property\n Map<String, Object> keywordTypeProperty = new HashMap<>();\n keywordTypeProperty.put(\"type\", \"date\");\n addFieldMapping(fieldName, keywordTypeProperty, indexFieldProperties);\n }", "@Test\n public void testV4HeaderDateValidationSuccess()\n throws MalformedResourceException {\n LocalDate now = LocalDate.now();\n String dateStr = DATE_FORMATTER.format(now);\n testRequestWithSpecificDate(dateStr);\n\n // Case 2: Valid date with in range.\n dateStr = DATE_FORMATTER.format(now.plus(1, DAYS));\n testRequestWithSpecificDate(dateStr);\n\n // Case 3: Valid date with in range.\n dateStr = DATE_FORMATTER.format(now.minus(1, DAYS));\n testRequestWithSpecificDate(dateStr);\n }", "public Date getDate(String format){\n String date = et_Date.getText().toString();\n //Date date;\n\t\ttry {\n\t\t\treturn frontFormat.parse(date);\n\t\t} catch (ParseException e) {\n\t\t\tLogM.log(getContext(), getClass(), Level.SEVERE, \"getDate(String)\", e);\n\t\t} \n return null;\n }", "public static void main(String[] args) {\n\t\t LocalDate ldt = LocalDate.of(2016,12,21);\n DateTimeFormatter format = DateTimeFormatter.ofPattern(\"yyyy-MMM-dd\");\n DateTimeFormatter format1 = DateTimeFormatter.ofPattern(\"YYYY-mmm-dd\");\n System.out.println(ldt.format(format));\n System.out.println(ldt.format(format1));\n\t}", "String formatDateCondition(Date date);", "public static Date getDate(String date) {\n \n Date rs_date = null;\n\n try {\n rs_date = SDF_DB_TABLE_LOGS.parse(SDF_DB_TABLE_LOGS.format(SDF_TOMCAT_LOGS.parse(date)));\n \n } catch (ParseException e) {\n LOGGER.error(e.getMessage(),e);\n }\n return rs_date;\n }", "public static Date convertStringToDate(String dateString) {\n\t\tLocalDate date = null;\n\t\t\n\t\ttry {\n\t\t\tDateTimeFormatter formatter = DateTimeFormatter.ofPattern(Constants.ddmmyyydateFormatInCSV);\n\t\t\tdate = LocalDate.parse(dateString, formatter);\n\n\t\t} catch (DateTimeParseException ex) {\n\t\t\tthrow new SalesException(\"enter the proper date in \" + Constants.ddmmyyydateFormatInCSV + \" format\");\n\t\t} catch (SalesException ex) {\n\t\t\tthrow new SalesException(\"Recevied excepion during date parser \" + ex.getMessage());\n\t\t}\n\t\treturn Date.valueOf(date);\n\t}", "private String formatDate(Date date) {\n String resultDate;\n SimpleDateFormat dateFormat;\n dateFormat = new SimpleDateFormat(\"dd/MM/yyyy\");\n resultDate = dateFormat.format(date);\n return resultDate;\n }", "private static void formatDate(Date i) {\n\t\tSimpleDateFormat formatter = new SimpleDateFormat(\"MM/dd/yy\");\n\t\tformatter.setLenient(false);\n\t\tAnswer = formatter.format(i);\n\t}", "private String stringifyDate(Date date){\n\t\tDateFormat dateFormatter = new SimpleDateFormat(\"yyyy-MM-dd\");\t\t\n\t\treturn dateFormatter.format(date);\n\t}", "private String formatDate(Date dateObject) {\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"LLL dd, yyyy\", Locale.getDefault());\n return dateFormat.format(dateObject);\n }", "public static String formatToSQLDate(Date date) {\n\t\tSimpleDateFormat dateFormat = new SimpleDateFormat(\n\t\t\t\t\"yyyy-MM-dd\");\n\t\tString created_date = dateFormat.format(date);\n\t\treturn created_date;\n\t}" ]
[ "0.57225823", "0.57050943", "0.56856376", "0.5674648", "0.56132364", "0.55779934", "0.557498", "0.5573831", "0.5573424", "0.5491385", "0.54584545", "0.53911", "0.53903025", "0.5382121", "0.5360759", "0.5346592", "0.532488", "0.53160316", "0.53054357", "0.52979326", "0.52777314", "0.5265127", "0.526302", "0.52623636", "0.52605575", "0.5259152", "0.5232694", "0.5231337", "0.5216239", "0.52122086", "0.52075046", "0.5176733", "0.5136543", "0.5134872", "0.51265544", "0.51088005", "0.51032424", "0.50921184", "0.50889325", "0.5085669", "0.5069782", "0.5069093", "0.50657487", "0.5064161", "0.5058376", "0.5055824", "0.5053553", "0.50500476", "0.5049041", "0.50416297", "0.50317264", "0.5022355", "0.5021876", "0.5008365", "0.50053334", "0.49921787", "0.49863195", "0.49847165", "0.49818075", "0.49781922", "0.49779022", "0.49765033", "0.4976046", "0.49759972", "0.49739835", "0.49586573", "0.4948713", "0.4939402", "0.49338517", "0.4928902", "0.49271655", "0.49069512", "0.49063358", "0.48996216", "0.48976636", "0.48918867", "0.48914003", "0.48886183", "0.4884417", "0.48835823", "0.48826832", "0.48775652", "0.48757827", "0.48735487", "0.48722494", "0.48668632", "0.48628837", "0.48620644", "0.48594755", "0.48544937", "0.48461536", "0.4842602", "0.48417822", "0.4825271", "0.4822672", "0.4818327", "0.48160693", "0.48114303", "0.48060238", "0.48053685" ]
0.6857582
0
private constructor prevent for creating instance
private IOUtils() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private ATCres() {\r\n // prevent to instantiate this class\r\n }", "private Instantiation(){}", "private Rekenhulp()\n\t{\n\t}", "Reproducible newInstance();", "private SystemInfo() {\r\n // forbid object construction \r\n }", "private SimpleRepository() {\n \t\t// private ct to disallow external object creation\n \t}", "private MApi() {}", "private TMCourse() {\n\t}", "private Utils()\n {\n // Private constructor to prevent instantiation\n }", "private FactoryCacheValet() {\n\t\tsuper();\n\t}", "private TagCacheManager(){\n //AssertionError不是必须的. 但它可以避免不小心在类的内部调用构造器. 保证该类在任何情况下都不会被实例化.\n //see 《Effective Java》 2nd\n throw new AssertionError(\"No \" + getClass().getName() + \" instances for you!\");\n }", "private Singleton()\n\t\t{\n\t\t}", "private Topography()\n\t{\n\t\tthrow new IllegalStateException(\"This is an utility class, it can not be instantiated\");\n\t}", "private Example() {\n\t\tthrow new Error(\"no instantiation is permitted\");\n\t}", "private InstanceUtil() {\n }", "private Consts(){\n //this prevents even the native class from \n //calling this ctor as well :\n throw new AssertionError();\n }", "private Verify(){\n\t\t// Private constructor to prevent instantiation\n\t}", "private QcTestRunner()\n\t{\n\t\t// To prevent external instantiation of this class\n\t}", "private ExampleVersion() {\n throw new UnsupportedOperationException(\"Illegal constructor call.\");\n }", "private Marinator() {\n }", "private Marinator() {\n }", "private Util()\n {\n // Empty default ctor, defined to override access scope.\n }", "private Validate(){\n //private empty constructor to prevent object initiation\n }", "private ChainingMethods() {\n // private constructor\n\n }", "private Ex() {\n }", "protected Approche() {\n }", "private Supervisor() {\r\n\t}", "private Security() { }", "private Singleton() {\n\t}", "private SingleObject()\r\n {\r\n }", "@SuppressWarnings(\"unused\")\n public NoConstructor() {\n // Empty\n }", "private LOCFacade() {\r\n\r\n\t}", "private ObjectFactory() { }", "private SingletonObject() {\n\n\t}", "public Constructor(){\n\t\t\n\t}", "private XmlStreamFactory()\n {\n /*\n * nothing to do\n */\n }", "private FlowExecutorUtils()\r\n {\r\n // Private constructor to prevent instantiation\r\n }", "private JsonUtils()\r\n {\r\n // Private constructor to prevent instantiation\r\n }", "private ServiceListingList() {\n //This Exists to defeat instantiation\n super();\n }", "private PerksFactory() {\n\n\t}", "private EagerlySinleton()\n\t{\n\t}", "private Utils() {\n\t}", "private Utils() {\n\t}", "private XmlFactory() {\r\n /* no-op */\r\n }", "private PermissionUtil() {\n throw new IllegalStateException(\"you can't instantiate PermissionUtil!\");\n }", "@SuppressWarnings(\"unused\")\n private Booking() {\n }", "private Log()\n {\n //Hides implicit constructor.\n }", "private PropertiesLoader() {\r\n\t\t// not instantiable\r\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@SuppressWarnings(\"unused\")\r\n\tprivate Person() {\r\n\t}", "private StreamFactory()\n {\n /*\n * nothing to do\n */\n }", "private MigrationInstantiationUtil() {\n\t\tthrow new IllegalAccessError();\n\t}", "private Utility() {\n throw new IllegalAccessError();\n }", "private AccessorModels() {\n // Private constructor to prevent instantiation\n }", "private Connection() {\n \n }", "protected VboUtil() {\n }", "protected abstract void construct();", "protected Problem() {/* intentionally empty block */}", "private SerializerFactory() {\n // do nothing\n }", "private AcceleoLibrariesEclipseUtil() {\n \t\t// hides constructor\n \t}", "private Source() {\n throw new AssertionError(\"This class should not be instantiated.\");\n }", "private CheckingTools() {\r\n super();\r\n }", "private InterpreterDependencyChecks() {\r\n\t\t// Hides default constructor\r\n\t}", "private ObjectRepository() {\n\t}", "private BookReader() {\n\t}", "private Service() {}", "private SnapshotUtils() {\r\n\t}", "private SingleObject(){}", "private Singleton() { }", "private GuiUtils()\r\n {\r\n // Private constructor to prevent instantiation\r\n }", "private Terms(){\n\t\t //this prevents even the native class from calling this ctor as well :\n\t\t throw new AssertionError();\n\t\t }", "private Utility() {\n\t}", "private Cat() {\n\t\t\n\t}", "@SuppressWarnings(\"unused\")\r\n private Rental() {\r\n }", "public Pleasure() {\r\n\t\t}", "private S3Utils() {\n throw new UnsupportedOperationException(\"This class cannot be instantiated\");\n }", "private WolUtil() {\n }", "private WebXmlIo()\n {\n // Voluntarily empty constructor as utility classes should not have a public or default\n // constructor\n }", "private ResourceFactory() {\r\n\t}", "public Pitonyak_09_02() {\r\n }", "private TetrisMain() {\r\n //prevents instantiation\r\n }", "private Singleton(){}", "private XMLUtil() {\n\t}", "protected Doodler() {\n\t}", "private AccessList() {\r\n\r\n }", "private Request() {}", "private Request() {}", "private Recommendation() {\r\n }", "private JsonUtils() {\n\t\tsuper();\n\t}", "private Driver(){\n }", "private StickFactory() {\n\t}", "private Mocks() { }", "private RequestManager() {\n\t // no instances\n\t}", "private ContentUtil() {\n // do nothing\n }", "public MethodEx2() {\n \n }", "private Aliyun() {\n\t\tsuper();\n\t}", "private Driver() {\n\n }", "private SingleTon() {\n\t}", "private FixtureCache() {\n\t}", "private UtilsCache() {\n\t\tsuper();\n\t}", "private TemplateFactory(){\n //AssertionError不是必须的. 但它可以避免不小心在类的内部调用构造器. 保证该类在任何情况下都不会被实例化.\n //see 《Effective Java》 2nd\n throw new AssertionError(\"No \" + getClass().getName() + \" instances for you!\");\n }" ]
[ "0.79272646", "0.7873993", "0.7625785", "0.7617091", "0.7610215", "0.7555029", "0.74565417", "0.7330688", "0.7285631", "0.7264736", "0.723815", "0.7236294", "0.7234873", "0.7222167", "0.7208511", "0.7198915", "0.71872926", "0.7180656", "0.71740806", "0.7160788", "0.7160788", "0.71572995", "0.71520734", "0.7147737", "0.7144044", "0.7129039", "0.7122733", "0.7102948", "0.7098229", "0.7084945", "0.70736676", "0.7065217", "0.7061239", "0.7058642", "0.7048203", "0.70451117", "0.70425165", "0.7037496", "0.7023166", "0.70185727", "0.7017914", "0.70095456", "0.70095456", "0.70084244", "0.69998085", "0.69955057", "0.6990148", "0.69873", "0.6987212", "0.6981581", "0.69694537", "0.69683397", "0.6967029", "0.69627357", "0.6947679", "0.69469064", "0.6945208", "0.6938016", "0.6934792", "0.69203794", "0.6918485", "0.69140434", "0.6912129", "0.6910603", "0.6908197", "0.6895973", "0.68935734", "0.68855757", "0.68761265", "0.68747735", "0.6868458", "0.6866997", "0.6862567", "0.6861877", "0.6859582", "0.68590873", "0.6858025", "0.68553424", "0.68502647", "0.6845522", "0.68408626", "0.6840019", "0.6834761", "0.6833013", "0.68329805", "0.68290615", "0.68290615", "0.68286324", "0.68226653", "0.6821683", "0.68210816", "0.6818781", "0.6818285", "0.68089366", "0.6808436", "0.6804299", "0.6800383", "0.67994535", "0.67946655", "0.67940444", "0.6793714" ]
0.0
-1
Read data from socket input stream to a new InputStream
public static ByteArrayInputStream readSocketStream(InputStream is) throws IOException { ByteArrayOutputStream bos = new ByteArrayOutputStream(); copyStream(is, bos); byte[] data = bos.toByteArray(); ByteArrayInputStream bis = new ByteArrayInputStream(data); closeStream(is); closeStream(bos); return bis; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void readData(InputStream inStream);", "private void openInputStream() throws IOException {\n InputStreamReader isReader = new InputStreamReader(this.sock.getInputStream());\n reader = new BufferedReader(isReader);\n }", "Stream<In> getInputStream();", "public void read(DataInputStream in) throws IOException;", "InputStream getDataStream();", "private void readFromStream(InputStream in) throws IOException {\n\n\t\tdataValue = null;\t// allow gc of the old value before the new.\n\t\tbyte[] tmpData = new byte[32 * 1024];\n\n\t\tint off = 0;\n\t\tfor (;;) {\n\n\t\t\tint len = in.read(tmpData, off, tmpData.length - off);\n\t\t\tif (len == -1)\n\t\t\t\tbreak;\n\t\t\toff += len;\n\n\t\t\tint available = Math.max(1, in.available());\n\t\t\tint extraSpace = available - (tmpData.length - off);\n\t\t\tif (extraSpace > 0)\n\t\t\t{\n\t\t\t\t// need to grow the array\n\t\t\t\tint size = tmpData.length * 2;\n\t\t\t\tif (extraSpace > tmpData.length)\n\t\t\t\t\tsize += extraSpace;\n\n\t\t\t\tbyte[] grow = new byte[size];\n\t\t\t\tSystem.arraycopy(tmpData, 0, grow, 0, off);\n\t\t\t\ttmpData = grow;\n\t\t\t}\n\t\t}\n\n\t\tdataValue = new byte[off];\n\t\tSystem.arraycopy(tmpData, 0, dataValue, 0, off);\n\t}", "@Override\n\tpublic void run() {\n\t\ttry {\n\t\t\tInputStream inputStream = mSocket.getInputStream();\n\t\t\tint leng;\n\t\t\tbyte[] buffer = new byte[1024];\n\t\t\tByteArrayBuffer[] data = {new ByteArrayBuffer(1024 * 32)};\n\t\t\twhile((leng = inputStream.read(buffer)) != -1 && mConected)\n\t\t\t{\n\t\t\t\tif(mConected)\n\t\t\t\t{\n\t\t\t\t\tdata[0].append(buffer, data[0].length(), leng);\n\t\t\t\t\tprocessMessage(data);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tLog.e(TAG, \"Cannot set InputStream\\nNetwork error\");\n\t\t\tevent.connectionLost();\n\t\t} catch (ProtocolException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\tevent.connectionLost();\n\t\t}\n\t}", "protected InputStream getInputStream() throws IOException\n {\n if (fd == null) {\n throw new IOException(\"socket not created\");\n }\n\n synchronized (this) {\n if (fis == null) {\n fis = new SocketInputStream();\n }\n\n return fis;\n }\n }", "public void startReader() throws Exception{\n byte[] buf = new byte[8];\n buf[0] = (byte) 0x02;\n buf[1] = (byte)0x08;\n buf[2] = (byte)0xB0;\n buf[3] = (byte) 0x00;\n buf[4] = (byte) 0x00;\n buf[5] = (byte) 0x00;\n buf[6] = (byte) 0x00;\n CheckSum(buf,(byte) buf.length);\n OutputStream outputStream = socket.getOutputStream();\n outputStream.write(buf);\n\n InputStream in = socket.getInputStream();\n System.out.println(in.available());\n if (in.available() == 0){\n System.out.println(\"null\");\n }else {\n byte[] bytes = new byte[8];\n in.read(bytes);\n CheckSum(bytes,(byte)8);\n String str = toHex(bytes);\n //String[] str1 = str.split(\"\");\n //ttoString(str1);\n System.out.println(str);\n }\n\n\n\n /*byte[] by2 = new byte[17];\n in.read(by2);\n String str2 = toHex(by2);\n String[] str4 = str2.split(\"\");\n String[] str5 = new String[getInt(str4)];\n System.arraycopy(str4,0,str5,0,getInt(str4));\n if(getInt(str4)>3)\n System.out.println(ttoString(str5));\n set = new HashSet();\n set.add(ttoString(str5));\n list = new ArrayList(set);\n System.out.println(list);*/\n }", "private static StringBuilder receiveInputStream(InputStream input) throws IOException{\r\n\t\tStringBuilder response = new StringBuilder();\r\n\t\tint i;\r\n\t\twhile((i = input.read())!= -1){//stock the inputstream\r\n\t\t\tresponse.append((char)i); \r\n\t\t}\r\n\t\treturn response;\r\n\t}", "@Override\n\tpublic void read(InStream inStream) {\n\t}", "public void read(DataInput in) throws IOException {\r\n int size = in.readInt();\r\n\r\n buffer = new byte[size];\r\n in.readFully(buffer);\r\n }", "public abstract void read(NetInput in) throws IOException;", "public abstract SeekInputStream getRawInput();", "InputStream getInputStream() throws IOException;", "InputStream getInputStream() throws IOException;", "InputStream getInputStream() throws IOException;", "public String receiveInputStream(Socket socket){\n\t\tint off = 0;\r\n\t\tint num_byte_read = 0;\r\n\t\t\r\n\t\t//initialize bytelist to hold data as it is read in\r\n\t\tbyte[] get_request_bytes = new byte[4096];\r\n\t\t//String to hold request\r\n\t\tString get_request_string = \"\";\r\n\r\n\t\t/*read get request*/\r\n\t\ttry {\r\n\t\twhile(num_byte_read != -1) {\r\n\t\t\t\r\n\t\t\t//Read in one byte at a time until the end of get request is reached\r\n\t\t\tsocket.getInputStream().read(get_request_bytes, off, 1);\t\t\t\t\r\n\t\t\toff++;\r\n\t\t\tget_request_string = new String(get_request_bytes, 0, off, \"US-ASCII\");\r\n\t\t\tif(get_request_string.contains(\"\\r\\n\\r\\n\"))\r\n\t\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch(IOException e) {\r\n\t\t\tSystem.out.println(\"Error \" + e.getMessage());\r\n\t\t}\r\n\t\tcatch(StringIndexOutOfBoundsException e1) {\r\n\t\t}\r\n\t\t\r\n\t\treturn get_request_string;\r\n\t\t\r\n\t}", "static void readRequest(InputStream is) throws IOException {\n out.println(\"starting readRequest\");\n byte[] buf = new byte[1024];\n String s = \"\";\n while (true) {\n int n = is.read(buf);\n if (n <= 0)\n throw new IOException(\"Error\");\n s = s + new String(buf, 0, n);\n if (s.indexOf(\"\\r\\n\\r\\n\") != -1)\n break;\n }\n out.println(\"returning from readRequest\");\n }", "public InputStream inputWrap(InputStream is) \n throws IOException {\n logger.fine(Thread.currentThread().getName() + \" wrapping input\");\n \n // discard any state from previously-recorded input\n this.characterEncoding = null;\n this.inputIsChunked = false;\n this.contentEncoding = null; \n \n this.ris.open(is);\n return this.ris;\n }", "protected TransformInputStream(T socket)\n {\n super(socket);\n }", "public void beginListenForData() {\n stopWorker = false;\n readBufferPosition = 0;\n try {\n inStream = btSocket.getInputStream();\n } catch (IOException e) {\n Log.d(TAG, \"Bug while reading inStream\", e);\n }\n Thread workerThread = new Thread(new Runnable() {\n public void run() {\n while (!Thread.currentThread().isInterrupted() && !stopWorker) {\n try {\n int bytesAvailable = inStream.available();\n if (bytesAvailable > 0) {\n byte[] packetBytes = new byte[bytesAvailable];\n inStream.read(packetBytes);\n for (int i = 0; i < bytesAvailable; i++) {\n // Log.d(TAG, \" 345 i= \" + i);\n byte b = packetBytes[i];\n if (b == delimiter) {\n byte[] encodedBytes = new byte[readBufferPosition];\n System.arraycopy(readBuffer, 0,\n encodedBytes, 0,\n encodedBytes.length);\n final String data = new String(\n encodedBytes, \"US-ASCII\");\n readBufferPosition = 0;\n handler.post(new Runnable() {\n public void run() {\n Log.d(TAG, \" M250 ingelezen data= \" + data);\n ProcesInput(data); // verwerk de input\n }\n });\n } else {\n readBuffer[readBufferPosition++] = b;\n }\n }\n } // einde bytesavalable > 0\n } catch (IOException ex) {\n stopWorker = true;\n }\n }\n }\n });\n workerThread.start();\n }", "private DataInputStream readBuffer( DataInputStream in, int count ) throws IOException{\n byte[] buffer = new byte[ count ];\n int read = 0;\n while( read < count ){\n int input = in.read( buffer, read, count-read );\n if( input < 0 )\n throw new EOFException();\n read += input;\n }\n \n ByteArrayInputStream bin = new ByteArrayInputStream( buffer );\n DataInputStream din = new DataInputStream( bin );\n return din;\n }", "public static DataInputStream getData(InputStream in) {\n return new DataInputStream(get(in));\n }", "public InputStream getInputStream(long position);", "@Override\n public Ini read(InputStream in) throws IOException {\n return read(new InputStreamReader(in));\n }", "public WebSocketServerInputStream(final InputStream is) {\n checkNotNull(is, \"is == null\");\n this.inputStream = is;\n }", "InputStream getInputStream() throws ChannelConnectException,\r\n\t\t\tChannelReadException;", "@Override\n public void run() {\n try {\n\n byte[] data = new byte[TcpClient.BUFFER_SIZE * 2];\n\n while(!Rebroadcaster.INSTANCE.isHalted()) {\n int len = is.read(data, 0, data.length);\n os.write(data, 0, len);\n os.flush();\n }\n } catch (IOException ex) {\n LOGGER.log(Level.SEVERE, null, ex);\n }\n }", "public void sensorReader() {\n try {\n Log.i(TAG, \"wants to read from Arduino\");\n this.inputStream = socket.getInputStream();\n this.inputStreamReader = new InputStreamReader(inputStream);\n Log.i(TAG, \"inputstream ready\");\n this.bufferedReader = new BufferedReader(inputStreamReader);\n Log.i(TAG, \"buffered reader ready\");\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void processStreamInput() {\n }", "@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\twhile (true) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tinput = new DataInputStream(socket.getInputStream());\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\ttry {\n\n\t\t\t\t\t\t\twhile (input != null) {\n\t\t\t\t\t\t\t\tsynchronized (this) {\n\t\t\t\t\t\t\t\t\tdecode(input.readUTF());\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\tSystem.exit(1);\n\t\t\t\t\t\t\te.printStackTrace();\n\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}", "public abstract InputStream getInputStream();", "public abstract InputStream getInputStream();", "private String readInput(java.net.Socket socket) throws IOException {\n BufferedReader bufferedReader =\n new BufferedReader(\n new InputStreamReader(\n socket.getInputStream()));\n char[] buffer = new char[700];\n int charCount = bufferedReader.read(buffer, 0, 700);\n String input = new String(buffer, 0, charCount);\n return input;\n }", "private static byte[] getDataFromInputStream(final InputStream input) throws IOException {\r\n if (input == null) {\r\n return new byte[0];\r\n }\r\n int nBytes = 0;\r\n final byte[] buffer = new byte[BUFFER_SIZE];\r\n final ByteArrayOutputStream baos = new ByteArrayOutputStream();\r\n while ((nBytes = input.read(buffer)) != -1) {\r\n baos.write(buffer, 0, nBytes);\r\n }\r\n return baos.toByteArray();\r\n }", "public LineInputStream(InputStream is) {\n\t\tinputStream = is;\n\t}", "public void handleClient(InputStream inFromClient, OutputStream outToClient);", "public void load(DataInput stream)\n throws IOException\n {\n final int MAX = 8192;\n byte[] abBuf = new byte[MAX];\n ByteArrayOutputStream streamRaw = new ByteArrayOutputStream(MAX);\n\n int of = 0;\n try\n {\n while (true)\n {\n byte b = stream.readByte();\n\n abBuf[of++] = b;\n\t\t\t\tif (of == MAX)\n {\n streamRaw.write(abBuf, 0, MAX);\n of = 0;\n }\n }\n }\n catch (EOFException e)\n {\n if (of > 0)\n {\n streamRaw.write(abBuf, 0, of);\n }\n }\n\n\n setBytes(streamRaw.toByteArray());\n }", "public InputStream openInputStream() throws IOException {\n // TODO: this mode is not set yet.\n // if ((parent.mode & Connector.READ) == 0)\n // throw new IOException(\"write-only connection\");\n\n ensureOpen();\n\n if (inputStreamOpened)\n throw new IOException(\"no more input streams available\");\n if (isGet) {\n // send the GET request here\n validateConnection();\n isValidateConnected = true;\n } else {\n if (privateInput == null) {\n privateInput = new PrivateInputStream(this);\n }\n }\n\n inputStreamOpened = true;\n\n return privateInput;\n }", "private void initStreams() throws IOException {\n OutputStream os = socket.getOutputStream();\n InputStream is = socket.getInputStream();\n dos = new DataOutputStream(new BufferedOutputStream(os));\n dis = new DataInputStream(new BufferedInputStream(is));\n }", "void read(final DataInputStream in) throws IOException {\n // This code is tested over in TestHFileReaderV1 where we read an old hfile w/ this new code.\n int pblen = ProtobufUtil.lengthOfPBMagic();\n byte[] pbuf = new byte[pblen];\n if (in.markSupported()) in.mark(pblen);\n int read = in.read(pbuf);\n if (read != pblen) throw new IOException(\"read=\" + read + \", wanted=\" + pblen);\n if (ProtobufUtil.isPBMagicPrefix(pbuf)) {\n parsePB(HFileProtos.FileInfoProto.parseDelimitedFrom(in));\n } else {\n if (in.markSupported()) {\n in.reset();\n parseWritable(in);\n } else {\n // We cannot use BufferedInputStream, it consumes more than we read from the underlying IS\n ByteArrayInputStream bais = new ByteArrayInputStream(pbuf);\n SequenceInputStream sis = new SequenceInputStream(bais, in); // Concatenate input streams\n // TODO: Am I leaking anything here wrapping the passed in stream? We are not calling close on the wrapped\n // streams but they should be let go after we leave this context? I see that we keep a reference to the\n // passed in inputstream but since we no longer have a reference to this after we leave, we should be ok.\n parseWritable(new DataInputStream(sis));\n }\n }\n }", "@Override\n\tprotected void readDataStream(DataInputStream dataInStream) throws IOException {\n\t\tid = dataInStream.readLong();\n\t\tsuper.read(dataInStream);\n\t}", "public synchronized void readInput() throws InterruptedException, IOException \n\t{\n\t\twhile (getDataSourceEOFlag())\n\t\t{\n\t\t\tcontent.set(incomingPipe.take());\n\t\t\t\n\t\t\t// Ensure thread-timing uniformity (a speed-limiter)\n\t\t\t//Thread.sleep(100);\n\t\t\t\n\t\t\tprocess();\n\t\t\t// Discard the text to free up memory.\n\t\t\tcontent.set(null);\n\t\t}\n\t}", "public void readFromSocket(long socketId) {}", "@Override\n\tpublic void run()\n\t{\n\t\t try\n\t\t {\n\t\t\t DataInputStream stream = new DataInputStream(socket.getInputStream());\n\t\t\t byte[] data = new byte[3];\n\t\t\t data[0] = stream.readByte();\n\t\t\t data[1] = stream.readByte();\n\t\t\t data[2] = stream.readByte();\n\t\t\t short counter = stream.readShort();\n\n\t\t\t int checksum = data[0]+data[1]+counter;\n\n\t\t\t if(checksum+data[2] != 255)\n\t\t\t {\n\t\t\t\t System.out.println(\"Error: Message Checksum Failed\");\n\t\t\t\t return;\n\t\t\t }\n\n\t\t\t System.out.println(\"------Client-------\");\n\t\t\t System.out.println(\"Source:\"+(char)data[0]);\n\t\t\t System.out.println(\"Destination:\"+(char)data[1]);\n\t\t\t System.out.println(\"Data:\"+counter);\n\n }\n\t\t catch (IOException e)\n\t\t {\n\t\t\te.printStackTrace();\n\t\t }\n\t}", "public abstract void read(DataInput input) throws IOException;", "@Override\r\n\tpublic void read(DataInput in) throws IOException {\n\t\t\r\n\t}", "public static InputStream connect(InputStream in, OutputStream out) {\n return new FilterInputStream(in) {\n public void close() {\n IO.close(out, in);\n }\n };\n }", "@Override\r\n\t\tpublic void run() {\n\t\t\twhile (socket != null && !socket.isClosed()) {\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tbInputStream.read(rbyte);\r\n\t\t\t\t\t\tMessage msg = new Message();\r\n\t\t\t\t\t\tmsg.what = 1;\r\n\t\t\t\t\t\tmsg.obj = rbyte;\r\n\t\t\t\t\t\treHandler.sendMessage(msg);\r\n\t\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t}", "private int readStream(final DataInputStream dis)\n\t\tthrows IOException {\n\t\tif(dis.readInt() > MAX_PROTOCOL_VERSION) {\n\t\t\treturn E_UNSUPPORTED_PROTOCOL_VERSION;\n\t\t}\n\n\t\tint length = dis.readInt();\n\t\tLog.i(\"PhoneLink\", \"Received a \"+length+\" byte parcel\");\n\t\tbyte[] data = new byte[length];\n\t\tint position = 0;\n\t\tdo {\n\t\t\tposition += dis.read(data, position, length-position);\n\t\t} while(position < length);\n\n\t\tParcel parcel = Parcel.obtain();\n\t\tparcel.unmarshall(data, 0, length);\n\t\tparcel.setDataPosition(0);\n\t\tIntent newIntent = (Intent) parcel.readValue(Intent.class.getClassLoader());\n\t\tmIntentHandler.processIntent(newIntent);\n\t\treturn OK;\n\t}", "@Override\n public void readFrom(InputStream in) throws IOException {\n }", "public void run() {\n try {\n socketIn = new BufferedReader(new InputStreamReader(socket.getInputStream()));\n socketOut = new ObjectOutputStream(socket.getOutputStream());\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n readFromClient();\n pingToClient();\n }", "synchronized void receive(int preknownDataLength) throws EOFException, IOException {\n byte[] buffer = new byte[preknownDataLength];\n dataInput.readFully(buffer);\n pipedOutputStream.write(buffer);\n }", "@Override\n public int read() throws IOException {\n if (stream.available() > 0) {\n return stream.read();\n } else {\n layer.receiveMoreDataForHint(getHint());\n // either the stream is now filled, or we ran into a timeout\n // or the next stream is available\n return stream.read();\n }\n }", "public InputStream getInputStream();", "public InputStream getInputStream();", "public BufferedReader getSocketIn() {\n\t\treturn socketIn;\n\t}", "private void streamCopy(InputStream from, OutputStream to) {\r\n\t\ttry {\r\n\t\t\tint count = 0;\r\n\t\t\tbyte[] buffer = new byte[16*1024];\r\n\t\t\twhile ((count = from.read(buffer)) > 0) {\r\n\t\t\t\tto.write(buffer, 0, count);\r\n\t\t\t}\r\n\t\t} catch (IOException e) {\r\n\t\t\tEventLogger.logConnectionException(logger, socket, e);\r\n\t\t}\r\n\t}", "MyInputStream(String name, InputStream in) {\n this.name = name;\n this.in = new BufferedInputStream(in);\n buffer = new StringBuffer(4096);\n Thread thr = new Thread(this);\n thr.setDaemon(true);\n thr.start();\n }", "public static void stream(final InputStream in, final OutputStream out) throws IOException {\n\t\tfinal byte buffer[] = new byte[BUFFER_SIZE];\r\n\t\tint len = buffer.length;\r\n\t\twhile (true) {\r\n\t\t\tlen = in.read(buffer);\r\n\t\t\tif (len == -1) {\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tout.write(buffer, 0, len);\r\n\t\t}\r\n\t\tout.flush();\r\n\t}", "@Override\r\n public void run() {\r\n byte[] buffer = new byte[1024];\r\n int bytes;\r\n int times = 0;\r\n\r\n while (!mStopped) {\r\n try {\r\n if (times == 0) {\r\n try {\r\n \t// Sometimes lag occurs. Therefore, from time to time\r\n \t// we just ignore a large chunk of data from input stream\r\n \t// in order to synchronize the communication.\r\n mInputStream.skip(1024000);\r\n } catch (Exception e) {}\r\n times = LAG_CUT_TIMEOUT;\r\n }\r\n times--;\r\n\r\n // Read from socket and send to the handler\r\n bytes = mInputStream.read(buffer);\r\n mReceiveHandler.receiveData(buffer, bytes);\r\n\r\n } catch (IOException ioe) {\r\n Log.e(Common.TAG, \"Error receiving from the socket: \" + ioe.getMessage());\r\n mPeer.communicationErrorOccured();\r\n break;\r\n }\r\n }\r\n }", "public void read(CCompatibleInputStream is) throws Exception {\n header.read(is);\n super.read(is);\n }", "private void readMoreBytesFromStream() throws IOException {\n if (!innerStreamHasMoreData) {\n return;\n }\n\n int bufferSpaceAvailable = buffer.length - bytesInBuffer;\n if (bufferSpaceAvailable <= 0) {\n return;\n }\n\n int bytesRead =\n stream.read(buffer, bytesInBuffer, bufferSpaceAvailable);\n\n if (bytesRead == -1) {\n innerStreamHasMoreData = false;\n } else {\n bytesInBuffer += bytesRead;\n }\n }", "public void inputData(InputStream _in)throws Exception{\r\n\t\tsummary = sendReceive.ReadString(_in);\r\n\t\t\r\n\t\tstart\t= sendReceive.ReadLong(_in);\r\n\t\tend\t\t= sendReceive.ReadLong(_in);\r\n\t\t\r\n\t\tlocation= sendReceive.ReadString(_in);\r\n\t\talarm\t= sendReceive.ReadInt(_in);\r\n\t\tnote\t= sendReceive.ReadString(_in);\r\n\t\t\r\n\t\tallDay\t= sendReceive.ReadBoolean(_in);\r\n\r\n\t\tattendees = new String[sendReceive.ReadInt(_in)];\r\n\r\n\t\tfor(int i = 0;i < attendees.length;i++){\r\n\t\t\tattendees[i] = sendReceive.ReadString(_in);\r\n\t\t}\t\t\r\n\t\t\r\n\t\tfree_busy\t= _in.read();\r\n\t\tevent_class = _in.read();\r\n\t\trepeat_type\t= sendReceive.ReadString(_in);\r\n\t}", "private void blockingRead(InputStream istream, byte[] buf, int requestedBytes) throws\n IOException {\n int offset = 0;\n while (offset < requestedBytes) {\n int read = istream.read(buf, offset, requestedBytes - offset);\n\n if (read < 0) {\n throw new IOException(\"Connection interrupted\");\n }\n\n offset += read;\n }\n }", "public static NetFlowReader prepareReader(\n DataInputStream inputStream,\n int buffer) throws IOException {\n return prepareReader(inputStream, buffer, false);\n }", "private static int readFully(InputStream in, byte[] buf, int off, int len) throws IOException {\n/* 1144 */ if (len == 0)\n/* 1145 */ return 0; \n/* 1146 */ int total = 0;\n/* 1147 */ while (len > 0) {\n/* 1148 */ int bsize = in.read(buf, off, len);\n/* 1149 */ if (bsize <= 0)\n/* */ break; \n/* 1151 */ off += bsize;\n/* 1152 */ total += bsize;\n/* 1153 */ len -= bsize;\n/* */ } \n/* 1155 */ return (total > 0) ? total : -1;\n/* */ }", "private void receive() throws IOException {\n byte[] lengthBuffer = new byte[4];\n dataInput.readFully(lengthBuffer);\n int length = Utilities.getIntFromByte(lengthBuffer, 0);\n pipedOutputStream.write(Utilities.getBytes(length));\n\n //now read the data indicated by length and write it to buffer\n byte[] buffer = new byte[length];\n dataInput.readFully(buffer);\n pipedOutputStream.write(buffer);\n pipedOutputStream.flush();\n clientBlocker();\n }", "@Override\n\tpublic void readData(DataInputStream input) throws IOException {\n\t\t\n\t}", "public void run() {\n\t\tbyte[] out;\n\t\tshort[] in = new short[0];\n\t\tint read;\n\t\tint consumed;\n\t\t\n\t\ttry {\n\t\t\tconnect();\n\t\t\tin = new short[sock.getReceiveBufferSize()];\n\t\t} catch (Exception ex) {\n\t\t\t// TODO: Fire event to the model, so we can display something that lets the user know what happened.\n\t\t\tex.printStackTrace();\n\t\t\tdisconnect();\n\t\t}\n\t\t\n \t\twhile (sock != null && !sock.isClosed()) {\n\t\t\ttry {\n\t\t\t\tconsumed = 0;\n\t\t\t\t\n\t\t\t\t// Read up to in.length before we're invalid...\n\t\t\t\tinStream.mark(in.length);\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tread = inStream.read(in);\n\t\t\t\t} catch (IOException ioe) {\n\t\t\t\t\tread = 0;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Truncate the read buffer, and process it.\n\t\t\t\tif (read > 0) {\n\t\t\t\t\tshort[] truncIn = new short[read];\n\t\t\t\t\tSystem.arraycopy(in, 0, truncIn, 0, read);\n\t\t\t\t\t\n\t\t\t\t\tconsumed = consumeIncoming(truncIn);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// reset the mark, and then consume the bytes we've \n\t\t\t\t// processed.\n\t\t\t\tinStream.reset();\n\t\t\t\tif (consumed > 0) {\n\t\t\t\t\tinStream.skip(consumed);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t// Do I have data to write?\n\t\t\t\tout = outgoingBytes();\n\t\t\t\tif (out.length > 0) {\n\t\t\t\t\tsock.getOutputStream().write(out);\n\t\t\t\t\tsock.getOutputStream().flush();\n\t\t\t\t}\n\t\t\t} catch (Exception ex) {\n\t\t\t\tex.printStackTrace();\n\t\t\t\tSystem.err.println(ex.toString());\n\t\t\t}\n\t\t\t// Play nice with thread schedulers.\n\t\t\tThread.yield();\n\t\t}\n\t}", "private String readStream(InputStream is) throws IOException {\n StringBuilder sb = new StringBuilder();\n BufferedReader r = new BufferedReader(new InputStreamReader(is),1000);\n for (String line = r.readLine(); line != null; line =r.readLine()){\n sb.append(line);\n }\n is.close();\n return sb.toString();\n }", "public static void readFully(InputStream in, byte[] buffer) {\n int c = read(in, buffer);\n if (c != buffer.length) {\n String msg = c + \" != \" + buffer.length + \": \" + ByteUtils.toHex(buffer);\n throw new IORuntimeException(new EOFException(msg));\n }\n }", "@Override\r\n\tpublic InputStream getInputStream() throws IOException {\n\t\treturn this.s.getInputStream();\r\n\t}", "public void processConnection(DataInputStream dis, DataOutputStream dos);", "public InputStream asInputStream() {\n return new ByteArrayInputStream(data);\n }", "public byte[] readBytes() throws IOException {\n\t InputStream in = socket.getInputStream();\n\t DataInputStream dis = new DataInputStream(in);\n\n\t int len = dis.readInt();\n\t byte[] data = new byte[len];\n\t if (len > 0) {\n\t dis.readFully(data);\n\t }\n\t return data;\n\t}", "public static NetFlowReader prepareReader(DataInputStream inputStream) throws IOException {\n return prepareReader(inputStream, RecordBuffer.BUFFER_LENGTH_2, false);\n }", "@Override\n synchronized public void run() {\n try {\n BufferedReader bufferedReader = new BufferedReader(\n new InputStreamReader(inputStream, Charset.defaultCharset())\n );\n String line;\n while ((line = bufferedReader.readLine()) != null) {\n this.result.add(line);\n }\n } catch (IOException ex) {\n log.error(\"Failed to consume and display the input stream of type \" + streamType + \".\", ex);\n } finally {\n this.isStopped = true;\n notify();\n }\n }", "public WebSocketServerInputStream(final InputStream is,\n final WebSocketServerOutputStream wsos) {\n checkNotNull(is, \"is == null\");\n checkNotNull(wsos, \"wsos == null\");\n this.inputStream = is;\n this.outputPeer = wsos;\n }", "public InputStream getInputStream() throws IOException;", "public InputStream getInputStream() throws IOException;", "@Override\r\n\tpublic InputStream getInStream() {\n\t\treturn inStreamServer;\r\n\t}", "String processDataFromSocket(String data, long fromId);", "public InputStream getStream();", "public synchronized void resetInputStream()\r\n\t{\r\n\t\tthis.inputStream = new BodyReusableServletInputStream(this.bodyBytes);\r\n\t\tthis.bufferedReader = new BufferedReader(new InputStreamReader(this.inputStream)); \r\n\t}", "private String readStream(InputStream is) {\n try {\n ByteArrayOutputStream bo = new ByteArrayOutputStream();\n int i = is.read();\n while(i != -1) {\n bo.write(i);\n i = is.read();\n }\n return bo.toString();\n } catch (IOException e) {\n return \"\";\n }\n }", "private String _read(InputStream in, String enc) throws IOException\n {\n int ptr = 0;\n int count;\n \n while ((count = in.read(_readBuffer, ptr, _readBuffer.length - ptr)) > 0) {\n ptr += count;\n // buffer full? Need to realloc\n if (ptr == _readBuffer.length) {\n _readBuffer = Arrays.copyOf(_readBuffer, ptr + ptr);\n }\n }\n \n return new String(_readBuffer, 0, ptr, enc);\n }", "public void readFromSocket() throws IOException, JSONException {\n int bytesAvailable = bluetoothSocket.getInputStream().available();\n if (bytesAvailable > 0) {\n byte[] msg = new byte[bytesAvailable];\n bluetoothSocket.getInputStream().read(msg);\n String receivedMessage = new String(msg);\n mListener.onMessageReceived(receivedMessage); //fire the message to the service\n Log.i(TAG, \"receivedMessage: \" + receivedMessage);\n }\n }", "public MyInputStream(InputStream in) {\n super(in);\n this.in = in;\n }", "TclInputStream(InputStream inInput) {\n input = inInput;\n }", "private int fillBuffer(InputStream is) throws IOException {\n int len = buffer.length;\n int pos = 0;\n while (pos < buffer.length) {\n int read = is.read(buffer, pos, len);\n if (read == -1)\n return pos;\n pos += read;\n len -= read;\n }\n return pos;\n }", "protected Socket getSocket() {\n\t\treturn input;\n\t}", "SocketReader newSocketReader(SocketConnection connection);", "private String readStream(InputStream in) {\n try {\n ByteArrayOutputStream bo = new ByteArrayOutputStream();\n int i = in.read();\n while(i != -1) {\n bo.write(i);\n i = in.read();\n }\n return bo.toString();\n } catch (IOException e) {\n return \"\";\n }\n }", "public void read(final InputStream stream)\r\n throws IOException, DataFormatException {\r\n decoder.read(stream);\r\n }", "private void startInThread() {\n final Client fthis = this;\n if (in != null && in.isAlive()) in.interrupt();\n in = new Thread(() -> {\n while (true) {\n if (client.isClosed()) break;\n try {\n InputStream inFromServer = client.getInputStream();\n if (inFromServer.available() > 0) {\n String l = (char) inFromServer.read() + \"\";\n while (!l.endsWith(\"\\r\")) {\n l += (char) inFromServer.read() + \"\";\n }\n l = l.replace(\"\\r\", \"\");\n runPacketEvent(new ClientPacketEvent(fthis, PacketType.CLIENT_RECEIVE, l));\n }\n } catch (Exception e) {\n e.printStackTrace();\n break;\n }\n }\n });\n in.start();\n }", "public BufferedDataInputStream(InputStream o) {\n\t\tsuper(o, 32768);\n\t}", "private synchronized byte[] mReadBytes(InputStream oInput){\n nDataRcvd= nBytesAvailable(oInput);\n if (nDataRcvd==0)\n return null;\n byte[] buffer = new byte[nDataRcvd];\n try {\n nDataRcvd=oInput.read(buffer); //Read is a blocking operation\n } catch (IOException e) {\n e.printStackTrace();\n buffer= null;\n }\n return buffer;\n }", "private void processIn() {\n if (state != State.ESTABLISHED) {\n bbin.flip();\n if (bbin.get() != 10) {\n silentlyClose();\n return;\n } else {\n state = State.ESTABLISHED;\n }\n bbin.compact();\n } else {\n switch (intReader.process(bbin)) {\n case ERROR:\n return;\n case REFILL:\n return;\n case DONE:\n var size = intReader.get();\n bbin.flip();\n var bb = ByteBuffer.allocate(size);\n for (var i = 0; i < size; i++) {\n bb.put(bbin.get());\n }\n System.out.println(UTF.decode(bb.flip()).toString());\n bbin.compact();\n intReader.reset();\n break;\n }\n }\n }" ]
[ "0.6460184", "0.6423156", "0.61242086", "0.6121176", "0.61047083", "0.60909075", "0.60293263", "0.5997067", "0.5927444", "0.5885602", "0.5808159", "0.5751085", "0.5740014", "0.569712", "0.56666505", "0.56666505", "0.56666505", "0.56608313", "0.56517315", "0.5651098", "0.5648713", "0.56444126", "0.56299025", "0.56281877", "0.5613791", "0.5609289", "0.5578303", "0.5564694", "0.5557322", "0.55552554", "0.55539626", "0.55276203", "0.5520662", "0.5520662", "0.55035627", "0.5470419", "0.5453168", "0.5443989", "0.5420228", "0.5414335", "0.5409341", "0.5381843", "0.5371909", "0.536243", "0.536115", "0.5358232", "0.53362477", "0.53250366", "0.5314886", "0.5314394", "0.53136015", "0.5311543", "0.53065205", "0.5295054", "0.5292577", "0.5272277", "0.5272277", "0.5259627", "0.52507484", "0.52477187", "0.52474767", "0.5238299", "0.5237714", "0.52375185", "0.52351624", "0.5234727", "0.52289486", "0.5225897", "0.5224764", "0.521822", "0.52154577", "0.5214804", "0.5211002", "0.5207489", "0.5202833", "0.5197768", "0.51946187", "0.5192744", "0.5190611", "0.5189291", "0.51877725", "0.51877725", "0.5181383", "0.51808137", "0.5178592", "0.5175042", "0.5168976", "0.5160341", "0.5156477", "0.5153659", "0.5149124", "0.5136014", "0.5133051", "0.51320606", "0.51302075", "0.51286715", "0.51285505", "0.5123506", "0.5122843", "0.5103451" ]
0.7135933
0
Read stream to byte array. Note this method not suitable for read socket input stream
@SuppressWarnings({"all"}) public static byte[] read2Byte(InputStream is) { int read = -1; int total = -1; byte[] data = null; if (is != null) { try { total = is.available(); data = new byte[total]; read = is.read(data); } catch (Exception e) { logger.warn("read to byte[] meet an exception", e); } } return data; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public byte[] readBytes() throws IOException {\n\t InputStream in = socket.getInputStream();\n\t DataInputStream dis = new DataInputStream(in);\n\n\t int len = dis.readInt();\n\t byte[] data = new byte[len];\n\t if (len > 0) {\n\t dis.readFully(data);\n\t }\n\t return data;\n\t}", "byte[] readBytes();", "public byte[] read();", "public byte[] readBytes() throws IOException {\n int length = in.readInt();\n byte[] bytes = new byte[length];\n in.readFully(bytes);\n return bytes;\n }", "private static byte[] streamToBytes(InputStream in, int length)\n\t\t\tthrows IOException {\n\t\tbyte[] bytes = new byte[length];\n\t\tint count;\n\t\tint pos = 0;\n\t\twhile (pos < length\n\t\t\t\t&& ((count = in.read(bytes, pos, length - pos)) != -1)) {\n\t\t\tpos += count;\n\t\t}\n\t\tif (pos != length) {\n\t\t\tthrow new IOException(\"Expected \" + length + \" bytes, read \" + pos\n\t\t\t\t\t+ \" bytes\");\n\t\t}\n\t\treturn bytes;\n\t}", "public static byte[] readBytes(InputStream is) throws IOException {\n ByteArrayOutputStream baos = null;\n try {\n baos = new ByteArrayOutputStream();\n int read = 0;\n byte[] buffer = new byte[BUFFER_SIZE];\n while ((read = is.read(buffer)) > 0) {\n baos.write(buffer, 0, read);\n }\n return baos.toByteArray();\n } finally {\n close(is);\n close(baos);\n }\n }", "private synchronized byte[] mReadBytes(InputStream oInput){\n nDataRcvd= nBytesAvailable(oInput);\n if (nDataRcvd==0)\n return null;\n byte[] buffer = new byte[nDataRcvd];\n try {\n nDataRcvd=oInput.read(buffer); //Read is a blocking operation\n } catch (IOException e) {\n e.printStackTrace();\n buffer= null;\n }\n return buffer;\n }", "public static byte[] getBytesFromInputStream(InputStream is) throws IOException\n {\n ByteArrayOutputStream os = new ByteArrayOutputStream();\n byte[] buffer = new byte[0xFFFF];\n\n for (int len; (len = is.read(buffer)) != -1;)\n os.write(buffer, 0, len);\n\n os.flush();\n\n is.reset();\n return os.toByteArray();\n }", "public static byte[] readBytes(InputStream in) throws IOException\n\t{\n\t\tbyte[] buffer = new byte[8192];\n\t int bytesRead;\n\t ByteArrayOutputStream output = new ByteArrayOutputStream();\n\t while ((bytesRead = in.read(buffer)) != -1)\n\t {\n\t output.write(buffer, 0, bytesRead);\n\t }\n\t return output.toByteArray();\n\t}", "public byte [] readMessageAsByte() {\r\n byte [] data = new byte[256];\r\n int length;\r\n\r\n try {\r\n length = in.readInt();\r\n if (length > 0) {\r\n data = new byte[length];\r\n in.readFully(data, 0, data.length);\r\n }\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n\r\n return data;\r\n }", "private static byte[] readBytes(InputStream input, int length) throws IOException {\n\n int count = 0;\n byte[] buffer = new byte[length];\n\n while (count < length) count += input.read(buffer, count, length - count);\n\n return buffer;\n }", "public static byte[] toByteArray(InputStream is) throws IOException {\r\n\t\tByteArrayOutputStream baos = new ByteArrayOutputStream();\r\n\t\tint reads = is.read();\r\n\r\n\t\twhile (reads != -1) {\r\n\t\t\tbaos.write(reads);\r\n\t\t\treads = is.read();\r\n\t\t}\r\n\r\n\t\treturn baos.toByteArray();\r\n\t}", "protected byte[] bytesFromInputStream (java.io.InputStream stream) {\n\tbyte[] rawBytes = null;\n\tint rawBytesLength = 0;\n\n\ttry {\n\t\tint bytesRead = 0;\n\t\tjava.util.Vector byteBuffers = new java.util.Vector();\n\t\tjava.util.Vector byteBufferLengths = new java.util.Vector();\n\t\twhile (bytesRead != -1) {\n\t\t\tbyte[] nextRawBytes = new byte[2000];\n\t\t\tbytesRead = stream.read(nextRawBytes);\n\t\t\tif (bytesRead > 0) {\n\t\t\t\trawBytesLength += bytesRead;\n\t\t\t\tbyteBuffers.addElement(nextRawBytes);\n\t\t\t\tbyteBufferLengths.addElement(new Integer(bytesRead));\n\t\t\t}\n\t\t}\n\n\t\tif (rawBytesLength > 0) {\n\t\t\trawBytes = new byte[rawBytesLength];\n\t\t\tint rawBytesPosition = 0;\n\t\t\tint byteBufferCount = byteBuffers.size();\n\t\t\tfor (int i = 0; i < byteBufferCount; i++) {\n\t\t\t\tbyte[] bytes = (byte[])byteBuffers.elementAt(i);\n\t\t\t\tbytesRead = ((Integer)byteBufferLengths.elementAt(i)).intValue();\n\t\t\t\tfor (int j = 0; j < bytesRead; j++)\n\t\t\t\t\trawBytes[rawBytesPosition + j] = bytes[j];\n\t\t\t\trawBytesPosition += bytesRead;\n\t\t\t}\n\t\t}\n\t}\n\tcatch (java.io.IOException exc) {\n\t\tRuntimeException rtExc = new RuntimeException(exc.getMessage());\n\t\trtExc.fillInStackTrace();\n\t\tthrow rtExc;\n\t}\n\t\n\treturn rawBytes;\n}", "public byte[] readBytes() {\n\t\tif (bufferIndex == bufferLast)\n\t\t\treturn null;\n\n\t\tsynchronized (buffer) {\n\t\t\tint length = bufferLast - bufferIndex;\n\t\t\tbyte outgoing[] = new byte[length];\n\t\t\tSystem.arraycopy(buffer, bufferIndex, outgoing, 0, length);\n\n\t\t\tbufferIndex = 0; // rewind\n\t\t\tbufferLast = 0;\n\t\t\treturn outgoing;\n\t\t}\n\t}", "static byte[] streamToBytes(final InputStream in) throws IOException {\n return streamToBytes(in, new byte[7]);\n }", "public byte[] readBytes() {\n try {\n int len = available();\n if (len > 0) {\n byte bytes[] = new byte[len];\n m_DataInputStream.read(bytes);\n\n return bytes;\n }\n else {\n return new byte[0];\n }\n }\n catch (IOException e) {\n return new byte[0];\n }\n }", "public static byte[] readBytes(InputStream in, int len, boolean isLE)\r\n throws IOException\r\n {\r\n if (len == 0)\r\n {\r\n return new byte[0];\r\n }\r\n byte[] bytes = new byte[len];\r\n int rlen = in.read(bytes);\r\n if (rlen != len)\r\n {\r\n throw new IOException(\"readBytes length is not match.\" + len\r\n + \" which is \" + rlen);\r\n }\r\n if (isLE)\r\n {\r\n bytes = reverseBytes(bytes);\r\n }\r\n return bytes;\r\n }", "public byte[] toByteArray() throws IOException\n {\n try (InputStream is = createInputStream())\n {\n return is.readAllBytes();\n }\n }", "private static byte[] getDataFromInputStream(final InputStream input) throws IOException {\r\n if (input == null) {\r\n return new byte[0];\r\n }\r\n int nBytes = 0;\r\n final byte[] buffer = new byte[BUFFER_SIZE];\r\n final ByteArrayOutputStream baos = new ByteArrayOutputStream();\r\n while ((nBytes = input.read(buffer)) != -1) {\r\n baos.write(buffer, 0, nBytes);\r\n }\r\n return baos.toByteArray();\r\n }", "public static byte[] readAll(InputStream is) {\n\t\treturn readAll(is, 1024);\n\t}", "public static byte[] writeToByteArray(InputStream is) throws IOException {\n ByteArrayOutputStream os = new ByteArrayOutputStream();\n byte[] buf = new byte[BUFFER_SIZE];\n int count = -1;\n while (is.available() > 0) {\n count = is.read(buf);\n os.write(buf, 0, count);\n }\n os.close();\n return os.toByteArray();\n }", "@Nullable\n public static byte[] readBytes(InputStream stream, int numBytes) {\n if (numBytes == 0) {\n return new byte[0];\n }\n\n byte[] result = new byte[numBytes];\n int readBytes = 0;\n while (readBytes < numBytes) {\n int numBytesToRead = numBytes - readBytes;\n int count;\n try {\n count = stream.read(result, readBytes, numBytesToRead);\n } catch (IOException e) {\n throw new RssStreamReadException(\"Failed to read data\", e);\n }\n if (count == -1) {\n if (readBytes == 0) {\n return null;\n } else {\n throw new RssEndOfStreamException(String.format(\n \"Unexpected end of stream, already read bytes: %s, remaining bytes to read: %s \",\n readBytes,\n numBytesToRead));\n }\n }\n readBytes += count;\n }\n\n return result;\n }", "static public byte[] getBytes(InputStream stream) throws IOException {\n if (stream instanceof BytesGetter) {\n BytesGetter buffer = (BytesGetter) stream;\n return buffer.getBytes();\n } else {\n try (InputStreamToByteArray in = new InputStreamToByteArray(stream)) {\n return in.getBytes();\n }\n }\n }", "public static byte[] readBytes(InputStream inputStream) throws IOException {\n // this dynamically extends to take the bytes you read\n ByteArrayOutputStream byteBuffer = new ByteArrayOutputStream();\n\n // this is storage overwritten on each iteration with bytes\n int bufferSize = 1024;\n byte[] buffer = new byte[bufferSize];\n\n // we need to know how may bytes were read to write them to the byteBuffer\n int len = 0;\n while ((len = inputStream.read(buffer)) != -1) {\n byteBuffer.write(buffer, 0, len);\n }\n\n // and then we can return your byte array.\n return byteBuffer.toByteArray();\n }", "public static byte[] toByteArray(InputStream in) throws IOException {\n ByteArrayOutputStream out = new ByteArrayOutputStream();\n copy(in, out);\n return out.toByteArray();\n }", "public static byte[] decodeToBytes(InputStream in) throws IOException {\n\t\tByteArrayOutputStream out = new ByteArrayOutputStream();\n\t\tdecode(in, out, false);\n\t\treturn out.toByteArray();\n\t}", "public static byte[] copyToByteArray(InputStream in) throws IOException {\n if (in == null) throw new IllegalArgumentException(\"No InputStream specified\");\n ByteArrayOutputStream out = new ByteArrayOutputStream(BUFFER_SIZE);\n copy(in, out);\n return out.toByteArray();\n }", "default byte[] getBytes() throws IOException {\n try (InputStream is = getInputStream()) {\n return IOUtils.toByteArray(is);\n }\n }", "public static byte[] inputStreamToBytes(InputStream in) {\r\n ByteArrayOutputStream out = new ByteArrayOutputStream();\r\n try {\r\n byte[] buffer = new byte[1024];\r\n int len;\r\n while ((len = in.read(buffer)) != -1) {\r\n out.write(buffer, 0, len);\r\n }\r\n } catch (Exception e) {\r\n System.out.println(\"Error converting InputStream to byte[]: \"\r\n + e.getMessage());\r\n }\r\n return out.toByteArray();\r\n }", "public InputStreamToByteArray(byte buf[]) {\n this(buf, 0, buf.length);\n }", "protected byte[] stream2blob(InputStream is) throws IOException, IllegalArgumentException {\n return StreamUtils.stream2blob(is);\n }", "public byte[] getBinary() throws IOException {\n\r\n String contentType = null;\r\n int contentLength = -1;\r\n\r\n // a little weird - this will throw NoSuchElementException\r\n // if nothing was recieved\r\n contentType = connection.getContentType();\r\n contentLength = connection.getContentLength();\r\n\r\n log.info(\"contentType {} contentLength {}\", contentType, contentLength);\r\n\r\n InputStream raw;\r\n byte[] data = null;\r\n int initSize = (contentLength == -1) ? 65536 : contentLength;\r\n ByteArrayOutputStream bos = new ByteArrayOutputStream(initSize);\r\n InputStream in = null;\r\n // try {\r\n raw = connection.getInputStream();\r\n in = new BufferedInputStream(raw);\r\n\r\n byte[] tmp = new byte[initSize];\r\n int ret;\r\n while ((ret = in.read(tmp)) > 0) {\r\n log.debug(\"read {} bytes\", ret);\r\n bos.write(tmp, 0, ret);\r\n }\r\n /*\r\n * } catch (IOException e) { Logging.logException(e); }\r\n */\r\n\r\n data = bos.toByteArray();\r\n log.info(\"read {} bytes\", data.length);\r\n\r\n try {\r\n if (in != null) {\r\n in.close();\r\n }\r\n } catch (IOException e) {\r\n // don't care\r\n }\r\n\r\n /*\r\n * \r\n * try { // content size sent back data = new byte[contentLength]; int\r\n * bytesRead = 0; int offset = 0; while (offset < contentLength) { bytesRead\r\n * = in.read(data, offset, data.length - offset); if (bytesRead == -1)\r\n * break; offset += bytesRead; } in.close();\r\n * \r\n * if (offset != contentLength) { throw new IOException(\"Only read \" +\r\n * offset + \" bytes; Expected \" + contentLength + \" bytes\"); } } catch\r\n * (IOException e1) { Logging.logException(e1); error = e1.getMessage(); } }\r\n */\r\n\r\n /*\r\n * String filename = u.getFile().substring(filename.lastIndexOf('/') + 1);\r\n */\r\n\r\n /*\r\n * FileOutputStream out; try { out = new FileOutputStream(\"hello.mp3\");\r\n * out.write(data); out.flush(); out.close(); } catch (Exception e) { //\r\n * TODO Auto-generated catch block e.printStackTrace(); }\r\n */\r\n\r\n return data;\r\n }", "public byte[] readBytes(int inNumberMessages) throws IOException;", "public byte[] ReadMessage()\r\n {\r\n try {\r\n byte[] read = new byte[in.read()];\r\n for(int i = 0; i < read.length; i++)\r\n read[i] = (byte)in.read();\r\n\r\n return read;\r\n } catch (Exception e){\r\n System.out.println(e);\r\n }\r\n return null;\r\n }", "private final byte[] readBuffer( int size ) throws IOException {\n byte[] buffer = new byte[ size ];\n\n int read = 0;\n while ( read < size ) {\n int next = dataSource.read( buffer, read, size - read );\n if ( next < 0 ) throw new IOException( \"End of Stream\" );\n read += next;\n\t}\n return buffer;\n }", "public static ByteArrayInputStream readSocketStream(InputStream is) throws IOException {\n ByteArrayOutputStream bos = new ByteArrayOutputStream();\n copyStream(is, bos);\n byte[] data = bos.toByteArray();\n ByteArrayInputStream bis = new ByteArrayInputStream(data);\n closeStream(is);\n closeStream(bos);\n return bis;\n }", "private byte[] readBuffer( DataInputStream in ) throws IOException{\n String factory = in.readUTF();\n int count = in.readInt();\n \n ByteArrayOutputStream out = new ByteArrayOutputStream( factory.length()*4 + 4 + count );\n DataOutputStream dout = new DataOutputStream( out );\n \n dout.writeUTF( factory );\n dout.writeInt( count );\n \n for( int i = 0; i < count; i++ ){\n int read = in.read();\n if( read == -1 )\n throw new EOFException( \"unexpectetly reached end of file\" );\n dout.write( read );\n }\n \n dout.close();\n return out.toByteArray();\n }", "public byte[] readBytes(int len) throws IOException {\n if (len > 1024) {\n throw new RuntimeException(String.format(\"Attempted to read %d bytes at once, file is probably corrupted.\", len));\n }\n byte[] buf = new byte[len];\n int n = 0;\n while (n < len) {\n int count = inputStream.read(buf, n, len - n);\n if (count < 0) {\n throw new EOFException();\n }\n n += count;\n }\n return buf;\n }", "public byte[] toArray()\r\n {\r\n return _stream.toByteArray();\r\n }", "public static byte[] dumpInputStream(InputStream instream) \n throws IOException {\n int lastindex = 0;\n int increment;\n byte[] A = new byte[2048];\n byte[] B;\n do {\n B = new byte[2*A.length];\n System.arraycopy(A, 0, B, 0, A.length);\n A = B;\n try {\n increment = instream.read(A, lastindex, A.length - lastindex);\n } catch (IOException e) {\n throw e;\n }\n if (increment == -1)\n /* EOF, no characters read */\n break;\n lastindex += increment;\n } while (lastindex >= A.length);\n\n /* copy A into B of precisely correct length */\n B = new byte[lastindex];\n System.arraycopy(A, 0, B, 0, B.length);\n return B;\n }", "static protected byte[] readContent( InputStream in )\n \t{\n \t\tBufferedInputStream bin = in instanceof BufferedInputStream\n \t\t\t\t? (BufferedInputStream) in\n \t\t\t\t: new BufferedInputStream( in );\n \t\tByteArrayOutputStream out = new ByteArrayOutputStream( 1024 );\n \t\tbyte[] buffer = new byte[1024];\n \t\tint readSize = 0;\n \t\ttry\n \t\t{\n \t\t\treadSize = bin.read( buffer );\n \t\t\twhile ( readSize != -1 )\n \t\t\t{\n \t\t\t\tout.write( buffer, 0, readSize );\n \t\t\t\treadSize = bin.read( buffer );\n \t\t\t}\n \t\t}\n \t\tcatch ( IOException ex )\n \t\t{\n \t\t\tlogger.log( Level.SEVERE, ex.getMessage( ), ex );\n \t\t}\n \t\treturn out.toByteArray( );\n \t}", "InputStream getDataStream();", "public void readBytes(byte[] buffer) throws IOException;", "public static byte[] toByteArray(final InputStream input) throws IOException {\n final ByteArrayOutputStream output = new ByteArrayOutputStream();\n copy(input, output);\n return output.toByteArray();\n }", "static byte[] m61444b(InputStream inputStream) throws IOException {\n ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();\n byte[] bArr = new byte[4096];\n while (true) {\n int read = inputStream.read(bArr);\n if (-1 == read) {\n return byteArrayOutputStream.toByteArray();\n }\n byteArrayOutputStream.write(bArr, 0, read);\n }\n }", "int read(byte[] buffer, int bufferOffset, int length) throws IOException;", "public byte[] readRawByte() throws IOException {\n byte[] bytes = new byte[2];\n bytes[0] = (byte) Type.BYTE.code;\n in.readFully(bytes, 1, 1);\n return bytes;\n }", "public static byte[] toByteArray(final InputStream input, final int size) throws IOException {\n if (size < 0) {\n throw new IllegalArgumentException(\"Size must be equal or greater than zero: \" + size);\n }\n\n if (size == 0) {\n return new byte[0];\n }\n\n final byte[] data = new byte[size];\n int offset = 0;\n int readed;\n\n while (offset < size && (readed = input.read(data, offset, size - offset)) != EOF) {\n offset += readed;\n }\n\n if (offset != size) {\n throw new IOException(\"Unexpected readed size. current: \" + offset + \", excepted: \" + size);\n }\n\n return data;\n }", "public InputStream asByteStream() {\n return new ByteArrayInputStream(rawBytes);\n }", "public byte[] toByteArray() {\n byte[] array = new byte[count];\n System.arraycopy(buf, 0, array, 0, count);\n return array;\n }", "private int readFill(InputStream stream, byte[] buffer)\n throws IOException {\n int r = buffer.length;\n while (r > 0) {\n int p = buffer.length - r;\n int c = stream.read(buffer, p, r);\n if (c == -1) {\n break;\n }\n r -= c;\n }\n return buffer.length - r;\n\n }", "byte [] getBuffer ();", "public byte[] Get_Data() throws IOException {\n byte[] ret = new byte[512];\n DatagramPacket packet = new DatagramPacket(ret, ret.length);\n\n socket.receive(packet);\n\n length = ret.length;\n return ret;\n }", "private byte[] read(int length) throws IOException {\n byte[] result = new byte[length];\n\n int read = 0;\n while (read < length)\n {\n int i = this.in.read(result, read, length - read);\n if (i == -1)\n throw new EOFException();\n read += i;\n }\n return result;\n }", "public byte[] toByteArray() throws IOException {\n/* */ COSInputStream cOSInputStream;\n/* 501 */ ByteArrayOutputStream output = new ByteArrayOutputStream();\n/* 502 */ InputStream is = null;\n/* */ \n/* */ try {\n/* 505 */ cOSInputStream = createInputStream();\n/* 506 */ IOUtils.copy((InputStream)cOSInputStream, output);\n/* */ }\n/* */ finally {\n/* */ \n/* 510 */ if (cOSInputStream != null)\n/* */ {\n/* 512 */ cOSInputStream.close();\n/* */ }\n/* */ } \n/* 515 */ return output.toByteArray();\n/* */ }", "protected final int readBytes()\n throws IOException\n {\n _inputPtr = 0;\n _inputEnd = 0;\n if (_inputSource != null) {\n int count = _inputSource.read(_inputBuffer, 0, _inputBuffer.length);\n if (count > 0) {\n _inputEnd = count;\n }\n return count;\n }\n return -1;\n }", "byte[] getBytes();", "byte[] getBytes();", "byte[] getData();", "byte[] getData();", "byte[] getData();", "byte[] getData();", "public static byte[] toBytes(InputStream inputStream) {\n ByteArrayOutputStream outputStream = new ByteArrayOutputStream();\n try {\n fastCopy(inputStream, outputStream);\n return outputStream.toByteArray();\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n try {\n outputStream.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return null;\n }", "byte[] getByteContent() throws IOException;", "public abstract void readBytes(PacketBuffer buffer) throws IOException;", "public abstract byte[] read() throws IOException, IllegalArgumentException , IllegalStateException;", "public abstract byte[] toByteArray();", "public abstract byte[] toByteArray();", "public static byte[] inputToBytes(InputStream input) {\n try {\n return IOUtils.toByteArray(input);\n } catch (IOException e) {\n return null;\n }\n }", "private byte[] consumePayload() throws IOException {\n byte[] payload = new byte[(int) payloadLength];\n int count = 0;\n while (payloadLength > 0L) {\n payload[count] = (byte) this.read();\n count++;\n }\n return payload;\n }", "private void readMoreBytesFromStream() throws IOException {\n if (!innerStreamHasMoreData) {\n return;\n }\n\n int bufferSpaceAvailable = buffer.length - bytesInBuffer;\n if (bufferSpaceAvailable <= 0) {\n return;\n }\n\n int bytesRead =\n stream.read(buffer, bytesInBuffer, bufferSpaceAvailable);\n\n if (bytesRead == -1) {\n innerStreamHasMoreData = false;\n } else {\n bytesInBuffer += bytesRead;\n }\n }", "public static byte[] readFullyByByteShort(InputStream in) throws IOException {\n int oneByte;\n ByteArrayOutputStream out = new ByteArrayOutputStream();\n while((oneByte = in.read()) != -1){\n out.write(oneByte);\n }\n return out.toByteArray();\n }", "public abstract byte[] readData(int address, int length);", "public byte[] readRawBytes() throws IOException {\n return readRawBytes(Type.BYTES.code);\n }", "private void readFromStream(InputStream in) throws IOException {\n\n\t\tdataValue = null;\t// allow gc of the old value before the new.\n\t\tbyte[] tmpData = new byte[32 * 1024];\n\n\t\tint off = 0;\n\t\tfor (;;) {\n\n\t\t\tint len = in.read(tmpData, off, tmpData.length - off);\n\t\t\tif (len == -1)\n\t\t\t\tbreak;\n\t\t\toff += len;\n\n\t\t\tint available = Math.max(1, in.available());\n\t\t\tint extraSpace = available - (tmpData.length - off);\n\t\t\tif (extraSpace > 0)\n\t\t\t{\n\t\t\t\t// need to grow the array\n\t\t\t\tint size = tmpData.length * 2;\n\t\t\t\tif (extraSpace > tmpData.length)\n\t\t\t\t\tsize += extraSpace;\n\n\t\t\t\tbyte[] grow = new byte[size];\n\t\t\t\tSystem.arraycopy(tmpData, 0, grow, 0, off);\n\t\t\t\ttmpData = grow;\n\t\t\t}\n\t\t}\n\n\t\tdataValue = new byte[off];\n\t\tSystem.arraycopy(tmpData, 0, dataValue, 0, off);\n\t}", "public byte[] BinaryRead(int length) throws IOException\n {\n StringBuffer buf = new StringBuffer();\n byte bytes[] = new byte[length];\n InputStream is = request.getInputStream();\n\n int nread = 0;\n\n \n if (DBG.isDebugEnabled()) DBG.debug(\"Length: \" + length);\n while (nread < length) {\n int thistime = is.read(bytes, nread, length - nread);\n if (DBG.isDebugEnabled()) {\n DBG.debug(\"nread: \" + nread);\n DBG.debug(\"thistime: \" + thistime);\n }\n if (thistime <= 0) break;\n nread += thistime;\n }\n \n if (DBG.isDebugEnabled()) DBG.debug(\"Total read: \" + nread);\n while (nread < length) {\n byte nbytes[] = new byte[nread];\n System.arraycopy(bytes, 0, nbytes, 0, nread);\n bytes = nbytes;\n }\n return bytes;\n }", "public static void main(String[] args) {\n byte[] arr = {1, 2, 3, 4, 5};\n\n try {\n ByteArrayInputStream one = new ByteArrayInputStream(arr);\n System.out.println(one.available());\n\n for(int i = 0; i< arr.length; i++){\n\n int data = one.read();\n System.out.println(data);\n }\n one.close();\n }catch (Exception e){\n System.out.println(e.getMessage());\n\n\n }\n\n }", "public int read(byte[] p_bytes, int p_offset, int p_length);", "void readBytes(byte[] into, int offset, int toRead) throws IOException;", "public byte[] getData();", "public void readBytes(byte[] buffer, int offset, int length) throws IOException;", "Stream<In> getInputStream();", "public void readData(InputStream inStream);", "public byte[] read(final byte[] src, final int offset)\n {\n final int length = length();\n bytes = new byte[length];\n for (int i = 0; i < length; i++)\n bytes[i] = src[offset + length - 1 - i];\n return bytes;\n }", "public byte[] getData() {\n try {\n int n2 = (int)this.len.get();\n if (this.buf == null) {\n return null;\n }\n if (n2 <= this.buf.length) return this.buf.get(n2);\n Log.w(TAG, \"getData: expected length (\" + n2 + \") > buffer length (\" + this.buf.length + \")\");\n throw new IllegalArgumentException(\"Blob:getData - size is larger than the real buffer length\");\n }\n catch (Exception exception) {\n Log.e(TAG, \"getData exception!\");\n exception.printStackTrace();\n return null;\n }\n }", "public final byte[] bytes() throws IOException {\n long contentLength = contentLength();\n if (contentLength <= 2147483647L) {\n C3580e source = source();\n try {\n byte[] G = source.mo19680G();\n C3500c.m11649a((Closeable) source);\n if (contentLength == -1 || contentLength == ((long) G.length)) {\n return G;\n }\n throw new IOException(\"Content-Length (\" + contentLength + \") and stream length (\" + G.length + \") disagree\");\n } catch (Throwable th) {\n C3500c.m11649a((Closeable) source);\n throw th;\n }\n } else {\n throw new IOException(\"Cannot buffer entire body for content length: \" + contentLength);\n }\n }", "public byte[] readBytes(int inNumberMessages, int[] outNumberMessages) throws IOException;", "public static byte[] readAll(InputStream is, int chunkSize) {\n\t\tif (chunkSize <= 0) {\n\t\t\tthrow new IllegalArgumentException(\"chunk size can't be <1\");\n\t\t}\n\t\tByteArrayOutputStream bos = new ByteArrayOutputStream();\n\t\tbyte[] bytes = new byte[chunkSize];\n\t\tint read;\n\t\ttry {\n\t\t\twhile (-1 != (read = is.read(bytes))) {\n\t\t\t\tbos.write(bytes, 0, read);\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tthrow new WrappedException(e);\n\t\t} finally {\n\t\t\tclose(is);\n\t\t}\n\t\treturn bos.toByteArray();\n\t}", "private byte[] readLine(InputStream inputStream) throws IOException {\n\t\tByteArrayOutputStream bytes = new ByteArrayOutputStream();\n\t\tboolean started = false;\n\t\tboolean cr = false;\n\t\twhile(true){\n\t\t\tint next = inputStream.read();\n\t\t\tif(next == -1){\n\t\t\t\tthrow new ModbusIORuntimeException(\"End of stream!\");\n\t\t\t}\n\t\t\tif(!started){\n\t\t\t\tstarted = next == ':';\n\t\t\t} else {\n\t\t\t\tif(cr){\n\t\t\t\t\tif(next != '\\n'){\n\t\t\t\t\t\tthrow new ModbusRuntimeException(\"Next character should be a new line!\");\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t} else if(next == '\\r'){\n\t\t\t\t\tcr = true;\n\t\t\t\t} else {\n\t\t\t\t\tbytes.write((byte) next);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn bytes.toByteArray();\n\t}", "private static int readFully(InputStream in, byte[] buf, int off, int len) throws IOException {\n/* 1144 */ if (len == 0)\n/* 1145 */ return 0; \n/* 1146 */ int total = 0;\n/* 1147 */ while (len > 0) {\n/* 1148 */ int bsize = in.read(buf, off, len);\n/* 1149 */ if (bsize <= 0)\n/* */ break; \n/* 1151 */ off += bsize;\n/* 1152 */ total += bsize;\n/* 1153 */ len -= bsize;\n/* */ } \n/* 1155 */ return (total > 0) ? total : -1;\n/* */ }", "int readNonBlocking(byte[] buffer, int offset, int length);", "@Override\n\tpublic int read() throws IOException {\n\t\tif (buf.isReadable()) {\n return buf.readByte() & 0xff;\n }\n return -1;\n\t}", "public void read(DataInput in) throws IOException {\r\n int size = in.readInt();\r\n\r\n buffer = new byte[size];\r\n in.readFully(buffer);\r\n }", "public abstract SeekInputStream getRawInput();", "public void startReader() throws Exception{\n byte[] buf = new byte[8];\n buf[0] = (byte) 0x02;\n buf[1] = (byte)0x08;\n buf[2] = (byte)0xB0;\n buf[3] = (byte) 0x00;\n buf[4] = (byte) 0x00;\n buf[5] = (byte) 0x00;\n buf[6] = (byte) 0x00;\n CheckSum(buf,(byte) buf.length);\n OutputStream outputStream = socket.getOutputStream();\n outputStream.write(buf);\n\n InputStream in = socket.getInputStream();\n System.out.println(in.available());\n if (in.available() == 0){\n System.out.println(\"null\");\n }else {\n byte[] bytes = new byte[8];\n in.read(bytes);\n CheckSum(bytes,(byte)8);\n String str = toHex(bytes);\n //String[] str1 = str.split(\"\");\n //ttoString(str1);\n System.out.println(str);\n }\n\n\n\n /*byte[] by2 = new byte[17];\n in.read(by2);\n String str2 = toHex(by2);\n String[] str4 = str2.split(\"\");\n String[] str5 = new String[getInt(str4)];\n System.arraycopy(str4,0,str5,0,getInt(str4));\n if(getInt(str4)>3)\n System.out.println(ttoString(str5));\n set = new HashSet();\n set.add(ttoString(str5));\n list = new ArrayList(set);\n System.out.println(list);*/\n }", "protected byte[] getBinaryData(Resource resource, @SuppressWarnings(\"unused\") SlingHttpServletRequest request) throws IOException {\n InputStream is = resource.adaptTo(InputStream.class);\n if (is == null) {\n return null;\n }\n try {\n return IOUtils.toByteArray(is);\n }\n finally {\n is.close();\n }\n }", "public static void readFully(InputStream in, byte[] buffer) {\n int c = read(in, buffer);\n if (c != buffer.length) {\n String msg = c + \" != \" + buffer.length + \": \" + ByteUtils.toHex(buffer);\n throw new IORuntimeException(new EOFException(msg));\n }\n }", "private DataInputStream readBuffer( DataInputStream in, int count ) throws IOException{\n byte[] buffer = new byte[ count ];\n int read = 0;\n while( read < count ){\n int input = in.read( buffer, read, count-read );\n if( input < 0 )\n throw new EOFException();\n read += input;\n }\n \n ByteArrayInputStream bin = new ByteArrayInputStream( buffer );\n DataInputStream din = new DataInputStream( bin );\n return din;\n }", "@Override\n public byte[] readBytes(int length) throws IOException\n {\n if (length < 0)\n {\n throw new IOException(\"length is negative\");\n }\n if (randomAccessRead.length() - randomAccessRead.getPosition() < length)\n {\n throw new IOException(\"Premature end of buffer reached\");\n }\n byte[] bytes = new byte[length];\n for (int i = 0; i < length; i++)\n bytes[i] = readByte();\n return bytes;\n }", "public byte[] drain() {\n return drainTo(new ByteArrayOutputStream()).toByteArray();\n }" ]
[ "0.721772", "0.6961844", "0.6912786", "0.68653727", "0.6804918", "0.67833066", "0.6727149", "0.67021936", "0.6621277", "0.6611862", "0.65852296", "0.65652865", "0.65264595", "0.65184665", "0.6510485", "0.6488041", "0.64742696", "0.6457926", "0.64389217", "0.63841194", "0.63771164", "0.6373353", "0.6365524", "0.6306436", "0.6281116", "0.62561476", "0.62457556", "0.62320495", "0.62269276", "0.6167067", "0.6128198", "0.6087123", "0.60751605", "0.60722286", "0.60542595", "0.6044443", "0.6029831", "0.6008521", "0.59965014", "0.5989606", "0.59636366", "0.5958401", "0.5950894", "0.5948339", "0.59390193", "0.59171396", "0.5902702", "0.58872354", "0.58855313", "0.58799314", "0.58725923", "0.5861089", "0.5830869", "0.5803824", "0.5793827", "0.5754026", "0.5728125", "0.5728125", "0.57263386", "0.57263386", "0.57263386", "0.57263386", "0.56762785", "0.5674858", "0.564487", "0.5644599", "0.56359345", "0.56359345", "0.56309825", "0.562657", "0.5619073", "0.5618571", "0.5603438", "0.55942905", "0.55919814", "0.55864805", "0.5581953", "0.55712634", "0.55709916", "0.55700195", "0.552873", "0.55261064", "0.55242896", "0.5519568", "0.54991955", "0.54851234", "0.5482644", "0.5471015", "0.54523826", "0.5447535", "0.5438206", "0.5429274", "0.5425853", "0.54134476", "0.5406496", "0.53997356", "0.5390566", "0.5383949", "0.5367701", "0.53635466" ]
0.68893707
3
end of function checkNumber..
public void isPrime(int num) { boolean check; check=checkNumber(num); if(check) System.out.printf("%s",toString()); else System.out.printf("%d is not prime",number); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean checkNumber() {\n\t\treturn true;\n\t}", "private boolean validNum (int num) {\n if (num >= 0) return true;\n else return false;\n }", "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}", "boolean hasNumber();", "protected boolean isNumberValid(@NotNull ConversationContext context, @NotNull Number input) {\n/* 30 */ return true;\n/* */ }", "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}", "boolean hasNum();", "boolean hasNum();", "boolean hasNum();", "public boolean isValid(int number)", "private static boolean validNumber(String thing) {\n\t\treturn validDouble(thing);\n\t}", "private int checkRange(int number,int range){\n return (number+range)%range;\n }", "@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 }", "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}", "boolean hasNum2();", "public boolean validateNummer() {\n\t\treturn (nummer >= 10000 && nummer <= 99999 && nummer % 2 != 0); //return true==1 oder false==0\n\t}", "boolean hasNum1();", "private void check1(){\n \n\t\tif (firstDigit != 4){\n valid = false;\n errorCode = 1;\n }\n\t}", "@Test\n public void testCheckIsPowerOfTwoNormal_1() {\n assertTrue(checkerNumber.checkIsPowerOfTwo(1024));\n }", "public static boolean IsNumber(long par_Number) {\n return true;\n }", "private void check3(){\n \n if (errorCode == 0){\n \n if (firstDigit * fifthDigit * ninthDigit != 24){\n valid = false;\n errorCode = 3;\n }\n }\n\t}", "private String isValid(String number)\n {\n\tif(number.matches(\"\\\\d+\")) return number;\n\treturn null;\n }", "public boolean hasNumber(){\n return (alg.hasNumber(input.getText().toString()));\n }", "public void checkNumber(View view){\n Log.i(\"info\", \"button pressed\");\n String message;\n\n // take number from the form\n EditText number=(EditText) findViewById(R.id.editText2);\n if (number.getText().toString().isEmpty()){\n message=\"Please type a number.\";\n } else {\n int numberInt = Integer.parseInt(number.getText().toString());\n\n // use the class Number\n Number testNumber = new Number();\n testNumber.value = numberInt;\n\n // prepare to print message\n message = number.getText().toString();\n\n if (testNumber.isSquared() && testNumber.isTriangular()) {\n message += \" is a square and a triangular number.\";\n } else if (testNumber.isSquared()) {\n message += \" is a square number.\";\n } else if (testNumber.isTriangular()) {\n message += \" is a triangular number.\";\n } else {\n message += \" is neither triangular nor squared.\";\n }\n }\n // show a floating message that desapear after a few seconds\n Toast.makeText(this,message, Toast.LENGTH_SHORT).show();\n // clean the form\n number.setText(\"\");\n\n }", "public static boolean IsNumber(int par_Numer) {\n return true;\n }", "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}", "public static boolean IsNumber(double par_Number) {\n return true;\n }", "boolean hasNumb();", "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 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 static boolean checkTicketNum(int ticketNum) {\n\n return ticketNum > 0;\n }", "public static void notValidNumberErr(){\n printLine();\n System.out.println(\" Oops! Please enter a valid task number\");\n printLine();\n }", "private void check4(){\n \n if (errorCode == 0){\n int sum = 0;\n \n for(int i = 0; i < number.length();){\n sum += Integer.parseInt(number.substring(i, ++i));\n }\n \n if (sum % 4 != 0){\n valid = false;\n errorCode = 4;\n }\n }\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}", "static int check(int x, int a, int b) \n\t{ \n\t\t// sum of digits is 0 \n\t\tif (x == 0) \n\t\t{ \n\t\t\treturn 0; \n\t\t} \n\n\t\twhile (x > 0) \n\t\t{ \n\n\t\t\t// if any of digits in sum is \n\t\t\t// other than a and b \n\t\t\tif (x % 10 != a & x % 10 != b) \n\t\t\t{ \n\t\t\t\treturn 0; \n\t\t\t} \n\n\t\t\tx /= 10; \n\t\t} \n\n\t\treturn 1; \n\t}", "private void check6(){\n \n if (errorCode == 0){\n \n int firstSecond = Integer.parseInt(number.substring(0,2));\n int seventhEight = Integer.parseInt(number.substring(6,8));\n \n if (firstSecond + seventhEight != 100){\n valid = false;\n errorCode = 6;\n }\n }\n\t}", "private boolean checkNumbers(int x, ReturnValue returnValue) {\n\t\tint localCheck = 0;\n\t\tint localPoints = 0;\n\t\tboolean localBool = false;\n\t\tfor (Integer i : intList) {\n\t\t\tif (i == x) {\n\t\t\t\tlocalCheck++;\n\t\t\t}\n\t\t}\n\t\tif (localCheck > 0) {\n\t\t\tlocalBool = true;\n\t\t\tlocalPoints = localCheck * x;\n\t\t}\n\t\treturnValue.setValue(localBool, localPoints, findBox(x));\n\t\treturn true;\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}", "public static void check()\n\t{\n\t\tScanner sc=new Scanner(System.in);\n\t\tSystem.out.println(\"Enter a number ::\");\n\t int number = sc.nextInt();\n\t if(number<0)\n\t {\n\t \tSystem.out.println(\"Enter positive number\");\n\t \tcheck();\n\t }\n\t else\n\t {\n\t \tPrime(number); //Calling Prime Function\n\t }\n\t}", "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\tpublic void testNumberType() throws Exception {\n\t\tassertThat(0, is(0));\n\t}", "public boolean checkForNumber(int m, int n){\r\n\t\tif ( count[m][n] > 0 & count[m][n] < 9 & !bombs[m][n])\r\n\t\t\treturn true ;\r\n\t\treturn false;\r\n\t}", "@Test\n public void testPrimeNumberChecker() {\n System.out.println(\"Parameterized Number is : \" + inputNumber);\n assertEquals(expectedResult,\n primo.validate(inputNumber));\n }", "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 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}", "private boolean checkValue(){\n\t\tfor (int i = 0; i <binary.length();i++){\n\t\t\tif(Character.getNumericValue(binary.charAt(i))>'1' || binary.length()>32 || binary.length()\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t%4 != 0){\n\t\t\t\tSystem.out.println(\"Invalid Input\");\n\t\t\t\tpw.println(\"Invalid Input\");\n\t\t\t\t\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\t\t\n\t}", "public default boolean hasNumber() {\n\t\treturn false;\n\t}", "public static void main(String[] args) {\n\t\r\n\t\tint a=153;\r\n\t\tint temp=a;\r\n\t\t\r\n\t\tint c=0;\r\n\t\tint b=0;\r\n\t\twhile(a>0)\r\n\t\t{\r\n\t\t\tc=a%10;\r\n\t\tb=b+c*c*c;\r\n\t\ta=a/10;}\r\n\tif(temp==b)\r\n\t{\r\n\t\tSystem.out.println(\"given no is amstrong\");\r\n\t\t\t\r\n\t}\t\r\n\telse\r\n\t{\r\n\t\tSystem.out.println(\"given no is not an amstrong number\");\r\n\t}\r\n\r\n\t\r\n\r\n\r\n}", "@Test\n public void testcheckPalindromeNormal_1() {\n assertTrue(checkerNumber.checkPalindrome(12321));\n }", "static boolean checkbetween(int n) {\n if(n>9 && n<101){\n return true;\n }\n else {\n return false;\n }\n \n }", "public boolean check(int value);", "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}", "public String checkNumber(int value) {\n debug.printToLog(3, \"Server : Method called checkNumber() in CheckPrime\\n\");\n\t\t// check if value is less than threshold\n\t\tif(value < threshold)\n\t\t\treturn \"Can't say\";\n\n\t\t// if even then return yes else no\n\t\tif((value % 2) == 0)\n\t\t\treturn \"Yes\";\n\t\treturn \"No\";\n\t}", "private void check5(){\n \n if (errorCode == 0){\n \n int firstSum = 0;\n int lastSum = 0;\n String firstFour = number.substring(0,4);\n String lastFour = number.substring(8,12);\n \n for(int i = 0; i < firstFour.length();){\n firstSum += Integer.parseInt(firstFour.substring(i, ++i));\n }\n \n for(int i = 0; i < lastFour.length();){\n lastSum += Integer.parseInt(lastFour.substring(i, ++i));\n }\n \n if (!(firstSum == lastSum - 1)){\n valid = false;\n errorCode = 5;\n }\n }\n\t}", "private boolean validarNumDistanc(double value) {\n\n String msjeError;\n if (value < 0) {\n\n msjeError = \"Valor No Aceptado\";\n this.jLabelError.setText(msjeError);\n this.jLabelError.setForeground(Color.RED);\n this.jLabelError.setVisible(true);\n\n this.jLabel5.setForeground(Color.red);\n return false;\n } else {\n\n this.jLabel5.setForeground(jlabelColor);\n this.jLabelError.setVisible(false);\n return true;\n }\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}", "@Override\n\t\t\tpublic boolean test(Integer t) {\n\t\t\t\treturn false;\n\t\t\t}", "private boolean isNumber(char c){\n if(c >= 48 && c < 58)\n return true;\n else{\n return false;\n }\n }", "@Override\r\n\tpublic boolean validate(String num) {\n\t\treturn false;\r\n\t}", "static boolean blanco(int numero){\n\t\tboolean resultado; \n\t\tif (numero > 43){\n\t\t\tresultado = true;\n\t\t}else{\n\t\t\tresultado = false;\n\t\t}\n\t\treturn resultado;\t\n\t}", "@Test\n public void testCheckPrimeNormal_1() {\n assertTrue(checkerNumber.checkPrime(7));\n }", "private int validateNumber(int data, int defaultValue, int minValue, int maxValue)\n {\n return (data < minValue || data > maxValue) ? defaultValue : data;\n }", "@Test\n public void test() {\n assertFalse(checkZeroOnes(\"111000\"));\n }", "private void check2(){\n \n // All methods past the first rule check to see\n // if errorCode is still 0 or not; if not skips respective method\n if(errorCode == 0){\n \n if (!(fourthDigit == fifthDigit + 1)){\n valid = false;\n errorCode = 2;\n }\n }\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}", "public static boolean checkDiv11 (int n) \n {\n boolean flag=true; \n int sum=calcul(n, flag); //call the private calculation method\n if (sum>10||sum<-10) //there's other calculations, it's not a single digit number\n return checkDiv11(sum);\n return sum==0; //check if the calculation ended at zero and if so return true, otherwise false\n }", "private boolean checkInteger(byte buffer[], int sindex, int findex)\n {\n \t\t// 첫 글자를 체크한다. (+, -가 올수 있다.)\n \t\tbyte b = buffer[sindex];\n \t\tif ((b < 48) || (b > 57)) {\n \t\t\tif (b != 45)\n \t\t\t\tif (b != 43) return false;\n \t\t}\n \t\tfor (int i=sindex+1; i<findex; i++) {\n \tif ((buffer[i] < 48) || (buffer[i] > 57)) return false;\n \t\t}// end of for\n \t\treturn true;\n \t}", "private void checkNumber(int buttonNum) {\n if(counter==buttonNum && testStarted==true){\n if (buttonNum == 25) {\n testComplete = true;\n this.stopTimer();\n this.setEnabledStart(false); // Hide Start button because test complete\n }\n errorLabel.setText(\"\");\n counter++;\n }\n else if(testStarted == false){\n // Display test not started error\n errorLabel.setText(\"Press Start to begin the test.\"); \n }\n else{\n // Display wrong number error\n errorLabel.setText(\"Wrong number. Try again.\");\n // Have error message time-out afer 2.5 seconds\n int delay = 2500; //milliseconds\n ActionListener taskPerformer = new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent evt) {\n errorLabel.setText(\"\");\n }\n };\n new Timer(delay, taskPerformer).start();\n }\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 }", "public int valueCheck(int currentValue)\n { \n int currentVal = currentValue;\n \n if(digitChecker == 2)\n currentVal = a[k] % 10;\n else\n currentVal = a[k] / 10;\n \n return currentVal;\n }", "public boolean testForNumber() throws IOException {\n int token = fTokenizer.nextToken();\n\tfTokenizer.pushBack();\n return (token == StreamTokenizer.TT_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 }", "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}", "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}", "public static void checkNumber(List<Token> token) {\r\n\t\tfor (Token tk : token) {\r\n\t\t\tif (tk.getName().matches(\"^\\\\d+$\")) {\r\n\t\t\t\ttk.getFeatures().setLexicalType(String.valueOf(Lexical.NUMBER));\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private boolean isDigit(char toCheck) {\n return toCheck >= '0' && toCheck <= '9';\n }", "private boolean isSSNFourDigits(String toCheck) {\r\n if (toCheck.length() > 0 && toCheck.length() != 4) {\r\n JOptionPane.showMessageDialog\r\n (null, \"Social Security # Must Have 4 Characters\");\r\n return false;\r\n } else if (toCheck.length() == 0) {\r\n JOptionPane.showMessageDialog\r\n (null, \"No Social Security # entered\");\r\n return false;\r\n } else if (toCheck.length() == 4) {\r\n for (int i = 0; i < 4; i++) {\r\n if (!Character.isDigit(toCheck.charAt(i))) {\r\n JOptionPane.showMessageDialog\r\n (null, \"Social Security # Must Have Only Numbers\");\r\n return false;\r\n }\r\n }\r\n }\r\n return true;\r\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 }", "@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 }", "private boolean checkValidQuantity (int quantity){\n if (quantity >= 0){\n return true;\n }\n return false;\n }", "public int errorChecker()\n\t{\n\t\tboolean error = false;\n\t\tint checker=0; //variable to determine how many 1's in the number\n\t\tint row;\n\t\t\n\t\t//loops through the array identifying parity coverage\n\t\tfor (row=0;row<PARITYCOVERAGE.length; row++)\n\t\t{\n\t\t\t\n\t\t\t//calls the method to count the number of parity bits\n\t\t\tchecker = counter(row, true); \n\t\n\t\t\tint compare = 0; //the default value (odd parity)\n\t\t\t\n\t\t\t//checks whether it is even or odd parity\n\t\t\tif (parityType.contentEquals(\"e\"))\n\t\t\t{\n\t\t\t\t//value for even parity\n\t\t\t\tcompare=1;\n\t\t\t}\n\n\t\t\t//checks to see if the result is even or odd\n\t\t\tif (checker%2 ==compare) \n\t\t\t{\n\t\t\t\terror=true;\n\t\t\t\t\n\t\t\t\t//sets parity bit to 1, if parity is even/odd\n\t\t\t\terrorCode[row]=true;\n\t\t\t} else {\n\t\t\t\t\t\n\t\t\t\t//otherwise the bit is 0\n\t\t\t\terrorCode[row]=false;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//if an error has been detected\n\t\tif (error)\n\t\t{\n\t\t\t\n\t\t\t//passes the binary code to the covertor\n\t\t\t//and returns the location of the error\n\t\t\treturn (binaryNumber.decimalConverter(errorCode)-1);\n\t\t\t\t\n\t\t}\n\t\t\n\t\t//if there is no error, returns a negative value\n\t\treturn -1;\n\t\t\t\t\t\n\t}", "public abstract boolean isNumeric();", "@Test\n public void testGetNumberCheckedOut() {\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 }", "public boolean checkNumberIsZero(int number){\n\t\tif(number==0)\n\t\t\treturn false;\n\t\telse\n\t\t\treturn true;\n\t}", "private static boolean isSingleDigit(int number) {\n\t\treturn number < 10;\n\t}", "public boolean verificaNumero() {\n if (contemSomenteNumeros(jTextFieldDeposita.getText()) || contemSomenteNumeros(jTextFieldSaca.getText())\n || contemSomenteNumeros(jTextFieldTransfere.getText())) {\n return true;\n } else {\n JOptionPane.showMessageDialog(this, \"Digite somente números, por favor. \", \"Atenção !!\", JOptionPane.ERROR_MESSAGE);\n return false;\n }\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}", "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 check() {\r\n\t\tint num = 0;\r\n\t\tdo {\r\n\t\t\ttry {\r\n\t\t\t\tnum = input.nextInt();\t\t\t// unos \r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tcatch (Exception e) {\t\t\t\t// hvatanje greske\r\n\t\t\t\tSystem.out.println(\"Pogresan unos, probajte ponovo\");\r\n\t\t\t\tinput.nextLine();\r\n\t\t\t}\r\n\t\t} while (true);\r\n\t\treturn num;\r\n\t}", "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}", "public static void main(String[] args) {\n Numbers numbers = new Numbers(9,988,77,66);\n String maxnum = numbers.getMaxNum();\n //if (maxnum.equals(\"99989788\")) {\n if (maxnum.equals(\"99887766\")) {\n System.out.println(\"right\");\n } else {\n System.out.println(\"wrong\");\n }\n }", "public static boolean checkNumber(int a[], int x) {\n\t\t\n \n if(a.length==1)\n {\n if(a[0]==x){\n return true;\n }\n else\n return false;\n \n }\n if(a[0]==x)\n return true;\n \n int arr[]=new int[a.length-1];\n for(int i=1;i<a.length;i++)\n {\n arr[i-1]=a[i];\n }\n \n boolean check = checkNumber(arr,x);\n return check;\n\t}", "private boolean hasNumberThreshold() {\r\n return entity.getActualNumber() < entity.getTheoreticalNumber();\r\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 int Check(){\n return 6;\n }", "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 digits() {\r\n return ALT(\r\n GO() && RANGE('1','9') && decimals() || OK() && CHAR('0') && hexes()\r\n );\r\n }", "private boolean isNumberAhead() {\r\n\t\treturn Character.isDigit(expression[currentIndex]);\r\n\t}", "public boolean checkInteger(String input, int gridSize)\n {\n Scanner console = new Scanner(System.in);\n boolean error = true;\n boolean value = true;\n int result = 0;\n while(error)\n {\n if(checkInput(input) == true)\n {\n result = Integer.parseInt(input);\n if(result >= 0 && result < gridSize)\n {\n error = false;\n }\n else\n {\n System.out.println(\"Please enter a value between 0 and \"+(gridSize-1));\n value = false;\n error = false;\n }\n }\n else\n {\n System.out.println(\"Wrong Input, please enter correct input\");\n value = false;\n error = false;\n }\n }\n return value;\n }" ]
[ "0.8381788", "0.7305477", "0.72780716", "0.7163421", "0.71541584", "0.7002486", "0.6883318", "0.68469435", "0.68469435", "0.68469435", "0.6803469", "0.6785388", "0.6668098", "0.6604195", "0.65817314", "0.6578957", "0.65682775", "0.6555967", "0.6521113", "0.6510102", "0.6489304", "0.6472497", "0.64608425", "0.64574385", "0.64413863", "0.6405114", "0.63669914", "0.63507974", "0.6335277", "0.63337445", "0.6330208", "0.63169205", "0.6289559", "0.62754774", "0.6270555", "0.62597585", "0.6248742", "0.6227022", "0.6224955", "0.6224244", "0.6199931", "0.61989015", "0.6194117", "0.6188126", "0.6174096", "0.6173335", "0.6145415", "0.6117462", "0.61100745", "0.6109628", "0.6099646", "0.60922664", "0.6087294", "0.60839874", "0.60716", "0.60624033", "0.60619175", "0.60549027", "0.6047767", "0.60364205", "0.6029829", "0.6027497", "0.60209334", "0.6020809", "0.6018921", "0.60171056", "0.6014524", "0.6006925", "0.59903055", "0.59901386", "0.5981742", "0.59800273", "0.5974296", "0.5973914", "0.59738463", "0.59672225", "0.5963118", "0.5956218", "0.59550405", "0.59386766", "0.5928021", "0.59184575", "0.59168476", "0.5903929", "0.58896506", "0.5888317", "0.5882088", "0.58789575", "0.58768934", "0.5873254", "0.5866576", "0.58624554", "0.58559", "0.5848441", "0.58467185", "0.5839424", "0.5837676", "0.5837442", "0.5832556", "0.58318305", "0.583015" ]
0.0
-1
/DBDataSource ds = new DBDataSource(); ds.setName("mysql"); ds.setDatabaseType(DatabaseType.MYSQL); ds.setDriverClass("com.mysql.jdbc.Driver"); ds.setUrl("jdbc:mysql://localhost:3306/"); ds.setUserName("root"); ds.setPwd("7758521"); ClassPathDataSource ds = ClassPathDataSource.getInstance();
@Override public void start(Stage primaryStage) { try { FtpDataSource ds = FtpDataSource.getInstance("115.29.163.55", "wei_jc", "wjcectong2013#"); ds.load(); primaryStage.setScene(new Scene(new MUTree(ds.getNavTree()))); } catch (Exception e) { e.printStackTrace(); } primaryStage.show(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public DataBaseConnector()\n {\n dataSource = new SQLServerDataSource();\n dataSource.setServerName(\"EASV-DB2\");\n dataSource.setPortNumber(1433);\n dataSource.setDatabaseName(\"AutistMovies\");\n dataSource.setUser(\"CS2017A_15\");\n dataSource.setPassword(\"Bjoernhart1234\");\n }", "@Bean(name=\"dataSource\")\n\tpublic DataSource getDataSource() {\n\t\tBasicDataSource dataSource = new BasicDataSource();\n\t\tdataSource.setDriverClassName(\"com.mysql.jdbc.Driver\");\n\t\tdataSource.setUrl(\"jdbc:mysql://localhost:3306/elearningforum\");\n\t\tdataSource.setUsername(\"root\");\n\t\tdataSource.setPassword(\"\");\n\t\tdataSource.addConnectionProperty(\"useUnicode\", \"yes\");\n\t\tdataSource.addConnectionProperty(\"characterEncoding\", \"UTF-8\");\n\t\treturn dataSource;\n\t}", "@Bean(name = \"dataSource\")\n\tpublic DataSource getDataSource() {\n\t\tDriverManagerDataSource dataSource = new DriverManagerDataSource();\n\t\tdataSource.setDriverClassName(\"com.mysql.cj.jdbc.Driver\");\n\t\tdataSource.setUrl(\"jdbc:mysql://localhost:3306/test_db\");\n\t\tdataSource.setUsername(\"root\");\n\t\tdataSource.setPassword(\"password\");\n\t\treturn dataSource;\n\t}", "private void initConnection() {\n\t\tMysqlDataSource ds = new MysqlDataSource();\n\t\tds.setServerName(\"localhost\");\n\t\tds.setDatabaseName(\"sunshine\");\n\t\tds.setUser(\"root\");\n\t\tds.setPassword(\"sqlyella\");\n\t\ttry {\n\t\t\tConnection c = ds.getConnection();\n\t\t\tSystem.out.println(\"Connection ok\");\n\t\t\tthis.setConn(c);\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Bean\n\tpublic BasicDataSource getDataSource() {\n\t\tBasicDataSource ds = new BasicDataSource();\n\t\tds.setDriverClassName(\"com.mysql.jdbc.Driver\");\n\t\tds.setUrl(\"jdbc:mysql://localhost:3306/manageservice?useSSL=false\");\n\t\tds.setUsername(\"root\");\n\t\tds.setPassword(\"251090\");\n\t\tds.setMaxTotal(2);\n\t\tds.setInitialSize(1);\n\t\tds.setTestOnBorrow(true);\n\t\tds.setValidationQuery(\"SELECT 1\");\n\t\tds.setDefaultAutoCommit(true);\n\t\treturn ds;\n\t}", "public void connectToDB(){\n\ttry {\n\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n\t\tconnection=DriverManager.getConnection(\"jdbc:mysql://localhost:3306/patient\",\"root\",\"7417899737\");\n\t} catch (ClassNotFoundException e) {\n\t\t\n\t\te.printStackTrace();\n\t} catch (SQLException e) {\n\t\t\n\t\te.printStackTrace();\n\t}\n\t\n}", "public static void main(String[] args) {\n\t\tString DB_DRIVER = \"com.mysql.cj.jdbc.Driver\";\r\n\t\tString DB_URL = \"jdbc:mysql://192.168.150.128:3306/testdb\";\r\n\t\tString DB_USERNAME = \"lrjmysql\"; \r\n\t\tString DB_PASSWORD = \"Qwer.1234\";\r\n\t\t\r\n\t\t//创建连接池实例\r\n ComboPooledDataSource ds = new ComboPooledDataSource();\r\n try {\r\n \t//设置连接池连接数据库所需的驱动\r\n\t\t\tds.setDriverClass(DB_DRIVER);\r\n\t\t\t//设置连接数据库的URL\r\n\t\t\tds.setJdbcUrl(DB_URL);\r\n\t\t\t//设置接连数据库的用户名\r\n\t\t\tds.setUser(DB_USERNAME);\r\n\t\t\t//设置连接数据库的密码\r\n\t\t\tds.setPassword(DB_PASSWORD);\r\n\t\t\t//设置连接池的最大连接数\r\n\t\t\tds.setMaxPoolSize(40);\r\n\t\t\t//设置连接池的最小连接数\r\n\t\t\tds.setMinPoolSize(10);\r\n\t\t\t//设置连接池的初始连接数\r\n\t\t\tds.setInitialPoolSize(10);\r\n\t\t\t//设置连接池的缓存Statement的最大数\r\n\t\t\tds.setMaxStatements(180);\r\n\t\t\t//以上也可以通过新建一个配置文件,命名必须为c3p0-config.xml,\r\n\t\t\t//必须放在src目录下,c3p0包会默认加载src目录下的c3p0-config.xml文件。来实现相关设置\r\n\t\t\t//可参考 https://blog.csdn.net/qq_42035966/article/details/81332343\r\n\t\t\t\r\n\t\t\t//获取数据库连接\r\n\t\t\tConnection conn = ds.getConnection();\r\n\t\t\tSystem.out.println(\"获取数据库连接成功\");\r\n\t\t\t\r\n\t\t} catch (PropertyVetoException 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}\r\n \r\n \r\n\t}", "public static boolean initDatasource() {\n // first we locate the driver\n String pgDriver = \"org.postgresql.Driver\";\n try {\n ls.debug(\"Looking for Class : \" + pgDriver);\n Class.forName(pgDriver);\n } catch (Exception e) {\n ls.fatal(\"Cannot find postgres driver (\" + pgDriver + \")in class path\", e);\n return false;\n }\n\n try{ \n String url = \"jdbc:postgresql://inuatestdb.cctm7tiltceo.us-west-2.rds.amazonaws.com:5432/inua?user=inua&password=jw8s0F4\";\n dsUnPooled =DataSources.unpooledDataSource(url);\n dsPooled = DataSources.pooledDataSource(dsUnPooled);\n \n poolInit = true;\n }\n catch (Exception e){ \n ls.fatal(\"SQL Exception\",e);\n System.out.println(\"initDataSource\" + e);\n return false;\n }\n \n return true;\n}", "@Bean(name = \"dataSource\")\n\tpublic DataSource dataSource() {\n\t\tEmbeddedDatabaseBuilder builder = new EmbeddedDatabaseBuilder();\n\t\tEmbeddedDatabase db = builder.setType(EmbeddedDatabaseType.HSQL).addScript(\"db/create-db.sql\").addScript(\"db/insert-data.sql\").build();\n\t\treturn db;\n\t}", "public static void main(String args[])throws Exception {\n \n \n String driver = \"com.mysql.jdbc.Driver\";\n\n \t\t \n \tClass.forName(driver);\n\n \t\tString url = \"jdbc:mysql://127.0.0.1:3306/doc\";\n\n \t\t\n \t\t Connection c= DriverManager.getConnection(url, \"root\", \"\" );\n \t\t System.out.println(c.getCatalog());\n\n \n //conexao.setDataSource(url);\n //conexao.setConexao();\n //conexao.getConexao().setCatalog(\"sae\");\n // System.out.println(conexao.getConexao().getCatalog());\n // conexao.setDataSource(\"jdbc:interbase://localhost/\"+\n // Persistencia.CAMINHO+\"Noticia.gdb\"); //d:\\\\IPT-Web\\\\escola\\\\\n\t\n}", "public static DataSource getMySQLDataSource() {\n\t\tProperties props = new Properties();\n\t\tFileInputStream fis = null;\n\t\tMysqlDataSource mysqlDS = null;\n\t\ttry {\n\t\t\tfis = new FileInputStream(\"db.properties\");\n\t\t\tprops.load(fis);\n\t\t\tmysqlDS = new MysqlDataSource();\n\t\t\tmysqlDS.setURL(props.getProperty(\"MYSQL_DB_URL\"));\n\t\t\tmysqlDS.setUser(props.getProperty(\"MYSQL_DB_USERNAME\"));\n\t\t\tmysqlDS.setPassword(props.getProperty(\"MYSQL_DB_PASSWORD\"));\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"db.properties is not found\");\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn mysqlDS;\n\t}", "private DataSource createDataSource(final String url) {\n // DataSource Setup with apache commons \n BasicDataSource dataSource = new BasicDataSource();\n dataSource.setDriverClassName(\"org.hsqldb.jdbcDriver\");\n dataSource.setUrl(url);\n dataSource.setUsername(\"sa\");\n dataSource.setPassword(\"\");\n\n return dataSource;\n }", "public void setup(String driverClass, String url, String user, String pass) throws SQLException {\n\t BasicDataSource bds = new BasicDataSource();\n bds.setDriverClassName(driverClass);\n bds.setUrl(url);\n bds.setMaxTotal(MAX_TOTAL_CONNECTIONS);\n bds.setMaxIdle(MAX_IDLE_CONNECTIONS);\n bds.setUsername(user);\n bds.setPassword(pass);\n bds.setValidationQuery(\"SELECT 1\");\n bds.setTestOnBorrow(true);\n bds.setDefaultAutoCommit(true);\n\n //check that everything works OK \n bds.getConnection().close();\n\n //initialize the jdbc template utility\n jdbcTemplate = new JdbcTemplate(bds);\n\n //keep the dataSource for the low-level manual example to function (not actually required)\n dataSource = bds;\n }", "@Bean\n\tpublic DataSource dataSource () {\n\t\treturn DataSourceBuilder.create()\n\t\t\t\t\t\t\t\t.url(\"jdbc:mysql://localhost:3306/sillibus\")\n\t\t\t\t\t\t\t\t.username(\"root\")\n\t\t\t\t\t\t\t\t.password(\"root\")\n\t\t\t\t\t\t\t\t.driverClassName(databaseDriver)\n\t\t\t\t\t\t\t\t.build();\n\t}", "private SupplierDaoJdbc(DataSource dataSource) {\n SupplierDaoJdbc.dataSource = dataSource;\n }", "@Bean\r\n\tpublic DataSource getDataSource() {\r\n\t\tfinal HikariDataSource dataSource = new HikariDataSource();\r\n\t\t/*\r\n\t\t * The Following is the Oracle Database Configuration With Hikari Datasource\r\n\t\t */\r\n\t\tdataSource.setMaximumPoolSize(maxPoolSize);\r\n\t\tdataSource.setMinimumIdle(minIdleTime);\r\n\t\tdataSource.setDriverClassName(driver);\r\n\t\tdataSource.setJdbcUrl(url);\r\n\t\tdataSource.addDataSourceProperty(\"user\", userName);\r\n\t\tdataSource.addDataSourceProperty(\"password\", password);\r\n\t\tdataSource.addDataSourceProperty(\"cachePrepStmts\", cachePrepareStmt);\r\n\t\tdataSource.addDataSourceProperty(\"prepStmtCacheSize\", prepareStmtCacheSize);\r\n\t\tdataSource.addDataSourceProperty(\"prepStmtCacheSqlLimit\", prepareStmtCacheSqlLimit);\r\n\t\tdataSource.addDataSourceProperty(\"useServerPrepStmts\", useServerPrepareStmt);\r\n\t\treturn dataSource;\r\n\t}", "public void setDataSource(DataSource ds);", "public void setDataSource(DataSource ds);", "public void setDataSource(DataSource ds);", "public void setDataSource(DataSource ds);", "public void setDataSource(DataSource ds);", "public void setDataSource(DataSource ds);", "void getConnectiondb() throws SQLException, ClassNotFoundException{\n // TODO code application logic here\n \n String user = \"root\";\n String pass = \"test\";\n\n myConn = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/aud_jdbms\", user, pass);\n \n\n \n }", "@Bean\n public DataSource dataSource() {\n EmbeddedDatabaseBuilder builder = new EmbeddedDatabaseBuilder();\n EmbeddedDatabase db = builder\n .setType(EmbeddedDatabaseType.HSQL) //.H2 or .DERBY\n .addScript(\"db/sql/create-db.sql\")\n .addScript(\"db/sql/insert-data.sql\")\n .build();\n return db;\n }", "public synchronized void setDataSource(String dataSource){\n\t\tthis.dataSource=dataSource;\n\t}", "private DataSource initializeDataSourceFromSystemProperty() {\n DriverManagerDataSource dataSource = new DriverManagerDataSource();\n dataSource.setDriverClassName(System.getProperty(PropertyName.JDBC_DRIVER, PropertyDefaultValue.JDBC_DRIVER));\n dataSource.setUrl(System.getProperty(PropertyName.JDBC_URL, PropertyDefaultValue.JDBC_URL));\n dataSource.setUsername(System.getProperty(PropertyName.JDBC_USERNAME, PropertyDefaultValue.JDBC_USERNAME));\n dataSource.setPassword(System.getProperty(PropertyName.JDBC_PASSWORD, PropertyDefaultValue.JDBC_PASSWORD));\n\n return dataSource;\n }", "@Override\n\tprotected void initDataSource() {\n\t}", "public DBHandler() {\n\n driverName = \"com.mysql.jdbc.Driver\";\n url = \"jdbc:mysql://us-cdbr-azure-southcentral-e.cloudapp.net/newsstand\";\n userId = (String) \"ba7e286a39ae9e\";\n password = (String) \"d89b6d9b\";\n \n }", "@Override\n\tpublic void setDataSource(DataSource dataSource) {\n\t}", "public void setDatasource( String ds )\n {\n datasource = ds;\n }", "@Override\n public Datasource createDatasource(final String name, final String url, \n final String username, final String password, final String driverClassName) \n throws ConfigurationException, DatasourceAlreadyExistsException {\n List<Datasource> conflictingDS = new ArrayList<>();\n for (Datasource datasource : getDatasources()) {\n if (name.equals(datasource.getJndiName())) {\n conflictingDS.add(datasource);\n }\n }\n if (conflictingDS.size() > 0) {\n throw new DatasourceAlreadyExistsException(conflictingDS);\n }\n if (tomcatVersion.isAtLeast(TomcatVersion.TOMCAT_55)) {\n if (tomeeVersion != null) {\n // we need to store it to resources.xml\n TomeeResources resources = getResources(true);\n assert resources != null;\n modifyResources( (TomeeResources tomee) -> {\n Properties props = new Properties();\n props.put(\"userName\", username); // NOI18N\n props.put(\"password\", password); // NOI18N\n props.put(\"jdbcUrl\", url); // NOI18N\n props.put(\"jdbcDriver\", driverClassName); // NOI18N\n StringWriter sw = new StringWriter();\n try {\n props.store(sw, null);\n } catch (IOException ex) {\n // should not really happen\n LOGGER.log(Level.WARNING, null, ex);\n }\n int idx = tomee.addTomeeResource(sw.toString());\n tomee.setTomeeResourceId(idx, name);\n tomee.setTomeeResourceType(idx, \"javax.sql.DataSource\"); // NOI18N\n });\n } else {\n // Tomcat 5.5.x or Tomcat 6.0.x\n modifyContext((Context context) -> {\n int idx = context.addResource(true);\n context.setResourceName(idx, name);\n context.setResourceAuth(idx, \"Container\"); // NOI18N\n context.setResourceType(idx, \"javax.sql.DataSource\"); // NOI18N\n context.setResourceDriverClassName(idx, driverClassName);\n context.setResourceUrl(idx, url);\n context.setResourceUsername(idx, username);\n context.setResourcePassword(idx, password);\n context.setResourceMaxActive(idx, \"20\"); // NOI18N\n context.setResourceMaxIdle(idx, \"10\"); // NOI18N\n context.setResourceMaxWait(idx, \"-1\"); // NOI18N\n });\n }\n } else {\n // Tomcat 5.0.x\n modifyContext((Context context) -> {\n int idx = context.addResource(true);\n context.setResourceName(idx, name);\n context.setResourceAuth(idx, \"Container\"); // NOI18N\n context.setResourceType(idx, \"javax.sql.DataSource\"); // NOI18N\n // check whether resource params not already defined\n ResourceParams[] resourceParams = context.getResourceParams();\n for (int i = 0; i < resourceParams.length; i++) {\n if (name.equals(resourceParams[i].getName())) {\n // if this happens in means that for this ResourceParams\n // element was no repspective Resource element - remove it\n context.removeResourceParams(resourceParams[i]);\n }\n }\n ResourceParams newResourceParams = createResourceParams(\n name,\n new Parameter[] {\n createParameter(\"factory\", \"org.apache.commons.dbcp.BasicDataSourceFactory\"), // NOI18N\n createParameter(\"driverClassName\", driverClassName), // NOI18N\n createParameter(\"url\", url), // NOI18N\n createParameter(\"username\", username), // NOI18N\n createParameter(\"password\", password), // NOI18N\n createParameter(\"maxActive\", \"20\"), // NOI18N\n createParameter(\"maxIdle\", \"10\"), // NOI18N\n createParameter(\"maxWait\", \"-1\") // NOI18N\n }\n );\n context.addResourceParams(newResourceParams);\n });\n }\n return new TomcatDatasource(username, url, password, name, driverClassName);\n }", "private void createDBConnection() {\n try {\n Class.forName(\"com.mysql.jdbc.Driver\");\n Connection con = DriverManager.getConnection(\n \"jdbc:mysql://10.27.8.144:3306/databasename5\", \"user5\", \"p4ssw0rd\");\n Statement stmt = con.createStatement();\n ResultSet rs = stmt.executeQuery(\"select * from emp\");\n while (rs.next())\n System.out.println(rs.getInt(1) + \" \" + rs.getString(2) + \" \" + rs.getString(3));\n con.close();\n } catch (Exception e) {\n System.out.println(e);\n }\n }", "public DatabaseConnector() {\n HikariConfig config = new HikariConfig();\n config.setJdbcUrl(\"jdbc:postgresql://localhost:5547/go_it_homework\");\n config.setUsername(\"postgres\");\n config.setPassword(\"Sam@64hd!+4\");\n this.ds = new HikariDataSource(config);\n ds.setMaximumPoolSize(5);\n }", "@Bean(destroyMethod = \"close\")\n public HikariDataSource dataSource() {\n HikariDataSource dataSource = new HikariDataSource();\n config.setJdbcUrl(\"jdbc:mysql://projects-db.ewi.tudelft.nl/projects_oopp5353\");\n config.setUsername(\"pu_oopp5353\");\n config.setPassword(\"WZijSwzXlaBG\");\n // config.setJdbcUrl(\"jdbc:mysql://localhost:3306/reserve\");\n // config.setUsername(\"user\");\n // config.setPassword(\"password\");\n HikariDataSource ds = new HikariDataSource(config);\n return ds;\n }", "@Override\n public void initializeConnection() throws SQLException, ClassNotFoundException {\n \n Class.forName(\"com.mysql.jdbc.Driver\");\n //setConnection(DriverManager.getConnection(\"jdbc:mysql://localhost/rabidusDB\",\"root\",\"password\"));\n setConnection(DriverManager.getConnection( host + \":3306/\" + databaseName, user, password));\n \n }", "public void setDataSource(DataSource ds) throws SQLException {\n\t\tthis.ds = ds;\n\t\tthis.con = ds.getConnection();\n\t}", "@Override\n public void setDataSource(DataSource dataSource) {\n }", "@Override\n public void setDataSource(DataSource dataSource) {\n }", "@Override\n public void setDataSource(DataSource dataSource) {\n }", "String getDataSource();", "@Profile(\"production\")\r\n @Bean(name=\"DataSourceBean\") \r\n public DataSource getDataSource(){\r\n final JndiDataSourceLookup dsLookup = new JndiDataSourceLookup();\r\n dsLookup.setResourceRef(true);\r\n DataSource dataSource = dsLookup.getDataSource(\"jdbc/eshop_db\"); \t \r\n return dataSource;\r\n }", "public void setDataSource(DataSource dataSource) {\n\t\tthis.dataSource = dataSource; // Sets the current object this of the class's attribute dataSource eqal to the object of datasource\n\t\tthis.jdbcTemplateObject = new JdbcTemplate(dataSource); // Instantiation of the JDBCTemplateObject class which takes in the object of datasource to set up data synchronization\n\t\t\n\t}", "public JDBCCityDAO(DataSource dataSource) {\n\t\tthis.jdbcTemplate = new JdbcTemplate(dataSource);\n\t}", "@SuppressWarnings(\"unchecked\")\npublic final void initDatabase()throws SQLException {\n try {\n Class.forName(\"com.mysql.jdbc.Driver\");\n con =(Connection) DriverManager.getConnection(\"jdbc:mysql://localhost:3306/yajnab?zeroDateTimeBehavior=convertToNull\",\"root\",\"11\"); \n } \n catch (ClassNotFoundException | SQLException e) {\n }\n }", "private Connection connect_db() {\n MysqlDataSource dataSource = new MysqlDataSource();\n dataSource.setUser(db_user);\n dataSource.setPassword(db_pass);\n dataSource.setServerName(db_url);\n dataSource.setDatabaseName(db_database);\n\n Connection conn = null;\n try {\n conn = dataSource.getConnection();\n conn.setAutoCommit(false);\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n }\n return conn;\n }", "@Bean\n\tpublic DataSource getDataSource() {\n\t\tEmbeddedDatabaseBuilder builder = new EmbeddedDatabaseBuilder();\n\t\tEmbeddedDatabase db = builder.setType(EmbeddedDatabaseType.HSQL)\n\t\t\t\t.addScript(\"crate-db.sql\")\n\t\t\t\t.addScript(\"insert-db.sql\")\n\t\t\t\t.build();\n\t\treturn db;\n\t}", "public static DataSource MySqlConn() throws SQLException {\n\t\t\n\t\t/**\n\t\t * check if the database object is already defined\n\t\t * if it is, return the connection, \n\t\t * no need to look it up again\n\t\t */\n\t\tif (MySql_DataSource != null){\n\t\t\treturn MySql_DataSource;\n\t\t}\n\t\t\n\t\ttry {\n\t\t\t/**\n\t\t\t * This only needs to run one time to get the database object\n\t\t\t * context is used to lookup the database object in MySql\n\t\t\t * MySql_Utils will hold the database object\n\t\t\t */\n\t\t\tif (context == null) {\n\t\t\t\tcontext = new InitialContext();\n\t\t\t}\n\t\t\tContext envContext = (Context)context.lookup(\"java:/comp/env\");\n\t\t\tMySql_DataSource = (DataSource)envContext.lookup(\"jdbc/customers\");\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t return MySql_DataSource;\n\t}", "public void init(){\n\n stmt = null;\n\n try{\n\n Class.forName(\"com.mysql.jdbc.Driver\");\n myConnection=DriverManager.getConnection(DBUrl,userName,password);\n stmt=myConnection.createStatement();\n }\n catch(ClassNotFoundException | SQLException e){\n System.out.println(\"Failed to get connection\");\n }\n return;\n }", "public void initConnection(){\n \t String HOST = \"jdbc:mysql://10.20.63.22:3306/cloud\";\n String USERNAME = \"root\";\n String PASSWORD = \"test\";\n try {\n Class.forName(\"com.mysql.jdbc.Driver\");\n } catch (ClassNotFoundException ex) {\n ex.printStackTrace();\n }\n \n try {\n conn = DriverManager.getConnection(HOST, USERNAME, PASSWORD);\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n }", "public interface IDataSourceConfiguration {\r\n\r\n\t/**\r\n\t * \r\n\t * @return Nombre del driver \r\n\t */\r\n\tpublic String getDriverName();\r\n\t\r\n\t/**\r\n\t * \r\n\t * @param driverName Nombre del driver\r\n\t */\r\n\tpublic void setDriverName(String driverName);\r\n\t\r\n\t/**\r\n\t * \r\n\t * @return User name de conexion\r\n\t */\r\n\tpublic String getUserName();\r\n\t\r\n\t/**\r\n\t * \r\n\t * @param userName User name de conexion\r\n\t */\r\n\tpublic void setUserName(String userName);\r\n\t\r\n\t/**\r\n\t * \r\n\t * @return Password de conexion\r\n\t */\r\n\tpublic String getPassword();\r\n\t\r\n\t/**\r\n\t * \r\n\t * @param password Password de conexion\r\n\t */\r\n\tpublic void setPassword(String password);\r\n\t\r\n\t/**\r\n\t * \r\n\t * @return URL de conexion. Por ejemplo jdbc:postgresql://55.55.55.55:5432/ehcos\r\n\t */\r\n\tpublic String getUrl();\r\n\t\r\n\t/**\r\n\t * \r\n\t * @param url URL de conexion. Por ejemplo jdbc:postgresql://55.55.55.55:5432/ehcos\r\n\t */\r\n\tpublic void setUrl(String url);\r\n\t\r\n\t/**\r\n\t * \r\n\t * @return Alternative User name de conexion\r\n\t */\r\n\tpublic String getAltUserName();\r\n\t\r\n\t/**\r\n\t * \r\n\t * @param userName Alternative User name de conexion\r\n\t */\r\n\tpublic void setAltUserName(String altUserName);\r\n\t\r\n\t/**\r\n\t * \r\n\t * @return Password de conexion\r\n\t */\r\n\tpublic String getAltPassword();\r\n\t\r\n\t/**\r\n\t * \r\n\t * @param password Alternative Password de conexion\r\n\t */\r\n\tpublic void setAltPassword(String altPassword);\r\n\t\r\n}", "@Bean\n public DataSource dataSource() {\n EmbeddedDatabaseBuilder builder = new EmbeddedDatabaseBuilder();\n return builder.setType(EmbeddedDatabaseType.HSQL).build();\n }", "public CMySQLDataStore(String Sname, int Pnumber) {\r\n \r\n MysqlDataSource objDs = new MysqlDataSource();\r\n\r\n objDs.setServerName(Sname);\r\n objDs.setPortNumber(Pnumber);\r\n \r\n objDs.setUser(CSettingManager.getSetting(\"DB_User\"));\r\n objDs.setPassword(CSettingManager.getSetting(\"DB_Pwd\"));\r\n objDs.setDatabaseName(CSettingManager.getSetting(\"DB_Database\"));\r\n\r\n ds = objDs;\r\n\r\n }", "public DataSourcePool() throws NamingException, \r\n SQLException, InstantiationException, IllegalAccessException, ClassNotFoundException {\r\n InitialContext ctx = new InitialContext();\r\n //DataSource ds =(DataSource)ctx.lookup(\"java:jboss/jdbc/webapp\");\r\n DataSource ds =(DataSource)ctx.lookup(\"java:jboss/datasources/WebApp\");\r\n connection = ds.getConnection();\r\n }", "public void init() {\n\n try {\n Context initCtx = new InitialContext();\n Context envCtx = (Context) initCtx.lookup(\"java:comp/env\");\n ds = (DataSource) envCtx.lookup(\"jdbc/QuotingDB\");\n// dbCon = ds.getConnection();\n }\n catch (javax.naming.NamingException e) {\n System.out.println(\"A problem occurred while retrieving a DataSource object\");\n System.out.println(e.toString());\n }\n\n }", "public static ConnectionSource cs() {\n String dbName = \"pegadaian\";\n String dbUrl = \"jdbc:mysql://localhost:3306/\" + dbName;\n String user = \"root\";\n String pass = \"catur123\";\n\n //inisiasi sumber koneksi\n ConnectionSource csInit = null;\n try {\n csInit = new JdbcConnectionSource(dbUrl, user, pass);\n } catch (SQLException ex) {\n Logger.getLogger(Koneksi.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n //kembalikan hasil koneksi\n return csInit;\n\n }", "@Bean\n public DataSource dataSource() {\n DriverManagerDataSource dataSource = new DriverManagerDataSource();\n dataSource.setDriverClassName(env.getRequiredProperty(DRIVER_CLASS_NAME));\n dataSource.setUrl(env.getRequiredProperty(DATABASE_URL));\n dataSource.setUsername(env.getRequiredProperty(DATABASE_USERNAME));\n dataSource.setPassword(env.getRequiredProperty(DATABASE_PASSWORD));\n\n return dataSource;\n }", "public JdbcDao(DataSource dataSource) {\n\t\tsuper();\n\t\tthis.setDataSource(dataSource);\n\t}", "public void setDataSource(DataSource dataSource) {\n\t\tthis.dataSource = dataSource;\n\t\tthis.jdbcTemplate = new JdbcTemplate(dataSource);\n\t}", "public DatabaseConnector() {\n String dbname = \"jdbc/jobs\";\n\n try {\n ds = (DataSource) new InitialContext().lookup(\"java:comp/env/\" + dbname);\n } catch (NamingException e) {\n System.err.println(dbname + \" is missing: \" + e.toString());\n }\n }", "private Connection database() {\n Connection con = null;\n String db_url = \"jdbc:mysql://localhost:3306/hospitalms\";\n String db_driver = \"com.mysql.jdbc.Driver\";\n String db_username = \"root\";\n String db_password = \"\";\n \n try {\n Class.forName(db_driver);\n con = DriverManager.getConnection(db_url,db_username,db_password);\n } \n catch (SQLException | ClassNotFoundException ex) { JOptionPane.showMessageDialog(null,ex); }\n return con;\n }", "@Autowired(required = false)\n\tpublic void setDataSource(DataSource dataSource) {\n\t\tsimpleJdbcTemplate = new JdbcTemplate(dataSource);\n\t\tsimpleJdbcInsert = new SimpleJdbcInsert(dataSource);\n\t\tnamedParameterJdbcOperations = new NamedParameterJdbcTemplate(dataSource);\n\t\tthis.dialect = getDialect(dataSource);\n\t}", "public SimpleDriverDataSource getDataSource() {\n\t\tString path = context.getRealPath(\"/\");\n\t\tString dbpath = path + Utility.DB_PATH;\n\t\tSimpleDriverDataSource dataSource = new SimpleDriverDataSource();\n\t\tFileInputStream fileInputStreamSystemSettings = null;\n\t\tProperties prop = new Properties();\n\t\ttry {\n\t\t\tfileInputStreamSystemSettings = new FileInputStream(dbpath);\n\t\t\ttry {\n\t\t\t\tprop.load(fileInputStreamSystemSettings);\n\t\t\t\ttry {\n\t\t\t\t\t// set datasource parameters\n\t\t\t\t\t// set driver\n\t\t\t\t\tdataSource.setDriver(new com.mysql.jdbc.Driver());\n\t\t\t\t\t// set username\n\t\t\t\t\tdataSource.setUsername(prop.getProperty(\"jdbc.username\"));\n\t\t\t\t\t// set password\n\t\t\t\t\tdataSource.setPassword(prop.getProperty(\"jdbc.password\"));\n\t\t\t\t\t// set jdbc url\n\t\t\t\t\tdataSource.setUrl(prop.getProperty(\"jdbc.url\"));\n\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tfileInputStreamSystemSettings.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\treturn dataSource;\n\t}", "public static void main(String[] args) {\n\t\t final String JDBC_DRIVER = \"com.mysql.jdbc.Driver\"; \r\n\t\t final String DB_URL = \"jdbc:mysql://localhost:5235\";\r\n\r\n\t\t // Database credentials\r\n\t\t final String USER = \"root\";\r\n\t\t final String PASS = \"[email protected]\";\r\n\t\t \r\n\t\t \r\n\t\t Connection conn = null;\r\n\t\t Statement stmt = null;\r\n\r\n\t}", "public JNDIConnector(DataSource dataSource) {\n this.dataSource = dataSource;\n }", "public void connect() {\n try {\n Class.forName(\"com.mysql.jdbc.Connection\");\n //characterEncoding=latin1&\n //Class.forName(\"org.apache.derby.jdbc.EmbeddedDriver\");\n //Connection conn = new Connection();\n url += \"?characterEncoding=latin1&useConfigs=maxPerformance&useSSL=false\";\n conn = DriverManager.getConnection(url, userName, password);\n if (conn != null) {\n System.out.println(\"Established connection to \"+url+\" Database\");\n }\n }\n catch(SQLException e) {\n throw new IllegalStateException(\"Cannot connect the database \"+url, e);\n }\n catch(ClassNotFoundException e) {\n e.printStackTrace();\n }\n\n }", "public static void main(String[] args) {\n\t\t try {\r\n\t Class.forName(\"com.mysql.jdbc.Driver\");\r\n\t System.out.println(\"成功加载sql驱动\");\r\n\t } catch (ClassNotFoundException e) {\r\n\t // TODO Auto-generated catch block\r\n\t System.out.println(\"找不到sql驱动\");\r\n\t e.printStackTrace();\r\n\t }\r\n\t String url=\"jdbc:mysql://localhost:3306/shop\"; \r\n\t Connection conn;\r\n\t try {\r\n\t conn = (Connection) DriverManager.getConnection(url,\"root\",\"password\");\r\n\t //创建一个Statement对象\r\n\t Statement stmt = (Statement) conn.createStatement(); //创建Statement对象\r\n\t System.out.print(\"成功连接到数据库!\");\r\n\t ResultSet rs = stmt.executeQuery(\"select * from user\");\r\n\t //user 为你表的名称\r\n\t System.out.println(rs.toString());\r\n\t while (rs.next()) {\r\n\t System.out.println(rs.getString(\"name\"));\r\n\t }\r\n\r\n\t stmt.close();\r\n\t conn.close();\r\n\t } catch (SQLException e){\r\n\t System.out.println(\"fail to connect the database!\");\r\n\t e.printStackTrace();\r\n\t }\r\n\t}", "public void setDatasource(DataSource source) {\n datasource = source;\n }", "public void setDataSource(DataSource dataSource) {\n this.dataSource = dataSource;\n }", "public void setDataSource(DataSource dataSource) {\n this.dataSource = dataSource;\n }", "public void setDataSource(DataSource dataSource) {\n this.dataSource = dataSource;\n }", "public Connection connect(){\n try{\n Class.forName(\"com.mysql.jdbc.Driver\");\n System.out.println(\"Berhasil koneksi ke JDBC Driver MySQL\");\n }catch(ClassNotFoundException ex){\n System.out.println(\"Tidak Berhasil Koneksi ke JDBC Driver MySQL\");\n }\n //koneksi ke data base\n try{\n String url=\"jdbc:mysql://localhost:3306/enginemounting\";\n koneksi=DriverManager.getConnection(url,\"root\",\"\");\n System.out.println(\"Berhasil koneksi ke Database\");\n }catch(SQLException e){\n System.out.println(\"Tidak Berhasil Koneksi ke Database\");\n }\n return koneksi;\n}", "@Autowired\n public void setDataSource( DataSource dataSource ) {\n this.simpleJdbcTemplate = new SimpleJdbcTemplate( dataSource );\n }", "public static void main(String[] args) \n {\n \n \n try \n {\n Class.forName(\"com.mysql.jdbc.Driver\");\n conn = (Connection) DriverManager.getConnection(url, userName, password);\n } \n catch (SQLException e) \n {\n e.printStackTrace();\n } \n catch (ClassNotFoundException e) \n {\n e.printStackTrace();\n }\n \n }", "public void setDataSource( DataSource dataSource) {\n\t\tthis.dataSource = dataSource;\n\t}", "public void setDataSource(BasicDataSource dataSource) {\n this.dataSource = dataSource;\n }", "public Connection getConnection() throws SQLException, ClassNotFoundException{\n\t\t\t Class.forName(\"com.mysql.jdbc.Driver\");\n\t\t\t System.out.println(\"MySQL JDBC Driver Registered\");\n\t\t\t return connection = DriverManager.getConnection(\"jdbc:mysql://www.papademas.net:3306/510labs?\", \"db510\",\"510\");\n\t}", "public SimpleJdbcUpdate(DataSource dataSource) {\n super(dataSource);\n }", "public static void main(String[] args) throws SQLException, IOException {\n\t\t Driver driverref = new Driver();\n\t\t DriverManager.registerDriver(driverref);\n\t\t \n\t //step-2 : get the connection to data base\n\t\t FileInputStream fis = new FileInputStream(\"./dataBaseConfig.properties\");\n\t\t Properties p = new Properties();\n\t\t p.load(fis);\n\t\t \n\t\t Connection con = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/projects\", p);\n\t\t \n\t //step 3 : issue create statement object\n\t\t Statement stat = con.createStatement();\n\t\t \n\t //step 4 : execute Query\n\t\t ResultSet result = stat.executeQuery(\"select * from project\");\n\t\t \n\t\t while(result.next()) {\n\t\t \tSystem.out.println(result.getString(1) + \"\\t\"+result.getString(2) + \"\\t\"+result.getString(4));\n\t\t \t\n\t\t }\n\n\t //step 5 : close the connection\t\n\t\t con.close();\n\n\t}", "public void setDatasource(DataSource datasource) {\n this.datasource = datasource;\n }", "public static void main(String[] args) {\n\t\tString driver = \"com.mysql.jdbc.Driver\";\n\t\tString url = \"jdbc:mysql://127.0.0.1:3306/mydb\";\n\t\tString user = \"root\";\n\t\tString password = \"longwear\";\n\t\t\n\t\t\n\t}", "@Profile(\"development\")\r\n @Bean(name=\"DataSourceBean\") \r\n public DataSource getDevDataSource(){\r\n\t\t\r\n //Create dataSource for HSQLDB connection.\r\n\t\t\r\n\t BasicDataSource dataSource = new BasicDataSource();\r\n\t dataSource.setDriverClassName(\"org.hsqldb.jdbc.JDBCDriver\");\r\n\t //Create HSQLDB in memory. \r\n\t dataSource.setUrl(\"jdbc:hsqldb:mem:mymemdb;ifexists=false;sql.syntax_mys=true\");\r\n\t //Create HSQLDB in file located in the application folder.\r\n //dataSource.setUrl(\"jdbc:hsqldb:file:mymemdb;ifexists=false;sql.syntax_mys=true\");\r\n\t dataSource.setUsername(\"sa\");\r\n\t dataSource.setPassword(\"\");\r\n\t\t\t\t\r\n return dataSource;\r\n }", "public EODataSource queryDataSource();", "@Override\n\tpublic DataSource getDataSource() {\t\t\n\t\treturn dataSource;\n\t}", "@BeforeClass\n\tpublic static void setupDataSource() {\n\t\tdataSource = new SingleConnectionDataSource();\n\t\tdataSource.setUrl(\"jdbc:postgresql://localhost:5432/campground\");\n\t\tdataSource.setUsername(\"postgres\");\n\t\tdataSource.setPassword(\"postgres1\");\n\t\t/* The following line disables autocommit for connections\n\t\t * returned by this DataSource. This allows us to rollback\n\t\t * any changes after each test */\n\t\tdataSource.setAutoCommit(false);\n\n\t}", "@Override\n public String getDataSource()\n {\n return dataSource;\n }", "@Bean\n public DataSource dataSource() {\n PGSimpleDataSource dataSource = new PGSimpleDataSource();\n dataSource.setServerName(hostName);\n dataSource.setDatabaseName(databaseName);\n dataSource.setUser(databaseUser);\n dataSource.setPassword(databasePassword);\n return dataSource;\n }", "public void connect(){\n try {\n Class.forName(\"com.mysql.jdbc.Driver\");\n } catch (ClassNotFoundException ex) {\n System.out.println(\"ClassNotFoundException in connect()\");\n }\n try {\n connection = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/pmt\", \"root\", \"\");\n } catch (SQLException ex) {\n System.out.println(\"SQLException in connect()\");\n }\n \n }", "@BeforeClass\n\tpublic static void setupDataSource() {\n\t\tdataSource = new SingleConnectionDataSource();\n\t\tdataSource.setUrl(\"jdbc:postgresql://localhost:5432/nationalpark\");\n\t\tdataSource.setUsername(\"postgres\");\n\t\tdataSource.setPassword(\"postgres1\");\n\t\t/* The following line disables autocommit for connections\n\t\t * returned by this DataSource. This allows us to rollback\n\t\t * any changes after each test */\n\t\tdataSource.setAutoCommit(false);\n\t}", "private static void getConnection() throws ClassNotFoundException, SQLException {\n\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n\t\tconnection = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/yuechu\", \"root\", \"1\");\n\t}", "public DataHandlerDBMS() {\n\t\ttry {\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n\t\t\tDBMS = DriverManager.getConnection(url);\n\t\t\tSystem.out.println(\"DBSM inizializzato\");\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(\"Errore apertura DBMS\");\n\t\t\te.printStackTrace();\n\t\t} catch (ClassNotFoundException e) {\n\t\t\tSystem.out.println(\"Assenza driver mySQL\");\n\t\t}\n\t}", "public Connection conexion(){\n try {\r\n Class.forName(\"org.gjt.mm.mysql.Driver\");\r\n conectar=DriverManager.getConnection(\"jdbc:mysql://localhost:3306/poo\",\"root\",\"19931017\");\r\n \r\n } catch (ClassNotFoundException | SQLException e) {\r\n System.out.println(\"Error ┐\"+e);\r\n }\r\n return conectar; \r\n }", "String afficherDataSource();", "public static void main(String[] args) {\n\t\tString jdbcurl = \"jdbc:mysql://localhost:3306/hb_student_tracker?useSSL=false\";\n\t\tString username = \"hbstudent\";\n\t\tString password = \"hbstudent\";\n\t try {\n\t\t System.out.println(\"connecting to mysql\" + jdbcurl);\n\t\t Connection mycon = DriverManager.getConnection(jdbcurl,username,password);\n\t\t System.out.println(\"connecting to mysql\");\n\t }catch(Exception ex) {\n\t\t ex.printStackTrace();\n\t }\n\n\t}", "public DataSource createDataSource(String driver, String url, String owner, String password,\n String validationQuery);", "@Autowired\n public void setDataSource(DataSource dataSource) {\n this.jdbcTemplate = new JdbcTemplate(dataSource);\n this.namedJdbcTemplate = new NamedParameterJdbcTemplate(dataSource);\n }", "private static void setConnection(){\n try{\n Class.forName(\"com.mysql.jdbc.Driver\");\n con = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/novel_rental\",\"root\",\"\");\n } catch (Exception e) {\n Logger.getLogger(NovelRepository.class.getName()).log(Level.SEVERE, null, e);\n System.out.println(e.getMessage());\n }\n }", "public void setDataSource(DataSource dataSource) {\n\t\tthis.dataSource = dataSource;\n\t}", "public DataConnection() {\n\t\ttry {\n\t\t\tString dbClass = \"com.mysql.jdbc.Driver\";\n\t\t\tClass.forName(dbClass).newInstance();\n\t\t\tConnection con = DriverManager.getConnection(DIR_DB, USER_DB, PASS_DB);\n\t\t\tstatement = con.createStatement();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private MySQL() {\n\t\ttry {\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n\n\t\t\tBoneCPConfig config = new BoneCPConfig();\n\t\t\tconfig.setJdbcUrl(\"jdbc:mysql://localhost:3306/moviedb\"); \n\t\t\tconfig.setUsername(\"testuser\");\n\t\t\tconfig.setPassword(\"testpass\");\n\t\t\tconfig.setMinConnectionsPerPartition(5);\n\t\t\tconfig.setMaxConnectionsPerPartition(100);\n\t\t\tconfig.setPartitionCount(1);\n\t\t\tconnectionPool = new BoneCP(config); // setup the connection pool\n\n\t\t} catch (ClassNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Bean(destroyMethod = \"close\")\n\tpublic DataSource dataSource() {\n\t\tHikariConfig config = Utils.getDbConfig(dataSourceClassName, url, port, \"postgres\", user, password);\n\n try {\n\t\t\tlogger.info(\"Configuring datasource {} {} {}\", dataSourceClassName, url, user);\n config.setMinimumIdle(0);\n\t\t\tHikariDataSource ds = new HikariDataSource(config);\n\t\t\ttry {\n\t\t\t\tString dbExist = \"SELECT datname FROM pg_catalog.pg_database WHERE lower(datname) = lower('\"+databaseName+\"')\";\n\t\t\t\tPreparedStatement statementdbExist = ds.getConnection().prepareStatement(dbExist);\n\t\t\t\tif(statementdbExist.executeQuery().next()) {\n\t\t\t\t\tstatementdbExist.close();\n\t\t\t\t\tds.close();\n\t\t\t\t\tthis.dataBaseExist = true;\n\t\t\t\t} else {\n\t\t\t\t\tstatementdbExist.close();\n\t\t\t\t\tString sql = \"CREATE DATABASE \" + databaseName;\n\t\t\t\t\tPreparedStatement statement = ds.getConnection().prepareStatement(sql);\n\t\t\t\t\tstatement.executeUpdate();\n\t\t\t\t\tstatement.close();\n\t\t\t\t\tds.close();\n\t\t\t\t}\n\t\t\t} catch (SQLException e) {\n\t\t\t\tlogger.error(\"ERROR Configuring datasource SqlException {} {} {}\", e);\n\t\t\t\tthis.dataBaseExist = true;\n\t\t\t} catch (Exception ee) {\n\t\t\t\tthis.dataBaseExist = true;\n\t\t\t\tlogger.debug(\"ERROR Configuring datasource catch \", ee);\n\t\t\t}\n\t\t\tHikariConfig config2 = Utils.getDbConfig(dataSourceClassName, url, port, databaseName, user, password);\n\t\t\treturn new HikariDataSource(config2);\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(\"ERROR in database configuration \", e);\n\t\t} finally {\n\t\t\t\n\t\t}\n\t\treturn null;\n\t}", "public String getDataSource() {\n return dataSource;\n }" ]
[ "0.7340832", "0.7038605", "0.6943972", "0.68708396", "0.68553627", "0.6690014", "0.6671393", "0.6635615", "0.6627489", "0.6604591", "0.65829194", "0.65536106", "0.65325415", "0.6524552", "0.6502199", "0.6485268", "0.646528", "0.646528", "0.646528", "0.646528", "0.646528", "0.646528", "0.6462998", "0.6447834", "0.6445359", "0.6426999", "0.64090073", "0.6391578", "0.63604826", "0.6350571", "0.63410896", "0.6338655", "0.6331066", "0.63184315", "0.6289955", "0.62876314", "0.62872434", "0.62872434", "0.62872434", "0.6273879", "0.62676096", "0.6262433", "0.62572575", "0.6252686", "0.6250915", "0.6236008", "0.62359715", "0.6235616", "0.62294114", "0.6215376", "0.6206134", "0.6201031", "0.6184185", "0.6172517", "0.6162699", "0.61571234", "0.6141923", "0.61357766", "0.6126838", "0.6116735", "0.6115591", "0.6102993", "0.60860914", "0.6080835", "0.60586524", "0.6058035", "0.605095", "0.6049185", "0.6049185", "0.6049185", "0.6047117", "0.60393107", "0.60377896", "0.60327005", "0.6027132", "0.6025907", "0.6013825", "0.60108644", "0.6008567", "0.6007907", "0.60039973", "0.59973", "0.59956986", "0.59943044", "0.5985284", "0.5979486", "0.597623", "0.59738475", "0.5966813", "0.59561706", "0.59498644", "0.59497", "0.59477687", "0.59431", "0.59350735", "0.59337974", "0.5929104", "0.5927792", "0.59274673", "0.59258926", "0.5923791" ]
0.0
-1
Log.e("User2", "user: " + username + " " + authToken);
@Override public void acceptUserDataForFrogList(String username, String authToken) { mManager = new RestManager(); allFrogsRequest = new AllFrogsRequest(username, authToken); callGetAllFrogs(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void logUser() {\n }", "@Override\n public void onNewToken(String token) {\n Log.e(\"Token:\", token);\n }", "private static void logResult(Tokens tokens) {\n\t\tLog.i(\"Got access token: \"+ tokens.getAccessToken());\n\t\tLog.i(\"Got refresh token: \"+ tokens.getRefreshToken());\n\t\tLog.i(\"Got token type: \"+ tokens.getTokenType());\n\t\tLog.i(\"Got expires in: \"+ tokens.getExpiresIn());\n\t}", "@Override\n public void onLoging() {\n }", "private void debugAuthentcation() {\n\n\t\t/*\n\t\t * XPagesUtil.showErrorMessage(\"bluemix util: serviceName: \" +\n\t\t * serviceName + \", baseUrl: \" + baseUrl + \" username: \" + username +\n\t\t * \" password: \" + password);\n\t\t * XPagesUtil.showErrorMessage(\"bluemix util: service name: \" +\n\t\t * serviceName + \", hardcodedBaseUrl: \" + hardcodedBaseUrl +\n\t\t * \" hardcodedUsername: \" + hardcodedUsername + \" hardcodedPassword: \" +\n\t\t * hardcodedPassword);\n\t\t */\n\t}", "@Override\n public void onAuthenticated(AuthData authData) {\n Log.i(\"lt\", \"authed\");\n }", "@Override\n public void onError(AuthError ae) {\n System.out.println(\"Error \" + ae);\n // Inform the user of the error\n }", "@Override\n public void onAuthenticationError(FirebaseError firebaseError) {\n Log.d(\"LOGIN\", \"Error logging in after creating user\");\n }", "@Override\n public void onAuthenticationError(FirebaseError firebaseError) {\n Log.i(\"lt\",\"auth failed\");\n }", "@Override\r\n\t\t\tpublic void onAuthResult(String paramToken) {\n\t\t\t\tshowToast(\"onAuthResult==\"+paramToken);\r\n\t\t\t}", "@Override\n\tpublic void onAuthenticationError(FirebaseError error)\n\t{\n\t\tSystem.out.println(error.getMessage());\n\t}", "@Override\n public void onErrorResponse(VolleyError error) {\n Log.v(\"tag\", \"request fail\");\n error.printStackTrace();\n Toast.makeText(getApplicationContext(), \"Login Request Fail\", Toast.LENGTH_LONG).show();\n\n }", "@Override\n public void onLogin() {\n toast(\"You are logged in\");\n }", "public static void logGenericUserError() {\n\n }", "@Override\n public void onSuccess(AuthResult authResult) {\n Toast.makeText(Login1.this, \"Successfully Login\", Toast.LENGTH_SHORT).show();\n\n }", "@Override\n public void onError(FirebaseError firebaseError) {\n Log.d(\"LOGIN\", \"Registration error\");\n }", "@Override\n public void onFailure(Call<ArrayList<LoginDetails>> call, Throwable t) {\n Log.e(\"TAG\", t.toString());\n }", "@Override\r\n\t\t\tpublic void onLogin(String username, String password) {\n\r\n\t\t\t}", "@Override\n public void onErrorResponse(VolleyError error) {\n Toast.makeText(LoginActivity.this, R.string.wangluo, Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onLoginSuccessful() {\n\n }", "public java.lang.String getUser(){\r\n return localUser;\r\n }", "public java.lang.String getUser(){\r\n return localUser;\r\n }", "public java.lang.String getUser(){\r\n return localUser;\r\n }", "@Override\n public String toString() {\n return \"Username: \" + this.username + \"\\n\";\n }", "@Override\n public void onAuthenticationError(FirebaseError firebaseError) {\n Log.d(TAG, \"Login attempt failed\");\n }", "@Override\n public void onAuthenticationError(FirebaseError firebaseError) {\n Log.d(TAG, \"Login attempt failed\");\n }", "public String getUsername(){return mUsername;}", "private void loggedInUser() {\n\t\t\n\t}", "@Override\n public void logs() {\n \n }", "private void authFailed() {\n Toast.makeText(LoginActivity.this, \"Authentication failed.\",\n Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onErrorResponse(VolleyError error) {\n SSLog.e(TAG, \"sendUserAccess :- \", error.getMessage());\n }", "public void logIn(View v){\n mUsername = (EditText) findViewById(R.id.username);\n mPassword = (EditText) findViewById(R.id.password);\n\n // Reset errors.\n mUsername.setError(null);\n mPassword.setError(null);\n\n // Store the data\n username = mUsername.getText().toString();\n password = mPassword.getText().toString();\n\n //Check username\n if (TextUtils.isEmpty(username)) {\n mUsername.setError(fielderror);\n checklog = false;\n }\n\n // Check for a valid password, if the user entered one.\n if (TextUtils.isEmpty(password)) {\n mPassword.setError(fielderror);\n checklog = false;\n }\n if(checklog == true) {\n loginUser();\n }\n\n\n }", "@Override\r\n public String toString() {\r\n return timeStamp + username + \": \" + message;\r\n }", "private String accessTokenForLog() {\n return StringUtils.isEmpty(accessToken) ? \"null/empty\" : \"present\";\n }", "@Override\n public void onLoggedIn() {\n\n }", "@Override\n protected void onCancel() {\n // TODO: Show error notification\n Log.d(\"JOB\", \"onCancel()\");\n Log.d(\"AUTH\", this.username + \" \" + this.password);\n }", "@Override\n\t\t\t\t\t\t\tpublic void onTokenIncorrect() {\n\t\t\t\t\t\t\t\t Log.d(\"LoginActivity\", \"--onTokenIncorrect\");\n\t\t\t\t\t\t\t}", "public void checkLogin() {\n String username = ((EditText) findViewById(R.id.Username)).getText().toString();\n String password = ((EditText) findViewById(R.id.Password)).getText().toString();\n final TextView feedback = (TextView) findViewById(R.id.feedback);\n mAuth.signInWithEmailAndPassword(username, password)\n .addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if (task.isSuccessful()) {\n // Sign in success, update UI with the signed-in user's information\n Log.d(\"LOG IN\", \"signInWithEmail:success\");\n FirebaseUser user = mAuth.getCurrentUser();\n startActivity(new Intent(LoginActivity.this, HomeScreen.class));\n } else {\n // If sign in fails, display a message to the user.\n Log.w(\"LOGIN\", \"signInWithEmail:failure\", task.getException());\n Toast.makeText(LoginActivity.this, \"Authentication failed.\",\n Toast.LENGTH_SHORT).show();\n feedback.setText(\"FAIL!\");\n }\n\n // ...\n }\n });\n\n\n }", "private void logIn(LogSignTemplate credentials){\n Call<LogSignTemplate> callNewTrack = nightAPI.authorize(credentials);\n callNewTrack.enqueue(new Callback<LogSignTemplate>() {\n @Override\n public void onResponse(Call<LogSignTemplate> call, Response<LogSignTemplate> response) {\n if(response.isSuccessful()){\n Log.d(\"QuestionsCallback\", \"//////////////////////////////////// SUCCESFUL LOGIN !!!!!!!!!!!!!!! /////////////////////////////////////\");\n Toasty.success(getContext(), \"Succes, welcome.\", Toast.LENGTH_SHORT, true).show();\n Intent intent = new Intent(getContext(), MenuActivity.class);\n startActivity(intent);\n }\n else{\n Log.d(\"QuestionsCallback\", \"//////////////////////////////////// NO SUCCESFUL RESPONSE /////////////////////////////////////\");\n Toasty.error(getContext(), \"Incorrect username or password.\", Toast.LENGTH_SHORT, true).show();\n }\n }\n\n @Override\n public void onFailure(Call<LogSignTemplate> call, Throwable t) {\n Log.d(\"QuestionsCallback\", \"//////////////////////////////////////// ERROR /////////////////////////////////\");\n Toasty.error(getContext(), \"Error while validating..\", Toast.LENGTH_SHORT, true).show();\n t.printStackTrace();\n }\n });\n }", "void log();", "@Test\n public void successAtGettingUsername4Token() {\n GetUsername4Token service = new GetUsername4Token(token);\n service.execute();\n \n assertEquals(USERNAME,service.getUsername());\n\n }", "public String toString(){\n return username;\n\n }", "@Override\n public void onAuthenticationError(FirebaseError firebaseError) {\n }", "private void attemptLogin2(String emailString,String passwordString) {\n FirebaseDatabase skoovyDatabase = FirebaseDatabase.getInstance();\r\n // Get a reference to our userInfo node\r\n DatabaseReference currentSkoovyUsers = skoovyDatabase.getReference(\"userInfo\");\r\n mAuth.signInWithEmailAndPassword(email, password)\r\n .addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {\r\n @Override\r\n public void onComplete(@NonNull Task<AuthResult> task) {\r\n //Log.d(TAG, \"signInWithEmail:onComplete:\" + task.isSuccessful());\r\n Toast.makeText(loginActivity.this, \"login successful\",\r\n Toast.LENGTH_SHORT).show();\r\n // If sign in fails, display a message to the user. If sign in succeeds\r\n // the auth state listener will be notified and logic to handle the\r\n // signed in user can be handled in the listener.\r\n if (!task.isSuccessful()) {\r\n //Log.w(TAG, \"signInWithEmail:failed\", task.getException());\r\n Toast.makeText(loginActivity.this, \"login failed\",\r\n Toast.LENGTH_SHORT).show();\r\n }\r\n\r\n // ...\r\n }\r\n });\r\n }", "private void checkLogin(final String email, final String password) {\n // Tag used to cancel the request\n String tag_string_req = \"req_login\";\n\n pDialog.setMessage(\"Logging in ...\");\n showDialog();\n\n String basicAuth = encodeHeaders(email, password);\n\n JsonObjectRequest strReq = new JsonObjectRequest(Method.POST,AppConfig.URL_SESSION,null,\n new Response.Listener<JSONObject>()\n {\n @Override\n public void onResponse(JSONObject response) {\n try{\n JSONObject user = response.getJSONObject(\"user\");\n String first_name = user.getString(\"first_name\");\n String last_name = user.getString(\"last_name\");\n String email = user.getString(\"email\");\n String session_token = response.getString(\"token\");\n String access_token = response.getString(\"access_token\");\n //String refresh_token = response.getString(\"refresh_token\");\n\n // Inserting add new row in SQLite for this user\n db.deleteUserData();\n User newUser = new User(first_name, last_name, email, session_token);\n newUser.setAccess_token(access_token);\n db.addUser(newUser);\n\n } catch (JSONException e){\n e.printStackTrace();\n }\n makeText(getApplicationContext(), \"User successfully logged in.\", LENGTH_LONG).show();\n session.setLogin(true);\n Intent intent = new Intent(LoginActivity.this, MainActivity.class);\n startActivity(intent);\n finish();\n }\n },\n new Response.ErrorListener()\n {\n @Override\n public void onErrorResponse(VolleyError error){\n Log.e(TAG, \"Login Error: \" + error.getMessage());\n makeText(getApplicationContext(),\"No user found with corresponding credentials\", LENGTH_LONG).show();\n hideDialog();\n }\n }\n ){\n @Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n Map<String, String> headers= new HashMap<>();\n headers.put(\"Accept\", \"application/json\");\n headers.put(\"Authorization\", \"Basic \" + basicAuth);\n Log.d(\"Auth Generated:\", \"Basic \" + basicAuth);\n return headers;\n }\n };\n\n // Adding request to request queue\n AppController.getInstance().addToRequestQueue(strReq, tag_string_req);\n }", "public String getUser()\n {\n return _user;\n }", "@Override\n public void onFailure(int code, String msg) {\n Toast.makeText(RegisterActivity.this,\"登录失败:\"+msg,Toast.LENGTH_SHORT).show();\n }", "@Override\n public void failure(TwitterException exception) {\n Toast.makeText(MainActivity.this, \"Authentication Failed!\", Toast.LENGTH_LONG).show();\n }", "@Override\n\tpublic void onLoginFailure(Exception e) {\n\t\te.printStackTrace();\n\t}", "@Override\n public void onAuthenticated(AuthData authData) {\n\n Context context = getApplicationContext();\n CharSequence text = \"Logged in\";\n int duration = Toast.LENGTH_SHORT;\n\n Toast toast = Toast.makeText(context, text, duration);\n toast.show();\n //save uid\n //remove uid\n SharedPreferences sharedPref = getApplicationContext().getSharedPreferences(\n getString(R.string.preference_file_key), Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = sharedPref.edit();\n editor.putString(\"uid\", authData.getUid().toString());\n editor.commit();\n\n Intent goToNextActivity = new Intent(getApplicationContext(), MainActivity.class);\n startActivity(goToNextActivity);\n }", "@Override\n public void onErrorResponse(VolleyError error) {\n Log.i(\"TAG\", \"网络错误,response+登录失败!\"+error.toString());\n Log.i(\"TAG\", application.username+\" \"+application.password);\n handler.sendMessage(handler\n .obtainMessage(NETWORK_ERROR));\n }", "public static String getAuthorizationLoguin() {\n\t\treturn getServer()+\"wsagenda/v1/usuarios/login\";\n\t}", "@Override\n public void onClick(View v) {\n loginUser(\"444444\");\n }", "@Override\n public void success(Result<String> result) {\n Log.e(\"User Id : \", twitterSession.getUserName() + \"\");\n Log.e(\"data\", \"User Id : \" + twitterSession.getUserId() + \"\\nScreen Name : \" + twitterSession.getUserName() + \"\\nEmail Id : \" + result.data);\n twitterLogin(\"twitter\", twitterSession.getAuthToken().token, twitterSession.getAuthToken().secret);\n }", "java.lang.String getAuth();", "java.lang.String getAuth();", "java.lang.String getAuth();", "@Override\n public void onFailure(@NonNull Exception e) {\n Log.d(\"ERROR\",\"error aa gya\");\n }", "private void getUserInfo() {\n\t}", "private void enviarTokenRegistro(String token){\n Log.d(TAG, token);\n }", "String getUserUsername();", "@Override\n protected void onCreate(@Nullable Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_login);\n initViews();\n buttonRegister.setOnClickListener(this);\n buttonlog1.setOnClickListener(this);\n\n firebaseAuth = FirebaseAuth.getInstance();\n\n progressDialog = new ProgressDialog(this);\n\n users = FirebaseDatabase.getInstance().getReference(\"users\");\n\n //usuario = firebaseAuth.getCurrentUser().getEmail();\n\n String email = editTextEmail.getText().toString();\n String password= editTextPassword.getText().toString();\n }", "@Override\n\t\t\tpublic void onResponse(Response response) throws IOException {\n Log.i(\"info\",response.body().string());\n\t\t\t}", "@Override\n public void onFailure(@NonNull Exception e) {\n\n Log.i(TAG,\"An error occurred\" +e.getMessage());\n String exception=e.getMessage();\n int index=exception.indexOf(\":\");\n String data=exception.substring(index+1).trim();\n showMessage(\"Error\",data,R.drawable.ic_error_dialog);\n Toast.makeText(getApplicationContext(), \"Authentication failed.\",\n Toast.LENGTH_SHORT).show();\n progressBar.setVisibility(View.GONE);\n\n }", "@Override\n public void onLoginFailure() {\n\n }", "@Override\n public void failure(TwitterException e) {\n Toast.makeText(getActivity().getApplicationContext(), \"Failed to authenticate. Please try again.\", Toast.LENGTH_SHORT).show();\n }", "public java.lang.String getOauth_token(){\r\n return localOauth_token;\r\n }", "private void collectToken()\n {\n String token = FirebaseInstanceId.getInstance().getId();\n Log.d(\"MYTAG\", \"Firebase_token \" + token);\n }", "@Override\n public void onClick(View v) {\n loginUser(\"222222\");\n }", "public String getUsername() {\n\treturn username;\r\n}", "@Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if (!task.isSuccessful()) {\n Toast.makeText(MainActivity.this, \"Authentication failed.\",\n Toast.LENGTH_SHORT).show();\n }\n }", "public static void log5(String TAG, String MSG) {\n }", "public String getUser(){\n \treturn user;\n }", "@Override\r\n public void onErrorResponse(VolleyError error) {\r\n Toast.makeText(RegistrationLogin.this, \"A problem occurred\", Toast.LENGTH_SHORT).show();\r\n }", "@Override\n public String toString(){\n return String.format(\"ApplicationUser ehrId: '%s', shimmerId: '%s', shimKey: '%s', is logged in: '%s'\", applicationUserId.getEhrId(), shimmerId, getApplicationUserId().getShimKey());\n }", "String getUser();", "String getUser();", "@Override\n public void onResponse(String response) {\n Log.d(DEBUG_TAG, \"Response is: \"+ response);\n }", "@Override\r\n public void onResponse(Call call, Response response) throws IOException{\r\n String responseText = response.body().string();\r\n Slog.d(TAG, \"response token: \"+responseText);\r\n if(!TextUtils.isEmpty(responseText)){\r\n try {\r\n JSONObject responseObject = new JSONObject(responseText);\r\n token = responseObject.getString(\"token\");\r\n // Slog.d(TAG, \"token : \"+token);\r\n login_finally(token, user_name);\r\n }catch (JSONException e){\r\n e.printStackTrace();\r\n }\r\n }\r\n\r\n }", "@Test\n public void test_create_user_and_login_success() {\n try {\n TokenVO firstTokenVO = authBO.createUser(\"createduser1\",\"createdpassword1\");\n Assert.assertNotNull(firstTokenVO);\n Assert.assertNotNull(firstTokenVO.getBearer_token());\n Assert.assertTrue(firstTokenVO.getCoachId() > 1);\n String firstToken = firstTokenVO.getBearer_token();\n\n TokenVO secondTokenVO = authBO.login(\"createduser1\", \"createdpassword1\");\n Assert.assertNotNull(secondTokenVO);\n Assert.assertNotNull(secondTokenVO.getBearer_token());\n Assert.assertTrue(secondTokenVO.getCoachId() > 1);\n Assert.assertTrue(secondTokenVO.getBearer_token() != firstTokenVO.getBearer_token());\n Assert.assertTrue(secondTokenVO.getCoachId() == firstTokenVO.getCoachId());\n } catch (AuthException e) {\n System.err.println(e.getMessage());\n Assert.assertTrue(e.getMessage().equalsIgnoreCase(\"\"));\n } catch (Exception e) {\n e.printStackTrace();\n Assert.fail(e.getMessage());\n }\n }", "private static void log(String msg) {\n Log.d(LOG_TAG, msg);\n }", "@Override\n public String toString() {\n return username;\n }", "@Override\n public void onAuthenticationFailed() {\n }", "public java.lang.String getAuthId(){\r\n return localAuthId;\r\n }", "@Override\n public void onFailure(Exception exception) {\n System.out.println(\"Sign-In Failure: \"+exception);\n }", "@Override\n\n public void onVerificationFailed(FirebaseException e) {\n\n Toast.makeText(otpsignin.this,\"Something went wrong\",Toast.LENGTH_SHORT).show();\n\n }", "public String get_log(){\n }", "void log(String string);", "public String getUsername() {\n return mUsername;\n }", "@Override\n public void failure(TwitterException e) {\n Toast.makeText(SignInActivity.this, \"Failed to authenticate. Please try again.\", Toast.LENGTH_SHORT).show();\n }", "@Override\n public String toString() {\n return getUsername();\n }", "public static void logInfo(Context context,String message){\n if(logging){\n String tag = context.getClass().getName();\n android.util.Log.i(tag, message);\n }\n }", "private void login(String username,String password){\n\n }", "@Override\n public void onAuthStateChanged(@NonNull FirebaseAuth firebaseAuth) {\n FirebaseUser currentUser = firebaseAuth.getCurrentUser();\n if (currentUser != null) {\n Log.w(TAG, \"Usuario Logeado\" + currentUser.getEmail());\n } else {\n Log.w(TAG, \"Usuario NO Logeado\");\n }\n }", "public void login(final View v) {\n\n // validate login here\n dbHelper = new EMFMonitorDbHelper(this);\n db = dbHelper.getReadableDatabase();\n\n String username = usernameField.getText().toString();\n String password = passwordField.getText().toString();\n\n Cursor cur = db.rawQuery(\"SELECT * FROM users WHERE username = ? AND password = ?\",\n new String[] {username, password});\n\n if (cur.moveToFirst()) {\n if (cur.getInt(EMFMonitorDbHelper.CAN_WORK_INDEX) > 0) {\n Intent i = new Intent(this, MainActivity.class);\n i.putExtra(\"USERNAME\", username);\n i.putExtra(\"UID\", cur.getInt(EMFMonitorDbHelper.UID_INDEX));\n i.putExtra(\"UNITS\", cur.getString(EMFMonitorDbHelper.UNITS_INDEX));\n i.putExtra(\"ALARM_THRESHOLD\", cur.getDouble(EMFMonitorDbHelper.ALARM_THRESHOLD_INDEX));\n startActivity(i);\n finish();\n }\n else {\n Toast toast = Toast.makeText(this, \"You have been exposed to unsafe levels of EMF\", Toast.LENGTH_SHORT);\n toast.show();\n }\n }\n else {\n Toast toast = Toast.makeText(this, \"Invalid Username or Password\", Toast.LENGTH_SHORT);\n toast.show();\n }\n\n\n }", "@Override\n\tpublic void onLoginSuccess() {\n\t\t\n\t}", "@Override\n protected void log(String tag, String msg) {\n Log.i(tag, \"[you can use your custom logger here \\\"]\" + msg);\n }", "public String getUsername() {return username;}", "@Override\n public void log(String message) {\n }", "public String toString() {\r\n\t\tif (!error)\r\n\t\t\treturn \"Username: \" + userName + \"\\nID: \" + id + \"\\nAuthToken: \" + authToken;\r\n\t\telse\r\n\t\t\treturn \"Error: \" + message; \r\n\t}", "public String login() throws Exception {\n System.out.println(user);\n return \"toIndex\" ;\n }" ]
[ "0.69264525", "0.61187214", "0.6076663", "0.6051331", "0.59874594", "0.5959022", "0.5953401", "0.5867864", "0.58647954", "0.58461654", "0.5813544", "0.57761425", "0.57692504", "0.57372737", "0.57243514", "0.5682285", "0.56764615", "0.5667331", "0.5639563", "0.5623834", "0.559727", "0.559727", "0.559727", "0.55915254", "0.5590136", "0.5590136", "0.5563542", "0.55587614", "0.55515075", "0.5543689", "0.55424196", "0.5532852", "0.55311465", "0.55072004", "0.5498976", "0.54963166", "0.5481717", "0.5480853", "0.5480705", "0.5466667", "0.5456809", "0.5441991", "0.544143", "0.5441254", "0.5439629", "0.54371893", "0.543056", "0.5422109", "0.541885", "0.5414597", "0.5414277", "0.5410528", "0.5408721", "0.54057026", "0.5403157", "0.5403157", "0.5403157", "0.54011446", "0.53995657", "0.5391158", "0.5390317", "0.5388984", "0.53852344", "0.5379638", "0.53595084", "0.5349972", "0.53433746", "0.5338683", "0.5338379", "0.53322357", "0.5331838", "0.5331751", "0.5327331", "0.53247017", "0.53205085", "0.53194153", "0.53194153", "0.5319303", "0.53059644", "0.53031236", "0.5300851", "0.5299763", "0.5295807", "0.5295031", "0.5292916", "0.52911264", "0.5288465", "0.5273181", "0.5271712", "0.5267069", "0.5266667", "0.5265903", "0.52597547", "0.52558804", "0.52556515", "0.52535534", "0.5253093", "0.52526826", "0.52523655", "0.52497905", "0.52497804" ]
0.0
-1
we sort the rule set by runLevel
@Required public void setRules(Set<Rule> rules) { this.rules = new TreeSet<Rule>(new RuleComparator()); this.rules.addAll(rules); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Rule[] sortRules(Rule[] rules){\n \t\t\n \t\tArrayList<Rule> temp = new ArrayList<Rule>();\n \t\t\n \t\tfor(int i = 0; i < rules.length; i++){\n \t\t\t\n \t\t\tif(!rules[i].isElseFilter()){\n \t\t\t\ttemp.add(rules[i]);\n \t\t\t}\n \t\t}\n \t\t\n \t\tfor(int i = 0; i < rules.length; i++){\n \t\t\t\n \t\t\tif(rules[i].isElseFilter()){\n \t\t\t\ttemp.add(rules[i]);\n \t\t\t}\n \t\t\t\n \t\t}\n \t\t\n \t\tRule[] newRules = new Rule[temp.size()];\t\t\n \t\treturn temp.toArray(newRules);\n \t}", "public void sortKnowledgeBase()\n {\n int i;\n Random random;\n String aPredicate;\n StringTokenizer tokenizer;\n //------------\n random = new Random();\n i = 0;\n while (i < knowledgeBase.size())\n {\n aPredicate = knowledgeBase.get(i).commitments.get(0).predicate;\n tokenizer = new StringTokenizer(aPredicate,\"(), \");\n if(tokenizer.nextToken().equals(\"secuencia\"))\n knowledgeBase.get(i).priority = random.nextInt(100);\n //end if\n else\n knowledgeBase.get(i).priority = random.nextInt(10000);\n //end else\n i = i + 1;\n }//end while\n Collections.sort(knowledgeBase);\n }", "public static void sortByFitlvl() {\n Collections.sort(Population);\n if (debug) {\n debugLog(\"\\nSorted: \");\n printPopulation();\n }\n }", "public static void doSort ( RunData data)\n\t{\n\t\tSessionState state = ((JetspeedRunData)data).getPortletSessionState (((JetspeedRunData)data).getJs_peid ());\n\n\t\t//get the ParameterParser from RunData\n\t\tParameterParser params = data.getParameters ();\n\n\t\t// save the current selections\n\t\tSet selectedSet = new TreeSet();\n\t\tString[] selectedItems = data.getParameters ().getStrings (\"selectedMembers\");\n\t\tif(selectedItems != null)\n\t\t{\n\t\t\tselectedSet.addAll(Arrays.asList(selectedItems));\n\t\t}\n\t\tstate.setAttribute(STATE_LIST_SELECTIONS, selectedSet);\n\n\t\tString criteria = params.getString (\"criteria\");\n\n\t\tif (criteria.equals (\"title\"))\n\t\t{\n\t\t\tcriteria = ResourceProperties.PROP_DISPLAY_NAME;\n\t\t}\n\t\telse if (criteria.equals (\"size\"))\n\t\t{\n\t\t\tcriteria = ResourceProperties.PROP_CONTENT_LENGTH;\n\t\t}\n\t\telse if (criteria.equals (\"created by\"))\n\t\t{\n\t\t\tcriteria = ResourceProperties.PROP_CREATOR;\n\t\t}\n\t\telse if (criteria.equals (\"last modified\"))\n\t\t{\n\t\t\tcriteria = ResourceProperties.PROP_MODIFIED_DATE;\n\t\t}\n\t\telse if (criteria.equals(\"priority\") && ContentHostingService.isSortByPriorityEnabled())\n\t\t{\n\t\t\t// if error, use title sort\n\t\t\tcriteria = ResourceProperties.PROP_CONTENT_PRIORITY;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tcriteria = ResourceProperties.PROP_DISPLAY_NAME;\n\t\t}\n\n\t\tString sortBy_attribute = STATE_SORT_BY;\n\t\tString sortAsc_attribute = STATE_SORT_ASC;\n\t\tString comparator_attribute = STATE_LIST_VIEW_SORT;\n\t\t\n\t\tif(state.getAttribute(STATE_MODE).equals(MODE_REORDER))\n\t\t{\n\t\t\tsortBy_attribute = STATE_REORDER_SORT_BY;\n\t\t\tsortAsc_attribute = STATE_REORDER_SORT_ASC;\n\t\t\tcomparator_attribute = STATE_REORDER_SORT;\n\t\t}\n\t\t// current sorting sequence\n\t\tString asc = NULL_STRING;\n\t\tif (!criteria.equals (state.getAttribute (sortBy_attribute)))\n\t\t{\n\t\t\tstate.setAttribute (sortBy_attribute, criteria);\n\t\t\tasc = Boolean.TRUE.toString();\n\t\t\tstate.setAttribute (sortAsc_attribute, asc);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// current sorting sequence\n\t\t\tasc = (String) state.getAttribute (sortAsc_attribute);\n\n\t\t\t//toggle between the ascending and descending sequence\n\t\t\tif (asc.equals (Boolean.TRUE.toString()))\n\t\t\t{\n\t\t\t\tasc = Boolean.FALSE.toString();\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tasc = Boolean.TRUE.toString();\n\t\t\t}\n\t\t\tstate.setAttribute (sortAsc_attribute, asc);\n\t\t}\n\n\t\tif (state.getAttribute(STATE_MESSAGE) == null)\n\t\t{\n\t\t\tComparator comparator = ContentHostingService.newContentHostingComparator(criteria, Boolean.getBoolean(asc));\n\t\t\tstate.setAttribute(comparator_attribute, comparator);\n\t\t\t\n\t\t\t// sort sucessful\n\t\t\t// state.setAttribute (STATE_MODE, MODE_LIST);\n\n\t\t}\t// if-else\n\n\t}", "public void sort()\n {\n\tstrack.sort((Node n1, Node n2) ->\n\t{\n\t if (n1.getCost() < n2.getCost()) return -1;\n\t if (n1.getCost() > n2.getCost()) return 1;\n\t return 0;\n\t});\n }", "public Run sortRun(Run run) throws DatabaseException {\n //Doesn't do anything\n return run;\n }", "protected void sort() {\n\n\t\tCollections.sort(this.myRRList);\n\t}", "public void sort() {\r\n // sort the process variables\r\n Arrays.sort(pvValues, categoryComparator);\r\n fireTableDataChanged();\r\n }", "private static List<PruningRule<EOrderBlockType, OrderBlock>> getOrderPruningRules()\n\t{\n\t\tPruningRule<EOrderBlockType, OrderBlock> r1 =\n\t\t\tnew TwoComparatorPruningRule(new CompositeComparatorPruningAction());\n\n\t\t/*\n\t\t * property, [property | comparator | endOfStack] ==> comparator, [property | comparator | endOfStack]\n\t\t */\n\t\tPruningRule<EOrderBlockType, OrderBlock> r21 = new PropertyOrderPruningRule(EOrderBlockType.property, //\n\t\t\tnew PropertyOrderPruningAction());\n\t\tPruningRule<EOrderBlockType, OrderBlock> r22 =\n\t\t\tnew PropertyOrderPruningRule(EOrderBlockType.comparator, new PropertyOrderPruningAction());\n\t\tPruningRule<EOrderBlockType, OrderBlock> r24 =\n\t\t\tnew PropertyOrderPruningRule(EOrderBlockType.endOfStack, new PropertyOrderPruningAction());\n\t\t/*\n\t\t * property, ascDesc ==> comparator\n\t\t */\n\t\tPruningRule<EOrderBlockType, OrderBlock> r3 = new AscDescPruningRule(new AscDescPruningAction());\n\n\t\t/*\n\t\t * comparator, nullability ==> comparator with nullability\n\t\t */\n\t\t//\t\tPruningRule<EOrderChainType, OrderBlock> r4 = new NullFirstLastPruningRule(new NullFirstLastPruningAction());\n\n\t\treturn Arrays.asList(r1, r21, r22, r24, r3/*, r4*/);\n\t}", "public void sortScoresDescendently(){\n this.langsScores.sort((LangScoreBankUnit o1, LangScoreBankUnit o2) -> {\n return Double.compare(o2.getScore(),o1.getScore());\n });\n }", "private List<PricingRule> orderPricingRules(Set<PricingRule> pricingRules) {\n \tList<PricingRule> pricingRulesList = pricingRules.stream().collect(Collectors.toList());\n \tCollections.sort(pricingRulesList, new Comparator<PricingRule>() {\n\t\t\tpublic int compare(PricingRule o1, PricingRule o2) {\n\t\t\t\treturn ((o2.getClass().getAnnotation(PricingRuleOrder.class).value()) - (o1.getClass().getAnnotation(PricingRuleOrder.class).value()));\n\t\t\t}\n\t\t});\n\t\treturn pricingRulesList;\n }", "public void sortMatches();", "static void SPT_rule(List<T_JOB> job) {\n Collections.sort(job);\n }", "@Override\r\n\tpublic void addSort() {\n\t\t\r\n\t}", "public AscendingRules() {}", "private void evaluateOrderRanks() {\n\t\t// First ensure that the order rank is respected if was provided\n\t\tfor (HLChoice choice : process.getChoices()) {\n\t\t\tArrayList<HLCondition> rankedConditions = new ArrayList<HLCondition>();\n\t\t\t// check order rank for each condition\n\t\t\tfor (HLCondition cond : choice.getConditions()) {\n\t\t\t\tif (cond.getExpression().getOrderRank() != -1) {\n\t\t\t\t\trankedConditions.add(cond);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (rankedConditions.size() > 1) {\n\t\t\t\tHashMap<HLDataExpression, HLCondition> exprCondMapping = new HashMap<HLDataExpression, HLCondition>();\n\t\t\t\tfor (HLCondition mappedCond : rankedConditions) {\n\t\t\t\t\texprCondMapping.put(mappedCond.getExpression(), mappedCond);\n\t\t\t\t}\n\t\t\t\tArrayList<HLDataExpression> exprList = new ArrayList<HLDataExpression>(exprCondMapping.keySet());\n\t\t\t\tObject[] sortedRanks = exprList.toArray();\n\t\t\t\tArrays.sort(sortedRanks);\n\t\t\t\tfor (int i=0; i<sortedRanks.length; i++) {\n\t\t\t\t\tArrayList<HLDataExpression> lowerRankExpressions = new ArrayList<HLDataExpression>();\n\t\t\t\t\tfor (int j=0; j<sortedRanks.length; j++) {\n\t\t\t\t\t\tif (j<i) {\n\t\t\t\t\t\t\tlowerRankExpressions.add((HLDataExpression) sortedRanks[j]);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (lowerRankExpressions.size() > 0) {\n\t\t\t\t\t\t// connect lower rank conditions with OR and negate\n\t\t\t\t\t\tHLExpressionElement orConnected = HLExpressionManager.connectExpressionsWithOr(lowerRankExpressions);\n\t\t\t\t\t\tHLExpressionElement negatedOr = HLExpressionManager.negateExpression(new HLDataExpression(orConnected));\n\t\t\t\t\t\t// add own expression in front and connect with AND\n\t\t\t\t\t\tHLAndOperator andOp = new HLAndOperator();\t\t\n\t\t\t\t\t\tandOp.addSubExpression(((HLDataExpression) sortedRanks[i]).getRootExpressionElement().getExpressionNode());\n\t\t\t\t\t\tandOp.addSubExpression(negatedOr.getExpressionNode());\n\t\t\t\t\t\t// assign the expanded expression to the original condition\n\t\t\t\t\t\tHLCondition condition = exprCondMapping.get(sortedRanks[i]);\n\t\t\t\t\t\tcondition.setExpression(new HLDataExpression(andOp, ((HLDataExpression) sortedRanks[i]).getOrderRank()));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// Now, generate data expressions for \"default\" (i.e., \"else\") branch \n\t\tHLCondition defaultCond = null;\n\t\tfor (HLChoice choice : process.getChoices()) {\n\t\t\tArrayList<HLCondition> nonDefaultConditions = new ArrayList<HLCondition>(choice.getConditions());\n\t\t\tfor (HLCondition cond : choice.getConditions()) {\n\t\t\t\tif (cond.getExpression().getRootExpressionElement() == null && \n\t\t\t\t\t\tcond.getExpression().getExpressionString().equals(\"default\")) {\n\t\t\t\t\tnonDefaultConditions.remove(cond);\n\t\t\t\t\tdefaultCond = cond;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (defaultCond != null) {\n\t\t\t\tHLExpressionElement orConnected = HLExpressionManager.connectConditionsWithOr(nonDefaultConditions);\n\t\t\t\tHLExpressionElement negatedOr = HLExpressionManager.negateExpression(new HLDataExpression(orConnected));\n\t\t\t\tdefaultCond.setExpression(new HLDataExpression(negatedOr));\n\t\t\t}\n\t\t}\n\t}", "private List<Criterion> _sortCriterionList()\n {\n Collections.sort(_criterionList, _groupNameComparator);\n Collections.sort(_criterionList, _fieldOrderComparator);\n for(int count = 0 ; count < _criterionList.size() ; count++)\n {\n ((DemoAttributeCriterion)_criterionList.get(count)).setOrderDirty(false);\n }\n return _criterionList;\n }", "@Override\n\t\tpublic int compare(EventPacket lhs, EventPacket rhs) {\n\t\t\tif (lhs.level < rhs.level) {\n\t\t\t\treturn 1;\n\t\t\t} else if (lhs.level == rhs.level) {\n\t\t\t\treturn 0;\n\t\t\t} else {\n\t\t\t\treturn -1;\n\t\t\t}\n\t\t}", "public static boolean testSort() {\r\n Manager inst;\r\n try {\r\n inst = new PokemonTable();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n return false;\r\n }\r\n LinkedList<Pokemon> list;\r\n list = inst.sortByAttack(true);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getAttack() < list.get(i).getAttack()) {\r\n System.out.println(\"attack sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortByAttack(false);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getAttack() > list.get(i).getAttack()) {\r\n System.out.println(\"attack sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortByDefense(true);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getDefense() < list.get(i).getDefense()) {\r\n System.out.println(\"defense sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortByDefense(false);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getDefense() > list.get(i).getDefense()) {\r\n System.out.println(\"defense sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortByFavorite(true);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (!list.get(i - 1).getFavorite() && list.get(i).getFavorite()) {\r\n System.out.println(\"favorite sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortByFavorite(false);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getFavorite() && !list.get(i).getFavorite()) {\r\n System.out.println(\"favorite sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortByHp(true);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getHp() < list.get(i).getHp()) {\r\n System.out.println(\"hp sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortByHp(false);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getHp() > list.get(i).getHp()) {\r\n System.out.println(\"hp sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortByLegendary(true);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (!list.get(i - 1).isLegendary() && list.get(i).isLegendary()) {\r\n System.out.println(\"legendary sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortByLegendary(false);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).isLegendary() && !list.get(i).isLegendary()) {\r\n System.out.println(\"legendary sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortByName(true);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getName().compareTo(list.get(i).getName()) > 0) {\r\n System.out.println(\"name sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortByName(false);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getName().compareTo(list.get(i).getName()) < 0) {\r\n System.out.println(\"name sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortBySpAttack(true);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getSpAttack() < list.get(i).getSpAttack()) {\r\n System.out.println(\"spAttack sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortBySpAttack(false);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getSpAttack() > list.get(i).getSpAttack()) {\r\n System.out.println(\"spAttack sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortBySpDefense(true);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getSpDefense() < list.get(i).getSpDefense()) {\r\n System.out.println(\"spDefense sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortBySpDefense(false);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getSpDefense() > list.get(i).getSpDefense()) {\r\n System.out.println(\"spDefense sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortBySpeed(true);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getSpeed() < list.get(i).getSpeed()) {\r\n System.out.println(\"speed sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortBySpeed(false);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getSpeed() > list.get(i).getSpeed()) {\r\n System.out.println(\"speed sort\");\r\n return false;\r\n }\r\n }\r\n return true;\r\n }", "public void sortSubstrateSwitchByResource() {\n\t\tCollections.sort(this.listNode, new Comparator<SubstrateSwitch>() {\n\t\t\t@Override\n\t\t\tpublic int compare(SubstrateSwitch o1, SubstrateSwitch o2) {\n\n\t\t\t\tif (o1.getCpu() < o2.getCpu()) {\n\t\t\t\t\treturn 1;\n\t\t\t\t}\n\t\t\t\tif (o1.getCpu() > o2.getCpu()) {\n\t\t\t\t\treturn -1;\n\t\t\t\t}\n\n\t\t\t\treturn 0;\n\t\t\t}\n\t\t});\n\t}", "private void sortLeaves() {\r\n\r\n\t\tboolean swapOccured;\r\n\r\n\t\tdo {\r\n\t\t\tswapOccured = false;\r\n\r\n\t\t\tfor(int index=0; index < this.treeNodes.length - 1; index++) {\r\n\t\t\t\tint currentLeaf = index;\r\n\t\t\t\tint nextLeaf = currentLeaf + 1;\r\n\t\t\t\tif(this.treeNodes[currentLeaf].getFrequency() > this.treeNodes[nextLeaf].getFrequency()) {\r\n\t\t\t\t\tswapLeaves(currentLeaf, nextLeaf);\r\n\t\t\t\t\tswapOccured=true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\twhile(swapOccured);\r\n\t}", "public void sortCompetitors(){\n\t\t}", "public static void main(String[] args) {\n\t\tShirt r = new Shirt(\"Red\", 10);\r\n\t\tShirt b = new Shirt(\"Blue\", 465);\r\n\t\tShirt g = new Shirt(\"Green\", 3213456);\r\n\t\t// Creates some custom comparator object.\r\n\t\tSizeComp s = new SizeComp();\r\n\t\tColorComp c = new ColorComp();\r\n\t\t// Creates some tree sets using custom comparator. \r\n\t\tTreeSet<Shirt> mySizeSet = new TreeSet<>(s);\r\n\t\tmySizeSet.add(r);\r\n\t\tmySizeSet.add(g);\r\n\t\tmySizeSet.add(b);\r\n\t\tout.println(\"Sort by Size\");\r\n\t\tout.println(mySizeSet);\r\n\t\t\r\n\t\tTreeSet<Shirt> myCompSet = new TreeSet<>(c);\r\n\t\tmyCompSet.add(r);\r\n\t\tmyCompSet.add(g);\r\n\t\tmyCompSet.add(b);\r\n\t\tout.println(\"Sort by Color\");\r\n\t\tout.println(myCompSet);\r\n\t}", "@Override\n public int compareTo(FirewallRule rule) {\n return this.priority - rule.priority;\n }", "private List<List<Record>> sortRecordsBy(List<Record> unsortedRecords, RankingType rankingType) {\n Comparator<Long> comparator = rankingType.isDescending()\n ? Comparator.reverseOrder()\n : Comparator.naturalOrder();\n SortedMap<Long, List<Record>> scoreGroups = new TreeMap<>(comparator);\n for (Record record : unsortedRecords) {\n Long score = rankingType.getScoreFunction().apply(record);\n if (scoreGroups.containsKey(score)) {\n scoreGroups.get(score).add(record);\n } else {\n scoreGroups.put(score, new LinkedList<>());\n scoreGroups.get(score).add(record);\n }\n }\n\n return new ArrayList<>(scoreGroups.values());\n }", "public void sortPassing(){\n\t\tpassing.sort(PlayingCard.PlayingCardComparator_ACEHIGH);\n\t}", "public void sort() {\n /*int jokers = this.getJokers();\n\t\tif (jokers > 0 && this.size() > 2) {\n\t\t\tArrayList<Tile> list = new ArrayList<>();\n for (int i=0; i<this.size(); i++) {\n\t\t\t\tif (this.get(i).getColour() == 'J') {\n\t\t\t\t\tTile joker = this.remove(this.get(i));\n\t\t\t\t\tlist.add(joker);\n\t\t\t\t\ti--;\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor (Tile j : list) {\n\t\t\t\tthis.addInSort(j);\n\t\t\t}\n }*/\n \n\n //may need something in here to accomodate a joker changing its form\n\n if (tiles.size() > 1) { //will only sort a meld with any tiles in it\n //Override default comparator to compare by tile value (ints)\n Collections.sort(tiles, new Comparator<Tile>() {\n @Override \n public int compare(Tile t1, Tile t2) { \n if (t1.getColour() > t2.getColour()) {\n return 1;\n } else if (t1.getColour() < t2.getColour()) {\n return -1;\n }\n if (t1.getValue() > t2.getValue()) {\n return 1;\n } else if (t1.getValue() < t2.getValue()) {\n return -1;\n } else {\n return 0;\n }\n }\n });\n }\n\n }", "private void sort() {\n Collections.sort(mEntries, new Comparator<BarEntry>() {\n @Override\n public int compare(BarEntry o1, BarEntry o2) {\n return o1.getX() > o2.getX() ? 1 : o1.getX() < o2.getX() ? -1 : 0;\n }\n });\n }", "public void sortSubstrateSwitch() {\n\t\tCollections.sort(this.listNode, new Comparator<SubstrateSwitch>() {\n\t\t\t@Override\n\t\t\tpublic int compare(SubstrateSwitch o1, SubstrateSwitch o2) {\n\n\t\t\t\tif (o1.getType() > o2.getType())\n\t\t\t\t\treturn -1;\n\t\t\t\tif (o1.getType() < o2.getType())\n\t\t\t\t\treturn 1;\n\t\t\t\tif (o1.getType() == o2.getType()) {\n\t\t\t\t\tif (o1.getCpu() < o2.getCpu()) {\n\t\t\t\t\t\treturn 1;\n\t\t\t\t\t}\n\t\t\t\t\tif (o1.getCpu() > o2.getCpu()) {\n\t\t\t\t\t\treturn -1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn 0;\n\t\t\t}\n\t\t});\n\t}", "private void sortOutlines() {\r\n Collections.sort(outlines, reversSizeComparator);\r\n }", "private void sortScoreboard() {\n score.setSortType(TableColumn.SortType.DESCENDING);\n this.scoreboard.getSortOrder().add(score);\n score.setSortable(true);\n scoreboard.sort();\n }", "private void sortResults(){\r\n this.sortedPlayers = new ArrayList<>();\r\n int size = players.size();\r\n while (size > 0) {\r\n Player lowestPointsPlayer = this.players.get(0);\r\n for(int i = 0; i<this.players.size(); i++){\r\n if(lowestPointsPlayer.getPoints() <= this.players.get(i).getPoints()){\r\n lowestPointsPlayer = this.players.get(i);\r\n }\r\n }\r\n this.sortedPlayers.add(lowestPointsPlayer);\r\n this.players.remove(lowestPointsPlayer);\r\n size--;\r\n }\r\n\r\n\r\n }", "void topologicalSort() {\n\n\t\tfor (SimpleVertex vertice : allvertices) {\n\n\t\t\tif (vertice.isVisited == false) {\n\t\t\t\tlistset.add(vertice.Vertexname);\n\t\t\t\ttopologicalSortUtil(vertice);\n\n\t\t\t}\n\t\t}\n\n\t}", "private void sortEScores() {\n LinkedHashMap<String, Double> sorted = eScores\n .entrySet()\n .stream()\n .sorted(Collections.reverseOrder(Map.Entry.comparingByValue()))\n .collect(\n toMap(Map.Entry::getKey, Map.Entry::getValue, (e1, e2) -> e2,\n LinkedHashMap::new));\n eScores = sorted;\n }", "private void sort() {\n final Comparator<Slave> c = Comparator.comparing(Slave::getNodeName);\n this.slaves.sort(c);\n }", "@Test\n public void shouldGetTheLevelsInSortedOrder() {\n String currentPipeline = \"P1\";\n ValueStreamMap graph = new ValueStreamMap(currentPipeline, null);\n graph.addUpstreamNode(new PipelineDependencyNode(\"d1\", \"d1\"), null, currentPipeline);\n graph.addUpstreamNode(new PipelineDependencyNode(\"d2\", \"d2\"), null, currentPipeline);\n graph.addUpstreamNode(new PipelineDependencyNode(\"d3\", \"d3\"), null, \"d1\");\n graph.addUpstreamNode(new PipelineDependencyNode(\"d3\", \"d3\"), null, \"d2\");\n\n List<List<Node>> nodesAtEachLevel = graph.presentationModel().getNodesAtEachLevel();\n\n assertThat(nodesAtEachLevel.size(), is(3));\n assertThat(nodesAtEachLevel.get(0).get(0).getName(), is(\"d3\"));\n assertThat(nodesAtEachLevel.get(1).get(0).getName(), is(\"d1\"));\n assertThat(nodesAtEachLevel.get(1).get(1).getName(), is(\"d2\"));\n assertThat(nodesAtEachLevel.get(2).get(0).getName(), is(currentPipeline));\n }", "public void sort() {\n Collections.sort(jumpers, new SortJumperByPoints()); \n }", "public static void main(String[] args) {\n\t\tList<Developer> listDevs = getDevelopers();\r\n\r\n\t\tSystem.out.println(\"Before Sort\");\r\n\t\tfor (Developer developer : listDevs) {\r\n\t\t\tSystem.out.println(developer.getName());\r\n\t\t}\r\n\t\t\r\n\t\tlistDevs.sort( new Comparator<Developer>(){\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic int compare(Developer o1, Developer o2) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\treturn o2.getAge()-o1.getAge();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t});\r\n\t\t\r\n\t\tlistDevs.sort((Developer o1, Developer o2) -> o1.getName().compareTo(o2.getName()));\r\n\t\t\r\n\t\tSystem.out.println(\"Aftrer Sort\");\r\n\t\tfor (Developer developer : listDevs) {\r\n\t\t\tSystem.out.println(developer.getName());\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tSystem.out.println(\":::::::::::::::\");\r\n\t\tList<String> lines = Arrays.asList(\"spring\", \"node\", \"mkyong\",\"spring\",\"spring\");\r\n\t\t\r\n\t\tlines.stream().filter(line -> line.equals(\"spring\")).forEach(line -> System.out.println(\"line::\"+line));\r\n\t\tSystem.out.println(\":::::::::::::::\");\r\n\t\tMap<String, Long> result = lines.stream().collect(Collectors.groupingBy(Function.identity(),Collectors.counting()));\r\n\t\t\r\n\t\tSystem.out.println(\":::::::::::::::\");\r\n\t\t//System.out.println(result.entrySet().stream().sorted(Map.Entry.<String,Integer>comparingByKey().reversed()).);\r\n\t\t\r\n\t\tStream<String> language = Stream.of(\"java\", \"python\", \"node\", null, \"ruby\", null, \"php\");\r\n\t\tList langList = language.collect(Collectors.toList());\r\n\t\tlangList.forEach(new Consumer<String>()\r\n\t\t{\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void accept(String t) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tif(t!=null)\r\n\t\t\t\tSystem.out.println(\"length::\"+t.length());\r\n\t\t\t}\r\n\t\t\t\r\n\t\t});\r\n\t\t\r\n\t\tlangList.forEach(x -> System.out.println(\"value of x::\"+x));\r\n\t\t\r\n\t}", "private void sort() {\n ScoreComparator comparator = new ScoreComparator();\n Collections.sort(scores, comparator);\n }", "public void sortScores(){\r\n // TODO: Use a single round of bubble sort to bubble the last entry\r\n // TODO: in the high scores up to the correct location.\r\n \tcount=0;\r\n \tfor(int i=Settings.numScores-1; i>0;i--){\r\n \t\tif(scores[i]>scores[i-1]){\r\n \t\t\tint tempS;\r\n \t\t\ttempS=scores[i];\r\n \t\t\tscores[i]=scores[i-1];\r\n \t\t\tscores[i-1]=tempS;\r\n \t\t\t\r\n \t\t\tString tempN;\r\n \t\t\ttempN=names[i];\r\n \t\t\tnames[i]=names[i-1];\r\n \t\t\tnames[i-1]=tempN;\r\n \t\t\tcount++;\r\n \t\t}\r\n \t}\r\n }", "int getPriorityOrder();", "private void applyTheRule() throws Exception {\n System.out.println();\n System.out.println();\n System.out.println();\n System.out.println(\"IM APPLYING RULE \" + this.parameter.rule + \" ON MODEL: \" + this.resultingModel.path);\n System.out.println();\n if (parameter.rule.equals(\"1\")) {\n Rule1.apply(resultingModel);\n System.out.println();\n }\n\n if (parameter.rule.equals(\"2\")) {\n Rule2.apply(resultingModel);\n System.out.println();\n }\n\n if (parameter.rule.equals(\"3\")) {\n Rule3.all(resultingModel);\n System.out.println();\n }\n\n if (parameter.rule.equals(\"3a\")) {\n Rule3.a(resultingModel);\n\n }\n\n if (parameter.rule.equals(\"3b\")) {\n Rule3.b(resultingModel);\n }\n\n if (parameter.rule.equals(\"3c\")) {\n Rule3.c(resultingModel);\n }\n\n if (parameter.rule.equals(\"4\")) {\n Rule4.all(resultingModel);\n }\n\n if (parameter.rule.equals(\"4a\")) {\n Rule4.a(resultingModel);\n }\n\n if (parameter.rule.equals(\"4b\")) {\n Rule4.b(resultingModel);\n }\n\n if (parameter.rule.equals(\"4c\")) {\n Rule4.c(resultingModel);\n }\n\n if (parameter.rule.equals(\"r1\")) {\n Reverse1.apply(resultingModel, parameter.aggregateBy);\n }\n\n if (parameter.rule.equals(\"r2\")) {\n Reverse2.apply(resultingModel, parameter.aggregateBy);\n }\n\n if (parameter.rule.equals(\"r3\")) {\n Reverse3.apply(resultingModel, parameter.aggregateBy);\n }\n\n if (parameter.rule.equals(\"r3a\")) {\n Reverse3.a(resultingModel);\n }\n\n if (parameter.rule.equals(\"r3b\")) {\n Reverse3.b(resultingModel);\n }\n\n if (parameter.rule.equals(\"r3c\")) {\n Reverse3.c(resultingModel);\n }\n\n if (parameter.rule.equals(\"r4\")) {\n Reverse4.all(resultingModel);\n }\n\n if (parameter.rule.equals(\"r4a\")) {\n Reverse4.a(resultingModel);\n }\n\n if (parameter.rule.equals(\"r4b\")) {\n Reverse4.b(resultingModel);\n }\n\n if (parameter.rule.equals(\"r4c\")) {\n Reverse4.c(resultingModel);\n }\n\n if (parameter.rule.equals(\"5\")){\n Rule5.apply(resultingModel);\n }\n\n System.out.println(\"IM DONE APPLYING RULE \" + this.parameter.rule + \" ON MODEL: \" + this.resultingModel.path);\n\n this.resultingModel.addRule(parameter);\n //System.out.println(this.resultingModel.name);\n this.resultingModel.addOutputInPath();\n }", "static void reorderVisually(byte[] levels, Object[] objects) {\n int len = levels.length;\n\n byte lowestOddLevel = (byte)(NUMLEVELS + 1);\n byte highestLevel = 0;\n\n // initialize mapping and levels\n\n for (int i = 0; i < len; i++) {\n byte level = levels[i];\n if (level > highestLevel) {\n highestLevel = level;\n }\n\n if ((level & 0x01) != 0 && level < lowestOddLevel) {\n lowestOddLevel = level;\n }\n }\n\n while (highestLevel >= lowestOddLevel) {\n int i = 0;\n for (;;) {\n while (i < len && levels[i] < highestLevel) {\n i++;\n }\n int begin = i++;\n\n if (begin == levels.length) {\n break; // no more runs at this level\n }\n\n while (i < len && levels[i] >= highestLevel) {\n i++;\n }\n int end = i - 1;\n\n while (begin < end) {\n Object temp = objects[begin];\n objects[begin] = objects[end];\n objects[end] = temp;\n ++begin;\n --end;\n }\n }\n\n --highestLevel;\n }\n }", "public void sortStringArray() {\n\t\tSystem.out.println(\"PROPERY BELONGS TO ONLY CHILD CLASS!!\");\n\t}", "private void sortEntities(){\n for (int i = 1; i < sorted.size; i++) {\n for(int j = i ; j > 0 ; j--){\n \tEntity e1 = sorted.get(j);\n \tEntity e2 = sorted.get(j-1);\n if(getRL(e1) < getRL(e2)){\n sorted.set(j, e2);\n sorted.set(j-1, e1);\n }\n }\n }\n }", "public String getMessageSort();", "public String doSort();", "public void sort()\n\t{\n\t\tfor(int i=0;i<bowlers.size()-1;i++)\n\t\t{\n\t\t\tfor(int j=i+1;j<bowlers.size();j++)\n\t\t\t{\n\t\t\t\tif(bowlers.get(i).getBall()<bowlers.get(j).getBall())\n\t\t\t\t{\n\t\t\t\t\tBowler bowler=bowlers.get(i);\n\t\t\t\t\tbowlers.set(i,bowlers.get(j));\n\t\t\t\t\tbowlers.set(j,bowler);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<bowlers.size();i++)\n\t\t{\n\t\tSystem.out.println(bowlers.get(i).getBall());\n\t\t}\n\t}", "void printLevelOrder() \n { \n int h = height(this); \n int i; \n for (i=1; i<=h; i++) \n printGivenLevel(this, i); \n }", "protected void sortResources()\n {\n PriorityComparator priorityComparator = new PriorityComparator();\n List<Resource> resources = getResources();\n Collections.sort(resources, priorityComparator);\n }", "@SuppressWarnings(\"unchecked\")\n\tprivate void setRules() {\n\t\tthis.result = Result.START;\n\t\t// Create all initial rule executors, and shuffle them if needed.\n\t\tthis.rules = new LinkedList<>();\n\t\tModule module = getModule();\n\t\tfor (Rule rule : module.getRules()) {\n\t\t\tRuleStackExecutor executor = (RuleStackExecutor) getExecutor(rule, getSubstitution());\n\t\t\texecutor.setContext(module);\n\t\t\tthis.rules.add(executor);\n\t\t}\n\t\tif (getRuleOrder() == RuleEvaluationOrder.RANDOM || getRuleOrder() == RuleEvaluationOrder.RANDOMALL) {\n\t\t\tCollections.shuffle((List<RuleStackExecutor>) this.rules);\n\t\t}\n\t}", "public void sortIntermediateNodes() {\n\t\tfor (FTNonLeafNode intermediateNode : intermediateNodes.values()) {\n\t\t\tdeclareBeforeUse(intermediateNode);\n\t\t}\n\t}", "public void sort() {\n Operation t = this, lowest = this, prev = this, parent = this;\n // find lowest precedenced operation\n while (t.termRight instanceof Operation) {\n t = (Operation) t.termRight;\n if (t.operator.precedence.level < lowest.operator.precedence.level\n || (t.operator.precedence.parseDirection == ParseDirection.RIGHT_TO_LEFT\n && t.operator.precedence.level == lowest.operator.precedence.level)) {\n lowest = t;\n parent = prev;\n }\n prev = t;\n }\n\n if (lowest != this) {\n // swap the lowest precendence operator to treehead\n Operation newLeft = new Operation(operator, termLeft, termRight);\n\n // parent.termRight = lowest.termLeft;\n Operation pt = newLeft;\n while (pt.termRight != lowest) {\n pt = (Operation) pt.termRight;\n }\n pt.termRight = ((Operation) pt.termRight).termLeft;\n\n this.operator = lowest.operator;\n this.termLeft = newLeft;\n this.termRight = lowest.termRight;\n }\n this.termLeft.sort();\n this.termRight.sort();\n }", "public void sortTargetClasses(final IClientConfig config, final IInitialTestsRun testRun) {\n\t\tif (!testRun.getPassingResults().isEmpty()) {\n\t\t\tfinal IBytecodeCache cache = config.getInitialTestRunner().getBytecodeCache();\n\t\t\tCollections.sort(config.getTargetClasses(), new TargetClassComparator(cache, testRun));\n\t\t}\n\t}", "@Override\n public int compareTo(Object o) {\n Run run = (Run)o;\n if(runDate.compareTo(run.getRunDate()) == 0){ \n return getName().compareTo(run.getName());\n }else{\n return run.getRunDate().compareTo(getRunDate());\n }\n }", "@Override\n public final int compareTo(final Rule r) throws NullPointerException {\n // type cast\n if (r == null)\n throw new ClassCastException(\"Null CandidateRule to compareTo.\");\n\n // now compare the values\n final double val1 = this.getRuleValue();\n final double val2 = r.getRuleValue();\n if (val1 > val2)\n return 1;\n else if (val2 > val1)\n return -1;\n else if (this.getStats().getNumberOfTruePositives() > r.getStats().getNumberOfTruePositives())\n return 1;\n else if (this.getStats().getNumberOfTruePositives() < r.getStats().getNumberOfTruePositives())\n return -1;\n // now tie break on length\n else if (this.length() < r.length())\n return 1;\n else if (r.length() < this.length())\n return -1;\n // else\n // return this.toString().compareTo(r.toString()); // TODO by m.zopf: this version of compareTo is slower than the previous one, but also better. so find a fast and good solution.\n\n if (this.getTieBreaker() > r.getTieBreaker())\n return -1; // we are better\n else if (this.getTieBreaker() < r.getTieBreaker())\n return 1;\n else\n // we should only end up here if r and this are the same object\n return 0;\n }", "public static void sortByPopular(){\n SORT_ORDER = POPULAR_PATH;\n }", "public void pruneRules_cbaLike() {\n LOGGER.info(\"STARTED Postpruning\");\n //HashMap<ExtendRule,Integer> ruleErrors = new HashMap();\n //HashMap<ExtendRule,AttributeValue> ruleDefClass = new HashMap();\n ArrayList<ExtendRule> rulesToRemove = new ArrayList(); \n int totalErrorsWithoutDefault = 0; \n AttributeValue defClassForLowestTotalErrorsRule = getDefaultRuleClass();\n int lowestTotalErrors = getDefaultRuleError(defClassForLowestTotalErrorsRule);;\n ExtendRule lowestTotalErrorsRule = null;\n // DETERMINE TOTAL ERROR AND DEFAULT CLASS ASSOCIATED WITH EACH RULE \n // REMOVE RULES MATCHING ZERO TRANSACTIONS AND OF ZERO LENGTH\n for (Iterator<ExtendRule> it = extendedRules.iterator(); it.hasNext();) {\n\n ExtendRule rule = it.next();\n rule.updateQuality();\n rule.setQualityInRuleList(rule.getRuleQuality());\n if (LOGGER.isLoggable(Level.FINE)) {\n LOGGER.log(Level.FINE, \"Processing rule {0}\", rule.toString());\n }\n\n if (rule.getAntecedentLength() == 0) {\n LOGGER.fine(\"Rule of length 0, MARKED FOR REMOVAL\");\n rulesToRemove.add(rule); //covered transactions should not be removed\n } \n else if (rule.getRuleQuality().getA() == 0)\n {\n LOGGER.fine(\"Rule classifying 0 instances correctly, MARKED FOR REMOVAL\");\n rulesToRemove.add(rule); //covered transactions should not be removed \n }\n else\n {\n rule.removeTransactionsCoveredByAntecedent(true); \n totalErrorsWithoutDefault = totalErrorsWithoutDefault + rule.getRuleQuality().getB();\n // since transactions matching the current rule have been removed, the default class and error can change\n AttributeValue newDefClass = getDefaultRuleClass();\n int newDefError = getDefaultRuleError(newDefClass);\n int totalErrorWithDefault = newDefError + totalErrorsWithoutDefault;\n if (totalErrorWithDefault < lowestTotalErrors)\n {\n lowestTotalErrors = totalErrorWithDefault;\n lowestTotalErrorsRule = rule;\n defClassForLowestTotalErrorsRule= newDefClass;\n } \n //ruleErrors.put(rule,totalErrorWithDefault );\n //ruleDefClass.put(rule, newDefClass); \n }\n \n }\n boolean removeTail;\n // now we know the errors associated with each rule not marked for removal, we can perform pruning\n if (lowestTotalErrorsRule == null)\n {\n // no rule improves error over a classifier composed of only default rule\n // remove all rules\n removeTail = true;\n }\n else \n {\n removeTail = false;\n }\n \n data.getDataTable().unhideAllTransactions();\n for (Iterator<ExtendRule> it = extendedRules.iterator(); it.hasNext();) {\n ExtendRule rule = it.next();\n if (rulesToRemove.contains(rule) || removeTail)\n {\n it.remove();\n continue;\n }\n if (rule.equals(lowestTotalErrorsRule))\n {\n removeTail = true;\n }\n rule.updateQuality(); \n }\n \n \n if (LOGGER.isLoggable(Level.FINE)) {\n LOGGER.fine(\"Creating new default rule within narrow rule procedure\");\n }\n \n \n extendedRules.add(createNewDefaultRule(defClassForLowestTotalErrorsRule));\n \n \n LOGGER.info(\"FINISHED Postpruning\");\n }", "public static void quickSortTest(){\n\t\tTransformer soundwave = new Transformer(\"Soundwave\", 'D', new int[] {8,9,2,6,7,5,6,10});\n\t\tTransformer bluestreak = new Transformer(\"Bluestreak\", 'A', new int[] {6,6,7,9,5,2,9,7});\n\t\tTransformer hubcap = new Transformer(\"Hubcap\", 'A', new int[] {4,4,4,4,4,4,4,4});\n\t\tTransformer abominus = new Transformer(\"Abominus\", 'D', new int[] {10,1,3,10,5,10,8,4});\n\t\t\n\t\tgame.addTransformer(soundwave);\n\t\tgame.addTransformer(bluestreak);\n\t\tgame.addTransformer(hubcap);\n\t\tgame.addTransformer(abominus);\n\t\t\n\t\tgame.sortCompetitorsByRank();\n\t\tgame.printSortedRoster();\n\t}", "private static void DoOrderBy()\n\t{\n\t\tArrayList<Attribute> inAtts = new ArrayList<Attribute>();\n\t\tinAtts.add(new Attribute(\"Int\", \"n_n_nationkey\"));\n\t\tinAtts.add(new Attribute(\"Str\", \"n_n_name\"));\n\t\tinAtts.add(new Attribute(\"Int\", \"n_n_regionkey\"));\n\t\tinAtts.add(new Attribute(\"Str\", \"n_n_comment\"));\n\n\t\tArrayList<Attribute> outAtts = new ArrayList<Attribute>();\n\t\toutAtts.add(new Attribute(\"Int\", \"att1\"));\n\t\toutAtts.add(new Attribute(\"Str\", \"att2\"));\n\t\toutAtts.add(new Attribute(\"Int\", \"att3\"));\n\t\toutAtts.add(new Attribute(\"Str\", \"att4\"));\n\n\t\t// These could be more complicated expressions than simple input columns\n\t\tMap<String, String> exprsToCompute = new HashMap<String, String>();\n\t\texprsToCompute.put(\"att1\", \"n_n_nationkey\");\n\t\texprsToCompute.put(\"att2\", \"n_n_name\");\n\t\texprsToCompute.put(\"att3\", \"n_n_regionkey\");\n\t\texprsToCompute.put(\"att4\", \"n_n_comment\");\n\t\t\n\t\t// Order by region key descending then nation name ascending\n\t\tArrayList<SortKeyExpression> sortingKeys = new ArrayList<SortKeyExpression>();\n\t\tsortingKeys.add(new SortKeyExpression(\"Int\", \"n_n_regionkey\", false));\n\t\tsortingKeys.add(new SortKeyExpression(\"Str\", \"n_n_name\", true));\n\t\t\n\t\t// run the selection operation\n\t\ttry\n\t\t{\n\t\t\tnew Order(inAtts, outAtts, exprsToCompute, sortingKeys, \"nation.tbl\", \"out.tbl\", \"g++\", \"cppDir/\");\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t}", "protected void sortCode() {\n for (int i = 1; i < codeCount; i++) {\n int who = i;\n for (int j = i + 1; j < codeCount; j++) {\n if (code[j].getFileName().compareTo(code[who].getFileName()) < 0) {\n who = j; // this guy is earlier in the alphabet\n }\n }\n if (who != i) { // swap with someone if changes made\n SketchCode temp = code[who];\n code[who] = code[i];\n code[i] = temp;\n }\n }\n }", "public void deduceRules()\n{\n List<RuleInstance> allrules = loadRules();\n\n List<UpodRule> rules = new ArrayList<UpodRule>();\n for (UpodRule ur : for_program.getRules()) {\n if (ur.isExplicit()) {\n\t rules.add(ur);\n\t RuleInstance ri = new RuleInstance(ur,from_world.getUniverse());\n\t allrules.add(ri);\n }\n }\n\n Set<Condition> allconds = getConditions(allrules);\n\n tree_root = new TreeNode(allrules,null);\n\n expandTree(tree_root,allconds);\n\n generateRules(tree_root);\n}", "public void sort() {\r\n for (int i = 0; i < namesOfApp.length && i < runTimeOfApp.length; i++) {\r\n for (int j = 0; j < i; j++) {\r\n if (runTimeOfApp[j] < runTimeOfApp[i]) {\r\n String tempName = namesOfApp[i];\r\n long tempRunTime = runTimeOfApp[i];\r\n namesOfApp[i] = namesOfApp[j];\r\n runTimeOfApp[i] = runTimeOfApp[j];\r\n namesOfApp[j] = tempName;\r\n runTimeOfApp[j] = tempRunTime;\r\n }\r\n }\r\n }\r\n\r\n }", "private void sortCoreTypes() {\n\t\tArrays.sort(coreBuiltin, (o1, o2) -> Long.compare(o1.id, o2.id));\n\t}", "@Override\n protected void runAlgorithm() {\n for (int i = 0; i < getArray().length; i++) {\n for (int j = i + 1; j < getArray().length; j++) {\n if (applySortingOperator(getValue(j), getValue(i))) {\n swap(i, j);\n }\n }\n }\n }", "public void printRules_RVLR () {\n \n System.out.println(\"PRINTING RULESET ID : \" + this.id + \" (\" + this.size() + \") entries.\");\n for (int i = 0; i < this.size(); i++) {\n \n System.out.println(\"Rule \" + (i+1) + \" (ID \" + references.get(i) + \") : \" + this.rulelist.getRuleByID(references.get(i)) + \" Prob : \" + this.rulelist.getRuleByID(references.get(i)).getProb() + \" TIMES \" + this.rulelist.getRuleByID(references.get(i)).occurrencies + \" PREC \" + this.rulelist.getRuleByID(references.get(i)).prec_occurrencies + \" Value : \" + this.rulelist.getRuleByID(references.get(i)).get_RVRL());\n }\n System.out.println(\"Total Prob : \" + this.totalProb);\n //System.out.println(\"Precedences : \" + this.precedences);\n }", "public void sort() {\n\t\t\tCollections.sort(population, new SolutionComparator());\n\t\t}", "private static void sortNoun() throws Exception{\r\n\t\tBufferedReader[] brArray = new BufferedReader[ actionNumber ];\r\n\t\tBufferedWriter[] bwArray = new BufferedWriter[ actionNumber ];\r\n\t\tString line = null;\r\n\t\tfor(int i = 0; i < actionNameArray.length; ++i){\r\n\t\t\tSystem.out.println(\"sorting for \" + actionNameArray[ i ]);\r\n\t\t\tbrArray[ i ] = new BufferedReader( new FileReader(TFIDF_URL + actionNameArray[ i ] + \".tfidf\"));\r\n\t\t\tHashMap<String, Double> nounTFIDFMap = new HashMap<String, Double>();\r\n\t\t\tint k = 0;\r\n\t\t\t// 1. Read tfidf data\r\n\t\t\twhile((line = brArray[ i ].readLine())!=null){\r\n\t\t\t\tnounTFIDFMap.put(nounList.get(k), Double.parseDouble(line));\r\n\t\t\t\tk++;\r\n\t\t\t}\r\n\t\t\tbrArray[ i ].close();\r\n\t\t\t// 2. Rank according to tfidf\r\n\t\t\tValueComparator bvc = new ValueComparator(nounTFIDFMap);\r\n\t\t\tTreeMap<String, Double> sortedMap = new TreeMap<String, Double>(bvc);\r\n\t\t\tsortedMap.putAll(nounTFIDFMap);\r\n\t\t\t\r\n\t\t\t// 3. Write to disk\r\n\t\t\tbwArray[ i ] = new BufferedWriter(new FileWriter( SORTED_URL + actionNameArray[ i ] + \".sorted\"));\r\n\t\t\tfor(String nounKey : sortedMap.keySet()){\r\n\t\t\t\tbwArray[ i ].append(nounKey + \"\\t\" + nounTFIDFMap.get(nounKey) + \"\\n\");\r\n\t\t\t}\r\n\t\t\tbwArray[ i ].close();\r\n\t\t}\r\n\t}", "public void sortAllRows(){\n\t\t/* code goes here */ \n\t\t\n\t\t\n\t\t//WHY SHOULD THEY BE SORTED LIKE THE EXAMPLE SAYS???????\n\t\t\n\t}", "@Test\n\tpublic void testLLSort() {\n\t\tLinkedList playerList = new LinkedList();\n\t\tPlayer tempInsert5 = new Player();\n\t\ttempInsert5.setName(\"test5\");\n\t\ttempInsert5.setPoints(5);\n\t\ttempInsert5.setWins(4);\n\t\ttempInsert5.setLosses(3);\n\t\tplayerList.LLInsert(tempInsert5);\n\t\tplayerList.LLPrint();\n\t\t\n\t\tPlayer tempInsert2 = new Player();\n\t\ttempInsert2.setName(\"test2\");\n\t\ttempInsert2.setPoints(2);\n\t\ttempInsert2.setWins(1);\n\t\ttempInsert2.setLosses(0);\n\t\tplayerList.LLInsert(tempInsert2);\n\t\t\n\t\tPlayer tempInsert3 = new Player();\n\t\ttempInsert3.setName(\"test3\");\n\t\ttempInsert3.setPoints(3);\n\t\ttempInsert3.setWins(2);\n\t\ttempInsert3.setLosses(1);\n\t\tplayerList.LLInsert(tempInsert3);\n\t\t\n\t\tPlayer tempInsert1 = new Player();\n\t\ttempInsert1.setName(\"test1\");\n\t\ttempInsert1.setPoints(1);\n\t\ttempInsert1.setWins(0);\n\t\ttempInsert1.setLosses(0);\n\t\tplayerList.LLInsert(tempInsert1);\n\t\tplayerList.LLPrint();\n\t\t\n\t\tPlayer tempInsert4 = new Player();\n\t\ttempInsert4.setName(\"test4\");\n\t\ttempInsert4.setPoints(4);\n\t\ttempInsert4.setWins(3);\n\t\ttempInsert4.setLosses(2);\n\t\tplayerList.LLInsert(tempInsert4);\n\t\tplayerList.LLPrint();\n\t\t\n\t\tplayerList.LLSort();\n\t\tassertEquals(playerList.LLPrint(), \n\t\t\t\t\"test5: Points: 5, Wins/Losses: 4/3\\n\"\n\t\t\t\t\t\t+ \"test4: Points: 4, Wins/Losses: 3/2\\n\"\n\t\t\t\t\t\t+ \"test3: Points: 3, Wins/Losses: 2/1\\n\"\n\t\t\t\t\t\t+ \"test2: Points: 2, Wins/Losses: 1/0\\n\"\n\t\t\t\t\t\t+ \"test1: Points: 1, Wins/Losses: 0/0\\n\");\n\t}", "private void externalSort() throws IOException{\n\t\t/*\n\t\t * Pass 0: internal sort\n\t\t */\n\t\t// Read in from child;Write out runs of B pages;\n\t\t\n\t\tint numPerRun = B * 4096 / (schema.size() * 4); // # of tuples per run given in Pass0\n\t\tboolean buildMore;\n\t\tint numRuns = 0;\n\t\tif(sortAttrsIndex == null) {\n\t\t\tthis.buildAttrsIndex();\n\t\t}\n\t\texComparator myComp = new exComparator();\n\t\tinternal = new PriorityQueue<Tuple>(myComp);\n\t\tdo {\n\t\t\tbuildMore = this.buildHeap(numPerRun);\n\t\t\tnumRuns++;\n\t\t\t\n\t\t\t// write out the (numRuns)th run\n\t\t\tTupleWriter TW;\n\t\t\tif(!buildMore && numRuns == 1) {\n\t\t\t\tTW = new TupleWriter(new FileOutputStream(tempsubdir + \"sortResult\"));\n\t\t\t} else {\n\t\t\t\tTW = new TupleWriter(new FileOutputStream(tempsubdir + \"0_\" + numRuns));\n\t\t\t}\n\t\t\twhile(!internal.isEmpty()) {\n//\t\t\t\tSystem.out.println(internal.peek().data);\n\t\t\t\tTW.setNextTuple(internal.poll()); \n\t\t\t}\n\t\t\t// leftover, fill with zero and write out\n\t\t\tif(!TW.bufferEmpty()) { // TW would never know the end of writing\n\t\t\t\tTW.fillFlush(); \n\t\t\t}\n\t\t\tTW.close();\n\t\t\t// internal must be empty until this point\n\t\t}while (buildMore);\n\t\t\n\t\t/*\n\t\t * Pass 1 and any following\n\t\t */\n\t\tif(numRuns > 1) { // if numRuns generated in Pass 0 is 1 already, file sorted already, no need to merge\n\t\t\tthis.merge(numRuns, myComp);\n\t\t}\n\t\t\n\t}", "public void sort()\n {\n RecordComparator comp = new RecordComparator(Context.getCurrent().getApplicationLocale());\n if (comp.hasSort)\n sort(comp);\n }", "protected void processTemporalRule(){\n RuleThread currntThrd;\n Thread currntThrdParent; // the parent of the current thread;\n int currntOperatingMode;\n int currntThrdPriority ;\n\n if( temporalRuleQueue.getHead()!= null){\n\n //If the rule thread is the top level, trigger the rule.\n currntThrd=temporalRuleQueue.getHead();\n while(currntThrd!= null){\n currntThrdPriority = currntThrd.getPriority ();\n currntThrdParent = currntThrd.getParent();\n\n if (currntThrd.getOperatingMode() == RuleOperatingMode.READY\n && !(currntThrd.getParent() == applThrd ||\n currntThrd.getParent().getClass().getName().equals(\"EventDispatchThread\")||\n currntThrd.getParent().getName ().equals (Constant.LEDReceiverThreadName)\n )){\n if(ruleSchedulerDebug)\n\t\t \t\t System.out.println(\"Changing mode of \"+currntThrd.getName()+\"from READY to EXE\");\n\n currntThrd.setOperatingMode(RuleOperatingMode.EXE);\n\t\t\t\t currntThrd.setScheduler(this);\n currntThrd.start();\n int rulePriority = 0;\n currntThrdParent = currntThrd;\n if(currntThrdParent instanceof RuleThread){\n rulePriority = currntThrd.getRulePriority();\n }\n currntThrd = currntThrd.next;\n while(currntThrd != null && currntThrd instanceof RuleThread &&\n currntThrd.getRulePriority() == rulePriority\n \t\t\t\t\t\t\t && currntThrd.getParent() == currntThrdParent ){\n if(ruleSchedulerDebug)\n \t\t\t System.out.print(\" start child thread =>\");\n\n currntThrd.print();\n currntThrd.setScheduler(this);\n if(\tcurrntThrd.getOperatingMode()== RuleOperatingMode.READY ){\n currntThrd.setOperatingMode(RuleOperatingMode.EXE);\n currntThrd.start();\n }\n \t\t\t\t\tcurrntThrd = currntThrd.next;\n }\n }\n // case 1.2:\n else if (currntThrd != null &&\tcurrntThrd.getOperatingMode() == RuleOperatingMode.EXE){\n \t\t\t\tcurrntThrd = currntThrd.next;\n\n }\n // case 1.3:\n\t\t\t\telse if (currntThrd != null && currntThrd.getOperatingMode() == RuleOperatingMode.WAIT){\n\t\t\t\t if(currntThrd.next == null){\n currntThrd.setOperatingMode(RuleOperatingMode.EXE);\n\n// ;\n // All its childs has been completed.\n // This currntThread's operating mode will be changed to FINISHED.\n }\n\t\t\t\t\telse{\n // check whether its neighbor is its child\n\t\t\t\t\t\tif(currntThrd.next.getParent() == currntThrdParent){\n if(ruleSchedulerDebug){\n\t \t\t\t\t\t System.out.println(\"\\n\"+currntThrd.getName()+\" call childRecurse \"+currntThrd.next.getName());\n\t\t \t\t\t\t\tcurrntThrd.print();\n }\n\n childRecurse(currntThrd, temporalRuleQueue);\n }\n }\n currntThrd = currntThrd.next;\n }\n // case 1.4:\n\t\t\t\telse if (currntThrd != null && currntThrd.getOperatingMode() == RuleOperatingMode.FINISHED){\n if(ruleSchedulerDebug){\n\t\t\t\t\t System.out.println(\"delete \"+currntThrd.getName() +\" rule thread from rule queue.\");\n\t\t\t\t\t\tcurrntThrd.print();\n }\n processRuleList.deleteRuleThread(currntThrd,temporalRuleQueue);\n \tcurrntThrd = currntThrd.next;\n }\n else{\n \t\t\t\tcurrntThrd = currntThrd.next;\n }\n }\n }\n }", "public SoilTypeComparator() {\n\t\tthis.descending = true;\n\t}", "public final void testSortCriteria() throws Exception\n {\n Vector vect = new Vector();\n final long modifier = 100;\n long sdArr[][] = { { 0, 10 }, { 0, 12 }, { 0, 8 }, { -5, 20 }, { -5, 13 }, { -5, 15 }, { -5, -7 }, { 2, 10 },\n { 2, 8 }, { 2, 2 }, { 12, 14 }, { -5, 5 }, { 10, 2 } };\n long sorted[][] = { { -5, -7 }, { 10, 2 }, { 2, 2 }, { -5, 5 }, { 0, 8 }, { 2, 8 }, { 0, 10 }, { 2, 10 },\n { 0, 12 }, { -5, 13 }, { 12, 14 }, { -5, 15 }, { -5, 20 } };\n\n patchArray(sdArr, modifier);\n patchArray(sorted, modifier);\n\n for (int i = 0; i < sdArr.length; i++)\n {\n vect.addElement(new RecordingImplMock(new Date(sdArr[i][0]), sdArr[i][1]));\n }\n RecordingList recordingList = new RecordingListImpl(vect);\n Comparator comparator = new Comparator();\n\n RecordingList newList = recordingList.sortRecordingList(comparator);\n\n assertNotNull(\"recordingList returned null\", newList);\n\n // check results\n LocatorRecordingSpec lrs = null;\n RecordingRequest req = null;\n\n int i = newList.size();\n for (i = 0; i < newList.size(); i++)\n {\n req = (RecordingRequest) newList.getRecordingRequest(i);\n lrs = (LocatorRecordingSpec) req.getRecordingSpec();\n assertEquals(\"sort criteria is wrong\", sorted[i][1], lrs.getDuration());\n }\n }", "public int getPriority()\n\t{\n\treturn level;\n\t}", "public void sort() {\n }", "public static void doSaveOrder ( RunData data)\n\t{\n\t\tSessionState state = ((JetspeedRunData)data).getPortletSessionState (((JetspeedRunData)data).getJs_peid ());\n\n\t\t//get the ParameterParser from RunData\n\t\tParameterParser params = data.getParameters ();\n\n\t\tString flow = params.getString(\"flow\");\n\t\t\n\t\tif(\"save\".equalsIgnoreCase(flow))\n\t\t{\n\t\t\tString folderId = params.getString (\"folderId\");\n\t\t\tif(folderId == null)\n\t\t\t{\n\t\t\t\t// TODO: log error\n\t\t\t\t// TODO: move strings to rb\n\t\t\t\taddAlert(state, \"Unable to complete Sort\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tContentCollectionEdit collection = ContentHostingService.editCollection(folderId);\n\t\t\t\t\tList memberIds = collection.getMembers();\n\t\t\t\t\tMap priorities = new Hashtable();\n\t\t\t\t\tIterator it = memberIds.iterator();\n\t\t\t\t\twhile(it.hasNext())\n\t\t\t\t\t{\n\t\t\t\t\t\tString memberId = (String) it.next();\n\t\t\t\t\t\tint position = params.getInt(\"position_\" + Validator.escapeUrl(memberId));\n\t\t\t\t\t\tpriorities.put(memberId, new Integer(position));\n\t\t\t\t\t}\n\t\t\t\t\tcollection.setPriorityMap(priorities);\n\t\t\t\t\t\n\t\t\t\t\tContentHostingService.commitCollection(collection);\n\t\t\t\t\t\n\t\t\t\t\tSortedSet expandedCollections = (SortedSet) state.getAttribute(STATE_EXPANDED_COLLECTIONS);\n\t\t\t\t\tif(expandedCollections == null)\n\t\t\t\t\t{\n\t\t\t\t\t\texpandedCollections = (SortedSet) new Hashtable();\n\t\t\t\t\t}\n\t\t\t\t\texpandedCollections.add(folderId);\n\t\t\t\t\t\n\t\t\t\t\tComparator comparator = ContentHostingService.newContentHostingComparator(ResourceProperties.PROP_CONTENT_PRIORITY, true);\n\t\t\t\t\tMap expandedFolderSortMap = (Map) state.getAttribute(STATE_EXPANDED_FOLDER_SORT_MAP);\n\t\t\t\t\tif(expandedFolderSortMap == null)\n\t\t\t\t\t{\n\t\t\t\t\t\texpandedFolderSortMap = new Hashtable();\n\t\t\t\t\t\tstate.setAttribute(STATE_EXPANDED_FOLDER_SORT_MAP, expandedFolderSortMap);\n\t\t\t\t\t}\n\t\t\t\t\texpandedFolderSortMap.put(folderId, comparator);\n\t\t\t\t}\n\t\t\t\tcatch(IdUnusedException e)\n\t\t\t\t{\n\t\t\t\t\t// TODO: log error\n\t\t\t\t\t// TODO: move strings to rb\n\t\t\t\t\taddAlert(state, \"Unable to complete Sort\");\n\t\t\t\t}\n\t\t\t\tcatch(TypeException e)\n\t\t\t\t{\n\t\t\t\t\t// TODO: log error\n\t\t\t\t\t// TODO: move strings to rb\n\t\t\t\t\taddAlert(state, \"Unable to complete Sort\");\n\t\t\t\t}\n\t\t\t\tcatch(PermissionException e)\n\t\t\t\t{\n\t\t\t\t\t// TODO: log error\n\t\t\t\t\t// TODO: move strings to rb\n\t\t\t\t\taddAlert(state, \"Unable to complete Sort\");\n\t\t\t\t}\n\t\t\t\tcatch(InUseException e)\n\t\t\t\t{\n\t\t\t\t\t// TODO: log error\n\t\t\t\t\t// TODO: move strings to rb\n\t\t\t\t\taddAlert(state, \"Unable to complete Sort\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (state.getAttribute(STATE_MESSAGE) == null)\n\t\t{\n\t\t\tstate.setAttribute (STATE_MODE, MODE_LIST);\n\n\t\t}\t// if-else\n\n\t}", "public static void main(String[] args) {\n\t\tList<StatetostateDetail> list = new ArrayList<StatetostateDetail>();\n\t\tfor(int i = 1; i < 16; i++){\n\t\t\tStatetostateDetail s = new StatetostateDetail();\n\t\t\ts.setId(i);\n\t\t\ts.setStatue(0);\n\t\t\ts.setTime(System.currentTimeMillis() + (i + i * 100));\n\t\t\tlist.add(s);\n\t\t}\n\t\tlist.get(3).setStatue(1);\n\t\tlist.get(5).setStatue(1);\n\t\tlist.get(10).setStatue(1);\n\t\tlist.get(14).setStatue(1);\n\t\tlist.get(7).setStatue(2);\n\t\tlist.get(9).setStatue(2);\n\t\tSystem.out.println(\"list:\" + list);\n\t\n\t\t\n\t\tCollections.sort(list, new Comparator<StatetostateDetail>(){\n public int compare(StatetostateDetail s1, StatetostateDetail s2) {\n \tLong t1 = null;\n \tLong t2 = null;\n \ttry{\n \t\tt1 = s1.getTime();\n\t \tt2 = s2.getTime();\n \t}catch(Exception e){\n \t\te.printStackTrace();\n \t}\n \n return t2.compareTo(t1);\n }\n });\n\t\tCollections.sort(list, new Comparator<StatetostateDetail>(){\n public int compare(StatetostateDetail s1, StatetostateDetail s2) {\n \treturn s1.getStatue()>s2.getStatue()?1:(s1.getStatue()==s2.getStatue()?0:(s2.getTime()>s1.getTime()?-1:0));\n }\n });\n\t\t\n\t\tSystem.out.println(\"list:\" + list);\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "public void sortChildsZ(){\n\t\tif(childList != null && childList.size() > 0){\n\t\t\tCollections.sort(childList);\n\t\t\tfor(Ent e: childList){\n\t\t\t\te.sortChildsZ();\n\t\t\t}\n\t\t}\n\t}", "public void sort(){\n listOperation.sort(Comparator.comparingInt(Operation::getiStartTime));\n }", "protected List<GoapState> sortGoalStates() {\r\n\t\tif (this.goapUnit.getGoalState().size() > 1) {\r\n\t\t\tthis.goapUnit.getGoalState().sort(new Comparator<GoapState>() {\r\n\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic int compare(GoapState o1, GoapState o2) {\r\n\t\t\t\t\treturn o2.importance.compareTo(o1.importance);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\t\treturn this.goapUnit.getGoalState();\r\n\t}", "private void sortInvestors(int sortingOrder) {\n\t\tList<Loan> loanList = investmentMap.keySet().stream().sorted().collect(Collectors.toList());\n\t\t\n\t\tfor(Loan l : loanList) {\n\t\t\tList<Investor> investorList = investmentMap.get(l); //List of Investors that are eligible to invest in Loan l after rules have been applied\n\t\t\t\n\t\t\t//Sorts Investors by the chosen Sorting Style\n\t\t\tinvestorList = sortInvestors(investorList, sortingOrder);\n\t\t\t\n\t\t\ttemporaryInvestors = new HashMap<>();\n\t\t\tlong originalLoan = l.getLoanAmount();\n\t\t\t\n\t\t\tfor(Investor i : investorList) {\n\t\t\t\tif(i.getInvestmentAmount() == 0) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif(i.getInvestmentAmount() >= l.getLoanAmount()) {\t\t//If the investor has more (or equal) number of funds than the loan is requesting\n\t\t\t\t\ti.setInvestmentAmount(i.getInvestmentAmount() - l.getLoanAmount()); \t//Change the remaining amount of funds available to invest\n\t\t\t\t\tl.addInvestor(i, l.getLoanAmount()); \t//Add the investor to the given Loan, as well as the amount invested\n\t\t\t\t\ti.setInvestments(l, l.getLoanAmount());\t //Add the loan to the given investor\n\t\t\t\t\tl.setLoanAmount(0); \t//Set the outstanding loan amount to 0\n\t\t\t\t\tl.setLoanGiven(true); \t//Set loanGiven boolean to true - Loan has been successfully been matched\n\t\t\t\t\tbreak; //Continue to next loan\n\t\t\t\t} else {\n\t\t\t\t\ttemporaryInvestors.put(i, i.getInvestmentAmount());\t\t//Place the current investor and amount invested into temporary storage\n\t\t\t\t\ti.setInvestments(l, i.getInvestmentAmount());\n\t\t\t\t\tl.addInvestor(i, i.getInvestmentAmount());\n\t\t\t\t\tlong remainingInvestment = i.getInvestmentAmount() - l.getLoanAmount();\n\t\t\t\t\tl.setLoanAmount(l.getLoanAmount() - i.getInvestmentAmount());\n\t\t\t\t\tif(remainingInvestment > 0) {\t//If the investor has funds left after investing\n\t\t\t\t\t\ti.setInvestmentAmount(remainingInvestment);\n\t\t\t\t\t} else {\n\t\t\t\t\t\ti.setInvestmentAmount(0);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\t//If after all eligible investors have been accounted for, and the loan hasn't been matched\n\t\t\t//Remove the temporary investors\n\t\t\tif(!l.loanGiven() && l.getInvestorList().size() > 0) {\n\t\t\t\tremoveUnfundedInvestors(l, investorList);\n\t\t\t\tl.setLoanAmount(originalLoan);\n\t\t\t}\n\t\t\t\n\t\t}\n\t}", "public ArrayList<SortingRule> get_sort_by() {\n\t\treturn sort_by;\n\t}", "private Vector<Node> sortCodes()\n\t{\n\t\tVector<Node> nodes = new Vector<Node>();\n\t\tfor(int i = 0; i < prioQ.size(); i++)\n\t\t{\n\t\t\tNode n = new Node(prioQ.get(i).getData(),\n\t\t\t\t\tprioQ.get(i).getCount());\n\t\t\tnodes.add(n);\n\t\t}\n\t\n\t\tCollections.sort(nodes, new Comparator() {\n\t public int compare(Object o1, Object o2) {\n\t Integer x1 = ((Node) o1).getCount();\n\t Integer x2 = ((Node) o2).getCount();\n\t int sComp = x1.compareTo(x2);\n\n\t if (sComp != 0) {\n\t return sComp;\n\t } else {\n\t Integer a1 = ((Node) o1).getData();\n\t Integer a2 = ((Node) o2).getData();\n\t return a1.compareTo(a2);\n\t }\n\t }\n\t });\n\t\t\n\t\treturn nodes;\n\t}", "public int getComparatorLevel() {\n return -1;\n }", "@Override\r\n\t\tpublic int compareTo(document o) {\n\t\t\treturn -Integer.compare(this.level, o.level);\r\n\t\t}", "@Override\n\t\tpublic int compare(RankingEntry o1, RankingEntry o2) {\n\t\t\tif (o2.getMurderCount() == o1.getMurderCount()) {\n\t\t\t\treturn o1.getDeathCount() - o2.getDeathCount();\n\t\t\t}\n\t\t\treturn o2.getMurderCount() - o1.getMurderCount();\n\t\t}", "static String[] sortWordsByScore(String[] words) {\n\n if(words.length == 0) return new String[0];\n String[] sorted = new String[words.length];\n\n int minScore = -1; //minScore(words[0]);\n int currentIndex = 1;\n int index = 0;\n\n getMinScoreWordIndex(words, minScore);\n\n System.out.println(tracker);\n while(currentIndex <= tracker.size()){\n\n\n System.out.println(tracker.get(index));\n \n sorted[index] = words[tracker.get(index)];\n\n index++;\n currentIndex++;\n// tracker.clear();\n }\n\n return sorted;\n }", "@Test\n\tpublic void testRankingSortedByName() throws BattleshipException {\n\t\t\n\t\t//Play Julia\n\t\tinitScores(playerJulia);\n\t\tcraftRanking.addScore(craftScore);\n\t\thitRanking.addScore(hitScore);\n\t\t//Play Raul\n\t\tinitScores(playerRaul);\n\t\tcraftRanking.addScore(craftScore);\n\t\thitRanking.addScore(hitScore);\n\t\t//Play Laura\n\t\tinitScores(playerLaura);\n\t\tcraftRanking.addScore(craftScore);\n\t\thitRanking.addScore(hitScore);\n\t\t//Play Simon\n\t\tinitScores(playerSimon);\n\t\tcraftRanking.addScore(craftScore);\n\t\thitRanking.addScore(hitScore);\n\t\tcompareRankings(SRANKING5, rankingsToString());\n\t}", "public void sortSpeeds() {\n\n//\t\tSystem.out.println(\"BEGIN: SORT SPEEDS\");\n\t\tthis.printMoves();\n\n\t\tArrayList<Move> temp = new ArrayList<Move>();\n\t\tint i = 1;\n\t\tint x = 0;\n\t\tboolean y = true;\n\n\t\ttemp.add(niceMoves.get(0));\n\t\tint size = niceMoves.size();\n\n\t\twhile (i < niceMoves.size()) {\n\n//\t\t\tSystem.out.println(\"Reiterating.\");\n\t\t\ty = true;\n\n\t\t\twhile (y) {\n\n\t\t\t\t//System.out.println(\"I: \" + i + \" X: \" + x);\n\n\t\t\t\ttry {\n\n\t\t\t\t\tif (niceMoves.get(i).getSpeed() > temp.get(x).getCalcedSpeed()) {\n\n//\t\t\t\t\t\tSystem.out.println(\"Adding \" + niceMoves.get(i).getCaster() + \" to spot \" + x);\n\t\t\t\t\t\ttemp.add(x, niceMoves.get(i));\n\t\t\t\t\t\ty = false;\n\t\t\t\t\t}\n\t\t\t\t\t//X has cycled through temp, meaning nicemoves.i should be added to the end\n\t\t\t\t\t//The only way to check for this is to let it overflow lol\n\t\t\t\t} catch (Exception E) {\n//\t\t\t\t\tSystem.out.println(\"Adding \" + niceMoves.get(i).getCaster() + \" to spot \" + x);\n\t\t\t\t\ttemp.add(x, niceMoves.get(i));\n\t\t\t\t\ty = false;\n\n\t\t\t\t}\n\n\t\t\t\tx += 1;\n\t\t\t}\n\n\t\t\ti += 1;\n\t\t\tx = 0;\n\t\t}\n\n\t\tniceMoves = temp;\n\n//\t\tSystem.out.println();\n//\t\tSystem.out.println(\"Sorting Complete! New Order: \");\n//\t\tthis.printMoves();\n\t\t//end of sort speeds\n\t}", "public void triCollection(){\r\n Collections.sort(collection);\r\n }", "public void traverseLevelOrder() {\n\t\tlevelOrder(this);\n\t}", "public static void main(String[] args) {\n\t\tMap<String,Integer> m = new HashMap<String, Integer>();\n\t\tm.put(\"ssid1\", 3);\n\t\tm.put(\"ssid2\", 5);\n\t\tm.put(\"ssid3\", 1);\n\t\tm.put(\"dd\", 10);\n\t\tm.put(\"aa\", 3);\n\t\tSystem.out.println(m);\n\t\tm = sortByValue(m, true);\n\t\tSystem.out.println(m);\n\n\t}", "public RadixSorting()\n\t{\n\t\tbuckets.add(zero);\n\t\tbuckets.add(one);\n\t\tbuckets.add(two);\n\t\tbuckets.add(three);\n\t\tbuckets.add(four);\n\t\tbuckets.add(five);\n\t\tbuckets.add(six);\n\t\tbuckets.add(seven);\n\t\tbuckets.add(eight);\n\t\tbuckets.add(nine);\n\t\tbuckets.add(ten);\n\t\tbuckets.add(eleven);\n\t\tbuckets.add(twelve);\n\t\tbuckets.add(thirteen);\n\t\tbuckets.add(fourteen);\n\t\tbuckets.add(fifteen);\n\t\tbuckets.add(sixteen);\n\t\tbuckets.add(seventeen);\n\t\tbuckets.add(eighteen);\n\t\tbuckets.add(nineteen);\n\t}", "public void printRules () {\n \n System.out.println(\"PRINTING RULESET ID : \" + this.id + \" (\" + this.size() + \") entries.\");\n for (int i = 0; i < this.size(); i++) {\n \n System.out.println(\"Rule \" + (i+1) + \" (ID \" + references.get(i) + \") : \" + this.rulelist.getRuleByID(references.get(i)) + \" Prob : \" + this.rulelist.getRuleByID(references.get(i)).getProb() + \" TIMES \" + this.rulelist.getRuleByID(references.get(i)).occurrencies + \" PREC \" + this.rulelist.getRuleByID(references.get(i)).prec_occurrencies);\n }\n System.out.println(\"Total Prob : \" + this.totalProb);\n System.out.println(\"Precedences : \" + this.precedences);\n }", "public void step3(){\n\n Collections.sort(names,(String a, String b) -> a.compareTo(b));\n }", "public void sort_crystals() {\n\t\tArrays.sort(identifiedArray, new SortByRating()); \n\t}", "void printLevelOrder() {\n\t\tint h = height(root);\n\t\tint i;\n\t\tfor (i = h; i >= 1; i--)\n\t\t\tprintGivenLevel(root, i);\n\t}", "public void sortChart() {\n\t\tPassengerTrain temp;\n\t\tGoodsTrain temp1;\n\n\t\tfor (int index = 0; index < TrainDetails.passengerList.size(); index++) {\n\t\t\tfor (int i = 0; i < TrainDetails.passengerList.size(); i++) {\n\t\t\t\tdouble totalTime1 = ((TrainDetails.passengerList).get(index).duration);\n\t\t\t\tdouble totalTime2 = (TrainDetails.passengerList.get(i).duration);\n\t\t\t\tif (totalTime1 < totalTime2) {\n\t\t\t\t\ttemp = TrainDetails.passengerList.get(index);\n\t\t\t\t\tTrainDetails.passengerList.set(index,\n\t\t\t\t\t\t\tTrainDetails.passengerList.get(i));\n\t\t\t\t\tTrainDetails.passengerList.set(i, temp);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor (int index = 0; index < TrainDetails.goodsList.size(); index++) {\n\t\t\tfor (int i = 0; i < TrainDetails.goodsList.size(); i++) {\n\t\t\t\tdouble totalTime1 = ((TrainDetails.goodsList).get(index).duration);\n\t\t\t\tdouble totalTime2 = (TrainDetails.goodsList.get(i).duration);\n\t\t\t\tif (totalTime1 < totalTime2) {\n\t\t\t\t\ttemp1 = TrainDetails.goodsList.get(index);\n\t\t\t\t\tTrainDetails.goodsList.set(index,\n\t\t\t\t\t\t\tTrainDetails.goodsList.get(i));\n\t\t\t\t\tTrainDetails.goodsList.set(i, temp1);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t}", "@Override // java.util.Comparator\n public final /* bridge */ /* synthetic */ int compare(ScanResult scanResult, ScanResult scanResult2) {\n return scanResult.level - scanResult2.level;\n }" ]
[ "0.61555225", "0.5959305", "0.59481406", "0.5814475", "0.5674721", "0.56414914", "0.562838", "0.5546352", "0.55225164", "0.54689395", "0.54601353", "0.5397111", "0.5386673", "0.5386142", "0.5359646", "0.5351524", "0.53286606", "0.53220934", "0.53019047", "0.5270071", "0.5262123", "0.5222311", "0.5220839", "0.5215607", "0.5200293", "0.5199522", "0.5191764", "0.5181225", "0.51721555", "0.5167076", "0.5166584", "0.51599675", "0.5149949", "0.5135518", "0.5132807", "0.5122497", "0.51153344", "0.5106681", "0.5103943", "0.50894964", "0.50831616", "0.50729215", "0.5058931", "0.5058108", "0.50577396", "0.50541", "0.50535995", "0.5039414", "0.50376976", "0.50375634", "0.50350064", "0.50342757", "0.50325614", "0.50252104", "0.50210947", "0.50177056", "0.5012754", "0.5009999", "0.5005204", "0.5004789", "0.5001661", "0.49996245", "0.49944624", "0.49943042", "0.49840927", "0.49660763", "0.49644592", "0.49574232", "0.49478564", "0.49438182", "0.49377444", "0.49372143", "0.49335393", "0.49312377", "0.49176952", "0.4914089", "0.49122423", "0.49096277", "0.48954776", "0.4891215", "0.48835942", "0.4880211", "0.4875879", "0.4875529", "0.48706853", "0.48621273", "0.48613003", "0.48599362", "0.4859253", "0.48536873", "0.48527664", "0.4847474", "0.484569", "0.48445675", "0.4833271", "0.48301998", "0.4829408", "0.48294058", "0.48215854", "0.48213783", "0.48196718" ]
0.0
-1
Created by nitin on Thursday, January/16/2020 at 2:13 AM
@Repository public interface CityRepository extends JpaRepository<City, Long> { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public Date getCreated()\n {\n return null;\n }", "public abstract long getCreated();", "public DateTime getCreationTime() { return creationTime; }", "@Override\n\tpublic long getCreationTime() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic long getCreationTime() {\n\t\treturn 0;\n\t}", "private static String getStamp() {\n\t\t\t return new SimpleDateFormat(\"yyyyMMddHHmmss\").format(new Date());\r\n\t\t}", "UUID getCreatedUUID()\n {\n return conglomerateUUID;\n }", "public DateTime getCreationTime() {\n return created;\n }", "private static String buildSequence() {\n\t\tSimpleDateFormat dateFormatGMT = new SimpleDateFormat(\"yyyyMMddHHmmssSSS\");\n\t\tdateFormatGMT.setTimeZone(TimeZone.getTimeZone(\"GMT\")); // set to Greenwich mean time.\n\t\treturn dateFormatGMT.format(new Date());\n\t}", "public void createDate(){\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy_MM_dd\"); //TODO -HHmm si dejo diagonales separa bonito en dia, pero para hacer un armado de excel creo que debo hacer un for mas\n currentDateandTime = sdf.format(new Date());\n Log.e(TAG, \"todays date is: \"+currentDateandTime );\n\n}", "public String getTimestamp() \n{\n Calendar now = Calendar.getInstance();\n return String.format(\"20%1$ty-%1$tm-%1$td_%1$tHh%1$tMm%1$tSs\", now);\n}", "@Override\n public Date getCreated() {\n return created;\n }", "String getCreated_at();", "public Date getDateCreated(){return DATE_CREATED;}", "public Date getCreationDate() {\n\n \n return creationDate;\n\n }", "public Date getCreationTime()\n {\n return created;\n }", "public Calendar getCreationDate() throws IOException {\n/* 238 */ return getCOSObject().getDate(COSName.CREATION_DATE);\n/* */ }", "Instant getCreated();", "@Test\n public void createdAtTest() {\n // TODO: test createdAt\n }", "private long makeTimestamp() {\n return new Date().getTime();\n }", "public Date getCreateTime()\n/* */ {\n/* 177 */ return this.createTime;\n/* */ }", "@Override\n public String getCreationDate() {\n return creationDate;\n }", "@SuppressWarnings(\"unused\")\n private void generateInfo()\n {\n }", "static String createNormalDateTimeString() {\n return NORMAL_STROOM_TIME_FORMATTER.format(ZonedDateTime.now(ZoneOffset.UTC));\n }", "public static void main(String[] args) {\n System.out.println(new Date().getTime());\n\n // 2016-12-16 11:48:08\n Calendar calendar = Calendar.getInstance();\n calendar.set(2016, 11, 16, 12, 0, 1);\n System.out.println(calendar.getTime());\n Date date=new Date();\n SimpleDateFormat simpleDateFormat=new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n System.out.println(simpleDateFormat.format(date));\n\n\n }", "Long getUserCreated();", "private String makeEventStamp() {\n String name = \"DTSTAMP\";\n return formatTimeProperty(LocalDateTime.now(), name) + \"\\n\";\n }", "private static String getDate() {\n return new SimpleDateFormat(\"yyyyMMddHHmmss\").format\n (new Date(System.currentTimeMillis()));\n }", "public final void mo51373a() {\n }", "public int getCreatedTime() {\n return createdTime_;\n }", "@Override\r\n\tpublic Date getCreated_date() {\n\t\treturn super.getCreated_date();\r\n\t}", "private void clearCreatedTime() {\n \n createdTime_ = 0;\n }", "CreationData creationData();", "private Long createId() {\n return System.currentTimeMillis() % 1000;\n }", "public static void main(String[] args) throws Exception {\n Calendar cal = Calendar.getInstance();\n SimpleDateFormat simpleformat = new SimpleDateFormat(\"E, dd MMM yyyy HH:mm:ss Z\");\n System.out.println(\"Today's date and time = \"+simpleformat.format(cal.getTime()));\n // displaying date\n simpleformat = new SimpleDateFormat(\"dd/MMMM/yyyy\");\n String str = simpleformat.format(new Date());\n System.out.println(\"Current Date = \"+str);\n // current time\n simpleformat = new SimpleDateFormat(\"HH:mm:ss\");\n String strTime = simpleformat.format(new Date());\n System.out.println(\"Current Time = \"+strTime);\n // displaying hour in HH format\n simpleformat = new SimpleDateFormat(\"HH\");\n String strHour = simpleformat.format(new Date());\n System.out.println(\"Hour in HH format = \"+strHour);\n\n\n\n //formato ideal\n simpleformat = new SimpleDateFormat(\"dd/MM/yyyy - HH:mm:ss\");\n String strTimeDay = simpleformat.format(new Date());\n System.out.println(\"Dia e Hora = \" + strTimeDay);\n\n }", "Date getDateCreated();", "public String getCreated() {\n return this.created;\n }", "public String getCreated() {\n return this.created;\n }", "public static void created() {\n\t\t// TODO\n\t}", "String timeCreated();", "public void generateSchedule(){\n\t\t\n\t}", "@Test\n public void testCreationTimestamp() {\n Product newProduct = TestUtil.createProduct();\n productCurator.create(newProduct);\n Pool pool = createPoolAndSub(owner, newProduct, 1L,\n TestUtil.createDate(2011, 3, 30),\n TestUtil.createDate(2022, 11, 29));\n poolCurator.create(pool);\n \n assertNotNull(pool.getCreated());\n }", "private TodoData() {\n //nastavenie formatovania\n formatter = DateTimeFormatter.ofPattern(\"dd-MM-yyyy\");\n }", "@java.lang.Override\n public long getCreationDate() {\n return creationDate_;\n }", "public Date getCreated() {\n return created;\n }", "public Date getCreated() {\n return created;\n }", "public Timestamp getCreated();", "public Timestamp getCreated();", "public Timestamp getCreated();", "public Timestamp getCreated();", "public Timestamp getCreated();", "public Timestamp getCreated();", "public Timestamp getCreated();", "public Timestamp getCreated();", "public Timestamp getCreated();", "public Timestamp getCreated();", "public Timestamp getCreated();", "public Timestamp getCreated();", "public Timestamp getCreated();", "private Person()\r\n\t{\r\n\t\tsuper();\r\n\t\t//created = LocalDateTime.now();\r\n\t\tcreated = Calendar.getInstance().getTime();\r\n\t}", "public Date getCreation() {\n return creation;\n }", "public int getCreated() {\n return created;\n }", "@java.lang.Override\n public long getCreationDate() {\n return creationDate_;\n }", "public Date getCreateDate()\r\n/* */ {\r\n/* 158 */ return this.createDate;\r\n/* */ }", "public Sad(){\n\t\tthis.date = new Date(System.currentTimeMillis());\n\t}", "public String getCreatedAt(int i){\n return created[i];\n }", "public DateTime getCreatedOn();", "private Date getTestListingDateTimeStamp() {\n TimeZone.setDefault(TimeZone.getTimeZone(\"Europe/London\"));\n\n GregorianCalendar calendar = new GregorianCalendar(2010, 0, 1, 17, 0);\n return new Date(calendar.getTimeInMillis());\n }", "public ConversionHistory() {\r\n conversionDate = LocalDate.now();\r\n }", "public Date getDateCreated();", "public long getCreationDate() {\n return creationDate_;\n }", "public void create() {\n\t\t\n\t}", "public String getDateCreated(){\n return dateCreated.toString();\n }", "public Date getCreationTime() {\n return creationTime;\n }", "public Date getCreationTime() {\n return creationTime;\n }", "private void modifyCreationDateForSingleFile() throws IOException {\n int n = (int) (Math.random() * NUMBER_OF_TEST_FILES);\n File f = new File(path, \"file_\" + n + \".txt\");\n Path path = Paths.get(f.toURI());\n BasicFileAttributes attr;\n attr = Files.readAttributes(path, BasicFileAttributes.class);\n FileTime creationTime = attr.creationTime();\n Calendar c = new GregorianCalendar();\n c.setTime(new Date(creationTime.toMillis()));\n c.add(Calendar.DAY_OF_YEAR, -10);\n BasicFileAttributeView attributes = Files.getFileAttributeView(path, BasicFileAttributeView.class);\n FileTime time = FileTime.fromMillis(c.getTimeInMillis());\n attributes.setTimes(time, time, time);\n }", "@Override\n public void date()\n {\n }", "public Date getCreationTime() {\n return creationTime;\n }", "public Instant getCreationTime() {\n return creation;\n }", "void createDailyMessageRaport(String stringCurrentDate);", "public void setCreatedAt(Date date) {\n\t\t\n\t}", "@Nonnull\n @CheckReturnValue\n default OffsetDateTime creationTime() {\n return Utils.creationTimeOf(idAsLong());\n }", "private static void announceProgram() {\r\n\t\t// https://www.mkyong.com/java/java-how-to-get-current-date-time-date-and-calender/\r\n\t\tDateFormat dateFormat = new SimpleDateFormat(\"yyyy/MM/dd HH:mm:ss\");\r\n\t\tDate date = new Date(System.currentTimeMillis());\r\n\t\tDL.println(\"=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\");\r\n\t\tDL.println(\" AR Splitter launched: \" + dateFormat.format(date));\r\n\t\tDL.println(\"=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\");\r\n\t}", "OffsetDateTime creationTime();", "@Override\n default String getTs() {\n return null;\n }", "public abstract long getCreatedTime();", "@Override\n\tpublic void create() {\n\t\t\n\t}", "public Date getCreated() {\r\n return created;\r\n }", "public Date getCreated() {\r\n return created;\r\n }", "public ActividadTest()\n {\n prueba = new Actividad(\"Rumbear\",\"Salir a tomar y bailar con unos amigos\",2018,5,5,6,\n 15,8,30,30,new GregorianCalendar(2018,5,2,3,0),new GregorianCalendar(2018,5,7,8,0));\n }", "public void setCreationTime(DateTime creationTime) {\n this.created = creationTime;\n }", "public DateTime getCreatedDateTime() {\n return createdDateTime;\n }", "public String toString() {\r\n return \"created on \" + this.dateCreated + \"\\ncolor: \" \r\n + this.color + \" and filled: \" + this.filled;\r\n }", "private CreateDateUtils()\r\n\t{\r\n\t}", "private String getTimestamp() {\n return Calendar.getInstance().getTime().toString();\n }", "long getCreatedTime();", "@Override\n\tpublic void create() {\n\n\t}", "public void mo38117a() {\n }", "io.opencannabis.schema.temporal.TemporalInstant.Instant getCreatedAt();", "@Override\n public String toString() {\n return date.format(DateTimeFormatter.ofPattern(\"dd.MM.yyyy\")) + \" - \" + note;\n }", "public DateTime getCreated();" ]
[ "0.55050564", "0.5292173", "0.52516526", "0.5244451", "0.5244451", "0.5239429", "0.52370286", "0.52336055", "0.52133137", "0.5207837", "0.5193132", "0.5177713", "0.5136587", "0.5129252", "0.5121544", "0.5113629", "0.509104", "0.507365", "0.506457", "0.5059362", "0.5057086", "0.5046263", "0.50417644", "0.50318813", "0.5026951", "0.50205696", "0.50195676", "0.50156426", "0.49848512", "0.4981525", "0.4979228", "0.49750945", "0.49672097", "0.49662936", "0.49605927", "0.4954454", "0.49468726", "0.49468726", "0.49436802", "0.4940121", "0.49305224", "0.4929114", "0.4925213", "0.49225175", "0.49197686", "0.49197686", "0.49185494", "0.49185494", "0.49185494", "0.49185494", "0.49185494", "0.49185494", "0.49185494", "0.49185494", "0.49185494", "0.49185494", "0.49185494", "0.49185494", "0.49185494", "0.49096444", "0.49058902", "0.48979923", "0.48775223", "0.48609224", "0.48592234", "0.4854789", "0.4854745", "0.48505422", "0.48485887", "0.48428538", "0.4842685", "0.48202315", "0.4818616", "0.48164564", "0.48164564", "0.4814436", "0.48082203", "0.48063582", "0.48047742", "0.4802851", "0.48016015", "0.4798546", "0.47966963", "0.4792503", "0.47918186", "0.47917795", "0.4791297", "0.47791046", "0.47791046", "0.4778826", "0.47741926", "0.4769229", "0.47683835", "0.4766814", "0.47653177", "0.47631165", "0.47617933", "0.47614682", "0.4758575", "0.4758434", "0.47560835" ]
0.0
-1
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View view = inflater.inflate(R.layout.fragment_first, container, false); etNumber1 = view.findViewById(R.id.etNumber1); etNumber2 = view.findViewById(R.id.etNumber2); btnCalculate = view.findViewById(R.id.btnCalculate); btnCalculate.setOnClickListener(this); return view; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.wallpager_layout, null);\r\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_invit_friends, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_zhuye, container, false);\n initView(inflate);\n initData();\n return inflate;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_posts, parent, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n return inflater.inflate(R.layout.ilustration_fragment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_sow_drug_cost_per_week, container, false);\n\n db = new DataBaseAdapter(getActivity());\n hc = new HelperClass();\n pop = new FeedSowsFragment();\n\n infltr = (LayoutInflater) getActivity().getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n parent = (LinearLayout) v.findViewById(R.id.layout_for_add);\n tvTotalCost = (TextView) v.findViewById(R.id.totalCost);\n\n getData();\n setData();\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_stream_list, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_event, container, false);\n\n\n\n\n\n\n\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_feed, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.screen_select_list_student, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_overall, container, false);\n mNamesLayout = (LinearLayout) rootView.findViewById(R.id.fragment_overall_names_layout);\n mOverallView = (OverallView) rootView.findViewById(R.id.fragment_overall_view);\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState)\n {\n\n\n view = inflater.inflate(R.layout.fragment_earning_fragmant, container, false);\n ini(view);\n return view;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n super.onCreateView(inflater, container, savedInstanceState);\n final View rootview = inflater.inflate(R.layout.activity_email_frag, container, false);\n ConfigInnerElements(rootview);\n return rootview;\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\trootView = inflater.inflate(R.layout.fragment_attack_armor, container, false);\r\n\r\n\t\tfindInterfaceElements();\r\n\t\taddRangeSelector();\r\n\t\tupdateHeadings();\r\n\t\tsetListeners();\r\n\r\n\t\tsetFromData();\r\n\r\n\t\treturn rootView;\r\n\t}", "@SuppressLint(\"InflateParams\")\r\n\t@Override\r\n\tpublic View initLayout(LayoutInflater inflater) {\n\t\tView view = inflater.inflate(R.layout.frag_customer_all, null);\r\n\t\treturn view;\r\n\t}", "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_fore_cast, container, false);\r\n initView();\r\n mainLayout.setVisibility(View.GONE);\r\n apiInterface = RestClinet.getClient().create(ApiInterface.class);\r\n loadData();\r\n return view;\r\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_friend, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_detail, container, false);\n image = rootView.findViewById(R.id.fr_image);\n name = rootView.findViewById(R.id.fr_name);\n phoneNumber = rootView.findViewById(R.id.fr_phone_number);\n email = rootView.findViewById(R.id.fr_email);\n street = rootView.findViewById(R.id.fr_street);\n city = rootView.findViewById(R.id.fr_city);\n state = rootView.findViewById(R.id.fr_state);\n zipcode = rootView.findViewById(R.id.fr_zipcode);\n dBrith = rootView.findViewById(R.id.date_brith);\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_pm25, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_kkbox_playlist, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_feed_pager, container, false);\n\n// loadData();\n\n findViews(rootView);\n\n setViews();\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n layout = (FrameLayout) inflater.inflate(R.layout.fragment_actualites, container, false);\n\n relLayout = (RelativeLayout) layout.findViewById(R.id.relLayoutActus);\n\n initListView();\n getXMLData();\n\n return layout;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.frag_post_prayer_video, container, false);\n setCustomDesign();\n setCustomClickListeners();\n return rootView;\n }", "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.lf_em4305_fragment, container, false);\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_recordings, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view=inflater.inflate(R.layout.fragment_category, container, false);\n initView(view);\n bindRefreshListener();\n loadParams();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_cm_box_details, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_layout12, container, false);\n\n iniv();\n\n init();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_details, container, false);\n //return inflater.inflate(R.layout.fragment_details, container, false);\n getIntentValues();\n initViews();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_mem_body_blood, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_qiugouxiaoxi, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_coll_blank, container, false);\n initView(inflate);\n initData();\n return inflate;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_attendance_divide, container, false);\n\n initView(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.show_program_fragment, parent, false);\n }", "@Override\n public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container,\n @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.visualization_fragment, container, false);\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_category_details_page, container, false);\n initializeAll();\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n final View v = inflater.inflate(R.layout.fragemnt_reserve, container, false);\n\n\n\n\n return v;\n }", "protected int getLayoutResId() {\n return R.layout.activity_fragment;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_quizs, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n role = getArguments().getInt(\"role\");\n rootview = inflater.inflate(R.layout.fragment_application, container, false);\n layout = rootview.findViewById(R.id.patentDetails);\n progressBar = rootview.findViewById(R.id.progressBar);\n try {\n run();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return rootview;\n }", "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\tview = inflater.inflate(R.layout.fragment_zhu, null);\n\t\tinitView();\n\t\tinitData();\n\t\treturn view;\n\t}", "@Override\n\t\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)\n\t\t{\n\t\t\tView rootView = inflater.inflate(R.layout.maimfragment, container, false);\n\t\t\treturn rootView;\n\t\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n // Inflate the layout for this fragment\n return inflater.inflate(R.layout.fragment__record__week, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_porishongkhan, container, false);\n\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_dashboard, container, false);\n resultsRv = view.findViewById(R.id.db_results_rv);\n resultText = view.findViewById(R.id.db_search_empty);\n progressBar = view.findViewById(R.id.db_progressbar);\n lastVisitText = view.findViewById(R.id.db_last_visit);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(getLayoutId(), container, false);\n init(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_feedback, container, false);\n self = getActivity();\n initUI(view);\n initControlUI();\n initData();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_service_summery, container, false);\n tvVoiceMS = v.findViewById(R.id.tvVoiceValue);\n tvDataMS = v.findViewById(R.id.tvdataValue);\n tvSMSMS = v.findViewById(R.id.tvSMSValue);\n tvVoiceFL = v.findViewById(R.id.tvVoiceFLValue);\n tvDataBS = v.findViewById(R.id.tvDataBRValue);\n tvTotal = v.findViewById(R.id.tvTotalAccountvalue);\n return v;\n }", "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_clan_rank_details, container, false);\r\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_star_wars_list, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_lei, container, false);\n\n initView(inflate);\n initData();\n return inflate;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_quotation, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_wode_ragment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n\n\n\n\n\n return inflater.inflate(R.layout.fragment_appoint_list, parent, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n if (rootView == null) {\n rootView = inflater.inflate(R.layout.fragment_ip_info, container, false);\n initView();\n }\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_offer, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_rooms, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\n View view = inflater.inflate(R.layout.fragment_img_eva, container, false);\n\n getSendData();\n\n initView(view);\n\n initData();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_project_collection, container, false);\n ButterKnife.bind(this, view);\n fragment = this;\n initView();\n getCollectionType();\n // getCategoryList();\n initBroadcastReceiver();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_yzm, container, false);\n initView(view);\n return view;\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\t\tmainLayout = inflater.inflate(R.layout.fragment_play, container, false);\r\n\t\treturn mainLayout;\r\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_invite_request, container, false);\n initialiseVariables();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n getLocationPermission();\n return inflater.inflate(R.layout.centrum_fragment, container, false);\n\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_habit_type_details, container, false);\n\n habitTitle = rootView.findViewById(R.id.textViewTitle);\n habitReason = rootView.findViewById(R.id.textViewReason);\n habitStartDate = rootView.findViewById(R.id.textViewStartDate);\n habitWeeklyPlan = rootView.findViewById(R.id.textViewWeeklyPlan);\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_information_friends4, container, false);\n\n if (getArguments() != null) {\n FriendsID = getArguments().getString(\"keyFriends\");\n }\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_post_details, container, false);\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hotel, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_bus_inquiry, container, false);\n initView();\n initData();\n initDialog();\n getDataFromNet();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_weather, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_srgl, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_ground_detail_frgment, container, false);\n init();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_book_appointment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_wheretogo, container, false);\n ids();\n setup();\n click();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n binding = DataBindingUtil\n .inflate(inflater, R.layout.fragment_learning_leaders, container, false);\n init();\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_end_game_tab, container, false);\n\n setupWidgets();\n setupTextFields(view);\n setupSpinners(view);\n\n // Inflate the layout for this fragment\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.memoir_fragment, container, false);\n\n getUserIdFromSharedPref();\n configureUI(view);\n configureSortSpinner();\n configureFilterSpinner();\n\n networkConnection = new NetworkConnection();\n new GetAllMemoirTask().execute();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_jadwal, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_delivery_detail, container, false);\n initialise();\n\n\n\n return view;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_4, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_product, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_group_details, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment06_7, container, false);\n initView(view);\n setLegend();\n setXAxis();\n setYAxis();\n setData();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_downloadables, container, false);\n }", "@Override\n public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.movie_list_fragment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_like, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hall, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_unit_main, container, false);\n TextView mTxvBusinessAassistant = (TextView) view.findViewById(R.id.txv_business_assistant);\n TextView mTxvCardINformation = (TextView) view.findViewById(R.id.txv_card_information);\n RelativeLayout mRelOfficialWebsite = (RelativeLayout) view.findViewById(R.id.rel_official_website);\n RelativeLayout mRelPictureAblum = (RelativeLayout) view.findViewById(R.id.rel_picture_album);\n TextView mTxvQrCodeCard = (TextView) view.findViewById(R.id.txv_qr_code_card);\n TextView mTxvShareCard = (TextView) view.findViewById(R.id.txv_share_card);\n mTxvBusinessAassistant.setOnClickListener(this.mOnClickListener);\n mTxvCardINformation.setOnClickListener(this.mOnClickListener);\n mRelOfficialWebsite.setOnClickListener(this.mOnClickListener);\n mRelPictureAblum.setOnClickListener(this.mOnClickListener);\n mTxvQrCodeCard.setOnClickListener(this.mOnClickListener);\n mTxvShareCard.setOnClickListener(this.mOnClickListener);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_moviespage, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_s, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_overview, container, false);\n\n initOverviewComponents(view);\n registerListeners();\n initTagListener();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_bahan_ajar, container, false);\n initView(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n root = (ViewGroup) inflater.inflate(R.layout.money_main, container, false);\n context = getActivity();\n initHeaderView(root);\n initView(root);\n\n getDate();\n initEvetn();\n return root;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_historical_event, parent, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_event_details, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_video, container, false);\n unbinder = ButterKnife.bind(this, view);\n initView();\n initData();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n v= inflater.inflate(R.layout.fragment_post_contacts, container, false);\n this.mapping(v);\n return v;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_measures, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_feed, container, false);\n findViews(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_surah_list, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_data_binded, container, false);\n }" ]
[ "0.6739604", "0.67235583", "0.6721706", "0.6698254", "0.6691869", "0.6687986", "0.66869223", "0.6684548", "0.66766286", "0.6674615", "0.66654444", "0.66654384", "0.6664403", "0.66596216", "0.6653321", "0.6647136", "0.66423255", "0.66388357", "0.6637491", "0.6634193", "0.6625158", "0.66195583", "0.66164845", "0.6608733", "0.6596594", "0.65928894", "0.6585293", "0.65842897", "0.65730995", "0.6571248", "0.6569152", "0.65689117", "0.656853", "0.6566686", "0.65652984", "0.6553419", "0.65525705", "0.65432084", "0.6542382", "0.65411425", "0.6538022", "0.65366334", "0.65355957", "0.6535043", "0.65329415", "0.65311074", "0.65310687", "0.6528645", "0.65277404", "0.6525902", "0.6524516", "0.6524048", "0.65232015", "0.65224624", "0.65185034", "0.65130377", "0.6512968", "0.65122765", "0.65116245", "0.65106046", "0.65103024", "0.6509013", "0.65088093", "0.6508651", "0.6508225", "0.6504662", "0.650149", "0.65011525", "0.6500686", "0.64974767", "0.64935696", "0.6492234", "0.6490034", "0.6487609", "0.6487216", "0.64872116", "0.6486594", "0.64861935", "0.6486018", "0.6484269", "0.648366", "0.6481476", "0.6481086", "0.6480985", "0.6480396", "0.64797544", "0.647696", "0.64758915", "0.6475649", "0.6474114", "0.6474004", "0.6470706", "0.6470275", "0.64702207", "0.6470039", "0.6467449", "0.646602", "0.6462256", "0.64617974", "0.6461681", "0.6461214" ]
0.0
-1
Adds the artifact filter to be applied.
public void add(final ArtifactFilter artifactFilter) { this.filters.add(artifactFilter); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setFilter(ArtifactFilter filter) {\n this.filter = filter;\n }", "public void addFilter(@NotNull final SceneFilter filter) {\n filters.add(filter);\n }", "void addRecipeFilter(RecipeFilter recipeFilter);", "private void applyFilterIcon() {\n addStyleName(\"appliedfilter\");\n icon.setSource(selectedTheam);\n }", "public void addArtifact(ArtifactModel artifact);", "public OrFileFilter addFilter (FileFilter filter)\n {\n filters.add (filter);\n return this;\n }", "public void addFilterToAnotations(ViewerFilter filter);", "public void addFilterToAnotations(ViewerFilter filter);", "public void addFilterToReader(ViewerFilter filter);", "public void addFilter(final Filter filter) {\n privateConfig.config.addLoggerFilter(this, filter);\n }", "public void addFilterToAttributes(ViewerFilter filter);", "private void attachFilter(Appender<ILoggingEvent> appender, FilterInfo fi){\n if(!appender.getCopyOfAttachedFiltersList().contains(fi.filter)){\n appender.addFilter(fi.filter);\n }\n }", "public void addFilterToCreator(ViewerFilter filter);", "private ArtifactFilter createResolvingArtifactFilter(String scope) {\r\n ArtifactFilter filter;\r\n\r\n // filter scope\r\n if (scope != null) {\r\n getLog().debug(\"+ Resolving dependency tree for scope '\" + scope + \"'\");\r\n\r\n filter = new ScopeArtifactFilter(scope);\r\n } else {\r\n filter = null;\r\n }\r\n\r\n return filter;\r\n }", "public void addNodeFilter (INodeFilter filter);", "public void addFilterToParentLayer(ViewerFilter filter);", "public void addFilterToCombo(ViewerFilter filter);", "public void addFilter(Filter subfilter) {\n if (subfilter == null || !subfilter.isValid()) {\n return;\n }\n if (filter == null) {\n filter = new Filters();\n }\n filter.add(subfilter);\n }", "public void addFilterToParentModule(ViewerFilter filter);", "@Override\n public javax.servlet.FilterRegistration.Dynamic addFilter(String filterName, Filter filter) {\n return null;\n }", "public void addFilter(Filter filter){\n removeEndQuery();\n setMainQuery(getMainQuery()+filter.getFilter()+\"}\");\n setCountQuery(getCountQuery()+filter.getFilter()+\"}\");\n }", "public void addFilter(MessageFilter filter);", "public void addFilterToImplements_(ViewerFilter filter);", "public void addFilterToComboRO(ViewerFilter filter);", "public void appendFeatureHolderStyle(FeatureFilter filter)\n\t{\n\t\tif(this.filter instanceof AndFilter)\n\t\t{\n\t\t\t((AndFilter)this.filter).add(filter);\n\t\t}\n\t\telse if(this.filter != null)\n\t\t{\n\t\t\tthis.filter = new AndFilter(this.filter, filter);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tthis.filter = filter;\n\t\t}\n\t\t\n\t\tthis.valid = false;\n\t}", "private void addModuleArtifact( Map dependencies, Artifact artifact )\n {\n String key = artifact.getDependencyConflictId();\n\n if ( !dependencies.containsKey( key ) )\n {\n dependencies.put( key, artifact );\n }\n }", "public void addBusinessFilterToAnotations(ViewerFilter filter);", "public void addBusinessFilterToAnotations(ViewerFilter filter);", "public void addFilterToPolicyEntries(ViewerFilter filter);", "void addFilter(IntentFilter filter);", "@Override\n public javax.servlet.FilterRegistration.Dynamic addFilter(String filterName, Class<? extends Filter> filterClass) {\n return null;\n }", "protected void addFilter(TableViewer viewer) {\n\t\t//0.6f entspricht einer minimalen durchschnittlichen Bewertung von 3 Punkten\n\t\tviewer.addFilter(new RatingFilter(0.6f));\n\t}", "public void addBusinessFilterToReader(ViewerFilter filter);", "public void addBusinessFilterToCreator(ViewerFilter filter);", "public void addFilterToMigRelations(ViewerFilter filter);", "void setArtifactId(String artifactId);", "public static void addFilterMap(WFJFilterMap filterMap) {\n validateFilterMap(filterMap);\n // Add this filter mapping to our registered set\n filterMaps.add(filterMap);\n }", "void addDocumentFilter(DocumentFilter documentFilter) {\r\n\t\t((AbstractDocument) document).setDocumentFilter(documentFilter);\r\n\t}", "public void addBusinessFilterToParentModule(ViewerFilter filter);", "public void addFilterItem(FilterItem filterItem) {\n\t\tfilterItems.add(filterItem);\n\t}", "public void addArtifact(String artName) {\r\n \t\tartifacts.add(artName);\r\n \t\tRationaleUpdateEvent l_updateEvent = m_eventGenerator.MakeUpdated();\r\n \t\tl_updateEvent.setTag(\"artifacts\");\r\n \t\tm_eventGenerator.Broadcast(l_updateEvent);\r\n \t}", "private void setEdgeFilter() {\n FilterPostProcessor fpp = new FilterPostProcessor(assetManager);\n CartoonEdgeFilter toon = new CartoonEdgeFilter();\n toon.setEdgeWidth(2);\n fpp.addFilter(toon);\n this.getViewPort().addProcessor(fpp);\n \n }", "public void setFilter(Expression filter) {\n this.filter = filter;\n }", "public void addFilterToMethodArguments(ViewerFilter filter);", "public void addBusinessFilterToParentLayer(ViewerFilter filter);", "public void add(WFJFilterMap filterMap) {\n synchronized (lock) {\n WFJFilterMap results[] = Arrays.copyOf(array, array.length + 1);\n results[array.length] = filterMap;\n array = results;\n }\n }", "private void updateFilter(BasicOutputCollector collector) {\n if (updateFilter()){\n \tValues v = new Values();\n v.add(ImmutableList.copyOf(filter));\n \n collector.emit(\"filter\",v);\n \t\n }\n \n \n \n }", "@Override\n public javax.servlet.FilterRegistration.Dynamic addFilter(String filterName, String className) {\n return null;\n }", "FilterInfo addFilter(String filtercode, String filter_type, String filter_name, String disableFilterPropertyName, String filter_order);", "public void addFilterToReferencedLink(ViewerFilter filter);", "public void addFilter(String token, String value) {\n if (token == null) {\n return;\n }\n globalFilterSet.addFilter(new FilterSet.Filter(token, value));\n }", "public FileFilter(String expression) {\n this.filterExpression = expression;\n }", "public void addFilters(cwterm.service.rigctl.xsd.Filter param) {\n if (localFilters == null) {\n localFilters = new cwterm.service.rigctl.xsd.Filter[] {};\n }\n localFiltersTracker = true;\n java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localFilters);\n list.add(param);\n this.localFilters = (cwterm.service.rigctl.xsd.Filter[]) list.toArray(new cwterm.service.rigctl.xsd.Filter[list.size()]);\n }", "public void addFilterToMethods(ViewerFilter filter);", "public boolean addFilter(Long fileID, AbstractFilter newFilter) {\n if (newFilter != null) {\n boolean ok = getFilters(fileID).add(newFilter);\n if (ok) {\n inferePeptides.put(fileID, true);\n }\n return ok;\n } else {\n return false;\n }\n }", "public void setFilterExpression(Expression filterExpr) {\n\t\tthis.filterExpr = filterExpr;\n\t}", "public void setFilter(String filter)\n {\n filteredFrames.add(\"at \" + filter);\n }", "public void addBusinessFilterToAttributes(ViewerFilter filter);", "public void addFilterToIncomingLinks(ViewerFilter filter);", "FeatureHolder filter(FeatureFilter filter);", "void addGeneralBloomFilter(BloomFilterWriter bfw);", "void registerFilterListener(FilterListener listener);", "public void addFilter ( ChannelKey channelKey )\n throws SystemException, CommunicationException, AuthorizationException, DataValidationException\n {\n }", "FilterInfo setCanaryFilter(String filter_id, int revision);", "FilterInfo setFilterActive(String filter_id, int revision) throws Exception;", "public Input filterBy(Filter filter) {\n JsonArray filters = definition.getArray(FILTERS);\n if (filters == null) {\n filters = new JsonArray();\n definition.putArray(FILTERS, filters);\n }\n filters.add(Serializer.serialize(filter));\n return this;\n }", "public void setFilter(Filter filter) {\n\t\tthis.filter = filter;\n\t}", "public FileFilter() {\n this.filterExpression = \"\";\n }", "public void addBusinessFilterToPolicyEntries(ViewerFilter filter);", "Get<K, C> addFilter(Filter<K, C> filter);", "public void addBusinessFilterToImplements_(ViewerFilter filter);", "private void addFilter(WebSocketConnector aConnector, Token aToken) {\n\t\tif (mService == null) {\n\t\t\tmService = new AdminPlugInService(NS_ADMIN, mNumberOfDays, getServer());\n\t\t}\n\n\t\tif (mLog.isDebugEnabled()) {\n\t\t\tmLog.debug(\"Processing 'addFilter'...\");\n\t\t}\n\n\t\tgetServer().sendToken(aConnector, mService.addFilter(aConnector, aToken));\n\t}", "public void addFileType(String ext) {\n accepted.add(new GeneralFilter(ext.toLowerCase(), ext.toUpperCase()));\n }", "void setFilter(String filter);", "public void addDescriptor(IArtifactDescriptor toAdd) {\n \t\tartifactDescriptors.add(toAdd);\n \t\tsave();\n \t}", "@Override\n public InferredOWLOntologyID appendArtifact(final InferredOWLOntologyID ontologyIRI,\n final InputStream partialInputStream, final RDFFormat format) throws PoddClientException\n {\n return null;\n }", "public void addFilterMatcher(MatcherKey key, FilterMatcher matcher) {\n\n SupportUtils.setWebContext(matcher, webContext);\n getFilterMatcherRegistry().addFilterMatcher(key, matcher);\n }", "public void addTeamMember(final Artifact artifact);", "void onFilterChanged(ArticleFilter filter);", "public void addBusinessFilterToMigRelations(ViewerFilter filter);", "public CustomApplication() \n {\n packages(\"com.SApp.Ticket.tools\");\n// register(LoggingFilter.class);\n \n //Register Auth Filter here\n register(AuthenticationFilter.class);\n }", "@Override\n\tpublic void filterChange() {\n\t\t\n\t}", "public void updateArtifact(ArtifactModel artifact);", "@Override\n\tpublic void attachFilter(ConfigContext ctx, Entity entity) {\n\t}", "public void setEdgeAttributeFilter( AttributeFilter filter )\n \t{\n \t\tedgeAttributeFilter = filter;\n \t}", "public void addFilterToAdvancedtablecompositionOptionalProperty(ViewerFilter filter);", "void setFilter(Filter f);", "void filterChanged(Filter filter);", "@Override\n\tpublic void effectAdded(Effect effect) {\n\t}", "@Override\n public List<BazelPublishArtifact> getBazelArtifacts(AspectRunner aspectRunner, Project project, Task bazelExecTask) {\n final File outputArtifactFolder = super.getBazelArtifacts(aspectRunner, project, bazelExecTask).get(0).getFile().getParentFile();\n final File aarOutputFile = new File(outputArtifactFolder, mConfig.targetName + \".aar\");\n return Collections.singletonList(new BazelPublishArtifact(bazelExecTask, aarOutputFile));\n }", "public void addEffects() {\r\n\t\tfor (BlinkingButton effect : parameterLocation) {\r\n\t\t\t//Effects that are visible - should be added the the panel\r\n\t\t\tif (effect.isVisible()) {\r\n\t\t\t\tmainPanel.add(effect);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "BuildFilter defaultFilter();", "private String addEffect() {\n\t\t// One Parameter: EffectName\n\t\tStringBuilder tag = new StringBuilder();\n\t\ttag.append(\"|effect:\" + parameters[0]);\n\t\treturn tag.toString();\n\n\t}", "public void addFilterToDialog(String sExtension, String filterName, boolean setToDefault)\n {\n try\n {\n //get the localized filtername\n String uiName = getFilterUIName(filterName);\n String pattern = \"*.\" + sExtension;\n\n //add the filter\n addFilter(uiName, pattern, setToDefault);\n }\n catch (Exception exception)\n {\n exception.printStackTrace(System.out);\n }\n }", "public void addFilter(@Nullable String fieldName, FilterOperator operator, @Nullable Object value) {\n addFilter(new Filter(fieldName, operator, value));\n }", "void addHttpFilterStatementsToResource(BLangFunction resourceNode, SymbolEnv env) {\n if (isHttpResource(resourceNode)) {\n addFilterStatements(resourceNode, env);\n }\n }", "private void detachFilter(Appender<ILoggingEvent> appender, FilterInfo fi){\n if(appender.getCopyOfAttachedFiltersList().contains(fi.filter)){\n //Clone\n List<Filter<ILoggingEvent>> filters = appender.getCopyOfAttachedFiltersList();\n\n //Clear\n appender.clearAllFilters();\n\n //Add\n for(Filter<ILoggingEvent> filter : filters){\n if(!fi.filter.equals(filter)){\n appender.addFilter(filter);\n }\n }\n }\n }", "@DISPID(-2147412069)\n @PropPut\n void onfilterchange(\n java.lang.Object rhs);", "public RegisterFilter() {\n\t\tqueryList = new ArrayList<QueryPart>();\n\t\torderList = new ArrayList<OrderPart>();\n\t}", "void removeRecipeFilter(RecipeFilter recipeFilter);" ]
[ "0.7210118", "0.6276263", "0.5918513", "0.57554346", "0.5733159", "0.5617976", "0.55992657", "0.55992657", "0.5549317", "0.5498701", "0.5458799", "0.5456764", "0.5440513", "0.5438494", "0.5362643", "0.53528666", "0.53365684", "0.5302197", "0.52918273", "0.51788354", "0.5168191", "0.5158158", "0.5123776", "0.50745034", "0.4999544", "0.4945731", "0.49376273", "0.49376273", "0.48890126", "0.48595047", "0.48525906", "0.48421186", "0.48416018", "0.48319787", "0.48165247", "0.48151153", "0.48066473", "0.4804079", "0.48032647", "0.47980604", "0.47504994", "0.4750261", "0.47380814", "0.4737861", "0.4733235", "0.47319385", "0.47205865", "0.47196788", "0.4705851", "0.4693566", "0.4687743", "0.46876281", "0.4685679", "0.46764496", "0.46753585", "0.4665615", "0.46300498", "0.46074504", "0.4602122", "0.4582986", "0.45570597", "0.45546025", "0.45382142", "0.45085233", "0.45040625", "0.45029706", "0.45010468", "0.44884002", "0.44875172", "0.4484711", "0.44714683", "0.44677877", "0.4462637", "0.44430286", "0.44238305", "0.44144064", "0.44035044", "0.4403126", "0.4381405", "0.43766558", "0.43743888", "0.43655306", "0.43609795", "0.43582067", "0.43522665", "0.4348598", "0.43468824", "0.43346164", "0.4326247", "0.43228275", "0.4320657", "0.4319342", "0.43172956", "0.43107793", "0.43099657", "0.4300942", "0.42998108", "0.4274064", "0.42719683", "0.42672232" ]
0.7942782
0
ensure client is in a transaction
@SuppressWarnings("unchecked") public <K, V> Map<K, V> getMap(String name, Class<K> keyClass, Class<V> valueClass) { if (Globals.threadTxMap.get(Thread.currentThread()) == null || Globals.threadTxMap.get(Thread.currentThread()).status != TxStatus.ACTIVE) { throw new ClientNotInTxException("Unable to get map: not in an active transaction"); } //ensure name is not blank/whitespace: if(name.trim().isEmpty()){ throw new IllegalArgumentException("Invalid map name"); } //ensure keyClass/valueClass is not null: if(keyClass == null || valueClass == null){ throw new IllegalArgumentException("Key/value class cannot be null"); } //ensure this name exists if(!Globals.alreadyExists(name)){ throw new NoSuchElementException("Unable to locate map with name: "+ name); } //ensure classes match DBTable<K, V> table = Globals.getTable(name); if(keyClass != table.keyClass || valueClass != table.valueClass){ throw new ClassCastException("Tried to get map with different classes than on file"); } //ensure serializable if(!Serializable.class.isAssignableFrom(keyClass)) throw new IllegalArgumentException("Key class is not serializable"); if(!Serializable.class.isAssignableFrom(valueClass)) throw new IllegalArgumentException("Value class is not serializable"); Globals.addTableToThread(name); return Globals.getTable(name); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Transaction beginTx();", "void begin() throws org.omg.CosTransactions.SubtransactionsUnavailable;", "void beginTransaction();", "IDbTransaction beginTransaction();", "public void authorizeTransaction() {}", "public boolean transactionStarted();", "public void beginTransaction() throws Exception;", "public void beginTransaction() {\n\r\n\t}", "public Object doInTransaction(TransactionStatus status) {\n sendEvent();\n sendEvent();\n sendEvent();\n sendEvent();\n status.setRollbackOnly();\n return null;\n }", "public void checkForTransaction() throws SystemException;", "public void forceCommitTx()\n{\n}", "public int startTransaction();", "void confirmTrans(ITransaction trans);", "void startTransaction();", "void readOnlyTransaction();", "@Override\n public void startTx() {\n \n }", "public void transactionStarted() {\n transactionStart = true;\n }", "public boolean isTransactionRunning();", "final void ensureOngoingTransaction() throws SQLException {\n if (!transactionLock.isHeldByCurrentThread()) {\n throw new SQLNonTransientException(Errors.getResources(getLocale())\n .getString(Errors.Keys.ThreadDoesntHoldLock));\n }\n }", "Boolean isTransacted();", "Boolean isTransacted();", "public boolean flushTransactions() {\n return true;\n }", "public void rollbackTx()\n\n{\n\n}", "@Override\n public void rollbackTx() {\n \n }", "public void base_ok(Transaction t) {\n verify_transaction(t);\n make_transaction(t);\n }", "@Transactional(Transactional.TxType.SUPPORTS)\n\tpublic void supports() {\n\t System.out.println(getClass().getName() + \"Transactional.TxType.SUPPORTS\");\n\t // Here the container will allow the method to be called by a client whether the client already has a transaction or not\n\t}", "void beginTransaction(ConnectionContext context) throws IOException;", "public boolean beginTransaction() {\n boolean result = false;\n if (_canDisableAutoCommit) {\n try {\n _connection.setAutoCommit(false);\n result = true;\n } catch (SQLException e) {\n Log.warning(\"Transactions not supported\", this, \"startTransaction\");\n _canDisableAutoCommit = false;\n }\n }\n return result;\n }", "Transaction getCurrentTransaction();", "public void openTheTransaction() {\n openTransaction();\n }", "@Override\n public void commitTx() {\n \n }", "@Suspendable\n @Override\n protected void checkTransaction(SignedTransaction stx) throws FlowException {\n }", "@Override\n\tpublic void onTransactionStart() {}", "Boolean insertClient(Client client){\n return true;\n }", "Transaction createTransaction();", "public void verify_only(Transaction t) {\n verify_transaction(t);\n }", "public boolean createTransaction() {\n\t\t\treturn false;\n\t\t}", "void commitTransaction();", "@Override\n\tpublic boolean supportsTransactions() {\n\n\t\treturn false;\n\t}", "IDbTransaction beginTransaction(IsolationLevel il);", "public void approveClient(Client client) throws Exception {\n DataBaseBroker dbb = new DataBaseBroker();\n dbb.loadDriver();\n dbb.establishConnection();\n client.setForbidden(false);\n dbb.overwriteClient(client);\n dbb.commit();\n dbb.closeConnection();\n }", "private void executeTransaction(ArrayList<Request> transaction) {\n // create a new TransactionMessage\n TransactionMessage tm = new TransactionMessage(transaction);\n //if(tm.getStatementCode(0)!=8&&tm.getStatementCode(0)!=14)\n // return;\n try {\n ByteArrayOutputStream bos = new ByteArrayOutputStream();\n ObjectOutputStream oos = new ObjectOutputStream(bos);\n oos.writeObject(tm);\n oos.flush();\n\n byte[] data = bos.toByteArray();\n\n byte[] buffer = null;\n long startTime = System.currentTimeMillis();\n buffer = clientShim.execute(data);\n long endTime = System.currentTimeMillis();\n if (reqIndex < maxNoOfRequests && id > 0) {\n System.out.println(\"#req\" + reqIndex + \" \" + startTime + \" \" + endTime + \" \" + id);\n }\n reqIndex++;\n\n father.addTransaction();\n\n // IN THE MEAN TIME THE INTERACTION IS BEING EXECUTED\n\n\t\t\t\t/*\n\t\t\t\t * possible values of r: 0: commit 1: rollback 2: error\n\t\t\t\t */\n int r = ByteBuffer.wrap(buffer).getInt();\n //System.out.println(\"r = \"+r);\n if (r == 0) {\n father.addCommit();\n } else if (r == 1) {\n father.addRollback();\n } else {\n father.addError();\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "private void doneUpdate(long transaction) throws RequestIsOutException {\n\t\t\tassert this.lastSentTransaction == null || transaction > this.lastSentTransaction;\n\t\t\t\n\t\t\tthis.sendLock.readLock().unlock();\n\t\t}", "@VisibleForTesting\n public void executeTransaction(ClientTransaction transaction) {\n transaction.preExecute(this);\n getTransactionExecutor().execute(transaction);\n transaction.recycle();\n }", "@Test\n public void existingTransaction() {\n Transaction t1 = startTransaction();\n IntRef intValue = new IntRef(10);\n t1.commit();\n\n Transaction t2 = startTransaction();\n assertEquals(10, intValue.get());\n\n intValue.inc();\n assertEquals(11, intValue.get());\n t2.commit();\n }", "public void beginTransaction() throws TransactionException {\n\t\t\r\n\t}", "@Override\n public void begin() throws NotSupportedException, SystemException {\n SimpleTransaction txn = getTransaction();\n int status = txn.getStatus();\n if (status == Status.STATUS_COMMITTED || status == Status.STATUS_ROLLEDBACK || status == Status.STATUS_UNKNOWN\n || status == Status.STATUS_ACTIVE)\n txn.setStatus(Status.STATUS_ACTIVE);\n else\n throw new IllegalStateException(\"Can not begin \" + txn);\n }", "@Test public void testTransactionExclusion4() throws Exception {\n server.begin(THREAD1);\n\n try {\n server.begin(THREAD1);\n fail(\"exception expected\"); //$NON-NLS-1$\n } catch (XATransactionException ex) {\n assertEquals(\"TEIID30517 Client thread already involved in a transaction. Transaction nesting is not supported. The current transaction must be completed first.\", //$NON-NLS-1$\n ex.getMessage());\n }\n }", "boolean hasTxnrequest();", "private void startTransaction() throws CalFacadeException {\n if (transactionStarted) {\n return;\n }\n\n getSvc().open();\n getSvc().beginTransaction();\n transactionStarted = true;\n }", "@Test public void testTransactionExclusion() throws Exception {\n server.begin(THREAD1);\n\n try {\n server.start(THREAD1, XID1, XAResource.TMNOFLAGS, 100, false);\n fail(\"exception expected\"); //$NON-NLS-1$\n } catch (XATransactionException ex) {\n assertEquals(\"TEIID30517 Client thread already involved in a transaction. Transaction nesting is not supported. The current transaction must be completed first.\", //$NON-NLS-1$\n ex.getMessage());\n }\n }", "protected abstract boolean commitTxn(Txn txn) throws PersistException;", "private void testRollback001() {\n\t\tDmtSession session = null;\n\t\ttry {\n\t\t\tDefaultTestBundleControl.log(\"#testRollback001\");\n\t\t\tsession = tbc.getDmtAdmin().getSession(\".\", DmtSession.LOCK_TYPE_EXCLUSIVE);\n\t\t\tsession.rollback();\n\t\t\tDefaultTestBundleControl.failException(\"#\",DmtIllegalStateException.class);\n\t\t} catch (DmtIllegalStateException e) {\n\t\t\tDefaultTestBundleControl.pass(\"DmtIllegalStateException correctly thrown\");\n\t\t} catch (Exception e) {\n tbc.failExpectedOtherException(DmtIllegalStateException.class, e);\n\t\t} finally {\n\t\t\ttbc.closeSession(session);\n\t\t}\n\t}", "@Override\n\tpublic void beginTransaction() {\n\t\tSystem.out.println(\"Transaction 1 begins\");\n\t\t\n\t\t/*String queryLock = \"LOCK TABLES hpq_mem READ;\";\n\t\t\n\t\tPreparedStatement ps;\n\t\ttry {\n\t\t\tconn.setAutoCommit(false);\n\t\t\tps = conn.prepareStatement(queryLock);\n\t\t\tps.execute();\n\t\t\tps = conn.prepareStatement(\"START TRANSACTION;\");\n\t\t\tps.execute();\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}*/\n\t\t\n\t\tSystem.out.println(\"After obtaining readLock\");\n\t\t\n\t}", "public boolean isTransactional()\n {\n return _isTransactional;\n }", "public interface TransactionManager {\n\n\t/**\n\t * Start a new read only transaction.\n\t */\n\n\tStableView view();\n\n\t/**\n\t * Start a transaction for mutation.\n\t */\n\n\tMutableView begin();\n\n\t/**\n\t * Commit a previously prepared transaction for a two phase commit.\n\t *\n\t * @param tpcid\n\t * The client supplied two phase commit identifier.\n\t */\n\n\tvoid commit(String tpcid);\n\n}", "private void testRollback003() {\n DmtSession session = null;\n try {\n DefaultTestBundleControl.log(\"#testRollback003\");\n session = tbc.getDmtAdmin().getSession(\".\",DmtSession.LOCK_TYPE_ATOMIC);\n session.rollback();\n TestCase.assertEquals(\"Asserting that after a rollback(), the session is not closed.\", session.getState(), DmtSession.STATE_OPEN);\n } catch (Exception e) {\n \ttbc.failUnexpectedException(e);\n } finally {\n tbc.closeSession(session);\n }\n }", "void commit() {\r\n tx.commit();\r\n tx = new Transaction();\r\n }", "public void commitTransaction() {\n\r\n\t}", "public void verifyClientState(ClientState cs)\n\t{\n\t\tboolean valid = sg.executeBranch(cs.getBid(), cs.getInp(), cs.getOut());\n\t\tArrayList<ClientState> list = null;\n\t\tif(valid)\n\t\t{\n\t\t\t// add the client and the new state to the valid clients map\n\t\t\t\n\t\t\t\n\t\t\tif(validClients.get(cs.getCid()) == null)\n\t\t\t{\n\t\t\t\tlist = new ArrayList<ClientState>();\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tlist = validClients.get(cs.getCid());\n\t\t\t}\n\t\t\tlist.add(cs);\n\t\t\tvalidClients.put(cs.getCid(), list);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// move the client to the invalid client list\n\t\t\tif(invalidClients.get(cs.getCid()) != null)\n\t\t\t{\n\t\t\t\tlist = invalidClients.get(cs.getCid());\n\n\t\t\t}\n\t\t\telse if (validClients.get(cs.getCid()) != null)\n\t\t\t{\n\t\t\t\tlist = validClients.get(cs.getCid());\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tlist = new ArrayList<ClientState>();\n\t\t\t}\n\t\t\tlist.add(cs);\n\t\t\tinvalidClients.put(cs.getCid(), list);\n\t\t\t// initiate backup procedures\n\t\t\tbi.verifyClient(list);\n\t\t}\n\t}", "void setTransactionSuccessful();", "public Transaction startTransaction() {\r\n return getManager().startTransaction();\r\n }", "@Test public void testTransactionExclusion1() throws Exception {\n server.start(THREAD1, XID1, XAResource.TMNOFLAGS, 100, false);\n\n try {\n server.begin(THREAD1);\n fail(\"exception expected\"); //$NON-NLS-1$\n } catch (XATransactionException ex) {\n assertEquals(\"TEIID30517 Client thread already involved in a transaction. Transaction nesting is not supported. The current transaction must be completed first.\", //$NON-NLS-1$\n ex.getMessage());\n }\n }", "@Override\n public void onSuccess(Transaction transaction) {\n\n transaction = transaction;\n dialog.setMessage(\"Trying to Verify Your Transaction... please wait\");\n Log.d(\"REFERENCE\", transaction.getReference());\n Toast.makeText(getActivity(), transaction.getReference(), Toast.LENGTH_LONG).show();\n\n\n verifyOnServer(transaction.getReference());\n }", "public void other_statements_ok(Transaction t) {\n System.out.println(\"about to verify\");\n verify_transaction(t);\n System.out.println(\"verified\");\n make_transaction(t);\n System.out.println(\"success!\");\n }", "@Override\n\tpublic void checkUpdateClient() {\n\t}", "@SuppressWarnings(\"unchecked\")\n public void checkTransactionIntegrity(TransactionImpl transaction) {\n Set threads = transaction.getAssociatedThreads();\n String rollbackError = null;\n synchronized (threads) {\n if (threads.size() > 1)\n rollbackError = \"Too many threads \" + threads + \" associated with transaction \"\n + transaction;\n else if (threads.size() != 0) {\n Thread other = (Thread) threads.iterator().next();\n Thread current = Thread.currentThread();\n if (current.equals(other) == false)\n rollbackError = \"Attempt to commit transaction \" + transaction + \" on thread \"\n + current\n + \" with other threads still associated with the transaction \"\n + other;\n }\n }\n if (rollbackError != null) {\n log.error(rollbackError, new IllegalStateException(\"STACKTRACE\"));\n markRollback(transaction);\n }\n }", "@Test\n @Order(17)\n void delete_client_not_in_database() {\n int sumOfIds = 0;\n HashSet<Client> allClients = service.getAllClients();\n for(Client c : allClients) {\n sumOfIds+=c.getId();\n }\n boolean isDeleted = service.deleteClientById(sumOfIds);\n Assertions.assertFalse(isDeleted);\n }", "public void createTransaction(Transaction trans);", "@Test\n public void processTestC()\n {\n acc_db.addAccount(acc);\n acc_db.addAccount(acc2);\n\n //failed transaction\n trans = new Transaction(acc_db,acc.get_Account_Number(),5,10);\n\n Assert.assertEquals(false,trans.process());\n }", "protected void maybeToReadonlyTransaction() {\n\t\tTransaction.current().toReadonly();\n\t}", "void endTransaction();", "@Test\n public void testTransactional() throws Exception {\n try (CloseableCoreSession session = coreFeature.openCoreSessionSystem()) {\n IterableQueryResult results = session.queryAndFetch(\"SELECT * from Document\", \"NXQL\");\n TransactionHelper.commitOrRollbackTransaction();\n TransactionHelper.startTransaction();\n assertFalse(results.mustBeClosed());\n assertWarnInLogs();\n }\n }", "boolean getTransactional();", "public IgniteInternalFuture<IgniteInternalTx> rollbackAsync();", "@Override\n public boolean isTransActionAlive() {\n Transaction transaction = getTransaction();\n return transaction != null && transaction.isActive();\n }", "public static void assertTransactionValid(InvocationContext ctx)\n {\n Transaction tx = ctx.getTransaction();\n if (!isValid(tx))\n {\n try\n {\n throw new CacheException(\"Invalid transaction \" + tx + \", status = \" + (tx == null ? null : tx.getStatus()));\n }\n catch (SystemException e)\n {\n throw new CacheException(\"Exception trying to analyse status of transaction \" + tx, e);\n }\n }\n }", "public interface TransactionReadOnly {\n boolean isReadyOnly(String sql);\n\n}", "void confirmRealWorldTrade(IUserAccount user, ITransaction trans);", "public Boolean removeTransaction()\n {\n return true;\n }", "public void testCommitOrRollback() throws Exception {\n Properties props = new Properties();\n props.setProperty(LockssRepositoryImpl.PARAM_CACHE_LOCATION, tempDirPath);\n props\n\t.setProperty(ConfigManager.PARAM_PLATFORM_DISK_SPACE_LIST, tempDirPath);\n ConfigurationUtil.setCurrentConfigFromProps(props);\n\n startService();\n Connection conn = sqlDbManager.getConnection();\n Logger logger = Logger.getLogger(\"testCommitOrRollback\");\n SqlDbManager.commitOrRollback(conn, logger);\n SqlDbManager.safeCloseConnection(conn);\n\n conn = null;\n try {\n SqlDbManager.commitOrRollback(conn, logger);\n } catch (NullPointerException sqle) {\n }\n }", "public String doInTransaction(final TransactionStatus status) {\n final ServiceTicket st = newST((TicketGrantingTicket) jpaTicketRegistry.getTicket(parentTgtId));\n jpaTicketRegistry.addTicket(st);\n return st.getId();\n }", "void rollbackTransaction();", "public boolean transactionWillSucceed(Transaction transaction) {\n return transactionBuffer.transactionWillSucceed(transaction);\n }", "public boolean checkNewTrans(JsonObject block){\n \tJsonArray transactions = block.get(\"Transactions\").getAsJsonArray();\n \tint N = transactions.size();\n \tfor (int i=0; i<N; i++) {\n \t\tJsonObject Tx = transactions.get(i).getAsJsonObject();\n \t\tif (TxPool_used.contains(Tx))\n \t\t\treturn false;\n }\n return true;\n }", "protected abstract void commitIndividualTrx();", "@Test\n\t@DirtiesContext\n\tpublic void testTransacted() throws Exception {\n\t\tif (reader instanceof JpaPagingItemReader) {\n\t\t\t((JpaPagingItemReader<Foo>)reader).setTransacted(false);\n\t\t\tthis.testNormalProcessing();\n\t\t}//end if\n\t}", "@Override\n\tpublic boolean isJoinedToTransaction() {\n\t\treturn false;\n\t}", "@Test(groups = \"stress\", timeOut = 15*60*1000)\n public void testTransactionalStress() throws Throwable {\n TestResourceTracker.testThreadStarted(this.getTestName());\n stressTest(true);\n }", "public void begin()\n {\n checkTransactionJoin();\n if (joinStatus != JoinStatus.NO_TXN)\n {\n throw new NucleusTransactionException(\"JTA Transaction is already active\");\n }\n\n UserTransaction utx;\n try\n {\n utx = getUserTransaction();\n }\n catch (NamingException e)\n {\n throw ec.getApiAdapter().getUserExceptionForException(\"Failed to obtain UserTransaction\", e);\n }\n\n try\n {\n utx.begin();\n }\n catch (NotSupportedException e)\n {\n throw ec.getApiAdapter().getUserExceptionForException(\"Failed to begin UserTransaction\", e);\n }\n catch (SystemException e)\n {\n throw ec.getApiAdapter().getUserExceptionForException(\"Failed to begin UserTransaction\", e);\n }\n\n checkTransactionJoin();\n if (joinStatus != JoinStatus.JOINED)\n {\n throw new NucleusTransactionException(\"Cannot join an auto started UserTransaction\");\n }\n userTransaction = utx;\n }", "public TransID beginTransaction()\n {\n\t //TransID tid = new TransID();\n\t Transaction collect_trans = new Transaction(this);\n\t atranslist.put(collect_trans);\n\t return collect_trans.getTid();\n }", "Boolean isConsumeLockEntity();", "@Test\n\tpublic void addTransaction() {\n\t\tTransaction transaction = createTransaction();\n\t\tint size = transactionService.getTransactions().size();\n\t\ttransactionService.addTransaction(transaction);\n\t\tassertTrue(\"No transaction was added.\", size < transactionService.getTransactions().size());\n\t}", "@Override\n public int cancelTransaction() {\n System.out.println(\"Please make a selection first\");\n return 0;\n }", "@Override\r\n\t\t\tpublic Object doInTransaction(TransactionStatus arg0) {\n\t\t\t\t\r\n\t\t\t\tSqlLogInspetor sqlLogInspetor = new SqlLogInspetor();\r\n\t\t\t\tsqlLogInspetor.enable();\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\tSignatureBean signatureBean = PlayerManagerTest.this.manager.deserializeSignature(\"eyJjbGF6ek5hbWUiOiJvcmcuanNvbnBsYXliYWNrLnBsYXllci5oaWJlcm5hdGUuZW50aXRpZXMuTWFzdGVyQkVudCIsInJhd0tleVZhbHVlcyI6WyIxIiwiMSJdLCJyYXdLZXlUeXBlTmFtZXMiOlsiamF2YS5sYW5nLkludGVnZXIiLCJqYXZhLmxhbmcuSW50ZWdlciJdfQ\");\r\n\t\t\t\tMasterBEnt masterBEnt = PlayerManagerTest.this.manager.getBySignature(signatureBean);\r\n\t\t\t\t\r\n\t\t\t\tsignatureBean = PlayerManagerTest.this.manager.deserializeSignature(\"eyJjbGF6ek5hbWUiOiJvcmcuanNvbnBsYXliYWNrLnBsYXllci5oaWJlcm5hdGUuZW50aXRpZXMuTWFzdGVyQUVudCIsImlzQ29sbCI6dHJ1ZSwicHJvcGVydHlOYW1lIjoiZGV0YWlsQUVudENvbCIsInJhd0tleVZhbHVlcyI6WyIxIl0sInJhd0tleVR5cGVOYW1lcyI6WyJqYXZhLmxhbmcuSW50ZWdlciJdfQ\");\r\n\t\t\t\tCollection<DetailAEnt> detailAEntCol = PlayerManagerTest.this.manager.getBySignature(signatureBean);\r\n\t\t\t\t\r\n\t\t\t\tsignatureBean = PlayerManagerTest.this.manager.deserializeSignature(\"eyJjbGF6ek5hbWUiOiJvcmcuanNvbnBsYXliYWNrLnBsYXllci5oaWJlcm5hdGUuZW50aXRpZXMuTWFzdGVyQkVudCIsImlzQ29tcCI6dHJ1ZSwicHJvcGVydHlOYW1lIjoibWFzdGVyQkNvbXAiLCJyYXdLZXlWYWx1ZXMiOlsiMSIsIjEiXSwicmF3S2V5VHlwZU5hbWVzIjpbImphdmEubGFuZy5JbnRlZ2VyIiwiamF2YS5sYW5nLkludGVnZXIiXX0\");\r\n\t\t\t\tMasterBComp masterBComp = PlayerManagerTest.this.manager.getBySignature(signatureBean);\r\n\r\n\t\t\t\tsignatureBean = PlayerManagerTest.this.manager.deserializeSignature(\"eyJjbGF6ek5hbWUiOiJvcmcuanNvbnBsYXliYWNrLnBsYXllci5oaWJlcm5hdGUuZW50aXRpZXMuTWFzdGVyQkVudCIsImlzQ29sbCI6dHJ1ZSwicHJvcGVydHlOYW1lIjoibWFzdGVyQkNvbXAuZGV0YWlsQUVudENvbCIsInJhd0tleVZhbHVlcyI6WyIxIiwiMSJdLCJyYXdLZXlUeXBlTmFtZXMiOlsiamF2YS5sYW5nLkludGVnZXIiLCJqYXZhLmxhbmcuSW50ZWdlciJdfQ\");\r\n\t\t\t\tCollection<DetailAEnt> compDetailAEntCol = PlayerManagerTest.this.manager.getBySignature(signatureBean);\r\n\r\n\t\t\t\tsignatureBean = PlayerManagerTest.this.manager.deserializeSignature(\"eyJjbGF6ek5hbWUiOiJvcmcuanNvbnBsYXliYWNrLnBsYXllci5oaWJlcm5hdGUuZW50aXRpZXMuTWFzdGVyQkVudCIsImlzQ29tcCI6dHJ1ZSwicHJvcGVydHlOYW1lIjoibWFzdGVyQkNvbXAubWFzdGVyQkNvbXBDb21wIiwicmF3S2V5VmFsdWVzIjpbIjEiLCIxIl0sInJhd0tleVR5cGVOYW1lcyI6WyJqYXZhLmxhbmcuSW50ZWdlciIsImphdmEubGFuZy5JbnRlZ2VyIl19\");\r\n\t\t\t\tMasterBCompComp masterBCompComp = PlayerManagerTest.this.manager.getBySignature(signatureBean);\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tsignatureBean = PlayerManagerTest.this.manager.deserializeSignature(\"eyJjbGF6ek5hbWUiOiJvcmcuanNvbnBsYXliYWNrLnBsYXllci5oaWJlcm5hdGUuZW50aXRpZXMuTWFzdGVyQkVudCIsImlzQ29sbCI6dHJ1ZSwicHJvcGVydHlOYW1lIjoibWFzdGVyQkNvbXAubWFzdGVyQkNvbXBDb21wLmRldGFpbEFFbnRDb2wiLCJyYXdLZXlWYWx1ZXMiOlsiMSIsIjEiXSwicmF3S2V5VHlwZU5hbWVzIjpbImphdmEubGFuZy5JbnRlZ2VyIiwiamF2YS5sYW5nLkludGVnZXIiXX0\");\r\n\t\t\t\tCollection<DetailAEnt> compCompDetailAEntCol = PlayerManagerTest.this.manager.getBySignature(signatureBean);\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tAssert.assertThat(\"masterBEnt.getMasterBComp(), sameInstance(masterBComp)\", masterBEnt.getMasterBComp(), sameInstance(masterBComp));\r\n\t\t\t\tAssert.assertThat(\"masterBEnt.getMasterBComp().getMasterBCompComp(), sameInstance(masterBCompComp)\", masterBEnt.getMasterBComp().getMasterBCompComp(), sameInstance(masterBCompComp));\r\n\t\t\t\t\r\n\t\t\t\tAssert.assertThat(\"masterBComp.getMasterBCompComp(), sameInstance(masterBCompComp)\", masterBComp.getMasterBCompComp(), sameInstance(masterBCompComp));\r\n\t\t\t\tAssert.assertThat(\"detailAEntCol, not(sameInstance(compDetailAEntCol))\", detailAEntCol, not(sameInstance(compDetailAEntCol)));\r\n\t\t\t\tAssert.assertThat(\"detailAEntCol, not(sameInstance(compCompDetailAEntCol))\", detailAEntCol, not(sameInstance(compCompDetailAEntCol)));\r\n\t\t\t\tAssert.assertThat(\"compDetailAEntCol, not(sameInstance(compCompDetailAEntCol))\", compDetailAEntCol, not(sameInstance(compCompDetailAEntCol)));\r\n\t\t\t\t\r\n\t\t\t\tsqlLogInspetor.disable();\r\n\t\t\t\t\r\n\t\t\t\treturn null;\r\n\t\t\t}", "private boolean isTransactionOnBlockchain(Transaction tx){\n if(currentBlockchain.containsTransaction(tx)){\n return true;\n }\n return false;\n }", "void doTransaction (Redis redis) {\n\t \tswitch (redis.EXEC()) {\n\t \tcase OK:\n\t \tbreak;\n\t \tcase FAIL:\n \t\t\tdiscardTransaction(redis);\n\t\t\tbreak;\n\t \t}\n\t}", "public void addTransaction\n \t\t(SIPClientTransaction clientTransaction) {\n \tsynchronized (clientTransactions) {\n \t\tclientTransactions.add(clientTransaction);\n \t}\n }", "void sendTransactionToServer()\n \t{\n \t\t//json + sql magic\n \t}", "protected boolean isTransactionAllowedToRollback() throws SystemException\n {\n return this.getTransactionStatus() != Status.STATUS_COMMITTED &&\n this.getTransactionStatus() != Status.STATUS_NO_TRANSACTION &&\n this.getTransactionStatus() != Status.STATUS_UNKNOWN;\n }", "void scheduleTransaction(ClientTransaction transaction) {\n transaction.preExecute(this);\n sendMessage(ActivityThread.H.EXECUTE_TRANSACTION, transaction);\n }" ]
[ "0.6608115", "0.6540842", "0.6496879", "0.64796925", "0.6375689", "0.6355585", "0.62973326", "0.628534", "0.6242251", "0.6211476", "0.6194896", "0.6191071", "0.6094028", "0.6092573", "0.6058749", "0.60513896", "0.6022718", "0.6018182", "0.6016102", "0.60102737", "0.60102737", "0.5997044", "0.59774804", "0.5935702", "0.5892986", "0.5885461", "0.5884535", "0.5882058", "0.5858081", "0.58519286", "0.5846942", "0.58427876", "0.5840627", "0.5824416", "0.58000505", "0.5793676", "0.57891923", "0.5766656", "0.576338", "0.57570255", "0.5739217", "0.57321304", "0.5731272", "0.57302403", "0.5727706", "0.5714351", "0.569004", "0.56859434", "0.56857955", "0.5642637", "0.56384224", "0.5636204", "0.5634915", "0.56295043", "0.56248647", "0.56239146", "0.5620686", "0.5611965", "0.5609999", "0.5602764", "0.5589241", "0.5581069", "0.5579417", "0.55779326", "0.5577493", "0.55747825", "0.5558333", "0.55571413", "0.55420244", "0.5531781", "0.5531607", "0.5531261", "0.55204386", "0.55071557", "0.55057424", "0.5503758", "0.5496877", "0.54940414", "0.5486824", "0.54850274", "0.5479676", "0.5479189", "0.54740334", "0.54684556", "0.54544747", "0.545012", "0.54421973", "0.54394716", "0.54340494", "0.5433507", "0.5427854", "0.5425533", "0.54203343", "0.5417791", "0.5417126", "0.54073995", "0.5407015", "0.5402717", "0.54019415", "0.5400259", "0.5399534" ]
0.0
-1
ensure this is not for a rolledback tx: ensure we are in a Tx:
@SuppressWarnings("unchecked") public <K, V> Map<K, V> createMap(String name, Class<K> keyClass, Class<V> valueClass) { if (Globals.threadTxMap.get(Thread.currentThread()) == null || Globals.threadTxMap.get(Thread.currentThread()).status != TxStatus.ACTIVE) { throw new ClientNotInTxException("Cannot create map: not in an active transaction"); } //ensure name is not blank/whitespace: if(name.trim().isEmpty()){ throw new IllegalArgumentException("Invalid map name"); } //ensure keyClass/valueClass is not null: if(keyClass == null || valueClass == null){ throw new IllegalArgumentException("Key/value class cannot be null"); } //ensure serializable if(!Serializable.class.isAssignableFrom(keyClass)) throw new IllegalArgumentException("Key class is not serializable"); if(!Serializable.class.isAssignableFrom(valueClass)) throw new IllegalArgumentException("Value class is not serializable"); //ensure that the name is not in use: if(Globals.alreadyExists(name)){ throw new IllegalArgumentException("This name is already in use"); } //let's start by creating the object: DBTable<K, V> table = new DBTable<>(name, keyClass, valueClass); //set the object's types: Globals.addNameTable(name, table); Globals.addTableToThread(name); //send it to TxMgrImpl: //writeToDisk(table, name); return (Map<K, V>) Globals.getTable(name); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void rollbackTx() {\n \n }", "Transaction beginTx();", "@Override\n public void startTx() {\n \n }", "@Override\n public void commitTx() {\n \n }", "public void forceCommitTx()\n{\n}", "public void rollbackTx()\n\n{\n\n}", "public void beginTransaction() throws Exception;", "@Suspendable\n @Override\n protected void checkTransaction(SignedTransaction stx) throws FlowException {\n }", "public void beginTransaction() {\n\r\n\t}", "void beginTransaction();", "protected abstract boolean commitTxn(Txn txn) throws PersistException;", "IDbTransaction beginTransaction();", "void rollback() {\r\n tx.rollback();\r\n tx = new Transaction();\r\n }", "public void checkForTransaction() throws SystemException;", "final void ensureOngoingTransaction() throws SQLException {\n if (!transactionLock.isHeldByCurrentThread()) {\n throw new SQLNonTransientException(Errors.getResources(getLocale())\n .getString(Errors.Keys.ThreadDoesntHoldLock));\n }\n }", "public void beginTransaction() throws TransactionException {\n\t\t\r\n\t}", "void readOnlyTransaction();", "boolean requiresRollbackAfterSqlError();", "Transaction getCurrentTransaction();", "protected void maybeToReadonlyTransaction() {\n\t\tTransaction.current().toReadonly();\n\t}", "protected boolean isTransactionAllowedToRollback() throws SystemException\n {\n return this.getTransactionStatus() != Status.STATUS_COMMITTED &&\n this.getTransactionStatus() != Status.STATUS_NO_TRANSACTION &&\n this.getTransactionStatus() != Status.STATUS_UNKNOWN;\n }", "T handle(Tx tx) throws Exception;", "protected boolean isTransactionRollback()\n {\n try\n {\n UMOTransaction tx = TransactionCoordination.getInstance().getTransaction();\n if (tx != null && tx.isRollbackOnly())\n {\n return true;\n }\n }\n catch (TransactionException e)\n {\n // TODO MULE-863: What should we really do?\n logger.warn(e.getMessage());\n }\n return false;\n }", "@Override\n\tpublic void onTransactionStart() {}", "@Override\n public void rollback() throws SQLException {\n if (isTransActionAlive()) {\n getTransaction().rollback();\n }\n }", "protected abstract void rollbackIndividualTrx();", "@Transactional(Transactional.TxType.NOT_SUPPORTED)\n\tpublic void notSupported() {\n\t System.out.println(getClass().getName() + \"Transactional.TxType.NOT_SUPPORTED\");\n\t // Here the container will make sure that the method will run in no transaction scope and will suspend any transaction started by the client\n\t}", "protected void startTopLevelTrx() {\n startTransaction();\n }", "public boolean beginTransaction() {\n boolean result = false;\n if (_canDisableAutoCommit) {\n try {\n _connection.setAutoCommit(false);\n result = true;\n } catch (SQLException e) {\n Log.warning(\"Transactions not supported\", this, \"startTransaction\");\n _canDisableAutoCommit = false;\n }\n }\n return result;\n }", "IDbTransaction beginTransaction(IsolationLevel il);", "@Override\n\tpublic boolean supportsTransactions() {\n\n\t\treturn false;\n\t}", "void beginTransaction(ConnectionContext context) throws IOException;", "void begin() throws org.omg.CosTransactions.SubtransactionsUnavailable;", "void commit() {\r\n tx.commit();\r\n tx = new Transaction();\r\n }", "void startTransaction();", "@Override\n public void rollback() throws IllegalStateException, SecurityException, SystemException {\n assertActiveTransaction();\n try {\n getTransaction().rollback();\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n txns.set(null);\n }\n }", "@Override\n\tpublic void beginTransaction() {\n\t\tSystem.out.println(\"Transaction 1 begins\");\n\t\t\n\t\t/*String queryLock = \"LOCK TABLES hpq_mem READ;\";\n\t\t\n\t\tPreparedStatement ps;\n\t\ttry {\n\t\t\tconn.setAutoCommit(false);\n\t\t\tps = conn.prepareStatement(queryLock);\n\t\t\tps.execute();\n\t\t\tps = conn.prepareStatement(\"START TRANSACTION;\");\n\t\t\tps.execute();\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}*/\n\t\t\n\t\tSystem.out.println(\"After obtaining readLock\");\n\t\t\n\t}", "public int startTransaction();", "public static boolean isMarkedAsRollback(Transaction tx)\n {\n if (tx == null) return false;\n int status;\n try\n {\n status = tx.getStatus();\n return status == Status.STATUS_MARKED_ROLLBACK;\n }\n catch (SystemException e)\n {\n return false;\n }\n }", "@Override\n public Object doInTransaction(TransactionStatus transactionStatus) {\n transactionStatus.setRollbackOnly();\n return null;\n }", "TransactionContext preAppendTransaction() throws IOException;", "private boolean isTransactionOnBlockchain(Transaction tx){\n if(currentBlockchain.containsTransaction(tx)){\n return true;\n }\n return false;\n }", "private void rollbackTransaction(GraphTraversalSource g) {\n if (graphFactory.isSupportingTransactions()) {\n g.tx().rollback();\n }\n }", "private void doRollback() throws TransactionInfrastructureException {\n\t\t// DO WE WANT TO ROLL\n\t\t//\t\tif (isTransactionalMethod(m))\n\t\tObject txObject = getTransactionObject();\n\t\tif (txObject == null)\n\t\t\tthrow new TransactionInfrastructureException(\"Cannot rollback transaction: don't have a transaction\");\n\t\trollback(txObject);\n\t}", "void rollbackTransaction();", "public boolean transactionStarted();", "@Override\n\tpublic boolean isJoinedToTransaction() {\n\t\treturn false;\n\t}", "public boolean isTransactional()\n {\n return _isTransactional;\n }", "public void rollbackTransactionBlock() throws SQLException {\n masterNodeConnection.rollback();\n }", "public void beforeCompletion()\n {\n \n boolean success = false;\n try\n {\n flush();\n // internalPreCommit() can lead to new updates performed by usercode \n // in the Synchronization.beforeCompletion() callback\n internalPreCommit();\n flush();\n success = true;\n }\n finally\n {\n if (!success) \n {\n // TODO Localise these messages\n NucleusLogger.TRANSACTION.error(\"Exception flushing work in JTA transaction. Mark for rollback\");\n try\n {\n jtaTx.setRollbackOnly();\n }\n catch (Exception e)\n {\n NucleusLogger.TRANSACTION.fatal(\n \"Cannot mark transaction for rollback after exception in beforeCompletion. PersistenceManager might be in inconsistent state\", e);\n }\n }\n }\n }", "public Object doInTransaction(TransactionStatus status) {\n sendEvent();\n sendEvent();\n sendEvent();\n sendEvent();\n status.setRollbackOnly();\n return null;\n }", "public void authorizeTransaction() {}", "public void beginTransactionBlock() throws SQLException {\n masterNodeConnection.setAutoCommit(false);\n }", "public void initTransaction(Connection con) {\n try {\n con.setAutoCommit(false);\n con.setTransactionIsolation(Connection.TRANSACTION_READ_UNCOMMITTED);\n } catch (SQLException e) {\n try {\n con.rollback();\n } catch (SQLException e1) {\n e1.printStackTrace();\n }\n }\n }", "public void base_ok(Transaction t) {\n verify_transaction(t);\n make_transaction(t);\n }", "@Transactional(Transactional.TxType.SUPPORTS)\n\tpublic void supports() {\n\t System.out.println(getClass().getName() + \"Transactional.TxType.SUPPORTS\");\n\t // Here the container will allow the method to be called by a client whether the client already has a transaction or not\n\t}", "public boolean flushTransactions() {\n return true;\n }", "Transaction createTransaction();", "public void transactionStarted() {\n transactionStart = true;\n }", "@SuppressWarnings(\"unchecked\")\n public void checkTransactionIntegrity(TransactionImpl transaction) {\n Set threads = transaction.getAssociatedThreads();\n String rollbackError = null;\n synchronized (threads) {\n if (threads.size() > 1)\n rollbackError = \"Too many threads \" + threads + \" associated with transaction \"\n + transaction;\n else if (threads.size() != 0) {\n Thread other = (Thread) threads.iterator().next();\n Thread current = Thread.currentThread();\n if (current.equals(other) == false)\n rollbackError = \"Attempt to commit transaction \" + transaction + \" on thread \"\n + current\n + \" with other threads still associated with the transaction \"\n + other;\n }\n }\n if (rollbackError != null) {\n log.error(rollbackError, new IllegalStateException(\"STACKTRACE\"));\n markRollback(transaction);\n }\n }", "public boolean createTransaction() {\n\t\t\treturn false;\n\t\t}", "public void commitTransaction() {\n\r\n\t}", "@Override\n public void begin() throws NotSupportedException, SystemException {\n SimpleTransaction txn = getTransaction();\n int status = txn.getStatus();\n if (status == Status.STATUS_COMMITTED || status == Status.STATUS_ROLLEDBACK || status == Status.STATUS_UNKNOWN\n || status == Status.STATUS_ACTIVE)\n txn.setStatus(Status.STATUS_ACTIVE);\n else\n throw new IllegalStateException(\"Can not begin \" + txn);\n }", "@Override\n public void setRollbackOnly() throws IllegalStateException, SystemException {\n assertActiveTransaction();\n getTransaction().setRollbackOnly();\n }", "protected abstract void commitIndividualTrx();", "@Override\r\n\t\tpublic int getTransactionIsolation() throws SQLException {\n\t\t\treturn 0;\r\n\t\t}", "public GlobalTransaction getCurrentTransaction(Transaction tx)\n {\n return getCurrentTransaction(tx, true);\n }", "protected abstract Transaction createAndAdd();", "public void beginTransaction() throws SQLException {\r\n conn.setAutoCommit(false);\r\n beginTransactionStatement.executeUpdate();\r\n }", "public static void ignoreTransaction() {\n if (active) {\n TransactionAccess.ignore();\n }\n }", "public boolean hasActiveTx()\n{\n\treturn depth > 0;\n}", "public void testCommitOrRollback() throws Exception {\n Properties props = new Properties();\n props.setProperty(LockssRepositoryImpl.PARAM_CACHE_LOCATION, tempDirPath);\n props\n\t.setProperty(ConfigManager.PARAM_PLATFORM_DISK_SPACE_LIST, tempDirPath);\n ConfigurationUtil.setCurrentConfigFromProps(props);\n\n startService();\n Connection conn = sqlDbManager.getConnection();\n Logger logger = Logger.getLogger(\"testCommitOrRollback\");\n SqlDbManager.commitOrRollback(conn, logger);\n SqlDbManager.safeCloseConnection(conn);\n\n conn = null;\n try {\n SqlDbManager.commitOrRollback(conn, logger);\n } catch (NullPointerException sqle) {\n }\n }", "private void testRollback001() {\n\t\tDmtSession session = null;\n\t\ttry {\n\t\t\tDefaultTestBundleControl.log(\"#testRollback001\");\n\t\t\tsession = tbc.getDmtAdmin().getSession(\".\", DmtSession.LOCK_TYPE_EXCLUSIVE);\n\t\t\tsession.rollback();\n\t\t\tDefaultTestBundleControl.failException(\"#\",DmtIllegalStateException.class);\n\t\t} catch (DmtIllegalStateException e) {\n\t\t\tDefaultTestBundleControl.pass(\"DmtIllegalStateException correctly thrown\");\n\t\t} catch (Exception e) {\n tbc.failExpectedOtherException(DmtIllegalStateException.class, e);\n\t\t} finally {\n\t\t\ttbc.closeSession(session);\n\t\t}\n\t}", "@Override\n\tpublic void rollback() throws Throwable {\n\t\tthrow new Warning(\"please use rollback(context)\");\n\t}", "@Test\n public void existingTransaction() {\n Transaction t1 = startTransaction();\n IntRef intValue = new IntRef(10);\n t1.commit();\n\n Transaction t2 = startTransaction();\n assertEquals(10, intValue.get());\n\n intValue.inc();\n assertEquals(11, intValue.get());\n t2.commit();\n }", "@Override\r\n\t\tpublic void rollback() throws SQLException {\n\t\t\t\r\n\t\t}", "public Txn() {\n }", "void commitTransaction();", "@Transactional(Transactional.TxType.NEVER)\n\tpublic void never() {\n\t System.out.println(getClass().getName() + \"Transactional.TxType.NEVER\");\n\t // Here the container will reject any invocation done by clients already participate in transactions\n\t}", "public boolean rolledback() throws HibException;", "private void commitTransaction(GraphTraversalSource g) {\n if (graphFactory.isSupportingTransactions()) {\n g.tx().commit();\n }\n }", "void confirmTrans(ITransaction trans);", "Transaction getTransaction() { \r\n return tx;\r\n }", "public void createTransaction(Transaction trans);", "public void rollbackTransaction() throws TransactionException {\n\t\t\r\n\t}", "public boolean rollback() {\r\n\tboolean result = false;\r\n\r\n\tif (conn != null && isConnected()) {\r\n\t try {\r\n\t\tboolean autoCommit = getAutoCommit();\r\n\r\n\t\tif (!autoCommit) {\r\n\t\t conn.rollback();\r\n\t\t result = true;\r\n\t\t}\r\n\t } catch (Exception e) {\r\n\t\te.printStackTrace();\r\n\t }\r\n\t}\r\n\r\n\treturn result;\r\n }", "private boolean isTransactionAlreadySeen(Transaction tx){\n return allTransactions.contains(tx);\n }", "@Test\n public void processTransactionManagerCaseA()\n {\n acc_db.addAccount(acc);\n acc_db.addAccount(acc2);\n\n Assert.assertEquals(false,trans_mang.processTransaction(acc.get_Account_Number(),acc2.get_Account_Number(),2000));\n }", "@Override\r\n\t\t\t\tpublic Object doInTransaction(TransactionStatus arg0) {\n\r\n\t\t\t\t\tSqlLogInspetor sqlLogInspetor = new SqlLogInspetor();\r\n\t\t\t\t\tsqlLogInspetor.enable();\r\n\r\n\t\t\t\t\tMasterAEnt masterAEnt = (MasterAEnt) ss.get(MasterAEnt.class, 1);\r\n\t\t\t\t\tmasterAEnt.setBlobLazyB(null);\r\n\t\t\t\t\targ0.flush();\r\n\t\t\t\t\tsqlLogInspetor.disable();\r\n\t\t\t\t\treturn null;\r\n\t\t\t\t}", "void rollback(Transaction transaction);", "public static void finishTransaction()\n {\n if (currentSession().getTransaction().isActive())\n {\n try\n {\n System.out.println(\"INFO: Transaction not null in Finish Transaction\");\n Thread.dumpStack();\n rollbackTransaction();\n// throw new UAPersistenceException(\"Incorrect Transaction handling! While finishing transaction, transaction still open. Rolling Back.\");\n } catch (UAPersistenceException e)\n {\n System.out.println(\"Finish Transaction threw an exception. Don't know what to do here. TODO find solution for handling this situation\");\n }\n }\n }", "public boolean isTransactionRunning();", "@Test\n public void testTransactional() throws Exception {\n try (CloseableCoreSession session = coreFeature.openCoreSessionSystem()) {\n IterableQueryResult results = session.queryAndFetch(\"SELECT * from Document\", \"NXQL\");\n TransactionHelper.commitOrRollbackTransaction();\n TransactionHelper.startTransaction();\n assertFalse(results.mustBeClosed());\n assertWarnInLogs();\n }\n }", "private boolean transactionCanBeEnded(Transaction tx) {\n return tx != null && !(tx.getStatus() != null && tx.getStatus().isOneOf(TransactionStatus.COMMITTED, TransactionStatus.ROLLED_BACK));\n }", "protected abstract void abortTxn(Txn txn) throws PersistException;", "public void openTheTransaction() {\n openTransaction();\n }", "public void beginTransaction() throws SQLException\n\t{\n\t\tconn.setAutoCommit(false);\n\t\tbeginTransactionStatement.executeUpdate();\n\t}", "protected abstract Txn createTxn(Txn parent, IsolationLevel level) throws Exception;", "private void initializeTxIfFirst()\n {\n Transaction tx = tm.getTransaction();\n if ( !txHook.hasAnyLocks( tx ) ) txHook.initializeTransaction( tm.getEventIdentifier() );\n }", "public void commitTransaction() throws TransactionException {\n\t\t\r\n\t}", "public static boolean isValid(Transaction tx)\n {\n return isActive(tx) || isPreparing(tx) || isMarkedAsRollback(tx);\n }" ]
[ "0.72746825", "0.71814805", "0.6951446", "0.69347256", "0.6809602", "0.67629826", "0.6687398", "0.6591831", "0.6472766", "0.6470741", "0.6431476", "0.64113563", "0.64001644", "0.638354", "0.6381625", "0.6368584", "0.63523144", "0.6344547", "0.6320127", "0.6290096", "0.6202873", "0.6202402", "0.6185927", "0.61836946", "0.6179255", "0.61440265", "0.6131617", "0.6127253", "0.6118377", "0.6088342", "0.60869366", "0.6085974", "0.6068388", "0.6055838", "0.6052809", "0.6047358", "0.60426486", "0.60409886", "0.6040674", "0.6037222", "0.60305977", "0.6030311", "0.6029195", "0.60263044", "0.60164034", "0.60122126", "0.60075307", "0.60010093", "0.5999327", "0.5988786", "0.5985853", "0.5984427", "0.5980841", "0.5951505", "0.5935698", "0.5930405", "0.5927007", "0.5921419", "0.5916497", "0.5907501", "0.5901152", "0.5896668", "0.5893552", "0.58866537", "0.58753544", "0.5861334", "0.58550584", "0.585424", "0.58503014", "0.5832071", "0.58260363", "0.5821425", "0.5814786", "0.58102524", "0.5809295", "0.58080417", "0.5806557", "0.5799918", "0.5785604", "0.5779204", "0.57752186", "0.5771638", "0.57581925", "0.5751557", "0.57507604", "0.5749106", "0.57489055", "0.57443005", "0.57380605", "0.5737296", "0.5735501", "0.5733647", "0.57233304", "0.5718634", "0.5715534", "0.57100964", "0.5704011", "0.56972456", "0.56917465", "0.56913996", "0.5690686" ]
0.0
-1
Sets the duration of the "transaction timeout". A client whose transaction's duration exceeds the DBMS's timeout will be automatically rolled back by the DBMS.
@Override public void setTxTimeoutInMillis(int ms) { Globals.lockingTimeout = ms; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setTransactionTimeout(int seconds) throws SystemException;", "@Override\r\n\tpublic void setTransactionTimeout(int seconds) throws SystemException {\r\n\t\trequireTransaction(\"timeout\");\r\n\t}", "public void setTransactionTimeout(Period period)\n {\n _transactionTimeout = period.getPeriod();\n }", "@Override\n public boolean setTransactionTimeout(final int _seconds)\n {\n if (VFSStoreResource.LOG.isDebugEnabled()) {\n VFSStoreResource.LOG.debug(\"setTransactionTimeout (seconds = \" + _seconds + \")\");\n }\n return true;\n }", "public void setTimeout(int timeout) {\r\n\t\tconnTimeout = timeout;\r\n\t}", "void setOperationTimeout(int timeout) throws RemoteException;", "public void setQueryTimeout(int seconds) throws SQLException {\n\r\n }", "public long getTransactionTimeout()\n {\n return _transactionTimeout;\n }", "@Override\n public void setQueryTimeout( int x ) throws SQLException {\n timeout = x;\n }", "public void setConnectionTimeout(Duration connectionTimeout) {\n this.connectionTimeout = connectionTimeout;\n }", "@Override\n public void setTransactionTimeout(int arg0) throws SystemException {\n throw new UnsupportedOperationException();\n }", "public void setConnectionTimeout(double connectionTimeout) {\n this.connectionTimeout = connectionTimeout;\n saveProperties();\n }", "public void setConnTimeout(int connTimeout)\n {\n this._connTimeout = connTimeout;\n }", "public void setConnectionTimeout(final int connTimeout) {\n this.newConnTimeout = connTimeout;\n }", "public void setQueryTimeout(int seconds) throws SQLException {\n currentPreparedStatement.getQueryTimeout();\n }", "T setStartTimeout(Integer timeout);", "public void setConnectionTimeout(int connectionTimeout) {\r\n this.connectionTimeout = connectionTimeout;\r\n }", "public void setTimeout(org.apache.axis.types.UnsignedInt timeout) {\n this.timeout = timeout;\n }", "public void setConnectionTimeout(int connectionTimeout)\r\n\t{\r\n\t\tthis.connectionTimeout = connectionTimeout;\r\n\t}", "public void setLoginTimeout(int seconds) throws SQLException\n {\n }", "public void setTimeout(int timeout) {\n this.timeout = timeout;\n }", "public void setTimeout(Integer timeout) {\n\t\tthis.timeout = timeout;\n\t}", "public void setTimeout(int timeout) {\r\n this.timeout = timeout;\r\n }", "void setStartTimeout(int startTimeout);", "public void setQueryTimeout(long timeout) {\n queryTimeout = timeout;\n }", "public void setTimeout(int timeout) {\r\n\t\tthis.TIMEOUT = timeout;\r\n\t}", "public void setTimeout(long timeout) {\n this.timeout = timeout;\n }", "public void setTimeout(long timeout) {\n this.timeout = timeout;\n }", "public Params setConnectionTimeout(Duration connectionTimeout) {\n this.connectionTimeout = Optional.of(connectionTimeout);\n return this;\n }", "public void setTimeout( int timeout ) {\n this.timeout = timeout;\n }", "@Override\r\n\tpublic void setLoginTimeout(int seconds) throws SQLException {\n\t\t\r\n\t}", "@Override\r\n\tpublic void setLoginTimeout(int seconds) throws SQLException {\n\t\t\r\n\t}", "public void setTimeout(double timeout){\n this.timeout = timeout;\n }", "public void setQueryTimeout(int queryTimeout) {\n\t\tthis.queryTimeout = queryTimeout;\n\t}", "@Override\r\n\t\t\tpublic void setLoginTimeout(int seconds) throws SQLException {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void setLoginTimeout(int seconds) throws SQLException {\n\t\t\t\t\r\n\t\t\t}", "@Override\n public int getTransactionTimeout()\n {\n if (VFSStoreResource.LOG.isDebugEnabled()) {\n VFSStoreResource.LOG.debug(\"getTransactionTimeout\");\n }\n return 0;\n }", "public void setTimeOut(int value) {\n this.timeOut = value;\n }", "public void setConnectionTimeOut(int connectionTimeOut) {\n this.connectionTimeOut = connectionTimeOut;\n }", "public final synchronized void setConnectionTimeout(final int timeout) {\n HttpConnectionParams.setConnectionTimeout(params, timeout);\n }", "public void setTimeout(int newTimeout) {\n this.timeout = newTimeout;\n }", "public SetIdleTimeoutCommand(int timeout) {\n this.timeout = timeout;\n }", "@Override\n public int getTxTimeoutInMillis() {\n return Globals.lockingTimeout;\n }", "public void setTimeout(long timeout) {\n\t\tthis.timeout = timeout;\n\t}", "public void setTimeout(int _timeout) {\n if (timeout < 0)\n return;\n timeout = _timeout;\n }", "public void setTimeout(final int timeout) {\n this.timeout = timeout;\n }", "public void setTimeout(final String timeout);", "public void setTimeout(long timeout)\r\n\t{\r\n\t\tthis.timeout = timeout;\r\n\t}", "@ZAttr(id=99)\n public void setSmtpTimeout(int zimbraSmtpTimeout) throws com.zimbra.common.service.ServiceException {\n HashMap<String,Object> attrs = new HashMap<String,Object>();\n attrs.put(Provisioning.A_zimbraSmtpTimeout, Integer.toString(zimbraSmtpTimeout));\n getProvisioning().modifyAttrs(this, attrs);\n }", "public void setIncTimeout(int seconds);", "void setTimeout(long timeout) {\n if(timeout < 0) {\n throw new RuntimeException(buildMessage(\"Timeout value must be positive, not \" + timeout));\n }\n this.timeout = timeout;\n }", "public long timeout(long timeout);", "public void SetDuration(int duration)\n {\n TimerMax = duration;\n if (Timer > TimerMax)\n {\n Timer = TimerMax;\n }\n }", "public void setDelayedTimeout(int seconds);", "public void setTimeOut(long timeOut) {\n _timeOut = timeOut;\n }", "@Override\r\n\tpublic void setLoginTimeout(int arg0) throws SQLException {\n\r\n\t}", "public void setSipTransportTimeout(int timeoutMs);", "public void setDuration( Long duration );", "public void setDuration(int duration) {\n if (this.duration != duration) {\n this.duration = duration;\n }\n }", "public void setHttpClientTimeout(int timeout) {\n this.connectTimeout = timeout;\n this.customized = true;\n }", "public void setConnectTimeout(int connectTimeout){\n return; //TODO codavaj!!\n }", "public void setTimeout(final long timeout);", "@Test\n public void testLongTimeout() throws Exception {\n final int expectedTimeoutInSeconds = ((30 * 24) * 60) * 60;// 30 days.\n\n final long expectedLongValue = expectedTimeoutInSeconds * 1000L;\n Capture<Integer> capturedInt = new Capture<Integer>();\n // use a capture to make sure the setter is doing the right thing.\n mockSession.setMaxInactiveInterval(captureInt(capturedInt));\n expect(mockSession.getMaxInactiveInterval()).andReturn(expectedTimeoutInSeconds);\n replay(mockSession);\n HttpServletSession servletSession = new HttpServletSession(mockSession, null);\n servletSession.setTimeout(expectedLongValue);\n long timeoutInMilliseconds = servletSession.getTimeout();\n Assert.assertEquals(expectedLongValue, timeoutInMilliseconds);\n Assert.assertEquals(expectedTimeoutInSeconds, capturedInt.getValue().intValue());\n }", "void setTimeout(@Nullable Duration timeout);", "int getTransactionTimeout(Method method);", "public void setWriteTimeout(long writeTimeout) {\n this.writeTimeout = writeTimeout;\n }", "@Override\n\tpublic void setOpTimeout(long arg0) {\n\n\t}", "public void setDuration(int duration) {\n mDuration = duration;\n }", "@Override\r\n \t\t\tpublic void setSessionDuration(long duration) {\n \t\t\t\t\r\n \t\t\t}", "public TimeoutMetadata(long timeout) {\n super(instance);\n this.expiry = System.currentTimeMillis() + timeout;\n }", "@Transactional(timeout = 7)\n public void timeoutTest() throws Exception{\n YxyTest queryObj = new YxyTest();\n queryObj.setId(1L);\n queryObj.setName(\"caijunhua\");\n yxyTestMapper.updateByPrimaryKeySelective(queryObj);\n }", "public void setTimeout(long t) {\n StepTimeout = t;\n }", "public void setDuration(long duration) {\n\t\tthis.startDuration = System.currentTimeMillis();\n\t\tthis.endDuration = startDuration + duration * 1000;\n\t}", "void setDuration(int duration);", "public void setTimeout(int timeout);", "private void setTimedOut() {\n\t\tthis.timedOut.set(true);\n\t}", "public TerminalPropertiesBuilder setExpectationTimeout(final long expectationTimeout) {\n this.expectationTimeout = expectationTimeout;\n return this;\n }", "@Test\r\n public void testSetTimeout() {\r\n // Not required\r\n }", "public void setLogOnTimeout(String timeout) {\n\t\tsetProperty(LOGON_TIMEOUT_PROP, timeout);\n\t}", "public Builder timeout(long timeout) {\r\n configurationBuilder.timeout(timeout);\r\n return this;\r\n }", "public void setDuration(long duration) {\n this.duration = duration;\n }", "public void setDuration(long duration) {\n this.duration = duration;\n }", "public HttpClient setConnectionTimeout(Env env, NumberValue timeout) {\n client.setConnectTimeout(timeout.toInt());\n return this;\n }", "public void setTimeoutLength(int timeout) {\n\t\tmyTimeoutLength = timeout;\n\t\tif (myPort == null) {\n\t\t\treturn;\n\t\t}\n\t\tmyPort.setTimeoutLength(timeout);\n\t}", "public void setQueueManagerTimeoutParameters( int queueManagerDeletionTimeout ) {\r\n\t\tif( queueManagerDeletionTimeout < 0 ) {\r\n\t\t\tthrow new IllegalArgumentException(\"queueManagerDeletionTimeout needs to be a nonnegaive integer\");\r\n\t\t}\r\n\t\tthis.queueManagerDeletionTimeout = queueManagerDeletionTimeout;\r\n\t}", "public LWTRTPdu timeout() throws IncorrectTransitionException;", "public void setConnectTimeout(int connectTimeout) {\n this.connectTimeout = connectTimeout;\n }", "@Property(displayName = \"Timeout\", description = \"Sets the amount of time that must pass in milliseconds\"\n\t\t\t+ \" before the reader stops looking for tags. If this value is too small, the reader will not \"\n\t\t\t+ \"read from all of its antennas. Because of this, it is recommended that the value be at least 500ms. \"\n\t\t\t+ \"\", writable = true, type = PropertyType.PT_INTEGER, minValue = \"\"\n\t\t\t+ \"500\", maxValue = \"16535\", defaultValue = \"1000\", category=\"Timeout\")\n\tpublic Integer getTimeout() {\n\t\treturn timeout;\n\t}", "public void setDuration(int duration) {\n this.duration = duration;\n }", "public void setDuration(int duration) {\n this.duration = duration;\n }", "public long getTimeout() { return timeout; }", "public void setDuration(Integer duration) {\n this.duration = duration;\n }", "public void setNortpTimeout(int seconds);", "public Delete timeout(long timeout){\n\t\taddParams(\"timeout\", timeout);\n\t\treturn this;\n\t}", "public int getConnectionTimeout();", "public TransactionConfiguration cacheStopTimeout(long l) {\n this.cacheStopTimeout = l;\n return this;\n }", "public void setTimeoutInterval(int seconds) throws PropertyVetoException {\n // Validate state\n validatePropertyChange(\"timeoutInterval\");\n\n // Validate parms\n if (seconds < 1 || seconds > 3600) {\n Trace.log(Trace.ERROR, \"Number of seconds \" + seconds + \" out of range\");\n throw new ExtendedIllegalArgumentException(\n \"seconds\", ExtendedIllegalArgumentException.RANGE_NOT_VALID);\n }\n\n Integer old = new Integer(timeoutInterval_);\n Integer sec = new Integer(seconds);\n fireVetoableChange(\"timeoutInterval\", old, sec);\n timeoutInterval_ = seconds;\n firePropertyChange(\"timeoutInterval\", old, sec);\n }", "public void setDuration(long duration) {\n this.duration = duration;\n }", "public void setDuration(Long duration)\r\n {\r\n this.duration = duration;\r\n }", "public void setDuration(int duration)\r\n\t{\r\n\t\tif (duration < 0) { throw new IllegalArgumentException(\"duration muss groesser als 0 sein\"); }\r\n\t\tthis.duration = duration;\r\n\t}" ]
[ "0.7865148", "0.7322164", "0.71465886", "0.709714", "0.6700001", "0.6517481", "0.6513093", "0.64499855", "0.64424443", "0.6322806", "0.62597334", "0.6256544", "0.6229753", "0.61840373", "0.616415", "0.6151212", "0.61243004", "0.60844594", "0.6046054", "0.6039292", "0.5948148", "0.5944546", "0.5940387", "0.5927186", "0.59264", "0.5916018", "0.5909717", "0.5909717", "0.5908677", "0.59082055", "0.5886477", "0.5886477", "0.5868643", "0.58493865", "0.5846233", "0.5846233", "0.5841158", "0.58359045", "0.58317846", "0.5826415", "0.5819084", "0.5810988", "0.5801851", "0.58008474", "0.57989883", "0.5777228", "0.57749325", "0.5763308", "0.57477003", "0.5736876", "0.5721501", "0.57075673", "0.56916714", "0.5661823", "0.56529206", "0.5648712", "0.5631491", "0.56144834", "0.5604991", "0.5579269", "0.55745083", "0.55727625", "0.5569024", "0.55661917", "0.5529003", "0.5523107", "0.54895735", "0.548728", "0.54804116", "0.54739785", "0.5470894", "0.5469763", "0.54662377", "0.54599255", "0.5459105", "0.54529583", "0.5433519", "0.543069", "0.542568", "0.5425031", "0.5421603", "0.5421603", "0.54163533", "0.54136163", "0.5411999", "0.54071844", "0.540561", "0.54041076", "0.5401891", "0.5401891", "0.5379245", "0.53738886", "0.5364395", "0.5361781", "0.5361696", "0.53590244", "0.5358461", "0.53565603", "0.5356155", "0.53521997" ]
0.6184863
13
Returns the current DBMS transaction timeout duration.
@Override public int getTxTimeoutInMillis() { return Globals.lockingTimeout; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public long getTransactionTimeout()\n {\n return _transactionTimeout;\n }", "@Override\n public int getTransactionTimeout()\n {\n if (VFSStoreResource.LOG.isDebugEnabled()) {\n VFSStoreResource.LOG.debug(\"getTransactionTimeout\");\n }\n return 0;\n }", "int getTransactionTimeout(Method method);", "public int getTimeout() {\n\t\treturn (Integer)getObject(\"timeout\");\n\t}", "public long getTimeout() {\r\n return configuration.getTimeout();\r\n }", "public int getTimeout() {\n return params.getTimeout() * 1000;\n }", "public long getTimeout() {\n return timeout;\n }", "public long getTimeout() {\n return timeout;\n }", "public long getTimeout() {\n return timeout;\n }", "public Long getConnectionTimeoutInSecs() {\n\t\treturn connectionTimeoutInSecs;\n\t}", "public long getTimeout() { return timeout; }", "public int getTimeout() {\n return timeout;\n }", "public int getTimeout() {\r\n\t\treturn connTimeout;\r\n\t}", "public int getTimeout() {\r\n return timeout;\r\n }", "public long getTimeoutInMilliseconds() {\n return timeoutInMilliseconds;\n }", "public long getExecutionTimeout() {\n \n // return it\n return executionTimeout;\n }", "public org.apache.axis.types.UnsignedInt getTimeout() {\n return timeout;\n }", "public Long getQueryTimeoutInSecs() {\n\t\treturn queryTimeoutInSecs;\n\t}", "public double getConnectionTimeout() {\n return connectionTimeout;\n }", "public final String getConnectionTimeout() {\n return properties.get(CONNECTION_TIMEOUT_PROPERTY);\n }", "public int getTimeoutInSeconds() {\n return timeoutInSeconds;\n }", "public double connectionTimeoutSecs() {\n if (connectionTimeoutSecs <= 0)\n return Jvm.isDebug() ? 120 : 10;\n return connectionTimeoutSecs;\n }", "public long GetTimeout() { return timeout; }", "protected int getTimeoutInMs() {\n return this.properties.executionTimeoutInMilliseconds().get();\n }", "public int getConnectionTimeout() {\r\n return connectionTimeout;\r\n }", "public Integer timeoutSeconds() {\n return this.timeoutSeconds;\n }", "public TestTimeout getTimeout() {\n return timeout;\n }", "public Duration timeout() {\n return this.timeout;\n }", "public int getConnectionTimeout()\r\n\t{\r\n\t\treturn connectionTimeout;\r\n\t}", "public int getTimeout();", "public int getTimeoutInterval() {\n return timeoutInterval_;\n }", "public int getConnectionTimeOut() {\n return connectionTimeOut;\n }", "long getTimeout();", "final Long getTimeoutValue()\n/* */ {\n/* 137 */ return this.timeout;\n/* */ }", "public int getConnectionTimeOutMs()\n {\n return arguments.connectionTimeOutMs;\n }", "public int getConnectionTimeout();", "public int getConnTimeout()\n {\n return _connTimeout;\n }", "public long getExpectationTimeout() {\n return expectationTimeout;\n }", "public long getTimeout() {\n return StepTimeout;\n }", "public String getTimeOut() {\n return prop.getProperty(TIMEOUT_KEY);\n }", "public int getTimeOut() {\n return timeOut;\n }", "public long getQueryTimeout() {\n return queryTimeout;\n }", "public int getLoginTimeout() throws SQLException\n {\n return 0;\n }", "public int getQueryTimeout() throws SQLException {\n return currentPreparedStatement.getQueryTimeout();\n }", "int getTimeout();", "public String getConnectionTimeoutProperty() {\n\n return unmaskProperty(EmailConnectionConstants.PROPERTY_CONNECTION_TIMEOUT);\n }", "Integer getStartTimeout();", "@Override\r\n\t\tpublic int getNetworkTimeout() throws SQLException {\n\t\t\treturn 0;\r\n\t\t}", "public static int getTimeOut() {\n\t\tTIME_OUT = 10;\n\t\treturn TIME_OUT;\n\t}", "DateTime getTransactionTime() {\n assertInTransaction();\n return TRANSACTION_INFO.get().transactionTime;\n }", "public Duration getClientTimeout()\n {\n return clientTimeout;\n }", "@ZAttr(id=99)\n public int getSmtpTimeout() {\n return getIntAttr(Provisioning.A_zimbraSmtpTimeout, -1);\n }", "public Integer getSmtpTimeout() {\n\t\treturn _smtpTimeout;\n\t}", "public Long getAsyncWaitTimeout() {\n\t\treturn asyncWaitTimeout;\n\t}", "public int getPlannerTimeoutSec()\n {\n return plannerTimeoutSec;\n }", "public Integer idleTimeoutInMinutes() {\n return this.idleTimeoutInMinutes;\n }", "void setTransactionTimeout(int seconds) throws SystemException;", "@Property(displayName = \"Timeout\", description = \"Sets the amount of time that must pass in milliseconds\"\n\t\t\t+ \" before the reader stops looking for tags. If this value is too small, the reader will not \"\n\t\t\t+ \"read from all of its antennas. Because of this, it is recommended that the value be at least 500ms. \"\n\t\t\t+ \"\", writable = true, type = PropertyType.PT_INTEGER, minValue = \"\"\n\t\t\t+ \"500\", maxValue = \"16535\", defaultValue = \"1000\", category=\"Timeout\")\n\tpublic Integer getTimeout() {\n\t\treturn timeout;\n\t}", "int getExpireTimeout();", "public long writeTimeoutMillis() {\n return get(WRITE_TIMEOUT_MILLIS);\n }", "@Override\r\n\tpublic int getLoginTimeout() throws SQLException {\n\t\treturn 0;\r\n\t}", "@Override\r\n\tpublic int getLoginTimeout() throws SQLException {\n\t\treturn 0;\r\n\t}", "@Override\r\n\tpublic int getLoginTimeout() throws SQLException {\n\t\treturn 0;\r\n\t}", "public Long getDefaultTimeoutInSecs() {\n\t\treturn defaultTimeoutInSecs;\n\t}", "public Object scriptBlockExecutionTimeout() {\n return this.innerTypeProperties() == null ? null : this.innerTypeProperties().scriptBlockExecutionTimeout();\n }", "public Long getKeyValueTimeoutInSecs() {\n\t\treturn keyValueTimeoutInSecs;\n\t}", "public static long getSessionTimeOut()\n {\n return nSessionTimeOut;\n }", "@Override\r\n\t\t\tpublic int getLoginTimeout() throws SQLException {\n\t\t\t\treturn 0;\r\n\t\t\t}", "@Override\r\n\t\t\tpublic int getLoginTimeout() throws SQLException {\n\t\t\t\treturn 0;\r\n\t\t\t}", "public long remainingTime() throws IgniteTxTimeoutCheckedException;", "public LWTRTPdu timeout() throws IncorrectTransitionException;", "public int getConnectionTimeout(Env env) {\n return client.getConnectTimeout();\n }", "public long getLogOnTimeout() {\n\t\treturn getPropertyAsLong(LOGON_TIMEOUT_PROP);\n\t}", "public String getWriteTimeoutProperty() {\n\n return unmaskProperty(EmailConnectionConstants.PROPERTY_WRITE_TIMEOUT);\n }", "public final String getDataTimeout() {\n return properties.get(DATA_TIMEOUT_PROPERTY);\n }", "public int getConnectTimeout() {\n return connectTimeout;\n }", "public Integer getAcquireTimeoutMillis() {\n return pool.getAcquireTimeoutMillis();\n }", "public int getLoginTimeout(){\n \treturn loginTimeout;\n }", "public int getDefaultTimeout() {\n return defaultTimeout;\n }", "@Override\n public int getQueryTimeout() throws SQLException {\n return timeout;\n }", "public long getRequestTimeoutMillis()\n {\n return requestTimeoutMillis;\n }", "public long getScheduleToCloseTimeoutSeconds() {\n return scheduleToCloseTimeoutSeconds;\n }", "public int getQueryTimeout() throws SQLException {\n return 0;\r\n }", "public int getLoginTimeout() {\n\treturn iLoginTimeout;\n }", "public void setTransactionTimeout(Period period)\n {\n _transactionTimeout = period.getPeriod();\n }", "public Duration getHttpRequestConnectTimeout()\n {\n return httpRequestConnectTimeout;\n }", "protected final Duration connectTimeout() {\n return CONNECTION_TIMEOUT;\n }", "public int getNortpTimeout();", "public long getConnectionWaitTime()\n {\n return _connectionWaitTime;\n }", "public Long getWaiting_query_secs() {\n return waiting_query_secs;\n }", "public int getConnectTimeoutMillis() {\n return connectTimeoutMillis.get();\n }", "public int getConnectTimeout() {\n\t\treturn connectTimeout;\n\t}", "public Optional<Integer> maxLeaseTtlSeconds() {\n return Codegen.integerProp(\"maxLeaseTtlSeconds\").config(config).env(\"TERRAFORM_VAULT_MAX_TTL\").def(1200).get();\n }", "public int connectTimeout(){\n return 0; //TODO codavaj!!\n }", "public long getIdleTimeout() {\n return idleTimeoutMillis;\n }", "public int getKexTimeout() {\n\t\treturn kexTimeout;\n\t}", "@Transient\n \tpublic int getDuration() {\n \t\tint duration = (int) (this.endTime.getTime() - this.startTime.getTime());\n \t\treturn duration / 1000;\n \t}", "public String getWaiting_lock_duration() {\n return waiting_lock_duration;\n }", "public int getDelayedTimeout();", "public long timeout(long timeout);" ]
[ "0.8241288", "0.7866678", "0.73925346", "0.73704076", "0.73393244", "0.72636443", "0.72181755", "0.72181755", "0.72181755", "0.71698654", "0.71178555", "0.711188", "0.7098579", "0.70767605", "0.7061472", "0.70024323", "0.69902474", "0.6963566", "0.69380724", "0.6934068", "0.69302845", "0.6921317", "0.6916869", "0.68994033", "0.68760973", "0.68747616", "0.685639", "0.6843717", "0.6821209", "0.6819374", "0.6806005", "0.67562574", "0.67421997", "0.6713403", "0.6705939", "0.66674536", "0.6633507", "0.66159415", "0.6590249", "0.65897375", "0.6585684", "0.65703624", "0.6511936", "0.64699054", "0.6440437", "0.6417811", "0.6401376", "0.63919824", "0.63343924", "0.633242", "0.632553", "0.6316821", "0.6286929", "0.62562644", "0.61891425", "0.6184994", "0.6181579", "0.6168733", "0.6167645", "0.6165043", "0.6159109", "0.6159109", "0.6159109", "0.6128494", "0.61263245", "0.611221", "0.6100924", "0.6082662", "0.6082662", "0.6082371", "0.6060454", "0.6057183", "0.6054871", "0.60402715", "0.60371315", "0.6034122", "0.6033652", "0.60310817", "0.6030594", "0.6020542", "0.60085595", "0.6005512", "0.5998551", "0.59940493", "0.5980984", "0.59588295", "0.59555435", "0.59541714", "0.5951726", "0.59407926", "0.59375966", "0.59374917", "0.59286165", "0.58713996", "0.5853197", "0.5846316", "0.58403873", "0.5835659", "0.5828156", "0.5825601" ]
0.73586434
4
doesn't match the type when it should.
public <T> void assertFieldContainsSomeOf(String fieldName, Class<T> clazz) { assertFieldContains(fieldName, clazz::isInstance); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract protected boolean checkType(String myType);", "@Override\n\tpublic boolean checkTypes() {\n\t\treturn false;\n\t}", "public abstract boolean isTypeCorrect();", "@Test\n public void testIsTypeOf() throws ValueDoesNotMatchTypeException {\n testTypeKindOf(AnyType.IS_TYPE_OF);\n }", "public void testType() {\n assertTrue( ((OclAny)(Ocl.getOclRepresentationFor(6))).oclIsTypeOf(tInteger).isTrue() );\n assertTrue( ((OclAny)(Ocl.getOclRepresentationFor(6))).oclIsTypeOf(tReal).not().isTrue() ); //differs\n assertTrue( ((OclAny)(Ocl.getOclRepresentationFor(p1))).oclIsTypeOf(tPersonFQ).isTrue() );\n assertTrue( ((OclAny)(Ocl.getOclRepresentationFor(\"foo\"))).oclIsTypeOf(tOclString).isTrue() );\n assertTrue( ((OclAny)(Ocl.getOclRepresentationFor(true))).oclIsTypeOf(tBoolean).isTrue() );\n assertTrue( ((OclAny)(Ocl.getOclRepresentationFor(6.0))).oclIsTypeOf(tReal).isTrue() );\n assertTrue( ((OclAny)(Ocl.getOclRepresentationFor(6.0))).oclIsTypeOf(tInteger).not().isTrue() );\n assertTrue( ((OclAny)(Ocl.getOclRepresentationFor(p2))).oclIsTypeOf(tCompany).not().isTrue() );\n assertTrue( ((OclAny)(Ocl.getOclRepresentationFor(false))).oclIsTypeOf(tAny).not().isTrue() ); //differs\n assertTrue( ((OclAny)(Ocl.getOclRepresentationFor(0.0))).oclIsTypeOf(tAny).not().isTrue() ); // differs\n assertTrue( ((OclAny)(Ocl.getOclRepresentationFor(0))).oclIsTypeOf(tAny).not().isTrue() ); // differs\n assertTrue( ((OclAny)(Ocl.getOclRepresentationFor(p1))).oclIsTypeOf(tObject).not().isTrue() ); // differs\n }", "@Test\n public void testIsKindOf() throws ValueDoesNotMatchTypeException {\n testTypeKindOf(AnyType.IS_KIND_OF);\n }", "private void validateTypes() {\r\n\t\tfor (int i = 0; i < types.length; i++) {\r\n\t\t\tString type = types[i];\r\n\t\t\tif (!TypedItem.isValidType(type))\r\n\t\t\t\tthrow new IllegalArgumentException(String.format(\"The monster type %s is invalid\", type));\r\n\t\t\tfor (int j = i + 1; j < types.length; j++) {\r\n\t\t\t\tif (type.equals(types[j])) {\r\n\t\t\t\t\tthrow new IllegalArgumentException(\"The monster cant have two similar types..\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}", "@Test\n void cannotInferType() {\n }", "protected void typeMismatch(Object obj) {\n\t\ttypeMismatch(obj.toString());\n\t}", "@Override\n\tpublic boolean isObjectTypeExpected() {\n\t\treturn false;\n\t}", "@Test(expected = IllegalArgumentException.class)\n public void testAnotherInvalidMatch() throws Exception {\n ArrayList<Type> typeList = Lists.newArrayList();\n typeList.add(String.class);\n typeList.add(Object.class);\n typeList.add(Object.class);\n typeList.addAll(getBothParameters(ParamToListParam.class));\n typeList.add(getFirstTypeParameter(StringListSink.class));\n PipelineRegisterer.validateTypes(typeList);\n }", "protected void typeMismatch(String line) {\n\t\tthrow new RuntimeException(\"Type mismatch error: \" + line);\n\t}", "public void checkNotPolymorphicOrUnknown() {\n if (isPolymorphic())\n throw new AnalysisException(\"Unexpected polymorphic value!\");\n if (isUnknown())\n throw new AnalysisException(\"Unexpected 'unknown' value!\");\n }", "@Override\n boolean doIsAssignableFromNonUnionType(SoyType srcType) {\n return false;\n }", "public void test_getType() {\n assertEquals(\"'type' value should be properly retrieved.\", type, instance.getType());\n }", "private static void validate(int type, int field, int match, String value) {\n if ((type != Type.SONG) && (field == Field.PLAY_COUNT || field == Field.SKIP_COUNT)) {\n throw new IllegalArgumentException(type + \" type does not have field \" + field);\n }\n // Only Songs have years\n if (type != Type.SONG && field == Field.YEAR) {\n throw new IllegalArgumentException(type + \" type does not have field \" + field);\n }\n // Only Songs have dates added\n if (type != Type.SONG && field == Field.DATE_ADDED) {\n throw new IllegalArgumentException(type + \" type does not have field \" + field);\n }\n\n if (field == Field.ID) {\n // IDs can only be compared by equals or !equals\n if (match == Match.CONTAINS || match == Match.NOT_CONTAINS\n || match == Match.LESS_THAN || match == Match.GREATER_THAN) {\n throw new IllegalArgumentException(\"ID cannot be compared by method \" + match);\n }\n // Make sure the value is actually a number\n try {\n //noinspection ResultOfMethodCallIgnored\n Long.parseLong(value);\n } catch (NumberFormatException e) {\n Crashlytics.logException(e);\n throw new IllegalArgumentException(\"ID cannot be compared to value \" + value);\n }\n } else if (field == Field.NAME) {\n // Names can't be compared by < or >... that doesn't even make sense...\n if (match == Match.GREATER_THAN || match == Match.LESS_THAN) {\n throw new IllegalArgumentException(\"Name cannot be compared by method \"\n + match);\n }\n } else if (field == Field.SKIP_COUNT || field == Field.PLAY_COUNT\n || field == Field.YEAR || field == Field.DATE_ADDED) {\n // Numeric values can't be compared by contains or !contains\n if (match == Match.CONTAINS || match == Match.NOT_CONTAINS) {\n throw new IllegalArgumentException(field + \" cannot be compared by method \"\n + match);\n }\n // Make sure the value is actually a number\n try {\n //noinspection ResultOfMethodCallIgnored\n Long.parseLong(value);\n } catch (NumberFormatException e) {\n Crashlytics.logException(e);\n throw new IllegalArgumentException(\"ID cannot be compared to value \" + value);\n }\n }\n }", "@Test\n public void checkCharacterTypesRuleUnknownType() {\n final String[] original = { \"fooBAR\" };\n final String[] pass_types = { \"some_unknown_keyword\" };\n exception.expect(ConfigException.class);\n // TODO(dmikurube): Except \"Caused by\": exception.expectCause(instanceOf(JsonMappingException.class));\n // Needs to import org.hamcrest.Matchers... in addition to org.junit...\n checkCharacterTypesRuleInternal(original, original, pass_types, \"\");\n }", "private void checkTypes(Variable first, Variable second) throws OutmatchingParameterType {\n VariableVerifier.VerifiedTypes firstType = first.getType();\n VariableVerifier.VerifiedTypes secondType = second.getType();\n\n if (!firstType.equals(secondType)) {\n throw new OutmatchingParameterType();\n }\n }", "@Test\n public void testRequireAtomString_GenericType() {\n LOGGER.info(\"requireAtomString\");\n Atom actual = null;\n final Atom expected = null;\n boolean caught = false;\n try {\n actual = requireAtomString(null);\n } catch (final ClassCastException ex) {\n caught = true;\n assertEquals(\"\", ex.getMessage());\n }\n assertTrue(caught);\n assertEquals(expected, actual);\n }", "private static boolean expectedInterfaceType(Expr e) {\n \t\treturn e.attrExpectedTyp() instanceof PscriptTypeInterface || e.attrExpectedTyp() instanceof PscriptTypeTypeParam;\n \t}", "@Override\r\n\t\tprotected boolean skipInitialType() {\r\n\t\t\treturn false;\r\n\t\t}", "@Test\n public void ruleTypeTest() {\n assertEquals(\"Rule type is not match\", Rule.Type.JDBCBuildMap.name(), jdbcBuildMapRule.getRuleType());\n }", "public void testInvalidNoType() { assertInvalid(\"a\"); }", "private boolean isType(String type, Object value) {\n boolean ret = false;\n String val = String.valueOf(value).toUpperCase();\n if (val.equals(\"NULL\")) {\n ret = true;\n } else if (val.contains(\"BASE64\")) {\n ret = true;\n } else {\n if (type.equals(\"NULL\") && value instanceof JSONObject) ret = true;\n if (type.equals(\"TEXT\") && value instanceof String) ret = true;\n if (type.equals(\"INTEGER\") && value instanceof Integer) ret = true;\n if (type.equals(\"INTEGER\") && value instanceof Long) ret = true;\n if (type.equals(\"REAL\") && value instanceof Float) ret = true;\n if (type.equals(\"BLOB\") && value instanceof Blob) ret = true;\n }\n return ret;\n }", "abstract public boolean isTyped();", "static boolean test(Type t0)\r\n {\r\n String s0 = Types.stringFor(t0);\r\n TypeParser typeParser = TypeParsers.create();\r\n typeParser.addTypeVariableName(\"E\");\r\n Type t1 = null;\r\n try\r\n {\r\n t1 = typeParser.parse(s0);\r\n } \r\n catch (ClassNotFoundException e)\r\n {\r\n fail(e.getMessage());\r\n }\r\n \r\n String message = \"\";\r\n message += \"Input \" + s0 + \"\\n\";\r\n message += \"should be \" + t0 + \"\\n\";\r\n message += \"was parsed to \" + t1 + \"\\n\";\r\n \r\n boolean passed = TypesEquivalent.areEquivalent(t0, t1);\r\n if (!passed || DEBUG)\r\n {\r\n PrintStream ps = System.out;\r\n if (!passed)\r\n {\r\n ps = System.err;\r\n }\r\n String detailedMessage = \"\";\r\n detailedMessage += \"Input \" + s0 + \"\\n\";\r\n detailedMessage += \"should be \" + t0 + \" \" \r\n + \"(Detailed: \" + Types.debugStringFor(t0) + \")\" + \"\\n\";\r\n detailedMessage += \"was parsed to \" + t1 + \" \" \r\n + \"(Detailed: \" + Types.debugStringFor(t1) + \")\" + \"\\n\";\r\n ps.print(detailedMessage);\r\n }\r\n assertTrue(message, passed);\r\n return passed;\r\n }", "@Test\n public void shouldNotParseXXXXXXTYPE() {\n printTest(\"shouldNotParseXXXXXXTYPE()\");\n String typeString = \"XXXXXXTYPE\";\n String content = typeString;\n\n DdlTokenStream tokens = getTokens(content);\n\n DataType dType = null;\n try {\n dType = parser.parse(tokens);\n } catch (ParsingException e) {\n // Expect exception\n }\n\n Assert.assertNull(\"DataType should NOT have been found for Type = \" + typeString, dType);\n }", "private void checkType(V value) {\n valueClass.cast(value);\n }", "void check()\n {\n checkUsedType(responseType);\n checkUsedType(requestType);\n }", "@Test\n\tpublic void testGetBadHealingItemMessage() {\n\t\tString testString = new String();\n\t\tassertEquals(testString.getClass(), testHospital.getBadHealingItemMessage().getClass());\n\t}", "void checkColumnType(\n String sql,\n String expected);", "@Test\n public void testEqualsReturnsFalseOnWrongArgType() {\n boolean equals = record.equals(\"Not a record\");\n\n assertThat(equals, is(false));\n }", "Object isMatch(Object arg, String wantedType);", "private static void checkConvertibility(JValue val, JType typ){\r\n\t\tJType argTyp = val.getType();\n\t\tif (argTyp == null) {\n\t\t\tif (!(typ == AnyType.getInstance() || typ.isObject())) {\n\t\t\t\tthrow new TypeIncompatibleException(JObjectType.getInstance(), typ);\n\t\t\t}\n\t\t} else {\n\t\t\tConvertibility conv = argTyp.getConvertibilityTo(typ);\n\t\t\tif(conv == Convertibility.UNCONVERTIBLE){\n\t\t\t\tthrow new TypeIncompatibleException(argTyp, typ);\n\t\t\t} else if (conv == Convertibility.UNSAFE && argTyp == AnyType.getInstance()){\n\t\t\t\tUntypedValue uv = (UntypedValue) val;\n\t\t\t\tcheckConvertibility(uv.getActual(), typ);\n\t\t\t}\n\t\t}\r\n\t}", "@Override\n\tpublic MyIDictionary<String, Type> typecheck(MyIDictionary<String, Type> typeEnv) throws MyException {\n\t\treturn null;\n\t}", "protected boolean isApplicableType(Datatype type) {\n\t\treturn true;\n\t}", "public void check()\n {\n typeDec.check();\n }", "@Override\n\tpublic boolean isPrimitiveTypeExpected() {\n\t\treturn false;\n\t}", "private void _badType(int type, Object value)\n {\n if (type < 0) {\n throw new IllegalStateException(String.format(\n \"Internal error: missing BeanDefinition for id %d (class %s)\",\n type, value.getClass().getName()));\n }\n throw new IllegalStateException(String.format(\n \"Unsupported type: %s (%s)\", type, value.getClass().getName()));\n }", "@Test\n public void testSimpleValidType() throws Exception {\n ArrayList<Type> typeList = Lists.newArrayList();\n typeList.add(TimestampedEvent.class);\n typeList.add(GenericRecord.class);\n typeList.add(Integer.class);\n typeList.add(Object.class);\n PipelineRegisterer.validateTypes(typeList);\n }", "@Test\n public void testGetType()\n {\n when(m_AttributeModel.getType()).thenReturn(AttributeDefinition.STRING);\n m_SUT = new ConfigPropModelImpl(m_AttributeModel);\n assertThat(m_SUT.getType(), is((Object)String.class));\n \n when(m_AttributeModel.getType()).thenReturn(AttributeDefinition.LONG);\n m_SUT = new ConfigPropModelImpl(m_AttributeModel);\n assertThat(m_SUT.getType(), is((Object)Long.class));\n \n when(m_AttributeModel.getType()).thenReturn(AttributeDefinition.INTEGER);\n m_SUT = new ConfigPropModelImpl(m_AttributeModel);\n assertThat(m_SUT.getType(), is((Object)Integer.class));\n \n when(m_AttributeModel.getType()).thenReturn(AttributeDefinition.SHORT);\n m_SUT = new ConfigPropModelImpl(m_AttributeModel);\n assertThat(m_SUT.getType(), is((Object)Short.class));\n \n when(m_AttributeModel.getType()).thenReturn(AttributeDefinition.CHARACTER);\n m_SUT = new ConfigPropModelImpl(m_AttributeModel);\n assertThat(m_SUT.getType(), is((Object)Character.class));\n \n when(m_AttributeModel.getType()).thenReturn(AttributeDefinition.BYTE);\n m_SUT = new ConfigPropModelImpl(m_AttributeModel);\n assertThat(m_SUT.getType(), is((Object)Byte.class));\n \n when(m_AttributeModel.getType()).thenReturn(AttributeDefinition.DOUBLE);\n m_SUT = new ConfigPropModelImpl(m_AttributeModel);\n assertThat(m_SUT.getType(), is((Object)Double.class));\n \n when(m_AttributeModel.getType()).thenReturn(AttributeDefinition.FLOAT);\n m_SUT = new ConfigPropModelImpl(m_AttributeModel);\n assertThat(m_SUT.getType(), is((Object)Float.class));\n \n when(m_AttributeModel.getType()).thenReturn(AttributeDefinition.BOOLEAN);\n m_SUT = new ConfigPropModelImpl(m_AttributeModel);\n assertThat(m_SUT.getType(), is((Object)Boolean.class));\n }", "@Override\n\tpublic boolean isSqlTypeExpected() {\n\t\treturn false;\n\t}", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean replacementfor(Type o);", "private boolean validateType(int type)\n {\n return type >=0 && type < TYPE_ENUM.length;\n }", "public Verification verifySubtypeOf(Type type, String meaningThisType, String meaningOtherType, Element cause);", "@Override\n public Set<String> validTypes() {\n return factory.validTypes();\n }", "@Test\n\tpublic void testCreateInvalidCarType() {\n\t\tCarFactory _carFactory = new CarFactory();\n\n\t\tString _make = \"invalid_make\";\n\t\tString _model = \"invalid_model\";\n\t\tString _color = \"invalid_color\";\n\t\tint _year = -1;\n\n\t\t// ---------------------------------------------\n\t\t// Creating a invalid car.\n\t\ttry {\n\t\t\tCarType _carType = CarType.valueOf((\"unknown_type\".toUpperCase()));\n\t\t\t@SuppressWarnings(\"unused\")\n\t\t\tAbstractCar _unknown = _carFactory.buildCar(_carType, _make, _model, _color, _year);\n\n\t\t\tfail(\"Successfully created an invalid car (should not work).\");\n\t\t} catch (Exception expected_) {\n\t\t}\n\t}", "@Test\n public void testRequireAtomString_GenericType_1() {\n LOGGER.info(\"requireAtomString\");\n final AtomString actual = new AtomString();\n final AtomString expected = requireAtomString(actual);\n assertEquals(expected, actual);\n }", "@Test\n public void equalsWithDifferentTypes() throws Exception {\n AttributeKey<Number> key1 = new AttributeKey<Number>(Number.class, \"keyName\");\n AttributeKey<Date> key2 = new AttributeKey<Date>(Date.class, \"keyName\");\n\n assertThat(key1.equals(key2), is(false));\n assertThat(key2.equals(key1), is(false));\n }", "@Test\n public void ruleTypeTest() {\n assertEquals(\"Rule type is not match\", Rule.Type.SAMLCorrelation.name(),\n testRule.getRuleType());\n }", "public void testTransformWithInvalidElementType() throws Exception {\n try {\n instance.transform(\"invalid\", document, caller);\n fail(\"ClassCastException is excepted.\");\n } catch (ClassCastException cce) {\n // pass\n }\n }", "@Test\n public void testTypeOf() throws ValueDoesNotMatchTypeException {\n TestEvaluationContext context = new TestEvaluationContext();\n DecisionVariableDeclaration decl = new DecisionVariableDeclaration(\"x\", IntegerType.TYPE, null);\n ConstantValue c0 = new ConstantValue(ValueFactory.createValue(IntegerType.TYPE, 0));\n ConstraintSyntaxTree cst = new OCLFeatureCall(\n new Variable(decl), IntegerType.LESS_EQUALS_INTEGER_INTEGER.getName(), c0);\n EvaluationAccessor cValue = Utils.createValue(ConstraintType.TYPE, context, cst);\n Utils.testTypeOf(context, ConstraintType.TYPE_OF, cValue);\n cValue.release();\n }", "private static boolean isOriginalTsType(TsType type) {\n if (type instanceof TsType.BasicType) {\n TsType.BasicType basicType = (TsType.BasicType)type;\n return !(basicType.name.equals(\"null\") || basicType.name.equals(\"undefined\"));\n }\n return true;\n }", "@Override\n\tpublic boolean isUnsignedTypeExpected() {\n\t\treturn false;\n\t}", "public abstract Class<?> getExpectedType();", "TypeDescription validated();", "private void fixType(NameInfo name1Info, NameInfo name2Info) {\n\t\tString type1 = name1Info.getType();\n\t\tString type2 = name2Info.getType();\n//\t\tString name1 = name1Info.getName();\n//\t\tString name2 = name2Info.getName();\n\t\t\n\t\tif (!name1Info.isEnforced() && !name2Info.isEnforced()) {\n\t\t\tfixLoc(name1Info);\n\t\t\tfixLoc(name2Info);\n\t\t\tfixOrg(name1Info);\n\t\t\tfixOrg(name2Info);\n\t\t\tfixPeople(name1Info);\n\t\t\tfixPeople(name2Info);\n\t\t\tString longName = \"\";\n\t\t\tString shortName = \"\";\n\t\t\tif ((name1Info.getName()).length() >= (name2Info.getName()).length()) {\n\t\t\t\tlongName = name1Info.getName();\n\t\t\t\tshortName = name2Info.getName();\n\t\t\t} else {\n\t\t\t\tlongName = name2Info.getName();\n\t\t\t\tshortName = name1Info.getName();\n\t\t\t}\n\t\t\tif (acroMan.isAcronymFirstLetters(shortName, longName)) {\n\t\t\t\tname1Info.setType(\"ORG\");\n\t\t\t\tname2Info.setType(\"ORG\");\n\t\t\t}\n\t\t}\n\t\t\n\t\ttype1 = name1Info.getType();\n\t\ttype2 = name2Info.getType();\n\t\t\n\t\tif (!type1.equals(NameInfo.GENERIC_TYPE) && !type2.equals(NameInfo.GENERIC_TYPE) && !type1.equals(type2)){\n\t\t\tscoreShingle = 0.0f;\n\t\t\tscore = 0.0f;\n\t\t\treason = \"Types \" + type1 + \" and \" + type2 + \" cannot be compared\";\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (type1.equals(NameInfo.GENERIC_TYPE) && !type2.equals(NameInfo.GENERIC_TYPE)) {\n\t\t\ttype1 = type2;\n\t\t\tname1Info.setType(type1);\n\t\t} else if (type2.equals(NameInfo.GENERIC_TYPE) && !type1.equals(NameInfo.GENERIC_TYPE)) {\n\t\t\ttype2 = type1;\n\t\t\tname2Info.setType(type2);\n\t\t}\n\t}", "protected int check(int type) {\n\t\tif (type < 0 || type > 127)\n\t\t\tthrow new IllegalArgumentException(\"invalid.ASTNode.type: \" + type);\n\t\treturn type;\n\t}", "private static boolean accepts(Automaton type, Automaton.Term tState, Automaton actual, Automaton.Term aTerm,\n\t\t\tSchema schema, BinaryMatrix assumptions) {\n\t\tAutomaton.List list = (Automaton.List) type.get(tState.contents);\n\t\tString expectedName = ((Automaton.Strung) type.get(list.get(0))).value;\n\t\tString actualName = schema.get(aTerm.kind).name;\n\t\tif (!expectedName.equals(actualName)) {\n\t\t\treturn false;\n\t\t} else if (list.size() == 1) {\n\t\t\treturn aTerm.contents == Automaton.K_VOID;\n\t\t} else {\n\t\t\treturn accepts(type, list.get(1), actual, aTerm.contents, schema, assumptions);\n\t\t}\n\t}" ]
[ "0.71376234", "0.7128797", "0.70807815", "0.6612594", "0.65423185", "0.65187985", "0.6450573", "0.6437988", "0.63718903", "0.6355482", "0.63088226", "0.6306656", "0.6293195", "0.6251462", "0.62457675", "0.61906564", "0.61845684", "0.61667645", "0.60702246", "0.60602146", "0.60481924", "0.60370106", "0.60352594", "0.6007028", "0.597238", "0.5934487", "0.5917075", "0.59150773", "0.59110284", "0.59107536", "0.59008753", "0.5874114", "0.5873282", "0.5870345", "0.5864012", "0.5846518", "0.58460164", "0.58237886", "0.58215636", "0.5794916", "0.5785553", "0.57794183", "0.5754942", "0.5754942", "0.5754942", "0.5754942", "0.5754942", "0.5754942", "0.5754942", "0.5754942", "0.5754942", "0.5754942", "0.5754942", "0.5754942", "0.5754942", "0.5754942", "0.5754942", "0.5754942", "0.5754942", "0.5754942", "0.5754942", "0.5754942", "0.5754942", "0.5754942", "0.5754942", "0.5754942", "0.5754942", "0.5754942", "0.5754942", "0.5754942", "0.5754942", "0.5754942", "0.5754942", "0.5754942", "0.5754942", "0.5754942", "0.5754942", "0.5754942", "0.5754942", "0.5754942", "0.5754942", "0.5754942", "0.5754942", "0.5754942", "0.57512885", "0.5743974", "0.57378113", "0.573711", "0.57363266", "0.5732386", "0.5721137", "0.5709955", "0.57089496", "0.5704415", "0.569949", "0.56979805", "0.56928617", "0.56886816", "0.5686366", "0.5685453", "0.5679462" ]
0.0
-1
/ATD ATZ AT E0 AT L0 AT S0 AT H0 AT SP 0 command.put("restore_defaults", "AT D"); command.put("disable_echo", "AT E0"); command.put("disable_linefeed", "AT L0"); command.put("disable_headers", "AT H0\n"); command.put("disable_spaces", "AT S0\n");
private void performHandShake() { try { boolean OK = false; // String rsp= new String( this.defaultComTool.WriteAndRead((String) command.get("restore_defaults"))); // while(!OK) { } this.defaultComTool.WriteAndRead((String) command.get("disable_echo")); this.defaultComTool.WriteAndRead((String) command.get("disable_linefeed")); this.defaultComTool.WriteAndRead((String) command.get("disable_headers")); this.defaultComTool.WriteAndRead((String) command.get("disable_spaces")); this.defaultComTool.WriteAndRead((String) command.get("protocol auto set")); Thread.sleep(3000); this.CheckRequiredCommands_Availability(FIRSTLEVEL_CHECK); //Thread.sleep(2000); this.CheckRequiredCommands_Availability(SECONDLEVEL_CHECK); for (int i = 1; i < 6; i++) { switch (i) { case 1: if (av_commands[i] == false) { Kernel.interfc.sim.log.append("WARNING: RPM Reading is NOT SUPPORTED\n APP forcestopped!!\n"); synchronized (this) { Kernel.forcedstopped = true; } } break; case 2: if (av_commands[i] == false) { Kernel.interfc.sim.log.append("WARNING: SPEED Reading is NOT SUPPORTED\n APP forcestopped!!\n"); synchronized (this) { Kernel.forcedstopped = true; } } break; case 3: if (av_commands[i] == false) { Kernel.interfc.sim.log.append("WARNING: COOLANT TEMP Reading is NOT SUPPORTED\n APP forcestopped!!\n"); synchronized (this) { Kernel.forcedstopped = true; } } break; case 4: if (av_commands[i] == false) { int arbFuel; Random rnd = new Random(); arbFuel = rnd.nextInt(100) + 1; Kernel.interfc.sim.log.append("WARNING: FUEL LVL Reading is NOT SUPPORTED\n Arbitrary value (" + arbFuel + ") set!! \n"); } break; case 5: if (av_commands[i] == false) { int arbCheck; Random rnd = new Random(); arbCheck = rnd.nextInt(2); Kernel.interfc.sim.log.append("WARNING: CheckEngine Light Reading is NOT SUPPORTED\n Arbitrary value (" + arbCheck + ") set!! \n"); } break; } } { Kernel.interfc.sim.log.append("HANDSHAKE PERFORMED...Awaiting for SelfTest\n"); } } catch (Exception e) { System.out.println("PERFORM HANDSHAKE:" + e.getMessage() + " " + e.getLocalizedMessage()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void WriteAtts(CommunicationBuffer buf)\n {\n if(WriteSelect(0, buf))\n buf.WriteString(host);\n if(WriteSelect(1, buf))\n buf.WriteInt(port);\n if(WriteSelect(2, buf))\n buf.WriteString(securityKey);\n if(WriteSelect(3, buf))\n buf.WriteStringVector(otherNames);\n if(WriteSelect(4, buf))\n buf.WriteStringVector(otherValues);\n if(WriteSelect(5, buf))\n {\n buf.WriteInt(genericCommands.size());\n for(int i = 0; i < genericCommands.size(); ++i)\n {\n avtSimulationCommandSpecification tmp = (avtSimulationCommandSpecification)genericCommands.elementAt(i);\n tmp.Write(buf);\n }\n }\n if(WriteSelect(6, buf))\n buf.WriteInt(mode);\n if(WriteSelect(7, buf))\n {\n buf.WriteInt(customCommands.size());\n for(int i = 0; i < customCommands.size(); ++i)\n {\n avtSimulationCommandSpecification tmp = (avtSimulationCommandSpecification)customCommands.elementAt(i);\n tmp.Write(buf);\n }\n }\n if(WriteSelect(8, buf))\n buf.WriteString(message);\n }", "private static String getContactTracingSetAdvertisingParametersCommand( boolean useRandomAddr) {\n\t\tStringBuffer sb = new StringBuffer();\n\t\tsb.append( String.format( \"%02x %04x \", HCI_Command.HCI_LE_Controller_OGF, HCI_Command.HCI_LE_Set_Advertising_Parameters_OCF));\n\t\t\n\t\tString advertisingInterval = getAdvertisingInterval( Beacon.ADVERTISING_INTERVAL_CONTACT_TRACING);\n\t\tsb.append( advertisingInterval); // Advertising_Interval_Min:\tSize: 2 octets\n\t\tsb.append( advertisingInterval); // Advertising_Interval_Max:\tSize: 2 octets\n\t\t\n\t\t// Advertising_Interval_Min:\tSize: 2 octets\n\t\t// sb.append( String.format( \"%02x %02x \", ((nbrIntervals >> 8) & 0xFF), (nbrIntervals & 0xFF)));\n\t\t\n\t\t// Advertising_Interval_Max:\tSize: 2 octets\n\t\t// sb.append( String.format( \"%02x %02x \", ((nbrIntervals >> 8) & 0xFF), (nbrIntervals & 0xFF)));\n\t\t\n\t\t// sb.append( \"a0 00 \"); // Advertising_Interval_Min:\tSize: 2 octets\n\t\t// sb.append( \"a0 00 \"); // Advertising_Interval_Max:\tSize: 2 octets\n\t\t\n\t\t// 0x03 Non connectable undirected advertising (ADV_NONCONN_IND)\n\t\tsb.append( String.format( \"%02x \", ADV_NONCONN_IND)); // Advertising_Type:\tSize: 1 octet\n\t\t\n\t\t\n\t\tfinal byte ownAddrType = useRandomAddr?Beacon.Own_Address_Type_Random_Device_Address:Own_Address_Type_Public_Device_Address;\n\t\t\n\t\tsb.append( String.format( \"%02x \", ownAddrType)); \t\t\t\t\t\t\t // Own_Address_Type:\tSize: 1 octet\n\t\tsb.append( String.format( \"%02x \", Own_Address_Type_Public_Device_Address)); // Peer_Address_Type: Size: 1 octet\n\t\t\n\t\tsb.append( \"00 00 00 00 00 00 \"); // Peer_Address: Size: 6 octets\n\t\t\n\t\t// Advertising_Channel_Map: Size: 1 octet\n\t\tsb.append( String.format( \"%02x \", Advertising_Channel_37 | Advertising_Channel_38 | Advertising_Channel_39));\n\t\t\n\t\tsb.append( \"00\"); // Advertising_Filter_Policy: Size: 1 octet\n\t\t\n\t\treturn sb.toString();\n\t}", "private void vdm_init_ATOutput () {\n try {\n setSentinel();\n }\n catch (Exception e) {\n e.printStackTrace(System.out);\n System.out.println(e.getMessage());\n }\n }", "private static String getIBeaconSetAdvertisementParametersCommand( boolean useRandomAddr) {\n\t\tStringBuffer sb = new StringBuffer();\n\t\t\n\t\tsb.append( String.format( \"0x%02x 0x%04x \", HCI_Command.HCI_LE_Controller_OGF, HCI_Command.HCI_LE_Set_Advertising_Parameters_OCF));\n\t\t\n\t\tString advertisingInterval = getAdvertisingInterval( Beacon.ADVERTISING_INTERVAL_IBEACON);\n\t\t\n\t\t// sb.append( \"a0 00 \"); // Advertising_Interval_Min:\tSize: 2 octets\n\t\t// sb.append( \"a0 00 \"); // Advertising_Interval_Max:\tSize: 2 octets\n\t\t\n\t\tsb.append( advertisingInterval); // Advertising_Interval_Min:\tSize: 2 octets\n\t\tsb.append( advertisingInterval); // Advertising_Interval_Max:\tSize: 2 octets\n\t\t\n\t\tsb.append( String.format( \"%02x \", ADV_NONCONN_IND)); // Advertising_Type:\tSize: 1 octet\n\t\t\n\t\tfinal byte ownAddrType = useRandomAddr?Beacon.Own_Address_Type_Random_Device_Address:Own_Address_Type_Public_Device_Address;\n\t\t\n\t\tsb.append( String.format( \"%02x \", ownAddrType)); // Own_Address_Type:\tSize: 1 octet\n\t\tsb.append( String.format( \"%02x \", Own_Address_Type_Public_Device_Address)); // Peer_Address_Type: Size: 1 octet\n\t\t\n\t\tsb.append( \"00 00 00 00 00 00 \"); // Peer_Address: Size: 6 octets\n\t\t// Advertising_Channel_Map: Size: 1 octet\n\t\tsb.append( String.format( \"%02x \", Advertising_Channel_37 | Advertising_Channel_38 | Advertising_Channel_39));\n\t\tsb.append( \"00\"); // Advertising_Filter_Policy: Size: 1 octet\n\t\treturn sb.toString();\n\t}", "void setAddress(long address) throws Exception {\n if (address < 0x10000) {\n Scales.sendByte((byte) 'A');\n Scales.sendByte((byte) (address >> 8));\n Scales.sendByte((byte) address);\n } else {\n Scales.sendByte((byte) 'H');\n Scales.sendByte((byte) (address >> 16));\n Scales.sendByte((byte) (address >> 8));\n Scales.sendByte((byte) address);\n }\n\n\t /* Should return CR */\n if (Scales.getByte() != '\\r') {\n throw new Exception(\"Setting address for programming operations failed! \" + \"Programmer did not return CR after 'A'-command.\");\n }\n }", "void\t\tsetCommandOptions(String command, Strings options);", "public static void initializeDefaultCommands()\n {\n m_chassis.setDefaultCommand(m_inlineCommands.m_driveWithJoystick);\n // m_intake.setDefaultCommand(null);\n m_chamber.setDefaultCommand(new ChamberIndexBalls());\n // m_launcher.setDefaultCommand(null);\n // m_climber.setDefaultCommand(null);\n // m_controlPanel.setDefaultCommand(null);\n }", "protected CardCommandAPDU() {\n }", "private static List<String> basicSetup(){\n\t\tList<String> command = new ArrayList<String> ();\n\t\t\n\t\tcommand.add(\"@SP\");\n\t\tcommand.add(\"M=M-1\");\n\t\tcommand.add(\"A=M\");\n\t\tcommand.add(\"D=M\");\n\t\tcommand.add(\"M=0\");\n\t\tcommand.add(\"@SP\");\n\t\tcommand.add(\"A=M-1\");\n\t\t\n\t\treturn command;\n\t}", "public void WriteAtts(CommunicationBuffer buf)\n {\n if(WriteSelect(0, buf))\n buf.WriteString(host);\n if(WriteSelect(1, buf))\n buf.WriteString(sim);\n if(WriteSelect(2, buf))\n buf.WriteString(name);\n if(WriteSelect(3, buf))\n buf.WriteInt(ivalue);\n if(WriteSelect(4, buf))\n buf.WriteString(svalue);\n if(WriteSelect(5, buf))\n buf.WriteBool(enabled);\n }", "public void onClick_setup(View v) {\n byte[] cmd_bytes = new byte[8];\n cmd_bytes[0] = 0x3C;\n cmd_bytes[1] = 0x53;\n cmd_bytes[2] = 0x30;\n cmd_bytes[3] = 0x00;\n cmd_bytes[4] = 0x00;\n cmd_bytes[5] = 0x00;\n cmd_bytes[6] = 0x00;\n cmd_bytes[7] = 0x3E;\n mBluetoothLeService.writeCharacteristic(getWriteGattCharacteristic(), cmd_bytes);\n }", "public interface CommandInterface {\n\n\tpublic static class Commands\n\t{\n\t\tpublic static final String ABORT = \"ABOR\";\n\t\tpublic static final String ACCOUNT_INFO = \"ACCT\";\n\t\tpublic static final String AUTHENTICATION_DATA = \"ADAT\";\n\t\tpublic static final String ALLOCATE_DISK_SPACE = \"ALLO\";\n\t\tpublic static final String APPEND = \"APPE\";\n\t\tpublic static final String AUTHENTICATION_MECHANISM = \"AUTH\";\n\t\tpublic static final String GET_AVAILABLE_SPACE = \"AVBL\";\n\t\tpublic static final String CLEAR_COMMAND_CHANNEL = \"CCC\";\n\t\tpublic static final String CHANGE_TO_PARENT_DIRECTORY = \"CDUP\";\n\t\tpublic static final String CONFIDENTIALITY_PROTECTION_COMMAND = \"CONF\";\n\t\tpublic static final String SERVER_IDENTIFICATION = \"CSID\";\n\t\tpublic static final String CHANGE_WORKING_DIRECTORY = \"CWD\";\n\t\tpublic static final String DELETE_FILE = \"DELE\";\n\t\tpublic static final String GET_DIRECTORY_SIZE = \"DSIZ\";\n\t\tpublic static final String PRIVACY_PROTECTED = \"ENC\";\n\t\tpublic static final String SPECIFY_ADDRESS_AND_PORT = \"EPRT\";\n\t\tpublic static final String ENTER_EXTENDED_PASSIVE_MODE = \"EPSV\";\n\t\tpublic static final String GET_FEATURE_LIST = \"FEAT\";\n\t\tpublic static final String HELP = \"HELP\";\n\t\tpublic static final String GET_HOST_BY_NAME = \"HOST\";\n\t\tpublic static final String LANGUAGE_NEGOTIATION = \"LANG\";\n\t\tpublic static final String GET_FILES_LIST = \"LIST\";\n\t\tpublic static final String SPECIFY_LONGADDRESS_AND_PORT = \"LPRT\";\n\t\tpublic static final String ENTER_LONG_PASSIVE_MODE = \"LPSV\";\n\t\tpublic static final String GET_LAST_MODIFICATION_TIME = \"MDTM\";\n\t\tpublic static final String MODIFY_CREATION_TIME = \"MFCT\";\n\t\tpublic static final String MODIFY_FACT = \"MFF\";\n\t\tpublic static final String MODIFY_MODYFICATION_TIME = \"MFMT\";\n\t\tpublic static final String INTEGRITY_PROTECTION = \"MIC\";\n\t\tpublic static final String MAKE_DIRECTORY = \"MKD\";\n\t\tpublic static final String LIST_A_CONTENT = \"MLSD\";\n\t\tpublic static final String PROVIDES_DATA = \"MLST\";\n\t\tpublic static final String SET_TRANSFER_MODE = \"MODE\";\n\t\tpublic static final String LIST_OF_FILE_NAMES = \"NLST\";\n\t\tpublic static final String NO_OPERATION = \"NOOP\";\n\t\tpublic static final String SELECT_OPTIONS = \"OPTS\";\n\t\tpublic static final String AUTHENTICATION_PASSWORD = \"PASS\";\n\t\tpublic static final String ENTER_PASSIVE_MODE = \"PASV\";\n\t\tpublic static final String PROTECTION_BUFFER_SIZE = \"PBSZ\";\n\t\tpublic static final String SPECIFY_PORT = \"PORT\";\n\t\tpublic static final String DATA_CHANNEL_PROTECTION_LEVEL = \"PROT\";\n\t\tpublic static final String PRINT_WORKING_DIRECTORY = \"PWD\";\n\t\tpublic static final String DISCONNECT = \"QUIT\";\n\t\tpublic static final String REINITIALIZE = \"REIN\";\n\t\tpublic static final String RESTART = \"REST\";\n\t\tpublic static final String RETRIEVE_A_COPY = \"RETR\";\n\t\tpublic static final String REMOVE_DIRECTORY = \"RMD\";\n\t\tpublic static final String REMOVE_DIRECTORY_TREE = \"RMDA\";\n\t\tpublic static final String RENAME_FROM = \"RNFR\";\n\t\tpublic static final String RENAME_TO = \"RNTO\";\n\t\tpublic static final String SITE_SPECIFFIC_COMMAND = \"SITE\";\n\t\tpublic static final String SIZE_OF_FILE = \"SIZE\";\n\t\tpublic static final String MOUNT_FILE_STRUCTURE = \"SMNT\";\n\t\tpublic static final String USE_SINGLE_PORT_PASSIVE_MODE = \"SPSV\";\n\t\tpublic static final String GET_STATUS = \"STAT\";\n\t\tpublic static final String ACCEPT_AND_STORE = \"STOR\";\n\t\tpublic static final String STORE_FILE_UNIQUELY = \"STOU\";\n\t\tpublic static final String SET_FILE_TRANSFER_STRUCT = \"STRU\";\n\t\tpublic static final String GET_SYSTEM_TYPE = \"SYST\";\n\t\tpublic static final String GET_THUMBNAIL = \"THMB\";\n\t\tpublic static final String SET_TRANSFER_TYPE = \"TYPE\";\n\t\tpublic static final String AUTHENTICATION_USERNAME = \"USER\";\n\t}\n\t\n\t/**\n\t * Types of transmission.\n\t * @author P.Gajewski\n\t *\n\t */\n\tpublic static class TransmissionTypes\n\t{\n\t\tpublic static final String BINARY = \"I\";\n\t\tpublic static final String ASCII = \"A\";\n\t}\n\n\t/**\n\t * Inner class for responses from server.\n\t * @author P.Gajewski\n\t *\n\t */\n\tpublic static class ServerResonses\n\t{\n\t\t/**\n\t\t * 1xx replay codes.\n\t\t * @author P.Gajewski\n\t\t *\n\t\t */\n\t\tpublic static class PossitivePreliminaryReply\n\t\t{\n\t\t\tpublic static final String GENERAL = \"100\";\n\t\t\tpublic static final String RESTART_REPLY = \"110\";\n\t\t\tpublic static final String SERVICE_READY = \"120\";\t\n\t\t\tpublic static final String DATA_CONNECTION_ALREADY_OPENED = \"125\";\n\t\t\tpublic static final String FILE_STATUS_OKAY = \"150\";\n\t\t}\n\t\t\n\t\t/**\n\t\t * 2xx replay codes.\n\t\t * @author P.Gajewski\n\t\t *\n\t\t */\n\t\tpublic static class PossitiveCompletionReply\n\t\t{\n\t\t\tpublic static final String GENERAL = \"200\";\n\t\t\tpublic static final String SYSTEM_STATUS = \"211\";\n\t\t\tpublic static final String DIRECTORY_STATUS = \"212\";\n\t\t\tpublic static final String FILE_STATUS = \"213\";\n\t\t\tpublic static final String HELP_MESSAGE = \"214\";\n\t\t\tpublic static final String NAME_SYSTEM_TYPE = \"215\";\n\t\t\tpublic static final String READY_FOR_NEW_USER = \"220\";\n\t\t\tpublic static final String SERVICE_CLOSING_CONTROL_CONNECTION = \"221\";\n\t\t\tpublic static final String OPEN_DATA_CONNECTION = \"225\";\t\t\t\n\t\t\tpublic static final String CLOSING_DATA_CONNECTION = \"226\";\n\t\t\tpublic static final String PASSIVE_MODE = \"227\";\n\t\t\tpublic static final String LONG_PASSIVE_MODE = \"228\";\n\t\t\tpublic static final String EXTENDED_PASSIVE_MODE = \"229\";\n\t\t\tpublic static final String USER_LOG_IN = \"230\";\n\t\t\tpublic static final String USER_LOG_OUT = \"231\";\n\t\t\tpublic static final String LOGOUT_NOTED = \"232\";\n\t\t\tpublic static final String REQUESTED_OK = \"250\";\n\t\t\tpublic static final String PATHNAME_CREATED = \"257\";\t\t\t\n\t\t}\n\t\t\n\t\t/**\n\t\t * 3xx replay codes.\n\t\t * @author P.Gajewski\n\t\t *\n\t\t */\n\t\tpublic static class PositiveIntermediateReply\n\t\t{\n\t\t\tpublic static final String GENERAL = \"300\";\n\t\t\tpublic static final String USERNAME_OK_PASSWORD_NEEDED = \"331\";\n\t\t\tpublic static final String NEED_ACCOUNT_FOR_LOGIN = \"332\";\n\t\t\tpublic static final String REQUESTED_FILE_ACTION = \"350\";\n\t\t}\n\t\t\n\t\t/**\n\t\t * 4xx replay codes.\n\t\t * @author P.Gajewski\n\t\t *\n\t\t */\n\t\tpublic static class TransientNegativeCompletionReply\n\t\t{\n\t\t\tpublic static final String GENERAL = \"400\";\n\t\t\tpublic static final String SERVICE_NOT_AVAILABLE = \"421\";\n\t\t\tpublic static final String CANT_OPEN_DATA_CONNECTION = \"425\";\n\t\t\tpublic static final String CONNECTION_CLOSED = \"426\";\n\t\t\tpublic static final String INVALID_USERNAME_OR_PASSWORD = \"430\";\n\t\t\tpublic static final String REQUESTED_HOST_UNAVAILABLE = \"434\";\n\t\t\tpublic static final String REQUESTED_FILE_ACTION_NOT_TAKEN = \"450\";\n\t\t\tpublic static final String LOCAL_ERROR = \"451\";\n\t\t\tpublic static final String FILE_BUSY = \"452\";\t\n\t\t}\n\t\t\n\t\t/**\n\t\t * 5xx replay codes.\n\t\t * @author P.Gajewski\n\t\t *\n\t\t */\n\t\tpublic static class PermamentNegativeCompletionReply\n\t\t{\n\t\t\tpublic static final String GENERAL = \"500\";\n\t\t\tpublic static final String SYNTAX_ERROR = \"501\";\n\t\t\tpublic static final String COMMAND_NOT_IMPLEMENTED = \"502\";\n\t\t\tpublic static final String BAD_SEQUENCE_OF_COMMANDS = \"503\";\n\t\t\tpublic static final String COMMAND_NOT_IMPLEMENTED_FOR_THAT_PARAMETER = \"504\";\n\t\t\tpublic static final String NOT_LOGGED_IN = \"530\";\n\t\t\tpublic static final String NEED_ACCOUNT_FOR_STORING_FILES = \"532\";\n\t\t\tpublic static final String POLICY_REQUIRES_SSL = \"534\";\n\t\t\tpublic static final String FILE_NOT_FOUND = \"550\";\n\t\t\tpublic static final String PAGE_TYPE_UNKNOWN = \"551\";\t\t\t\n\t\t\tpublic static final String EXCEEDED_STORAGE_ALLOCATION = \"552\";\n\t\t\tpublic static final String FILE_NAME_NOT_ALLOWED = \"553\";\t\t\n\t\t}\n\t\t\n\t\t/**\n\t\t * 6xx replay codes.\n\t\t * @author P.Gajewski\n\t\t *\n\t\t */\n\t\tpublic static class ProtectedReply\n\t\t{\n\t\t\tpublic static final String GENERAL = \"600\";\n\t\t\tpublic static final String INTEGRITY_PROTECTED_REPLY = \"631\";\n\t\t\tpublic static final String CONFIDENTIALITY_AND_INTEGRITY_PROTECTED_REPLY = \"632\";\t\t\t\n\t\t\tpublic static final String CONFIDENTIALITY_PROTECTED_REPLY = \"633\";\t\t\t\n\t\t}\n\t}\n\t\n\t/**\n\t * Language controller.\n\t */\n\tpublic final static LanguageController lc = LanguageController.getInstance();\n\t\n\tpublic void execute(FTPLexer lexer);\n}", "void setutxent();", "@VisibleForTesting\n public boolean sendATCmd(byte[] address, int atCmd, int val1, int val2, String arg) {\n return sendATCmdNative(address, atCmd, val1, val2, arg);\n }", "void\t\tsetCommandState(String command, boolean flag);", "public CardCommandAPDU(byte[] commandAPDU) {\n\tSystem.arraycopy(commandAPDU, 0, header, 0, 4);\n\tsetBody(ByteUtils.copy(commandAPDU, 4, commandAPDU.length - 4));\n }", "public void initDefaultCommand() {\n\n \tsetDefaultCommand(new articulateIntake());\n \t\n \t\n \t\n \t//Make sure to only set the doublesolenoid to off if the last position of the intake was down\n \t/*if (downPosition == 1){\n \t\tsetDefaultCommand(new articulateIntake(\"down\"));\n \t} else {\n \t\tsetDefaultCommand(new articulateIntake(\"up\"));\n \t\t\n \t}*/\n }", "private static void makeRaw() {\n String ttyName = \"/dev/tty\";\n int ofd = Util.getFd(FileDescriptor.out);\n\n CLibrary.LinuxTermios termios = new CLibrary.LinuxTermios();\n\n // check existing settings\n // If we don't do this tcssetattr() will return EINVAL.\n if (CLibrary.INSTANCE.tcgetattr(ofd, termios) == -1) {\n error(\"tcgetattr(\\\"\" + ttyName + \"\\\", <termios>) failed -- \" + strerror(Native.getLastError()));\n }\n\n // System.out.printf(\"tcgetattr() gives %s\\r\\n\", termios);\n\n // initialize values relevant for raw mode\n CLibrary.INSTANCE.cfmakeraw(termios);\n\n // System.out.printf(\"cfmakeraw() gives %s\\r\\n\", termios);\n\n // apply them\n if (CLibrary.INSTANCE.tcsetattr(ofd, CLibrary.INSTANCE.TCSANOW(), termios) == -1) {\n error(\"tcsetattr(\\\"\" + ttyName + \"\\\", TCSANOW, <termios>) failed -- \" + strerror(Native.getLastError()));\n }\n }", "public CardCommandAPDU(byte cla, byte ins, byte p1, byte p2) {\n\theader[0] = cla;\n\theader[1] = ins;\n\theader[2] = p1;\n\theader[3] = p2;\n }", "public void runAtbash() {\n\n if (this.help != null) {\n if (this.function != null) {\n System.out.println(\"\\n\" + \"You have entered a command for Atbash Cipher with a function. The only two options for a function is to encrypt or decrypt. \");\n }\n else {\n System.out.println(\n \"This cipher does not allow you to use a key, the key is set and the same every time because the key is the alphabet in reverse order. So you will just need to put in the text using only letters to encrypt and put in encrypted text to decrypt.\");\n }\n\n }\n\n // You no longer need to worry about a command containing about and help in the\n // same command due to ComTree.java taking care of that. If about is not null,\n // then help has to be null and vice versa. The about command should only work\n // with Atbash like this, 'Atbash about'.\n\n else if (this.about != null) {\n System.out.println(\"\\n\" + \"Atbash is one of the oldest ciphers but is also one of the easiest to break.\");\n }\n\n // Next, check to see if a function was provided. if not, get the function.\n\n else if (this.function == null) {\n function = Function.getFunction();\n }\n\n // If there is a function and the function is not valid, get a new function.\n\n else if (!this.function.equalsIgnoreCase(\"encrypt\") && !this.function.equalsIgnoreCase(\"decrypt\")) {\n function = Function.checkFunction(function);\n }\n\n // Get input text and complete the encryption or decryption. help == null in the\n // if statement is necessary to prevent it from running after a help command is\n // entered.\n\n if (help == null && about == null) {\n System.out.println();\n System.out.println(\"Input text. Letters and spaces only.\");\n System.out.println();\n System.out.print(\"Input Text: \");\n\n // This is where text to be encrypted or decrypted is put in.\n\n String input = io.limasecurityworks.ui.Iroha.sc.nextLine();\n\n // if statment that uses the variables function and key to determine what to do\n // to the text.\n\n if (this.function.equalsIgnoreCase(\"encrypt\")) {\n Printables.createPrintout(input, function, null, encryptText(input), key);\n\n }\n else if (this.function.equalsIgnoreCase(\"decrypt\")) {\n Printables.createPrintout(input, function, null, decryptText(input), key);\n\n }\n else {\n System.out.println(encryptText(\"This should be an impossible function error.\"));\n }\n }\n }", "private void putCommand(String cmd) {\n try {\n stream.write((cmd).getBytes(StandardCharsets.UTF_8));\n } catch (IOException | InterruptedException e) {\n e.printStackTrace();\n }\n }", "public abstract void setCommand(String cmd);", "public void initDefaultCommand() {\n \tsetDefaultCommand(new ArmManual());\n }", "public void initDefaultCommand() {\n \tclaw = new DoubleSolenoid(RobotMap.CLAW_PNU_1, RobotMap.CLAW_PNU_2);\n \tpunch = new DoubleSolenoid(RobotMap.PUNCH_PNU_1, RobotMap.PUNCH_PNU_2);\n \t\n \tarm = new VictorSP(RobotMap.ARM_MOTOR);\n \t\n \tarmEncode = new Encoder(RobotMap.ARM_ENCODE_1, RobotMap.ARM_ENCODE_2);\n \t\n \t//armEncode.setPIDSourceType(PIDSourceType.kDisplacement);\n \tarmControl = new PIDController(0.01,0,0, armEncode, arm);\n \t\n }", "@Override\n\tpublic void nhap() {\n\t\tScanner reader = new Scanner(System.in);\n\t\tSystem.out.println(\" so cmnd:\");\n\t\tthis.cmnd = reader.nextLine();\n\t\tSystem.out.println(\" nhap ho ten khach hang:\");\n\t\tthis.hoTenKhachHang = reader.nextLine();\n\t\tSystem.out.println(\" so tien gui:\");\n\t\tthis.soTienGui = Double.parseDouble(reader.nextLine());\n\t\tSystem.out.println(\" nhap ngay lap:\");\n\t\tthis.ngayLap = reader.nextLine();\n\t\tSystem.out.println(\" lai suat:\");\n\t\tthis.laiSuat = Double.parseDouble(reader.nextLine());\n\t\tSystem.out.println(\" so thang gui:\");\n\t\tthis.soThangGui = Integer.parseInt(reader.nextLine());\n\t\tSystem.out.println(\" nhap ky han:\");\n\t\tthis.kyHan = Integer.parseInt(reader.nextLine());\n\t}", "private void defaultPerAllegatoAtto() {\n\t\tif(allegatoAtto.getFlagRitenute() == null) {\n\t\t\tallegatoAtto.setFlagRitenute(Boolean.FALSE);\n\t\t}\n\t\t//SIAC-6426\n\t\tif(allegatoAtto.getVersioneInvioFirma() == null){\n\t\t\tallegatoAtto.setVersioneInvioFirma(0);\n\t\t}\n\t}", "public void execute()\n {\n // obtain object references\n ttlAG = (TTL_Autoguider)TTL_Autoguider.getInstance();\n AUTOGUIDE a = (AUTOGUIDE)command;\n AGS_State desired = null;\n pmc = new AltAzPointingModelCoefficients();\n telescope.getMount().getPointingModel().addCoefficients( pmc );\n\n // start of command execution\n Timestamp start = telescope.getTimer().getTime();\n\n try\n {\n AutoguideMode mode = a.getAutoguideMode();\n\n // Guide on the Brightest guide star\n if( mode == AutoguideMode.BRIGHTEST )\n {\n\tttlAG.guideOnBrightest();\n\tdesired = AGS_State.E_AGS_ON_BRIGHTEST;\n }\n\n // Gide on a guide star between magnitudes i1 and i2\n else if( mode == AutoguideMode.RANGE )\n {\n\tint i1 = (int)\n\t ( Math.rint\n\t ( a.getFaintestMagnitude() ) * 1000.0 );\n\n\tint i2 = (int)\n\t ( Math.rint\n\t ( a.getBrightestMagnitude() ) * 1000.0 );\n\n\tttlAG.guideOnRange( i1, i2 );\n\tdesired = AGS_State.E_AGS_ON_RANGE;\n }\n\n // Guide on teh Nth brightest star\n else if( mode == AutoguideMode.RANK )\n {\n\tttlAG.guideOnRank( a.getBrightnessRank() );\n\tdesired = AGS_State.E_AGS_ON_RANK;\n }\n\n // Guide on the star at pixel coords X,Y\n else if( mode == AutoguideMode.PIXEL )\n {\n\tint i1 = (int)\n\t ( Math.rint( a.getXPixel() * 1000.0 ) );\n\n\tint i2 = (int)\n\t ( Math.rint( a.getYPixel() * 1000.0 ) );\n\n\tttlAG.guideOnPixel( i1, i2 );\n\tdesired = AGS_State.E_AGS_ON_PIXEL;\n }\n\n\n // wait for AGS state change and see if it's the desired one\n // after 200 seconds\n int sleep = 5000;\n while( ( ttlAG.get_AGS_State() == AGS_State.E_AGS_WORKING )&&\n\t ( slept < TIMEOUT ) )\n {\n\n\ttry\n\t{\n\t Thread.sleep( sleep );\n\t slept += sleep;\n\t}\n\tcatch( InterruptedException ie )\n\t{\n\t logger.log( 1, logName, ie.toString() );\n\t}\n }\n\n AGS_State actual = ttlAG.get_AGS_State();\n if( actual != desired )\n {\n\tString s = ( \"after \"+slept+\"ms AGS has acheived \"+actual.getName()+\n\t\t \" state, desired state is \"+desired.getName() );\n\tcommandDone.setErrorMessage( s );\n\tlogger.log( 1, logName, s );\n\treturn;\n }\n\n\n // get x,y of guide star depending on mode and check for age of\n // returned centroids - centroids MUST have been placed SINCE this\n // cmd impl was started.\n TTL_AutoguiderCentroid centroid;\n\n // sleep for 0.5 sec to check values have been updated\n int updateSleep = 500;\n do\n {\n\ttry\n\t{\n\t Thread.sleep( 500 );\n\t slept += 500;\n\t}\n\tcatch( InterruptedException ie )\n\t{\n\t logger.log( 1, logName, ie.toString() );\n\t}\n\n\tcentroid = ttlAG.getCentroidData();\n }\n while( centroid.getTimestamp().getSeconds() < start.getSeconds() );\n\n guideStar = ttlAG.getGuideTarget( centroid );\n\n }\n catch( TTL_SystemException se )\n {\n\n }\n\n stopGuiding = false;\n new Thread( this ).start();\n\n commandDone.setSuccessful( true );\n }", "@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2014-03-25 14:24:54.435 -0400\", hash_original_method = \"69DFE6488E4E1095ED955C498CAF3E20\", hash_generated_method = \"26A15C1C765EE269E3F8338945CC3FE4\")\n \n public static String getMacAddressCommand(){\n \tdouble taintDouble = 0;\n \n \tString retObj = new String(); \n \tretObj.addTaint(taintDouble);\n \treturn retObj;\n }", "public PowerUpASICCommand()\n\t{\n\t\tsuper();\n\t\tcommandString = new String(\"POWERUPASIC\");\n\t}", "@Override\n\tpublic void setCommand(String cmd) {\n\t\t\n\t}", "public ATOutput () throws CGException {\n vdm_init_ATOutput();\n }", "void setCommandProperties(String commandID, AttributeList properties);", "void\t\tsetCommandState(String command, String state);", "public void initDefaultCommand() {\n\t\t//System.out.println(\"initDefaultCommand()\");\n\t\tJoystickControlCommand JCC = new JoystickControlCommand();\n\t\tthis.setDefaultCommand(JCC);\n\t}", "@Override\r\n\tprotected void beforeSendCommands(String cmds) {\n\r\n\t}", "void\t\tsetCommandSensitivity(String command, boolean flag);", "protected void executeCommand() {\n // build the type string\n StringBuilder stateString = new StringBuilder();\n StringBuilder moveNamesString = new StringBuilder();\n StringBuilder basicPieceString = new StringBuilder();\n StringBuilder factionRingString = new StringBuilder();\n\n // start the state string\n stateString.append(\"emb2;Activate;2;;;2;;;2;;;;1;false;0;-24;,\");\n basicPieceString.append(\"emb2;;2;;;2;;;2;;;;;false;0;0;\");\n\n String moveImage;\n String move = newMoveList.get(0);\n String moveWithoutSpeed = move.substring(1);\n moveImage = dialHeadingImages.get(moveWithoutSpeed);\n\n String speed = move.substring(0,1);\n String moveCode = move.substring(1,2);\n String moveName = maneuverNames.get(moveCode);\n\n basicPieceString.append(\"D2e_\" + xwsShipName + \".png\");\n basicPieceString.append(\";;false;Front Plate;;;false;;1;1;true;;;\");\n\n moveNamesString.append(moveName).append(\" \").append(speed);\n // add in move names\n stateString.append(moveImage);\n stateString.append(\";empty,\"+moveNamesString);\n\n // finish the type string\n stateString.append(\";false;Chosen Move;;;false;;1;1;true;65,130\");\n Embellishment chosenMoveEmb = (Embellishment)Util.getEmbellishment(piece,\"Layer - Chosen Move\");\n Embellishment chosenSpeedEmb = (Embellishment)Util.getEmbellishment(piece, \"Layer - Chosen Speed\");\n Embellishment fullDialEmb = (Embellishment)Util.getEmbellishment(piece, \"Layer - Front Plate\");\n Embellishment ringEmb = (Embellishment)Util.getEmbellishment(piece, \"Layer - Faction Ring\");\n\n factionRingString.append(\"emb2;;2;;;2;;;2;;;;;false;0;0;DialSelect_\");\n factionRingString.append(faction);\n factionRingString.append(\".png;;false;Faction Ring;;;false;;1;1;true;;;\");\n chosenSpeedEmb.setValue(Integer.parseInt(speed)+1);\n\n String injectDialString = \"\";\n int count=0;\n for(String moveItem : newMoveList) {\n count++;\n injectDialString+= moveItem;\n if(count!=newMoveList.size()) injectDialString+=\",\";\n }\n piece.setProperty(\"dialstring\",injectDialString);\n piece.setProperty(\"shipID\", associatedShipID);\n\n // chosen move embellishment looks like: emb2;Activate;2;;;2;;;2;;;;1;false;0;-24;,mFW.png;empty,move;false;Chosen Move;;;false;;1;1;true;65,130;;\n // chosen speed embell looks like: emb2;;2;;;2;;;2;;;;1;false;0;24;kimb5.png,,kimb0.png,kimb1.png,kimb2.png,kimb3.png,kimb4.png;5,empty,0,1,2,3,4;false;Chosen Speed;;;false;;1;1;true;;;\n // basic piece face plate looks like: emb2;;2;;;2;;;2;;;;;false;0;0;D2e_arc170starfighter.png;;false;Front Plate;;;false;;1;1;true;;;\n // faction ring looks like: emb2;;2;;;2;;;2;;;;;false;0;-6;DialSelect_rebelalliance.png;;false;Faction Ring;;;false;;1;1;true;;;\n\n chosenMoveEmb.mySetType(stateString.toString());\n chosenMoveEmb.setValue(1);\n\n fullDialEmb.mySetType(basicPieceString.toString());\n ringEmb.mySetType(factionRingString.toString());\n }", "public void transmit_flags(){\n BluetoothGattCharacteristic txChar = mBleService.getCharacteristic(deviceAddress, GattServices.UART_SERVICE, GattCharacteristics.TX_CHARACTERISTIC);/**---------------------------------------------------------------------------------------------------------*/\n /**\n * added to sent 1 or 2 or 3 to the bluetooth device\n */\n if(ExerciseInstructionFragment.flag==1)\n {mBleService.writeCharacteristic(deviceAddress, txChar, new byte[] {0x01});\n Log.d(TAG, \"Data sent via flex\");}\n else if(ExerciseInstructionFragment.flag==2)\n {mBleService.writeCharacteristic(deviceAddress, txChar, new byte[] {0x02});\n Log.d(TAG, \"Data sent via imu\");}\n else if(ExerciseInstructionFragment.flag==3)\n {mBleService.writeCharacteristic(deviceAddress, txChar, new byte[] {0x03});}\n\n }", "private void cmd_default(String name, String msg) {\r\n String arenaName = \"\";\r\n\r\n if(msg.length() > 9) {\r\n arenaName = msg.substring(9);\r\n }\r\n\r\n if(!arenaName.isEmpty()) {\r\n if(arenaName.equals(\"pipe\")) {\r\n // Arena: Pipe\r\n specPlayer = false;\r\n changeShip = true;\r\n changeFreq = false;\r\n targetFreq = 7;\r\n targetShip = Tools.Ship.SHARK;\r\n delaySeconds = 100;\r\n enableMS = true;\r\n speccedMsg = \"none\";\r\n speccedSound = 0;\r\n shipChgMsg = \"slipped and fell into a safe!\";\r\n shipSound = Tools.Sound.CROWD_AWW;\r\n freqChgMsg = \"none\";\r\n freqSound = 0;\r\n m_botAction.sendSmartPrivateMessage(name, \"Arenasettings applied for pipe.\");\r\n return;\r\n } else if(arenaName.equals(\"brickman\")) {\r\n // Arena: Brickman\r\n specPlayer = true;\r\n changeShip = false;\r\n changeFreq = false;\r\n targetFreq = 2;\r\n targetShip = Tools.Ship.SPIDER;\r\n delaySeconds = 100;\r\n enableMS = true;\r\n speccedMsg = \"slipped and fell into a safe!\";\r\n speccedSound = Tools.Sound.CROWD_AWW;\r\n shipChgMsg = \"none\";\r\n shipSound = 0;\r\n freqChgMsg = \"none\";\r\n freqSound = 0;\r\n m_botAction.sendSmartPrivateMessage(name, \"Arenasettings applied for brickman.\");\r\n return;\r\n }\r\n }\r\n\r\n // Default arena settings.\r\n specPlayer = false;\r\n changeShip = false;\r\n changeFreq = false;\r\n targetFreq = 1;\r\n targetShip = Tools.Ship.SPIDER;\r\n delaySeconds = 0;\r\n enableMS = false;\r\n speccedMsg = \"none\";\r\n speccedSound = 0;\r\n shipChgMsg = \"none\";\r\n shipSound = 0;\r\n freqChgMsg = \"none\";\r\n freqSound = 0;\r\n\r\n if(!arenaName.isEmpty())\r\n m_botAction.sendSmartPrivateMessage(name, \"Arena \" + arenaName + \" not found. Reverting to default settings.\");\r\n else\r\n m_botAction.sendSmartPrivateMessage(name, \"Reverting to default settings.\");\r\n }", "private void sendCommand(byte accZone, int[] position, int[] value, int advTimeout) {\n advertisingOn = true;\n mBluetoothLeAdvertiser.stopAdvertising(mAdvertiseCallback);\n //mHandlerTimeout.removeCallbacks(timeOut);\n mAdvertiseData = setAdvertiseData(accZone, position, value);\n mBluetoothLeAdvertiser.startAdvertising(mAdvertiseSettings, mAdvertiseData, mAdvertiseCallback);\n mHandlerTimeout.postDelayed(timeOut, advTimeout);\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 }", "public void initDefaultCommand() {\n\t\tsetDefaultCommand(new JoystickLiftCommand());\n\t}", "protected void addCommand(String command) {\r\n\t\tcommand = command.replaceAll(\"\\n\", \"\\n\" + OUT_SYMBOL); //TODO ugly, fix this\r\n\t\tadd(command, styles.getRegular());\r\n\t}", "public String createCommand(String mac, String shortMac, String clusterId, String cmd, String duration) {\n String out = \"41 54 2b\" //head AT+, 3 bytes\n + \" 18\" //langth 18 for A10 siren\n + \" 12\" //Cluster frame\n + \" \" + mac // 8 bytes\n + \" \" + shortMac // 2 bytes\n + \" 02\" //Source \n + \" 02\" //Destination, 02 for Siren\n + \" \" + clusterId // 2 bytes\n + \" 01 04\" //Profile ID, 2 bytes\n + \" 00\" //reserved\n + \" \" + cmd //on/off cluster command, 2 bytes, 00 10 /00 00\n + \" \" + duration; // A10 siren alarm duration, 2 bytes, 0x0001 = 1sec\n\n return out + \" \" + this.calCheckbyte(out);\n }", "private void addStandardBindings() {\n inmap = new InputMap();\n acmap = new ActionMap();\n\n Action copy = ActionTable.getAction(Actions.COPY_ACTION);\n inmap.put((KeyStroke) copy.getValue(Action.ACCELERATOR_KEY), copy.getValue(Action.ACTION_COMMAND_KEY));\n acmap.put(copy.getValue(Action.ACTION_COMMAND_KEY), copy);\n\n Action cut = ActionTable.getAction(Actions.CUT_ACTION);\n inmap.put((KeyStroke) cut.getValue(Action.ACCELERATOR_KEY), cut.getValue(Action.ACTION_COMMAND_KEY));\n acmap.put(cut.getValue(Action.ACTION_COMMAND_KEY), cut);\n\n Action paste = ActionTable.getAction(Actions.PASTE_ACTION);\n inmap.put((KeyStroke) paste.getValue(Action.ACCELERATOR_KEY), paste.getValue(Action.ACTION_COMMAND_KEY));\n acmap.put(paste.getValue(Action.ACTION_COMMAND_KEY), paste);\n\n Action help = ActionTable.getAction(Actions.HELP_ACTION);\n inmap.put((KeyStroke) help.getValue(Action.ACCELERATOR_KEY), help.getValue(Action.ACTION_COMMAND_KEY));\n acmap.put(help.getValue(Action.ACTION_COMMAND_KEY), help);\n\n Action open = ActionTable.getAction(OPEN_ACTION);\n inmap.put((KeyStroke) open.getValue(Action.ACCELERATOR_KEY), open.getValue(Action.ACTION_COMMAND_KEY));\n acmap.put(open.getValue(Action.ACTION_COMMAND_KEY), open);\n\n Action save = ActionTable.getAction(SAVE_ACTION);\n inmap.put((KeyStroke) save.getValue(Action.ACCELERATOR_KEY), save.getValue(Action.ACTION_COMMAND_KEY));\n acmap.put(save.getValue(Action.ACTION_COMMAND_KEY), save);\n\n Action newA = ActionTable.getAction(NEW_ACTION);\n inmap.put((KeyStroke) newA.getValue(Action.ACCELERATOR_KEY), newA.getValue(Action.ACTION_COMMAND_KEY));\n acmap.put(newA.getValue(Action.ACTION_COMMAND_KEY), newA);\n\n Action close = ActionTable.getAction(CLOSE_ACTION);\n inmap.put((KeyStroke) close.getValue(Action.ACCELERATOR_KEY), close.getValue(Action.ACTION_COMMAND_KEY));\n acmap.put(close.getValue(Action.ACTION_COMMAND_KEY), close);\n\n Action select = ActionTable.getAction(SELECT_ALL_ACTION);\n inmap.put((KeyStroke) select.getValue(Action.ACCELERATOR_KEY), select.getValue(Action.ACTION_COMMAND_KEY));\n acmap.put(select.getValue(Action.ACTION_COMMAND_KEY), select);\n\n Action find = ActionTable.getAction(FIND_ACTION);\n inmap.put((KeyStroke) find.getValue(Action.ACCELERATOR_KEY), find.getValue(Action.ACTION_COMMAND_KEY));\n acmap.put(find.getValue(Action.ACTION_COMMAND_KEY), find);\n\n Action group = ActionTable.getAction(GROUP_ACTION);\n inmap.put((KeyStroke) group.getValue(Action.ACCELERATOR_KEY), group.getValue(Action.ACTION_COMMAND_KEY));\n acmap.put(group.getValue(Action.ACTION_COMMAND_KEY), group);\n\n Action ungroup = ActionTable.getAction(UNGROUP_ACTION);\n inmap.put((KeyStroke) ungroup.getValue(Action.ACCELERATOR_KEY), ungroup.getValue(Action.ACTION_COMMAND_KEY));\n acmap.put(ungroup.getValue(Action.ACTION_COMMAND_KEY), ungroup);\n\n Action zoomout = ActionTable.getAction(ZOOMOUT_ACTION);\n inmap.put((KeyStroke) zoomout.getValue(Action.ACCELERATOR_KEY), zoomout.getValue(Action.ACTION_COMMAND_KEY));\n acmap.put(zoomout.getValue(Action.ACTION_COMMAND_KEY), zoomout);\n\n Action zoomin = ActionTable.getAction(ZOOMIN_ACTION);\n inmap.put((KeyStroke) zoomin.getValue(Action.ACCELERATOR_KEY), zoomin.getValue(Action.ACTION_COMMAND_KEY));\n acmap.put(zoomin.getValue(Action.ACTION_COMMAND_KEY), zoomin);\n\n Action incIn = ActionTable.getAction(INC_INPUT_NODES_ACTION);\n inmap.put((KeyStroke) incIn.getValue(Action.ACCELERATOR_KEY), incIn.getValue(Action.ACTION_COMMAND_KEY));\n acmap.put(incIn.getValue(Action.ACTION_COMMAND_KEY), incIn);\n\n Action incOut = ActionTable.getAction(INC_OUTPUT_NODES_ACTION);\n inmap.put((KeyStroke) incOut.getValue(Action.ACCELERATOR_KEY), incOut.getValue(Action.ACTION_COMMAND_KEY));\n acmap.put(incOut.getValue(Action.ACTION_COMMAND_KEY), incOut);\n\n Action decIn = ActionTable.getAction(DEC_INPUT_NODES_ACTION);\n inmap.put((KeyStroke) decIn.getValue(Action.ACCELERATOR_KEY), decIn.getValue(Action.ACTION_COMMAND_KEY));\n acmap.put(decIn.getValue(Action.ACTION_COMMAND_KEY), decIn);\n\n Action decOut = ActionTable.getAction(DEC_OUTPUT_NODES_ACTION);\n inmap.put((KeyStroke) decOut.getValue(Action.ACCELERATOR_KEY), decOut.getValue(Action.ACTION_COMMAND_KEY));\n acmap.put(decOut.getValue(Action.ACTION_COMMAND_KEY), decOut);\n }", "public void sendCommands(String command) {\n try {\n printStream.print(command);\n }\n catch (Exception e){\n\n }\n\n\n }", "public void onCommand(Session session) {\n /**\n * VRFY is not safe.\n */\n String responseString = \"502 VRFY command is disabled\";\n session.writeResponse(responseString);\n }", "void changeBTAddress() {\n\t\t\n\t\t// if ( this.beacon.getAppType() == AppType.APPLE_GOOGLE_CONTACT_TRACING ) {\n\t\tif ( this.useRandomAddr()) {\n\t\t\t// try to change the BT address\n\t\t\t\n\t\t\t// the address is LSB..MSB and bits 47:46 are 0 i.e. bits 0 & 1 of right-most byte are 0.\n\t\t\tbyte btRandomAddr[] = getBTRandomNonResolvableAddress();\n\t\t\t\n\t\t\t// generate the hcitool command string\n\t\t\tString hciCmd = getSetRandomBTAddrCmd( btRandomAddr);\n\t\t\t\n\t\t\tlogger.info( \"SetRandomBTAddrCmd: \" + hciCmd);\n\t\t\t\n\t\t\t// do the right thing...\n\t\t\tfinal String envVars[] = { \n\t\t\t\t\"SET_RAND_ADDR_CMD=\" + hciCmd\n\t\t\t};\n\t\t\t\t\t\t\n\t\t\tfinal String cmd = \"./scripts/set_random_addr\";\n\t\t\t\n\t\t\tboolean status = runScript( cmd, envVars, this, null);\n\t\t}\n\t\t\t\n\t}", "void initCommand() {\n try {\n stream = adbTerminalConnection.open(\"shell:\");\n } catch (IOException | InterruptedException e) {\n e.printStackTrace();\n return;\n }\n runOnUiThread(() -> {\n channel.invokeMethod(\"output\", \"OTG已连接\\r\\n\");\n });\n // Start the receiving thread\n new Thread(() -> {\n while (!stream.isClosed()) {\n // Print each thing we read from the shell stream\n String data = null;\n try {\n data = new String(stream.read());\n } catch (InterruptedException | IOException e) {\n e.printStackTrace();\n }\n Log.d(\"Nightmare\", \"data -> \" + data);\n if (data == null) {\n runOnUiThread(() -> {\n channel.invokeMethod(\"output\", \"OTG断开\\r\\n\");\n });\n continue;\n }\n String finalData = data;\n runOnUiThread(() -> {\n channel.invokeMethod(\"output\", finalData);\n });\n }\n }).start();\n }", "@Override\n public void initDefaultCommand() {\n\n }", "SnacCommand genSnacCommand(SnacPacket packet);", "@Override\n public void initDefaultCommand() {\n setDefaultCommand(new Hold());\n }", "protected void setupTableCommandExp(StringBuilder sb, RomanticTransaction tx) {\n final Map<String, Set<String>> tableCommandMap = tx.getReadOnlyTableCommandMap();\n if (!tableCommandMap.isEmpty()) {\n final StringBuilder mapSb = new StringBuilder();\n mapSb.append(\"map:{\");\n int index = 0;\n for (Entry<String, Set<String>> entry : tableCommandMap.entrySet()) {\n final String tableName = entry.getKey();\n final Set<String> commandSet = entry.getValue();\n if (index > 0) {\n mapSb.append(\" ; \");\n }\n mapSb.append(tableName);\n mapSb.append(\" = list:{\").append(Srl.connectByDelimiter(commandSet, \" ; \")).append(\"}\");\n ++index;\n }\n mapSb.append(\"}\");\n sb.append(\", \").append(mapSb.toString());\n }\n }", "@Override\n public void initDefaultCommand() {\n }", "@Override\n public void initDefaultCommand() \n {\n }", "private void sendACKPacket()\n{\n \n //the values are unpacked into bytes and stored in outBufScratch\n //outBufScrIndex is used to load the array, start at position 0\n \n outBufScrIndex = 0;\n \n outBufScratch[outBufScrIndex++] = Notcher.ACK_CMD;\n \n //the byte is placed right here in this method\n outBufScratch[outBufScrIndex++] = lastPacketTypeHandled;\n \n //send header, the data, and checksum\n sendByteArray(outBufScrIndex, outBufScratch);\n \n}", "@Override\n public void initDefaultCommand() {\n }", "@Override\n public void initDefaultCommand() {\n }", "@Override\n public void initDefaultCommand() {\n }", "@Override\n public void initDefaultCommand() {\n }", "@Override\n public void initDefaultCommand() {\n }", "@Override\n public void initDefaultCommand() {\n }", "@Override\n public void initDefaultCommand() {\n }", "private void makeGARP(ByteBuffer buf, byte[] senderMAC, byte[] senderIP) {\n if (buf != null && senderMAC != null && senderIP != null) {\n buf.putShort(1);\n buf.putShort((short) OsConstants.ETH_P_IP);\n buf.put((byte) 6);\n buf.put((byte) 4);\n buf.putShort(1);\n buf.put(senderMAC);\n buf.put(senderIP);\n buf.put(this.L2_BROADCAST);\n buf.put(senderIP);\n buf.flip();\n }\n }", "private void registerCommands() {\n }", "public void autoMode1Blue(int delay){\n \taddParallel(new LightCommand(0.5));\n// \taddSequential(new OpenGearSocketCommand());\n//\t\taddSequential(new OpenBoilerSocketCommand());\n\t\taddParallel(new EnvelopeCommand(true));\n \taddSequential(new AutoDriveUltraSonicForwardCommand(.6, 7));\n \taddSequential(new WaitCommand(2));\n// \tif(Robot.envelopeSubsystem.gearCheck()){\n// \t\taddParallel(new EnvelopeCommand(false));\n// \t\taddSequential(new AutoDriveUltraSonicBackwardCommand(-.7, 35));\n// \t\taddSequential(new VisionGearTargetCommand(\"targets\"));\n// \t\taddSequential(new TargetGearSortCommand());\n// \t\taddSequential(new AutoTurnCommand());\n// \t\taddParallel(new EnvelopeCommand(true));\n// \taddSequential(new AutoDriveUltraSonicForwardCommand(.6, 7));\n// \t\taddSequential(new WaitCommand(2));\n// \t}\n \taddParallel(new EnvelopeCommand(false));\n \taddSequential(new AutoDriveCommand(-1));\n \taddSequential(new TurnWithPIDCommand(100));\n \taddSequential(new AutoDriveUltraSonicForwardCommand(1, 45));\n \taddSequential(new VisionBoilerTargetCommand(\"targets\"));\n\t\taddSequential(new TargetBoilerSortCommand());\n\t\taddSequential(new AutoTurnCommand());\n \taddSequential(new ShootCommand(true,.85));\n \t\n }", "@Override\n\tprotected void initDefaultCommand() {\n\t\t\n\t}", "@Override\n\tprotected void initDefaultCommand() {\n\t\t\n\t}", "@Override\n\tprotected void initDefaultCommand() {\n\t\t\n\t}", "private void printHelp(){\n System.out.println(\"Available commands:\");\n System.out.println(\"\\tmove SOURCE DESTINATION\");\n System.out.println(\"\\t\\tMoves single card from SOURCE to DESTINATION.\");\n System.out.println(\"\\t\\tSOURCE is any deck - d|r|s\");\n System.out.println(\"\\t\\tDESTINATION is any target deck or stack - d|s\");\n System.out.println(\"\\t\\tAlterantives: mv|m\");\n System.out.println(\"\\tmove SOURCE DESTINATION CARD\");\n System.out.println(\"\\t\\tMoves group of cards begining with CARD from SOURCE to DESTINATION.\");\n System.out.println(\"\\t\\tSOURCE is any deck - d|r|s\");\n System.out.println(\"\\t\\tDESTINATION is any target deck or stack - d|s\");\n System.out.println(\"\\t\\tCARD is value of card in SOURCE, from which is pack taken.\");\n System.out.println(\"\\t\\tAlterantives: mv|m\");\n System.out.println(\"\\tnext\");\n System.out.println(\"\\t\\tShow next card in card repository.\");\n System.out.println(\"\\t\\tAlterantives: n\");\n System.out.println(\"\\trenew\");\n System.out.println(\"\\t\\tTurn over repository.\");\n System.out.println(\"\\t\\tAlterantives: rn\");\n System.out.println(\"\\tundo\");\n System.out.println(\"\\t\\tUndo last move.\");\n System.out.println(\"\\t\\tAlterantives: u\");\n System.out.println(\"\\tredo\");\n System.out.println(\"\\t\\tRedo last move.\");\n System.out.println(\"\\t\\tAlterantives: rd|r\");\n System.out.println(\"\\tquit\");\n System.out.println(\"\\t\\tExit the game.\");\n System.out.println(\"\\t\\tAlterantives: q\");\n System.out.println(\"\\tsave FILENAME\");\n System.out.println(\"\\t\\tSaves game under specified name.\");\n System.out.println(\"\\t\\tFILENAME is name of saved game without extension.\");\n System.out.println(\"\\tload FILENAME\");\n System.out.println(\"\\t\\tLoads game from file with given name.\");\n System.out.println(\"\\t\\tFILENAME is name of saved game without extension.\");\n System.out.println(\"\\thint\");\n System.out.println(\"\\t\\tShow hints for current state of game.\");\n System.out.println(\"\\t\\tAlternatives: h\");\n System.out.println(\"\\thelp\");\n System.out.println(\"\\t\\tDisplays help.\");\n }", "void defaults(final WriteableCommandLine commandLine);", "public Button(String command, String name)\n {\n //command that will activate the infrared remote on the pi when this is sent to the command line\n this.command = \"irsend SEND_ONCE \" + name + \" KEY_\" + command.toUpperCase(); \n }", "public void setCommand(String command) {\n this.command = command;\n }", "@Override\n public void initDefaultCommand() {\n }", "@Override\n public void initDefaultCommand() {\n }", "@Override\n public void initDefaultCommand() {\n }", "@Override\n public void initDefaultCommand() {\n }", "@Override\n public void initDefaultCommand() {\n }", "@Override\n public void initDefaultCommand() {\n }", "void legalCommand();", "public abstract void offLineMode ();", "@Override\n\tprotected void initDefaultCommand() {\n\n\t}", "@Override\n\tprotected void initDefaultCommand() {\n\n\t}", "public static void main(String[] args) {\n\t\tLight light = new Light(\"Party Hall \");\r\n\t\tSterio sterio = new Sterio(\"Party Hall \");\r\n\t\tTv tv = new Tv(\"Party Hall \");\r\n\t\t\r\n\t\tLightOnCommand lightOnCommand = new LightOnCommand(light);\r\n\t\tSterioOnWithCDCommand sterioOnWithCDCommand = new SterioOnWithCDCommand(sterio);\r\n\t\tTvOnCommand tvOnCommand = new TvOnCommand(tv);\r\n\t\t\r\n\t\tLightOffCommand lightOffCommand = new LightOffCommand(light);\r\n\t\tSterioOffCommand sterioOffCommand = new SterioOffCommand(sterio);\r\n\t\tTvOffCommand tvOffCommand = new TvOffCommand(tv);\r\n\t\t\r\n\t\tCommand[] onCommands = {lightOnCommand, sterioOnWithCDCommand, tvOnCommand};\r\n\t\tCommand[] offCommands = {lightOffCommand, sterioOffCommand, tvOffCommand};\r\n\t\t\r\n\t\tMacroCommand macroOnCommand = new MacroCommand(onCommands);\r\n\t\tMacroCommand macroOffCommand = new MacroCommand(offCommands);\r\n\t\t\r\n\t\tRemoteControl rc = new RemoteControl();\r\n\t\trc.setCommand(0, macroOnCommand, macroOffCommand);\r\n\t\t\r\n\t\trc.onButtonWasPressed(0);\r\n\t\t\r\n\t\trc.offButtonWasPressed(0);\r\n\t\t\r\n\t\tSystem.out.println(\"=======undo========\");\r\n\t\trc.undoButtonWasPressed();\r\n\r\n\t}", "public static void test() {\n\t\tbyte[] get = makeACommandByte(1,(byte) 0x01, (byte) 0x03);\n\t\tfor (int i = 0; i < get.length; i++) {\n\t\t}\n\t}", "public void initDefaultCommand() {\n \n }", "public void initDefaultCommand() {\n // Set the default command for a subsystem here.\n \tsetDefaultCommand(new DriveWithJoystick());\n }", "private void setupNavigationCommandCharacteristic() {\n navigationCommandCharacteristic =\n new BluetoothGattCharacteristic(CHARACT_NAVIGATIONCOMMAND_UUID,\n BluetoothGattCharacteristic.PROPERTY_READ | BluetoothGattCharacteristic.PROPERTY_WRITE | BluetoothGattCharacteristic.PROPERTY_NOTIFY,\n BluetoothGattCharacteristic.PERMISSION_READ | BluetoothGattCharacteristic.PERMISSION_WRITE);\n\n navigationCommandCharacteristic.addDescriptor(\n Peripheral.getClientCharacteristicConfigurationDescriptor());\n\n navigationCommandCharacteristic.addDescriptor(\n Peripheral.getCharacteristicUserDescriptionDescriptor(CHARACT_NAVIGATIONCOMMAND_DESC));\n\n navigationCommandCharacteristic.setValue(navigationCommandCharacteristic_value);\n }", "@Override\n public void giveCommands(Robot robot) {\n super.giveCommands(robot);\n\n arcadeDrive(robot.getDrivetrain());\n\n }", "@Override\r\n\tprotected void initDefaultCommand() {\n\t\t\r\n\t}", "private void sendCommand(CommandItem command) {\n sendCommand(command.data, command.advTimeout);\n }", "public void initDefaultCommand() {\n\t}", "public void testSetSBATStart()\n throws IOException\n {\n HeaderBlockWriter block = new HeaderBlockWriter();\n\n block.setSBATStart(0x01234567);\n ByteArrayOutputStream output = new ByteArrayOutputStream(512);\n\n block.writeBlocks(output);\n byte[] copy = output.toByteArray();\n byte[] expected =\n {\n ( byte ) 0xD0, ( byte ) 0xCF, ( byte ) 0x11, ( byte ) 0xE0,\n ( byte ) 0xA1, ( byte ) 0xB1, ( byte ) 0x1A, ( byte ) 0xE1,\n ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00,\n ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00,\n ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00,\n ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00,\n ( byte ) 0x3B, ( byte ) 0x00, ( byte ) 0x03, ( byte ) 0x00,\n ( byte ) 0xFE, ( byte ) 0xFF, ( byte ) 0x09, ( byte ) 0x00,\n ( byte ) 0x06, ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00,\n ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00,\n ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00,\n ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00,\n ( byte ) 0xFE, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00,\n ( byte ) 0x00, ( byte ) 0x10, ( byte ) 0x00, ( byte ) 0x00,\n ( byte ) 0x67, ( byte ) 0x45, ( byte ) 0x23, ( byte ) 0x01,\n ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00,\n ( byte ) 0xFE, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF\n };\n\n assertEquals(expected.length, copy.length);\n for (int j = 0; j < 512; j++)\n {\n assertEquals(\"testing byte \" + j, expected[ j ], copy[ j ]);\n }\n }", "@Override\n public void initDefaultCommand() {\n Robot.driveTrain.setDefaultCommand(new xboxDrive());\n // Set the default command for a subsystem here.\n // setDefaultCommand(new MySpecialCommand());\n }", "public void initDefaultCommand() {\n\t\tsetDefaultCommand(new Intake());\n\t}", "static void devArgs(String[] cmd, PrintWriter out, MainClass mainClass)\n {\n if(cmd[0].contains(\"-ce.\") && cmd.length == 1)\n {\n config = Configuration.loadConfig();\n if(cmd[0].equals(\"-ce.a\"))\n ClientProcedures.bastionSecGroupCreate(mainClass.securityGroupApi, config);\n else if(cmd[0].equals(\"-ce.b\"))\n ClientProcedures.bastionKeyPairCreate(mainClass.ssh, mainClass.sshFolder,\n config.getBastionKeyName(), mainClass.keyPairApi);\n else if(cmd[0].equals(\"-ce.c\"))\n ClientProcedures.bastionServerCreate(mainClass.serverApi,\n mainClass.imageApi, mainClass.flavorApi, config, mainClass.ssh);\n mainClass.initBastionReference();\n if(cmd[0].equals(\"-ce.d\"))\n ClientProcedures.bastionIpAllocate(config, mainClass.floatingIPApi, mainClass.bastion);\n else if(cmd[0].equals(\"-ce.e\"))\n ClientProcedures.bastionPackagesInstall(mainClass.ssh, mainClass.bastion, config, mainClass.serverApi);\n else if(cmd[0].equals(\"-ce.f\"))\n ClientProcedures.bastionAnsibleInstall(mainClass.ssh, config,\n Utils.getServerPublicIp(mainClass.bastion, config.getNetworkName()));\n else if(cmd[0].equals(\"-ce.g\"))\n ClientProcedures.bastionClusterKeyCreate(mainClass.ssh, config, mainClass.keyPairApi,\n mainClass.bastion, mainClass.tempFolder);\n else if(cmd[0].equals(\"-ce.h\"))\n ClientProcedures.bastionSshConfigCreate(mainClass.ssh, mainClass.bastion, config, mainClass.tempFolder);\n else if(cmd[0].equals(\"-ce.i\"))\n ClientProcedures.createSwDisk(mainClass.ssh, config, mainClass.volumeApi,\n mainClass.bastion, mainClass.volumeAttachmentApi);\n else if(cmd[0].equals(\"-ce.j\"))\n ClientProcedures.attachSwDisk(config, mainClass.bastion, mainClass.volumeApi,\n mainClass.volumeAttachmentApi);\n else if(cmd[0].equals(\"-ce.k\"))\n ClientProcedures.transferSwFiles2VDisk(mainClass.ssh, config, mainClass.bastion, false);\n else if(cmd[0].equals(\"-ce.l\"))\n ClientProcedures.detachSwDisk(config, mainClass.bastion, mainClass.volumeApi,\n mainClass.volumeAttachmentApi);\n }\n else if(cmd[0].contains(\"-cc.\") && cmd.length == 1)\n {\n config = Configuration.loadConfig();\n mainClass.initBastionReference();\n ClientProcedures.transferRequiredFiles2Bastion(mainClass.ssh, config, mainClass.bastion, mainClass.tempFolder);\n /*if(cmd[0].equals(\"-cc.a\"))\n ClientProcedures.clusterServerGroupCreate(config, mainClass.userName, mainClass.password);\n else*/ if(cmd[0].equals(\"-cc.b\"))\n ClientProcedures.prepareToolComponents(config, mainClass.tempFolder, mainClass.flavorApi, true);\n// else if(cmd[0].equals(\"-cc.c\"))\n// ClientProcedures.updateAmbariShellCommandFile(config);\n// else if(cmd[0].equals(\"-cc.d\"))\n// ClientProcedures.transferRequiredFiles2Bastion(mainClass.ssh, config, mainClass.bastion, mainClass.tempFolder);\n else if(cmd[0].equals(\"-cc.e\"))\n ClientProcedures.bastionClusterProvisionExecute(mainClass.ssh, config,\n mainClass.bastion, mainClass.osAuthOnBastionCommands);\n else if(cmd[0].equals(\"-cc.f\"))\n ClientProcedures.bastionClusterConfigurationExecute(mainClass.ssh, config,\n mainClass.bastion, mainClass.osAuthOnBastionCommands);\n else if(cmd[0].equals(\"-cc.g\"))\n ClientProcedures.openAdminAccess(config, mainClass.securityGroupApi);\n else if(cmd[0].equals(\"-cc.h\"))\n ClientProcedures.generateWebGuiLink(config.getClusterName(),\n Utils.getServerPublicIp(mainClass.getMasterReference(config.getClusterName()), config.getNetworkName()));\n else if(cmd[0].equals(\"-cc.i\"))\n {\n ClientProcedures.transferSwBashScripts(mainClass.ssh, config, mainClass.bastion,\n mainClass.bastion, true, mainClass.volumeApi, mainClass.volumeAttachmentApi);\n }\n else if(cmd[0].equals(\"-cc.j\"))\n {\n mainClass.runBastionRoutine(Commands.CREATE_CLUSTER.getCommand());\n }\n }\n else if(cmd[0].contains(\"-r.\") && cmd.length == 1)\n {\n mainClass.initBastionReference();\n if(cmd[0].equals(\"-r.a\"))\n ClientProceduresRemoval.deleteCluster(mainClass.ssh, /*serverGroupApi, */config,\n mainClass.bastion, mainClass.getMasterReference(config.getClusterName()),\n mainClass.osAuthOnBastionCommands, mainClass.volumeApi, mainClass.volumeAttachmentApi);\n else if(cmd[0].equals(\"-r.b\"))\n ClientProceduresRemoval.removeDisk4SW(mainClass.ssh, config, mainClass.volumeApi,\n mainClass.volumeAttachmentApi, mainClass.bastion);\n else if(cmd[0].equals(\"-r.c\"))\n ClientProceduresRemoval.removeBastion(config, mainClass.serverApi, mainClass.floatingIPApi,\n mainClass.bastion);\n else if(cmd[0].equals(\"-r.d\"))\n ClientProceduresRemoval.removeOsSetups(config, mainClass.securityGroupApi, mainClass.keyPairApi);\n }\n else\n {\n out.println(\"\\nInvalid command.\\n\");\n }\n }", "public void initDefaultCommand() {\n\t\tsetDefaultCommand(new JoystickDrive());\n\t}", "public void initDefaultCommand() {\r\n // BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=DEFAULT_COMMAND\r\n\r\n // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=DEFAULT_COMMAND\r\n\t\r\n // Set the default command for a subsystem here.\r\n //setDefaultCommand(new MySpecialCommand());\r\n \tisPID = true;\r\n \trampingCoeff = 20;\r\n }", "public void initDefaultCommand() {\n // Set the default command for a subsystem here.\n //setDefaultCommand(new MySpecialCommand());\n \tsetDefaultCommand(new VelocityDriveCommand());\n }", "protected void initDefaultCommand() {\n \t\t\n \t}" ]
[ "0.56834304", "0.54609096", "0.5460165", "0.53716725", "0.5258739", "0.51131743", "0.5040252", "0.5021874", "0.50086457", "0.5002275", "0.49483308", "0.4925929", "0.49204922", "0.4856125", "0.4834344", "0.4828841", "0.48276627", "0.4811801", "0.47694707", "0.4731924", "0.47236675", "0.46946543", "0.46797788", "0.46694592", "0.46684432", "0.46541741", "0.46395963", "0.46385533", "0.46264476", "0.46152094", "0.46109122", "0.4606818", "0.4603995", "0.45915142", "0.4581171", "0.45684987", "0.45608294", "0.45333815", "0.45263314", "0.45175654", "0.4511284", "0.45088777", "0.449381", "0.44920376", "0.44903943", "0.44845128", "0.44827387", "0.44789055", "0.44695798", "0.44692066", "0.44682872", "0.4464267", "0.44639564", "0.44570887", "0.44461578", "0.44453776", "0.4439585", "0.4439585", "0.4439585", "0.4439585", "0.4439585", "0.4439585", "0.4439585", "0.4438288", "0.4437117", "0.4434491", "0.44342324", "0.44342324", "0.44342324", "0.44318107", "0.44315264", "0.44308877", "0.44277114", "0.44274992", "0.44274992", "0.44274992", "0.44274992", "0.44274992", "0.44274992", "0.44222373", "0.4422127", "0.44220135", "0.44220135", "0.44101724", "0.44061786", "0.44057652", "0.4403925", "0.44016236", "0.44015414", "0.4401161", "0.44004577", "0.43976167", "0.4397153", "0.4391655", "0.43909094", "0.43887392", "0.4379936", "0.43795538", "0.4374504", "0.43719795" ]
0.4433804
69
System.out.println("target: "+target+" with length: " +target.length());
private String clean(String target, String command) { String payload = target; int modifiedtimes = 0; for (int i = 0; i < target.length() - modifiedtimes; i++) { if (payload.charAt(i) == Character.LINE_SEPARATOR || payload.charAt(i) == '>' || payload.charAt(i) == Character.SPACE_SEPARATOR) { payload = removeCh(payload, i); i--; modifiedtimes++; // System.out.println("Current payload L: "+payload.length()+" with index:"+ i+" and ENDPOINT: "+(target.length()-modifiedtimes)); } } // System.out.println("CLEAN: payload before headercut is "+payload.length()); String headercut_payload = ""; int LastHeaderChar_index = command.length() - 1 - 1; // -1 pentru '\n' si -1 pentru ca incepe numaratoarea de la 0 for (int i = LastHeaderChar_index; i < payload.length(); i++) { headercut_payload = headercut_payload + payload.charAt(i); } // System.out.println("CLEAN: headercut_payload leght is "+headercut_payload.length()+" before trim"); headercut_payload.trim(); return headercut_payload; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int length() { return length; }", "public int get_length();", "public int getLength() {return length;}", "int length()\n\t{\n\t\treturn length;\n\t}", "public int getLength(){\n return this.length;\n }", "public int getLength()\n {return length;}", "public int getLength(){\n return sequence.length(); \n\t}", "public int getLength() { return length;\t}", "int getLength();", "int getLength();", "int getLength();", "int getLength();", "int getLength();", "int getLength();", "int getLength();", "int getLength();", "int getLength();", "int getLength();", "public int getLength(){\n return length;\n }", "public int getLength()\n {\n return length;\n }", "public int length() {\n \treturn length;\n }", "public int length();", "public int length();", "public int length();", "public int length();", "public int length();", "int length();", "int length();", "int length();", "int length();", "int length();", "int length();", "int length();", "public int getLength()\n {\n\treturn length;\n }", "public int getLength();", "public int getLength();", "public int getLength();", "public long getLength() { \n return length; \n }", "public int length() {\n return 0; // REPLACE THIS LINE WITH THE RIGHT ANSWER.\n }", "public int getLength(){\n\t\treturn length;\n\t}", "public int getLength(){\n\t\treturn length;\n\t}", "int len();", "public int size(){\n return length;\n }", "public abstract int length();", "public abstract int length();", "public int getLength() {\r\n return length;\r\n }", "public int getLength() {\r\n return length;\r\n }", "public int getLength() {\r\n return length;\r\n }", "public int length() {\n return 0; \n }", "public int getLength() {\n return length;\n }", "public int getLength() {\n return length;\n }", "public int length() {\n // PUT YOUR CODE HERE\n }", "public int getLength() {\n return length_;\n }", "public long getLength();", "public long getLength();", "public int getLength() {\n return this.length;\n }", "public int getLength() {\n return this.length;\n }", "public int getLength()\n\t{\n\t\treturn length;\n\t}", "public int getLength()\n\t{\n\t\treturn length;\n\t}", "private int length() {\n\t\treturn this.lenght;\n\t}", "int size() {\n int basic = ((offset() + 4) & ~3) - offset() + 8;\n /* Add 8*number of offsets */\n return basic + targetsOp.length*8;\n }", "public int getLength() {\n return length;\n }", "public abstract int getLength();", "public abstract int getLength();", "public int my_length();", "public int getLength()\n {\n return seq.length;\n }", "@Override\n public Integer length() {\n return myLength;\n }", "protected int getLength() {\n return length;\n }", "public int length()\n\t{\n\t\treturn length;\n\t}", "public int length() {\n return length;\n }", "public int length() {\n return length;\n }", "public int length() {\n return length;\n }", "public int getLength() {\r\n\t\treturn length;\r\n\t}", "public abstract long getLength();", "public abstract long getLength();", "protected abstract int getLength();", "public void findLength()\n\t{\n\t\tlength = name.length();\n\t}", "static int size_of_lda(String passed){\n\t\treturn 3;\n\t}", "public int getLength() {\n\t\treturn this.length;\n\t}", "public int getLength() {\n\t\treturn length;\n\t}", "public int getLength() {\n\t\treturn length;\n\t}", "public int getLength() {\n\t\treturn length;\n\t}", "public int getLength() {\n\t\treturn length;\n\t}", "public int getLength() {\n\t\treturn length;\n\t}", "public int getLength() {\n\t\treturn length;\n\t}", "public int getLength() {\n return length_;\n }", "public int printLength() { return printLength; }", "public int length() {\n return 1 + this.rest.length(); \n }", "public long length() {\n return length;\n }", "public int length() {\n\t\treturn length;\n\t}", "public int length() {\n\t\treturn length;\n\t}", "public int size() {\r\n return length;\r\n }", "public long getCurrentLength() { \n return currentLength; \n }", "public int len() {\n return 0;\n }", "public int length() {\n return size();\n }", "public int getLength()\n\t{\n\t\treturn mLength;\n\t}", "public int size()\n \t{\n \t\treturn getLength();\n \t}", "public double getLength(){\n return length;\n }", "public int length() { return _end - _start; }", "@Test\n public void runTest1() {\n rope1.length = 2;\n rope2.length = 8;\n System.out.println(rope1.length);\n }", "public Integer getLength() {\n return _length;\n }" ]
[ "0.69688576", "0.684355", "0.68432516", "0.6830065", "0.68212366", "0.68174374", "0.6787648", "0.6765993", "0.6730579", "0.6730579", "0.6730579", "0.6730579", "0.6730579", "0.6730579", "0.6730579", "0.6730579", "0.6730579", "0.6730579", "0.672138", "0.6699004", "0.6677644", "0.6675365", "0.6675365", "0.6675365", "0.6675365", "0.6675365", "0.6664698", "0.6664698", "0.6664698", "0.6664698", "0.6664698", "0.6664698", "0.6664698", "0.6661342", "0.6658329", "0.6658329", "0.6658329", "0.6643074", "0.66369015", "0.6611456", "0.6611456", "0.66080546", "0.65668666", "0.65234286", "0.65234286", "0.6513479", "0.6513479", "0.6513479", "0.65103316", "0.6496749", "0.6496749", "0.648649", "0.6470633", "0.64640015", "0.64640015", "0.64602613", "0.64602613", "0.6455498", "0.6455498", "0.64527714", "0.644508", "0.6403533", "0.6399767", "0.6399767", "0.63845795", "0.638002", "0.63735586", "0.63509065", "0.6325587", "0.6311458", "0.6311458", "0.6311458", "0.6300319", "0.62837875", "0.62837875", "0.6277815", "0.6273491", "0.62648034", "0.6245121", "0.6241016", "0.6241016", "0.6241016", "0.6241016", "0.6241016", "0.6241016", "0.6209196", "0.61899096", "0.61858666", "0.6184863", "0.61781263", "0.61781263", "0.61761975", "0.6157475", "0.6144572", "0.6124263", "0.611553", "0.6108517", "0.61001515", "0.6097629", "0.6079411", "0.60762453" ]
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { int [] nums = {110,22,13,44,5}; System.out.println(Arrays.toString(nums)); Arrays.sort(nums); System.out.println(Arrays.toString(nums)); }
{ "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
/////////////////// Access operations /////////////////// Manipulate the method access flags.
public boolean isSynchronized() { return (getAccessFlags() & Constants.ACCESS_SYNCHRONIZED) > 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getAccessFlags() {\n return access_flags;\n }", "void checkAccessModifier(Method method);", "public abstract int flags();", "public int getFlags();", "public int getFlags();", "String getAccess();", "String getAccess();", "public String getAccess();", "public long getFlags() {\n }", "JApiModifier<AccessModifier> getAccessModifier();", "public interface ApiFlags {\n int GET_SOMETHING = 0;\n int GET_SOMETHING_ELSE = 1;\n }", "public interface ApiFlags {\n int GET_SOMETHING = 0;\n int GET_SOMETHING_ELSE = 1;\n }", "@FameProperty(name = \"numberOfAccessingMethods\", derived = true)\n public Number getNumberOfAccessingMethods() {\n throw new UnsupportedOperationException(\"Not yet implemented!\"); \n }", "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}", "int getModifiers();", "int getModifiers();", "long getFlags();", "private int patchAccess(BT_Method bm,BT_InsVector iv,int idx)\n{\n int ctr = 0;\n\n if (patch_type.getPatchLocalAccess() || patch_type.getPatchRemoteAccess()) {\n BT_FieldRefIns fri = (BT_FieldRefIns) iv.elementAt(idx);\n BT_Field fld = fri.getFieldTarget();\n if (fri.opcode == BT_Opcodes.opc_getstatic) {\n\t ctr = patch_type.getInstrumenter().patchStaticAccess(fld,bm,iv,idx);\n }\n else {\n\t ctr = patch_type.getInstrumenter().patchFieldAccess(fld,bm,iv,idx);\n }\n }\n\n patch_delta += ctr;\n\n return ctr;\n}", "public int getAccess()\n {\n ensureLoaded();\n return m_flags.getAccess();\n }", "boolean isReadAccess();", "public static Collection<FieldAccessFlag> getFlags()\n\t{\n\t\treturn Lists.newArrayList(PUBLIC, PRIVATE, PROTECTED, STATIC, FINAL, VOLATILE, TRANSIENT, ENUM,\n\t\t\tSYNTHETIC);\n\t}", "@Override\n\tpublic void setAccessModifier(AccessModifier modifier) {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "int getFlag();", "public void testCreateMethodWithModifiers() {\n IDOMMethod method = this.domFactory.createMethod();\n method.setName(\"foo\");\n method.setFlags(ClassFileConstants.AccPublic | ClassFileConstants.AccStatic);\n assertSourceEquals(\"source code incorrect\", \"public static void foo() {\\n\" + \"}\\n\", method.getContents());\n }", "private void writeMethodModifiers(Method m) {\n int mod = m.getModifiers();\n mod &= ~Modifier.ABSTRACT;\n mod &= ~Modifier.TRANSIENT;\n writer.print(Modifier.toString(mod) + \" \");\n }", "public Set<Method> getMethods() {\r\n \t\t// We will only consider private methods in the declared class\r\n \t\tif (forceAccess)\r\n \t\t\treturn setUnion(source.getDeclaredMethods(), source.getMethods());\r\n \t\telse\r\n \t\t\treturn setUnion(source.getMethods());\r\n \t}", "public int modifiers();", "public void setReadWriteOnMyLatestView()\n {\n \t m_acl = \tm_acl | (1<<2);\n }", "int getPermissionRead();", "public static boolean canAccessFieldsDirectly(){\n return false; //TODO codavaj!!\n }", "int getPermissionWrite();", "protected abstract MethodDescription accessorMethod();", "public interface AccessControlled {\r\n\r\n}", "private void mappingMethodGet() throws SecurityException, NoSuchMethodException{\n\t\tString aux = upFirstLetter();\n\t\tString methodGet = \"get\" + aux;\n\t\tthis.methodGet = this.classFather.getMethod(methodGet);\n\t}", "public boolean isAccessible() {\n return false;\n }", "private void setFlag(short r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00f2 in method: android.location.GpsClock.setFlag(short):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.location.GpsClock.setFlag(short):void\");\n }", "public abstract List<String> getAdditionalAccessions();", "private static boolean getInternalPublicMethods(Class<?> paramClass, Map<Signature, Method> paramMap) {\n/* 143 */ Method[] arrayOfMethod = null;\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ try {\n/* 150 */ if (!Modifier.isPublic(paramClass.getModifiers())) {\n/* 151 */ return false;\n/* */ }\n/* 153 */ if (!ReflectUtil.isPackageAccessible(paramClass)) {\n/* 154 */ return false;\n/* */ }\n/* */ \n/* 157 */ arrayOfMethod = paramClass.getMethods();\n/* 158 */ } catch (SecurityException securityException) {\n/* 159 */ return false;\n/* */ } \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 168 */ boolean bool = true; byte b;\n/* 169 */ for (b = 0; b < arrayOfMethod.length; b++) {\n/* 170 */ Class<?> clazz = arrayOfMethod[b].getDeclaringClass();\n/* 171 */ if (!Modifier.isPublic(clazz.getModifiers())) {\n/* 172 */ bool = false;\n/* */ \n/* */ break;\n/* */ } \n/* */ } \n/* 177 */ if (bool) {\n/* */ \n/* */ \n/* */ \n/* */ \n/* 182 */ for (b = 0; b < arrayOfMethod.length; b++) {\n/* 183 */ addMethod(paramMap, arrayOfMethod[b]);\n/* */ \n/* */ }\n/* */ \n/* */ }\n/* */ else {\n/* */ \n/* 190 */ for (b = 0; b < arrayOfMethod.length; b++) {\n/* 191 */ Class<?> clazz = arrayOfMethod[b].getDeclaringClass();\n/* 192 */ if (paramClass.equals(clazz)) {\n/* 193 */ addMethod(paramMap, arrayOfMethod[b]);\n/* */ }\n/* */ } \n/* */ } \n/* 197 */ return bool;\n/* */ }", "@Override\n\tpublic int getFlags() {\n\t\treturn heldObj.getFlags();\n\t}", "private boolean isFlagSet(short r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00f2 in method: android.location.GpsClock.isFlagSet(short):boolean, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.location.GpsClock.isFlagSet(short):boolean\");\n }", "public interface PropertyAccess extends FeatureCall\n{\n}", "void incrementAccessCounter();", "@Override\n\t\t\tpublic void visit(MethodDeclaration arg0, Object arg1) {\n\t\t\t\tif((arg0.getModifiers() & Modifier.PUBLIC) == Modifier.PUBLIC) {\n\t\t\t\t\t\tif(arg0.getName().substring(0, 3) == \"get\" || arg0.getName().substring(0, 3) == \"set\")\n\t\t\t\t\t\t\tpublicAcces.add(new Pair(arg0.getName() + \"( \"+planeL(arg0.getParameters()) +\") :\" + arg0.getType().toString(), Character.toLowerCase(arg0.getName().substring(3).charAt(0)) + (arg0.getName().substring(3).length() > 1 ? arg0.getName().substring(3).substring(1) : \"\")));\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tpublicAcces.add(new Pair(arg0.getName() + \"( \"+planeL(arg0.getParameters()) +\") :\" + arg0.getType().toString(), Character.toLowerCase(arg0.getName().substring(3).charAt(0)) + (arg0.getName().substring(3).length() > 1 ? arg0.getName().substring(3).substring(1) : \"\")));\n\t\t\t\t\t\tuses(arg0.getParameters());\n\t\t\t\t}\n\t\t\t\tsuper.visit(arg0, arg1);\n\t\t\t}", "void setAccessible(boolean accessible);", "private void addAccessor(ThreadContext context, String internedName, Visibility visibility, boolean readable, boolean writeable) {\n assert internedName == internedName.intern() : internedName + \" is not interned\";\n \n final Ruby runtime = context.getRuntime();\n \n if (visibility == PRIVATE) {\n //FIXME warning\n } else if (visibility == MODULE_FUNCTION) {\n visibility = PRIVATE;\n // FIXME warning\n }\n final String variableName = (\"@\" + internedName).intern();\n if (readable) {\n addMethod(internedName, new JavaMethodZero(this, visibility, CallConfiguration.FrameNoneScopeNone) {\n private RubyClass.VariableAccessor accessor = RubyClass.VariableAccessor.DUMMY_ACCESSOR;\n public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, String name) {\n IRubyObject variable = (IRubyObject)verifyAccessor(self.getMetaClass().getRealClass()).get(self);\n \n return variable == null ? runtime.getNil() : variable;\n }\n \n private RubyClass.VariableAccessor verifyAccessor(RubyClass cls) {\n RubyClass.VariableAccessor localAccessor = accessor;\n if (localAccessor.getClassId() != cls.hashCode()) {\n localAccessor = cls.getVariableAccessorForRead(variableName);\n accessor = localAccessor;\n }\n return localAccessor;\n }\n });\n callMethod(context, \"method_added\", runtime.fastNewSymbol(internedName));\n }\n if (writeable) {\n internedName = (internedName + \"=\").intern();\n addMethod(internedName, new JavaMethodOne(this, visibility, CallConfiguration.FrameNoneScopeNone) {\n private RubyClass.VariableAccessor accessor = RubyClass.VariableAccessor.DUMMY_ACCESSOR;\n public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, String name, IRubyObject arg1) {\n verifyAccessor(self.getMetaClass().getRealClass()).set(self, arg1);\n return arg1;\n }\n \n private RubyClass.VariableAccessor verifyAccessor(RubyClass cls) {\n RubyClass.VariableAccessor localAccessor = accessor;\n if (localAccessor.getClassId() != cls.hashCode()) {\n localAccessor = cls.getVariableAccessorForWrite(variableName);\n accessor = localAccessor;\n }\n return localAccessor;\n }\n });\n callMethod(context, \"method_added\", runtime.fastNewSymbol(internedName));\n }\n }", "abstract public void getPermission();", "@FameProperty(name = \"accessors\", derived = true)\n public Collection<TWithAccesses> getAccessors() {\n throw new UnsupportedOperationException(\"Not yet implemented!\"); \n }", "public int getAccess() {\n\t\treturn access;\n\t}", "public void method_203() {}", "int getAccessCounter();", "public interface IGetFilePermission extends FileOperation\n{\n /**\n * A Map of keys (user@domain) and a string of the permission\n * type (i.e. read, write, etc) is retruned. If the permission\n * is sticky, a (I) is appended to the permssion string.\n * @return\n */\n public Map<String, Object> getPermissionTable();\n\n public boolean isInherited();\n}", "public boolean isForceAccess() {\r\n \t\treturn forceAccess;\r\n \t}", "public Boolean isAccessible() {\n return this.isAccessible;\n }", "boolean isWriteAccess();", "private Method getPrivateMethodFromAtrManager(String methodName, Class<?>... argClasses) throws Exception {\n\t\tMethod method = AttributesManagerBlImpl.class.getDeclaredMethod(methodName, argClasses);\n\t\tmethod.setAccessible(true);\n\t\treturn method;\n\t}", "public abstract Set<MethodUsage> getDeclaredMethods();", "boolean isAccessed (ClassMember attr) {\r\n if (accessed_attributes == null) {\r\n accessed_attributes = new java.util.Vector ();\r\n } else if (accessed_attributes.contains (attr)) {\r\n return true;\r\n } \r\n\r\n accessed_attributes.addElement (attr);\r\n return false;\r\n }", "boolean isSetMethod();", "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}", "public Enumeration permissions();", "public abstract boolean isReadOnly();", "private void mappingMethodSet() throws SecurityException, NoSuchMethodException{\n\t\tString aux = upFirstLetter();\n\t\tString methodSet = \"set\" + aux;\n\t\tthis.methodSet = this.classFather.getMethod(methodSet, this.classType);\n\t}", "public ModbusAccess getAccess() {\r\n\t\treturn access;\r\n\t}", "public int getFlags() {\n return flags;\n }", "interface Accessible {\n // All interface variables are public static final\n int SOME_CONSTANT = 100;\n // all interface methods are automatically public\n public void methodA();\n void methodB();\n boolean methodC();\n}", "@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 13:02:04.534 -0500\", hash_original_method = \"E4DEB0C107DDB25A537EF0E89F1C04F8\", hash_generated_method = \"2E76AFD8C90588F5139C0C2D28CAEA05\")\n \nprivate static int translateCodingErrorAction(CodingErrorAction action) {\n if (action == CodingErrorAction.REPORT) {\n return 0;\n } else if (action == CodingErrorAction.IGNORE) {\n return 1;\n } else if (action == CodingErrorAction.REPLACE) {\n return 2;\n } else {\n throw new AssertionError(); // Someone changed the enum.\n }\n }", "public short getFlags() {\n\treturn flags;\n }", "boolean isReadOnly();", "boolean isReadOnly();", "public boolean isReadOnly();", "public boolean isReadOnly();", "public boolean isReadOnly();", "public String methodBase() {\n\t\tString tmp = name;\n\t\ttmp = tmp.replaceFirst(\"^get\", \"\");\n\t\ttmp = tmp.replaceFirst(\"^is\", \"\");\n\t\treturn tmp.substring(0,1).toLowerCase()+tmp.substring(1);\n\t}", "public int getModifiers() {\n return mod;\n }", "public Boolean getPublicAccess() {\n return publicAccess;\n }", "protected final boolean isMutable() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: android.icu.impl.coll.CollationDataBuilder.isMutable():boolean, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.icu.impl.coll.CollationDataBuilder.isMutable():boolean\");\n }", "boolean isCallableAccess();", "IntsRef getFlags();", "public interface METHODS {\n public static int TIME = 0;\n public static int DISTANCE= 1;\n public static int STEPS = 2;\n public static int ACHIEVEMENTS = 3;\n }", "public void clearAccess();", "@Override\n\tpublic AccessModifier getAccessModifier() {\n\t\treturn null;\n\t}", "ClassMember search (String name, MethodType type, int access,\r\n\t\t int modifier_mask) {\r\n IdentifierList methods = (IdentifierList) get (name);\r\n\r\n if (methods == null) return null;\r\n\r\n java.util.Enumeration ms = methods.elements ();\r\n\r\n ClassMember more_specific = null;\r\n while (ms.hasMoreElements ()) {\r\n ClassMember m = (ClassMember) ms.nextElement ();\r\n\r\n int diff;\r\n try {\r\n\tdiff = m.type.compare (type);\r\n } catch (TypeMismatch e) {\r\n\tcontinue;\r\n }\r\n\r\n if (diff < 0) continue;\r\n\r\n int m_access = m.getAccess ();\r\n\r\n if (access == Constants.PROTECTED) {\r\n\tif (m_access == Constants.PRIVATE) continue;\r\n } else if (access == Constants.PUBLIC) {\r\n\tif (m_access != Constants.PUBLIC) continue;\r\n }\r\n\t \r\n if (modifier_mask > 0 &&\r\n\t ((m.getModifier () & modifier_mask) == 0)) continue;\r\n\r\n if (diff == 0) return m;\r\n\r\n if (more_specific == null) {\r\n\tmore_specific = m;\r\n\tcontinue;\r\n }\r\n\r\n try {\r\n\tif (((MethodType) m.type).isMoreSpecific ((MethodType) more_specific.type))\r\n\t more_specific = m;\r\n } catch (OverloadingAmbiguous ex) {\r\n\t/* this overloading is ambiguous */\r\n\tOzcError.overloadingAmbiguous (m);\r\n\treturn ClassMember.ANY;\r\n }\r\n }\r\n\r\n return more_specific;\r\n }", "public int getAccessLevel() {\n return 0;\r\n }", "@Override\n\t/**\n\t * returns the visibility modifiers for the specific class\n\t * \n\t * @return visibility modifiers \n\t */\n\tpublic String getVisability() {\n\t\treturn visability;\n\t}", "void setAccessCounter(int cnt);", "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 void updateFlags()\n {\n initialize();\n }", "public final native void setFlags(int value) /*-{\n\t\tvar jso = [email protected]::getJsObj()();\n\t\tjso.flags = value;\n }-*/;", "public interface JApiHasAccessModifier {\n\t/**\n\t * Returns the access modifier.\n\t *\n\t * @return the access modifier\n\t */\n\tJApiModifier<AccessModifier> getAccessModifier();\n}", "@Override\n public boolean hasReadAccess() {\n return true;\n }", "public interface MethodHandleInfo {\n\n\t/**\n\t * Getter MethodHandle for an instance field\n\t */\n\tstatic final int REF_getField = 1;\n\n\t/**\n\t * Getter MethodHandle for an static field\n\t */\n\tstatic final int REF_getStatic = 2;\n\n\t/**\n\t * Setter MethodHandle for an instance field\n\t */\n\tstatic final int REF_putField = 3;\n\n\t/**\n\t * Setter MethodHandle for an static field\n\t */\n\tstatic final int REF_putStatic = 4;\n\n\t/**\n\t * MethodHandle for an instance method\n\t */\n\tstatic final int REF_invokeVirtual = 5;\n\n\t/**\n\t * MethodHandle for a static method\n\t */\n\tstatic final int REF_invokeStatic = 6;\n\n\t/**\n\t * MethodHandle for an special method\n\t */\n\tstatic final int REF_invokeSpecial = 7;\n\n\t/**\n\t * MethodHandle for a constructor\n\t */\n\tstatic final int REF_newInvokeSpecial = 8;\n\n\t/**\n\t * MethodHandle for an interface method\n\t */\n\tstatic final int REF_invokeInterface = 9;\n\n\t/**\n\t * Returns the Class where the cracked MethodHandle's underlying method, field or constructor is declared.\n\t *\n\t * @return class that declares the underlying member\n\t */\n\tClass<?> getDeclaringClass();\n\n\t/**\n\t * Returns the simple name of the MethodHandle's underlying member.\n\t *\n\t * @return A string representing the name of the method or field, or \"&lt;init&gt;\" for constructor.\n\t */\n\tString getName();\n\n\t/**\n\t * Returns the type of the MethodHandle's underlying member as a MethodType.\n\t * If the underlying member is non-static, the receiver parameter will not be included.\n\t * If the underlying member is field getter, the MethodType will take no parameters, and the return type will be the field type.\n\t * If the underlying member is field setter, the MethodType will take one parameter of the field type, and the return type will be void.\n\t *\n\t * @return A MethodType object representing the signature of the method or field\n\t */\n\tMethodType getMethodType();\n\n\t/**\n\t * Returns the modifiers of the MethodHandle's underlying member.\n\t *\n\t * @return An int representing the member's modifiers, or -1 if the underlying member is not accessible.\n\t */\n\tint getModifiers();\n\n\t/**\n\t * Returns the reference kind of the MethodHandle. The possible reference kinds are the declared MethodHandleInfo.REF fields.\n\t *\n\t * @return Returns one of the defined reference kinds which represent the MethodHandle kind.\n\t */\n\tint getReferenceKind();\n\n\t/**\n\t * Returns whether the MethodHandle's underlying method or constructor has variable argument arity.\n\t *\n\t * @return whether the underlying method has variable arity\n\t */\n\tdefault boolean isVarArgs() {\n\t\t// Check whether the MethodHandle refers to a Method or Contructor (not Field)\n\t\tif (getReferenceKind() >= REF_invokeVirtual) {\n\t\t\treturn ((getModifiers() & MethodHandles.Lookup.VARARGS) != 0);\n\t\t}\n\t\treturn false;\n\t}\n\n\t/**\n\t * Reflects the underlying member as a Method, Field or Constructor. The member must be accessible to the provided lookup object.\n\t * Public members are reflected as if by <code>getMethod</code>, <code>getField</code> or <code>getConstructor</code>.\n\t * Non-public members are reflected as if by <code>getDeclearedMethod</code>, <code>getDeclaredField</code> or <code>getDeclaredConstructor</code>.\n\t *\n\t * @param expected The expected type of the returned Member\n\t * @param lookup The lookup that was used to create the MethodHandle, or a lookup object with equivalent access\n\t * @return A Method, Field or Constructor representing the underlying member of the MethodHandle\n\t * @throws NullPointerException If either argument is null\n\t * @throws IllegalArgumentException If the underlying member is not accessible to the provided lookup object\n\t * @throws ClassCastException If the underlying member is not of the expected type\n\t */\n\t<T extends java.lang.reflect.Member> T reflectAs(Class<T> expected, MethodHandles.Lookup lookup);\n\n\t/**\n\t * Returns a string representing the equivalent bytecode for the referenceKind.\n\t *\n\t * @param referenceKind The referenceKind to lookup\n\t * @return a String representing the equivalent bytecode\n\t * @throws IllegalArgumentException If the provided referenceKind is invalid\n\t */\n\tstatic String referenceKindToString(int referenceKind) throws IllegalArgumentException {\n\t\tswitch(referenceKind) {\n\t\tcase REF_getField: \t\t\treturn \"getField\"; //$NON-NLS-1$\n\t\tcase REF_getStatic: \t\treturn \"getStatic\"; //$NON-NLS-1$\n\t\tcase REF_putField: \t\t\treturn \"putField\"; //$NON-NLS-1$\n\t\tcase REF_putStatic: \t\treturn \"putStatic\"; //$NON-NLS-1$\n\t\tcase REF_invokeVirtual: \treturn \"invokeVirtual\"; //$NON-NLS-1$\n\t\tcase REF_invokeStatic: \t\treturn \"invokeStatic\"; //$NON-NLS-1$\n\t\tcase REF_invokeSpecial: \treturn \"invokeSpecial\"; //$NON-NLS-1$\n\t\tcase REF_newInvokeSpecial: \treturn \"newInvokeSpecial\"; //$NON-NLS-1$\n\t\tcase REF_invokeInterface: \treturn \"invokeInterface\"; //$NON-NLS-1$\n\t\t}\n\t\t// K0582 = Reference kind \"{0\"} is invalid\n\t\tthrow new IllegalArgumentException(com.ibm.oti.util.Msg.getString(\"K0582\", referenceKind)); //$NON-NLS-1$\n\t}\n\n\t/**\n\t * Answers a string containing a concise, human-readable description of the receiver.\n\t *\n\t * @param kind the reference kind, one of the declared MethodHandleInfo.REF fields.\n\t * @param defc the class where the member is declared\n\t * @param name the name of the member\n\t * @param type the member's MethodType\n\t * @return a String of the format \"K C.N:MT\"\n\t */\n\tstatic String toString(int kind, Class<?> defc, String name, MethodType type) {\n\t\treturn referenceKindToString(kind) + \" \" + defc.getName() + \".\" + name + \":\" + type; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$\n\t}\n\n}", "public void setFlags(int param1) {\n }", "public void testMethodInfo888() throws Exception {\n\t\tClassInfo var2785 = instantiateClassInfo430();\n\t\tFieldInfo var2786 = instantiateFieldInfo429();\n\t\tList<ClassInfo> var2764 = Collections.emptyList();\n\t\tList<ParameterInfo> var2766 = Collections.emptyList();\n\t\tList<LocalVariableInfo> var2767 = Collections.emptyList();\n\t\tList<Operation> var2768 = Collections.emptyList();\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tMethodInfo var2787 = new MethodInfo(var2785, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList());\n\t\tClassInfo var2765 = new ClassInfo(\"super\", false, null, var2764, null);\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2785.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2785.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2785.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tClassInfo var2771 = new ClassInfo(\"super\", false, var2765, var2764,\n\t\t\t\tnull);\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2785.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2785.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2785.getSetters();\n\t\tvar2787.isSetter();\n\t\tvar2787.isSetter();\n\t}", "public int getFileFlags() { return fileFlags; }", "public void beforeHookedMethod(MethodHookParam methodHookParam) throws Throwable {\n super.beforeHookedMethod(methodHookParam);\n methodHookParam.setResult(AbsSavedState.EMPTY_STATE);\n Field findField = XposedHelpers.findField(View.class, \"mPrivateFlags\");\n findField.set(methodHookParam.thisObject, Integer.valueOf(findField.getInt(methodHookParam.thisObject) | 131072));\n }", "public void andThisIsAMethodName(){}", "public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }", "int getAuthAccountFlags();", "public interface C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }", "public void setImportantForAccessibility(boolean important) {\n/* 1316 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public void method_192() {}" ]
[ "0.677695", "0.6621732", "0.6521668", "0.6447051", "0.6447051", "0.62385994", "0.62385994", "0.6230996", "0.6200764", "0.6200411", "0.61478156", "0.61478156", "0.6088907", "0.6054997", "0.60248744", "0.60248744", "0.6017415", "0.5944829", "0.590265", "0.5854112", "0.5847357", "0.5840659", "0.5838741", "0.58213663", "0.57798505", "0.5773129", "0.5763933", "0.5752061", "0.5716105", "0.5704049", "0.56423587", "0.5641982", "0.5622952", "0.5600668", "0.5588111", "0.558689", "0.55767673", "0.5570525", "0.55621886", "0.55597", "0.555105", "0.5548192", "0.5544673", "0.5534005", "0.55316776", "0.5496544", "0.5496218", "0.549441", "0.54923415", "0.546861", "0.5463474", "0.5463223", "0.54619294", "0.5461045", "0.5450199", "0.5450024", "0.5448414", "0.54484135", "0.5438623", "0.5437989", "0.5424697", "0.54243183", "0.5423118", "0.5414985", "0.5404906", "0.5391045", "0.5382103", "0.53802633", "0.53802633", "0.5377587", "0.5377587", "0.5377587", "0.53725606", "0.5370309", "0.53644484", "0.5359329", "0.5352929", "0.5351772", "0.53410375", "0.5335341", "0.533488", "0.5333882", "0.53195757", "0.53137916", "0.53112173", "0.53060883", "0.5304766", "0.5300536", "0.52989084", "0.5296917", "0.5287604", "0.5286395", "0.5279997", "0.52770203", "0.52761453", "0.5272944", "0.5271972", "0.5268585", "0.5268309", "0.5261167", "0.52610695" ]
0.0
-1
Manipulate the method access flags.
public void setSynchronized(boolean on) { if (on) setAccessFlags(getAccessFlags() | Constants.ACCESS_SYNCHRONIZED); else setAccessFlags(getAccessFlags() & ~Constants.ACCESS_SYNCHRONIZED); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void checkAccessModifier(Method method);", "public abstract int flags();", "private void writeMethodModifiers(Method m) {\n int mod = m.getModifiers();\n mod &= ~Modifier.ABSTRACT;\n mod &= ~Modifier.TRANSIENT;\n writer.print(Modifier.toString(mod) + \" \");\n }", "public int getAccessFlags() {\n return access_flags;\n }", "public int getFlags();", "public int getFlags();", "public long getFlags() {\n }", "public void testCreateMethodWithModifiers() {\n IDOMMethod method = this.domFactory.createMethod();\n method.setName(\"foo\");\n method.setFlags(ClassFileConstants.AccPublic | ClassFileConstants.AccStatic);\n assertSourceEquals(\"source code incorrect\", \"public static void foo() {\\n\" + \"}\\n\", method.getContents());\n }", "int getModifiers();", "int getModifiers();", "public Set<Method> getMethods() {\r\n \t\t// We will only consider private methods in the declared class\r\n \t\tif (forceAccess)\r\n \t\t\treturn setUnion(source.getDeclaredMethods(), source.getMethods());\r\n \t\telse\r\n \t\t\treturn setUnion(source.getMethods());\r\n \t}", "JApiModifier<AccessModifier> getAccessModifier();", "@Override\n\t\t\tpublic void visit(MethodDeclaration arg0, Object arg1) {\n\t\t\t\tif((arg0.getModifiers() & Modifier.PUBLIC) == Modifier.PUBLIC) {\n\t\t\t\t\t\tif(arg0.getName().substring(0, 3) == \"get\" || arg0.getName().substring(0, 3) == \"set\")\n\t\t\t\t\t\t\tpublicAcces.add(new Pair(arg0.getName() + \"( \"+planeL(arg0.getParameters()) +\") :\" + arg0.getType().toString(), Character.toLowerCase(arg0.getName().substring(3).charAt(0)) + (arg0.getName().substring(3).length() > 1 ? arg0.getName().substring(3).substring(1) : \"\")));\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tpublicAcces.add(new Pair(arg0.getName() + \"( \"+planeL(arg0.getParameters()) +\") :\" + arg0.getType().toString(), Character.toLowerCase(arg0.getName().substring(3).charAt(0)) + (arg0.getName().substring(3).length() > 1 ? arg0.getName().substring(3).substring(1) : \"\")));\n\t\t\t\t\t\tuses(arg0.getParameters());\n\t\t\t\t}\n\t\t\t\tsuper.visit(arg0, arg1);\n\t\t\t}", "long getFlags();", "private int patchAccess(BT_Method bm,BT_InsVector iv,int idx)\n{\n int ctr = 0;\n\n if (patch_type.getPatchLocalAccess() || patch_type.getPatchRemoteAccess()) {\n BT_FieldRefIns fri = (BT_FieldRefIns) iv.elementAt(idx);\n BT_Field fld = fri.getFieldTarget();\n if (fri.opcode == BT_Opcodes.opc_getstatic) {\n\t ctr = patch_type.getInstrumenter().patchStaticAccess(fld,bm,iv,idx);\n }\n else {\n\t ctr = patch_type.getInstrumenter().patchFieldAccess(fld,bm,iv,idx);\n }\n }\n\n patch_delta += ctr;\n\n return ctr;\n}", "private void mappingMethodSet() throws SecurityException, NoSuchMethodException{\n\t\tString aux = upFirstLetter();\n\t\tString methodSet = \"set\" + aux;\n\t\tthis.methodSet = this.classFather.getMethod(methodSet, this.classType);\n\t}", "public int modifiers();", "public interface ApiFlags {\n int GET_SOMETHING = 0;\n int GET_SOMETHING_ELSE = 1;\n }", "public interface ApiFlags {\n int GET_SOMETHING = 0;\n int GET_SOMETHING_ELSE = 1;\n }", "protected abstract MethodDescription accessorMethod();", "private void setFlag(short r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00f2 in method: android.location.GpsClock.setFlag(short):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.location.GpsClock.setFlag(short):void\");\n }", "@FameProperty(name = \"numberOfAccessingMethods\", derived = true)\n public Number getNumberOfAccessingMethods() {\n throw new UnsupportedOperationException(\"Not yet implemented!\"); \n }", "boolean isSetMethod();", "public abstract Set<MethodUsage> getDeclaredMethods();", "public void updateFlags()\n {\n initialize();\n }", "private static boolean getInternalPublicMethods(Class<?> paramClass, Map<Signature, Method> paramMap) {\n/* 143 */ Method[] arrayOfMethod = null;\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ try {\n/* 150 */ if (!Modifier.isPublic(paramClass.getModifiers())) {\n/* 151 */ return false;\n/* */ }\n/* 153 */ if (!ReflectUtil.isPackageAccessible(paramClass)) {\n/* 154 */ return false;\n/* */ }\n/* */ \n/* 157 */ arrayOfMethod = paramClass.getMethods();\n/* 158 */ } catch (SecurityException securityException) {\n/* 159 */ return false;\n/* */ } \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 168 */ boolean bool = true; byte b;\n/* 169 */ for (b = 0; b < arrayOfMethod.length; b++) {\n/* 170 */ Class<?> clazz = arrayOfMethod[b].getDeclaringClass();\n/* 171 */ if (!Modifier.isPublic(clazz.getModifiers())) {\n/* 172 */ bool = false;\n/* */ \n/* */ break;\n/* */ } \n/* */ } \n/* 177 */ if (bool) {\n/* */ \n/* */ \n/* */ \n/* */ \n/* 182 */ for (b = 0; b < arrayOfMethod.length; b++) {\n/* 183 */ addMethod(paramMap, arrayOfMethod[b]);\n/* */ \n/* */ }\n/* */ \n/* */ }\n/* */ else {\n/* */ \n/* 190 */ for (b = 0; b < arrayOfMethod.length; b++) {\n/* 191 */ Class<?> clazz = arrayOfMethod[b].getDeclaringClass();\n/* 192 */ if (paramClass.equals(clazz)) {\n/* 193 */ addMethod(paramMap, arrayOfMethod[b]);\n/* */ }\n/* */ } \n/* */ } \n/* 197 */ return bool;\n/* */ }", "@Override\n\tpublic void setAccessModifier(AccessModifier modifier) {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "int getFlag();", "public void beforeHookedMethod(MethodHookParam methodHookParam) throws Throwable {\n super.beforeHookedMethod(methodHookParam);\n methodHookParam.setResult(AbsSavedState.EMPTY_STATE);\n Field findField = XposedHelpers.findField(View.class, \"mPrivateFlags\");\n findField.set(methodHookParam.thisObject, Integer.valueOf(findField.getInt(methodHookParam.thisObject) | 131072));\n }", "public void setFlagMethodName(String name) {\n m_flagMethodName = name;\n }", "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}", "public void changeMode() {\n methodMode = !methodMode;\n }", "private void mappingMethodGet() throws SecurityException, NoSuchMethodException{\n\t\tString aux = upFirstLetter();\n\t\tString methodGet = \"get\" + aux;\n\t\tthis.methodGet = this.classFather.getMethod(methodGet);\n\t}", "public void testMethodInfo888() throws Exception {\n\t\tClassInfo var2785 = instantiateClassInfo430();\n\t\tFieldInfo var2786 = instantiateFieldInfo429();\n\t\tList<ClassInfo> var2764 = Collections.emptyList();\n\t\tList<ParameterInfo> var2766 = Collections.emptyList();\n\t\tList<LocalVariableInfo> var2767 = Collections.emptyList();\n\t\tList<Operation> var2768 = Collections.emptyList();\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tMethodInfo var2787 = new MethodInfo(var2785, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList());\n\t\tClassInfo var2765 = new ClassInfo(\"super\", false, null, var2764, null);\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2785.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2785.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2785.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tClassInfo var2771 = new ClassInfo(\"super\", false, var2765, var2764,\n\t\t\t\tnull);\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2785.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2785.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2785.getSetters();\n\t\tvar2787.isSetter();\n\t\tvar2787.isSetter();\n\t}", "public void setModifiers(int modifiers);", "Method getMethod(int id, boolean filterObsolete);", "private boolean isFlagSet(short r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00f2 in method: android.location.GpsClock.isFlagSet(short):boolean, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.location.GpsClock.isFlagSet(short):boolean\");\n }", "public MethodVisitor visitMethod(int access, String name, String desc, String signature, String[] exceptions) {\n if (\"size\".equals(name) && \"()I\".equals(desc)) {\n return addWrapperMethod(access, name, desc, signature, exceptions);\n } else if (\"isEmpty\".equals(name) && \"()Z\".equals(desc)) {\n return addWrapperMethod(access, name, desc, signature, exceptions);\n } else if (\"containsValue\".equals(name) && \"(Ljava/lang/Object;)Z\".equals(desc)) {\n return addWrapperMethod(access, name, desc, signature, exceptions);\n }\n\n MethodVisitor mv = super.visitMethod(access, name, desc, signature, exceptions);\n if (\"entrySet\".equals(name) && \"()Ljava/util/Set;\".equals(desc)) {\n return new EntrySetMethodAdapter(mv);\n } else if (\"segmentFor\".equals(name) && \"(I)Ljava/util/concurrent/ConcurrentHashMap$Segment;\".equals(desc)) {\n return rewriteSegmentForMethod(mv);\n } else if (\"get\".equals(name) && \"(Ljava/lang/Object;)Ljava/lang/Object;\".equals(desc)) {\n return new MulticastMethodVisitor(new MethodVisitor[] {\n new OriginalGetMethodAdapter(super.visitMethod(ACC_SYNTHETIC|ACC_PUBLIC, TC_ORIG_GET_METHOD_NAME, TC_ORIG_GET_METHOD_DESC, null, null)),\n new ConcurrentHashMapMethodAdapter(new GetMethodAdapter(mv))});\n }\n \n if (\"put\".equals(name) && \"(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;\".equals(desc)) {\n mv = new MulticastMethodVisitor(new MethodVisitor[] {\n mv,\n new ApplicatorPutMethodAdapter(super.visitMethod(ACC_SYNTHETIC|ACC_PUBLIC, TC_APPLICATOR_PUT_METHOD_NAME, TC_APPLICATOR_PUT_METHOD_DESC, null, null))});\n } else if (\"clear\".equals(name) && \"()V\".equals(desc)) {\n mv = new MulticastMethodVisitor(new MethodVisitor[] {\n mv,\n new ApplicatorClearMethodAdapter(super.visitMethod(ACC_SYNTHETIC|ACC_PUBLIC, TC_APPLICATOR_CLEAR_METHOD_NAME, TC_APPLICATOR_CLEAR_METHOD_DESC, null, null))});\n } else if (\"containsKey\".equals(name) && \"(Ljava/lang/Object;)Z\".equals(desc)) {\n mv = new ContainsKeyMethodAdapter(mv);\n } else if (\"remove\".equals(name) && \"(Ljava/lang/Object;)Ljava/lang/Object;\".equals(desc)) {\n mv = new MulticastMethodVisitor(new MethodVisitor[] {\n new SimpleRemoveMethodAdapter(mv),\n new ApplicatorRemoveMethodAdapter(super.visitMethod(ACC_SYNTHETIC|ACC_PUBLIC, TC_APPLICATOR_REMOVE_METHOD_NAME, TC_APPLICATOR_REMOVE_METHOD_DESC, null, null)),\n new RemoveLogicalMethodAdapter(super.visitMethod(ACC_SYNTHETIC|ACC_PUBLIC, TC_REMOVE_LOGICAL_METHOD_NAME, TC_REMOVE_LOGICAL_METHOD_DESC, null, null))});\n } else if (\"remove\".equals(name) && \"(Ljava/lang/Object;Ljava/lang/Object;)Z\".equals(desc)) {\n mv = new RemoveMethodAdapter(mv);\n } else if (\"replace\".equals(name) && \"(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;\".equals(desc)) {\n mv = new SimpleReplaceMethodAdapter(mv);\n } else if (\"replace\".equals(name) && \"(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Z\".equals(desc)) {\n mv = new ReplaceMethodAdapter(mv);\n } else if (\"writeObject\".equals(name) && \"(Ljava/io/ObjectOutputStream;)V\".equals(desc)) {\n mv = new JavaUtilConcurrentHashMapLazyValuesMethodAdapter(access, desc, mv, false);\n }\n\n return new ConcurrentHashMapMethodAdapter(mv);\n }", "public void setReadWriteOnMyLatestView()\n {\n \t m_acl = \tm_acl | (1<<2);\n }", "public static Collection<FieldAccessFlag> getFlags()\n\t{\n\t\treturn Lists.newArrayList(PUBLIC, PRIVATE, PROTECTED, STATIC, FINAL, VOLATILE, TRANSIENT, ENUM,\n\t\t\tSYNTHETIC);\n\t}", "private void addAccessor(ThreadContext context, String internedName, Visibility visibility, boolean readable, boolean writeable) {\n assert internedName == internedName.intern() : internedName + \" is not interned\";\n \n final Ruby runtime = context.getRuntime();\n \n if (visibility == PRIVATE) {\n //FIXME warning\n } else if (visibility == MODULE_FUNCTION) {\n visibility = PRIVATE;\n // FIXME warning\n }\n final String variableName = (\"@\" + internedName).intern();\n if (readable) {\n addMethod(internedName, new JavaMethodZero(this, visibility, CallConfiguration.FrameNoneScopeNone) {\n private RubyClass.VariableAccessor accessor = RubyClass.VariableAccessor.DUMMY_ACCESSOR;\n public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, String name) {\n IRubyObject variable = (IRubyObject)verifyAccessor(self.getMetaClass().getRealClass()).get(self);\n \n return variable == null ? runtime.getNil() : variable;\n }\n \n private RubyClass.VariableAccessor verifyAccessor(RubyClass cls) {\n RubyClass.VariableAccessor localAccessor = accessor;\n if (localAccessor.getClassId() != cls.hashCode()) {\n localAccessor = cls.getVariableAccessorForRead(variableName);\n accessor = localAccessor;\n }\n return localAccessor;\n }\n });\n callMethod(context, \"method_added\", runtime.fastNewSymbol(internedName));\n }\n if (writeable) {\n internedName = (internedName + \"=\").intern();\n addMethod(internedName, new JavaMethodOne(this, visibility, CallConfiguration.FrameNoneScopeNone) {\n private RubyClass.VariableAccessor accessor = RubyClass.VariableAccessor.DUMMY_ACCESSOR;\n public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, String name, IRubyObject arg1) {\n verifyAccessor(self.getMetaClass().getRealClass()).set(self, arg1);\n return arg1;\n }\n \n private RubyClass.VariableAccessor verifyAccessor(RubyClass cls) {\n RubyClass.VariableAccessor localAccessor = accessor;\n if (localAccessor.getClassId() != cls.hashCode()) {\n localAccessor = cls.getVariableAccessorForWrite(variableName);\n accessor = localAccessor;\n }\n return localAccessor;\n }\n });\n callMethod(context, \"method_added\", runtime.fastNewSymbol(internedName));\n }\n }", "public void setFlags(int param1) {\n }", "private void scanAndCopyMethods() {\n int numMethods = copyShort();\n for (int i = 0; i < numMethods; i++) {\n scanAndCopyAccessFlags();\n copy(4); // name_index, descriptor_index\n int numAttributes = copyShort();\n for (int j = 0; j < numAttributes; j++) {\n // Look for \"Code\" attribute.\n int attrNameIdx = copyShort();\n if (cpIdxIsCode(attrNameIdx)) {\n processCodeAttribute();\n } else {\n copyRestOfAttribute();\n }\n }\n }\n }", "public static void setFlags(int flag){\r\n flags |= flag;\r\n }", "void setAccessible(boolean accessible);", "public static native void OpenMM_AmoebaVdwForce_setAlchemicalMethod(PointerByReference target, int method);", "public void testMethodInfo889() throws Exception {\n\t\tClassInfo var2788 = instantiateClassInfo431();\n\t\tList<ClassInfo> var2764 = Collections.emptyList();\n\t\tList<ParameterInfo> var2766 = Collections.emptyList();\n\t\tList<LocalVariableInfo> var2767 = Collections.emptyList();\n\t\tList<Operation> var2768 = Collections.emptyList();\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tMethodInfo var2789 = new MethodInfo(var2788, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList());\n\t\tClassInfo var2765 = new ClassInfo(\"super\", false, null, var2764, null);\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tClassInfo var2771 = new ClassInfo(\"super\", false, var2765, var2764,\n\t\t\t\tnull);\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2788.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2788.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2788.getSetters();\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2788.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2788.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2788.getSetters();\n\t\tvar2789.isSetter();\n\t\tvar2789.isSetter();\n\t}", "public void method_203() {}", "public interface MethodHandleInfo {\n\n\t/**\n\t * Getter MethodHandle for an instance field\n\t */\n\tstatic final int REF_getField = 1;\n\n\t/**\n\t * Getter MethodHandle for an static field\n\t */\n\tstatic final int REF_getStatic = 2;\n\n\t/**\n\t * Setter MethodHandle for an instance field\n\t */\n\tstatic final int REF_putField = 3;\n\n\t/**\n\t * Setter MethodHandle for an static field\n\t */\n\tstatic final int REF_putStatic = 4;\n\n\t/**\n\t * MethodHandle for an instance method\n\t */\n\tstatic final int REF_invokeVirtual = 5;\n\n\t/**\n\t * MethodHandle for a static method\n\t */\n\tstatic final int REF_invokeStatic = 6;\n\n\t/**\n\t * MethodHandle for an special method\n\t */\n\tstatic final int REF_invokeSpecial = 7;\n\n\t/**\n\t * MethodHandle for a constructor\n\t */\n\tstatic final int REF_newInvokeSpecial = 8;\n\n\t/**\n\t * MethodHandle for an interface method\n\t */\n\tstatic final int REF_invokeInterface = 9;\n\n\t/**\n\t * Returns the Class where the cracked MethodHandle's underlying method, field or constructor is declared.\n\t *\n\t * @return class that declares the underlying member\n\t */\n\tClass<?> getDeclaringClass();\n\n\t/**\n\t * Returns the simple name of the MethodHandle's underlying member.\n\t *\n\t * @return A string representing the name of the method or field, or \"&lt;init&gt;\" for constructor.\n\t */\n\tString getName();\n\n\t/**\n\t * Returns the type of the MethodHandle's underlying member as a MethodType.\n\t * If the underlying member is non-static, the receiver parameter will not be included.\n\t * If the underlying member is field getter, the MethodType will take no parameters, and the return type will be the field type.\n\t * If the underlying member is field setter, the MethodType will take one parameter of the field type, and the return type will be void.\n\t *\n\t * @return A MethodType object representing the signature of the method or field\n\t */\n\tMethodType getMethodType();\n\n\t/**\n\t * Returns the modifiers of the MethodHandle's underlying member.\n\t *\n\t * @return An int representing the member's modifiers, or -1 if the underlying member is not accessible.\n\t */\n\tint getModifiers();\n\n\t/**\n\t * Returns the reference kind of the MethodHandle. The possible reference kinds are the declared MethodHandleInfo.REF fields.\n\t *\n\t * @return Returns one of the defined reference kinds which represent the MethodHandle kind.\n\t */\n\tint getReferenceKind();\n\n\t/**\n\t * Returns whether the MethodHandle's underlying method or constructor has variable argument arity.\n\t *\n\t * @return whether the underlying method has variable arity\n\t */\n\tdefault boolean isVarArgs() {\n\t\t// Check whether the MethodHandle refers to a Method or Contructor (not Field)\n\t\tif (getReferenceKind() >= REF_invokeVirtual) {\n\t\t\treturn ((getModifiers() & MethodHandles.Lookup.VARARGS) != 0);\n\t\t}\n\t\treturn false;\n\t}\n\n\t/**\n\t * Reflects the underlying member as a Method, Field or Constructor. The member must be accessible to the provided lookup object.\n\t * Public members are reflected as if by <code>getMethod</code>, <code>getField</code> or <code>getConstructor</code>.\n\t * Non-public members are reflected as if by <code>getDeclearedMethod</code>, <code>getDeclaredField</code> or <code>getDeclaredConstructor</code>.\n\t *\n\t * @param expected The expected type of the returned Member\n\t * @param lookup The lookup that was used to create the MethodHandle, or a lookup object with equivalent access\n\t * @return A Method, Field or Constructor representing the underlying member of the MethodHandle\n\t * @throws NullPointerException If either argument is null\n\t * @throws IllegalArgumentException If the underlying member is not accessible to the provided lookup object\n\t * @throws ClassCastException If the underlying member is not of the expected type\n\t */\n\t<T extends java.lang.reflect.Member> T reflectAs(Class<T> expected, MethodHandles.Lookup lookup);\n\n\t/**\n\t * Returns a string representing the equivalent bytecode for the referenceKind.\n\t *\n\t * @param referenceKind The referenceKind to lookup\n\t * @return a String representing the equivalent bytecode\n\t * @throws IllegalArgumentException If the provided referenceKind is invalid\n\t */\n\tstatic String referenceKindToString(int referenceKind) throws IllegalArgumentException {\n\t\tswitch(referenceKind) {\n\t\tcase REF_getField: \t\t\treturn \"getField\"; //$NON-NLS-1$\n\t\tcase REF_getStatic: \t\treturn \"getStatic\"; //$NON-NLS-1$\n\t\tcase REF_putField: \t\t\treturn \"putField\"; //$NON-NLS-1$\n\t\tcase REF_putStatic: \t\treturn \"putStatic\"; //$NON-NLS-1$\n\t\tcase REF_invokeVirtual: \treturn \"invokeVirtual\"; //$NON-NLS-1$\n\t\tcase REF_invokeStatic: \t\treturn \"invokeStatic\"; //$NON-NLS-1$\n\t\tcase REF_invokeSpecial: \treturn \"invokeSpecial\"; //$NON-NLS-1$\n\t\tcase REF_newInvokeSpecial: \treturn \"newInvokeSpecial\"; //$NON-NLS-1$\n\t\tcase REF_invokeInterface: \treturn \"invokeInterface\"; //$NON-NLS-1$\n\t\t}\n\t\t// K0582 = Reference kind \"{0\"} is invalid\n\t\tthrow new IllegalArgumentException(com.ibm.oti.util.Msg.getString(\"K0582\", referenceKind)); //$NON-NLS-1$\n\t}\n\n\t/**\n\t * Answers a string containing a concise, human-readable description of the receiver.\n\t *\n\t * @param kind the reference kind, one of the declared MethodHandleInfo.REF fields.\n\t * @param defc the class where the member is declared\n\t * @param name the name of the member\n\t * @param type the member's MethodType\n\t * @return a String of the format \"K C.N:MT\"\n\t */\n\tstatic String toString(int kind, Class<?> defc, String name, MethodType type) {\n\t\treturn referenceKindToString(kind) + \" \" + defc.getName() + \".\" + name + \":\" + type; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$\n\t}\n\n}", "public void andThisIsAMethodName(){}", "String getAccess();", "String getAccess();", "@Override\n\tpublic int getFlags() {\n\t\treturn heldObj.getFlags();\n\t}", "private Method getPrivateMethodFromAtrManager(String methodName, Class<?>... argClasses) throws Exception {\n\t\tMethod method = AttributesManagerBlImpl.class.getDeclaredMethod(methodName, argClasses);\n\t\tmethod.setAccessible(true);\n\t\treturn method;\n\t}", "public String getAccess();", "public void testMethodInfo886() throws Exception {\n\t\tClassInfo var2776 = instantiateClassInfo426();\n\t\tLocalField var2777 = instantiateLocalField425();\n\t\tList<ClassInfo> var2764 = Collections.emptyList();\n\t\tList<ParameterInfo> var2766 = Collections.emptyList();\n\t\tList<LocalVariableInfo> var2767 = Collections.emptyList();\n\t\tList<Operation> var2768 = Collections.emptyList();\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tMethodInfo var2778 = new MethodInfo(var2776, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList());\n\t\tvar2777.getDescription();\n\t\tvar2777.getDescription();\n\t\tClassInfo var2765 = new ClassInfo(\"super\", false, null, var2764, null);\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tClassInfo var2771 = new ClassInfo(\"super\", false, var2765, var2764,\n\t\t\t\tnull);\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2776.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2776.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2776.getSetters();\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2776.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2776.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2776.getSetters();\n\t\tvar2778.isSetter();\n\t\tvar2778.isSetter();\n\t}", "@Override\n public MethodDescriptor[] getMethodDescriptors() {\n return getMdescriptor();\n }", "private RubyArray instance_methods(IRubyObject[] args, final Visibility visibility, boolean not, boolean useSymbols) {\n boolean includeSuper = args.length > 0 ? args[0].isTrue() : true;\n Ruby runtime = getRuntime();\n RubyArray ary = runtime.newArray();\n Set<String> seen = new HashSet<String>();\n \n populateInstanceMethodNames(seen, ary, visibility, not, useSymbols, includeSuper);\n \n return ary;\n }", "public void testMethodInfo887() throws Exception {\n\t\tClassInfo var2782 = instantiateClassInfo428();\n\t\tLocalField var2783 = instantiateLocalField427();\n\t\tList<ClassInfo> var2764 = Collections.emptyList();\n\t\tList<ParameterInfo> var2766 = Collections.emptyList();\n\t\tList<LocalVariableInfo> var2767 = Collections.emptyList();\n\t\tList<Operation> var2768 = Collections.emptyList();\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tMethodInfo var2784 = new MethodInfo(var2782, \"voidX()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList());\n\t\tvar2783.getDescription();\n\t\tvar2783.getDescription();\n\t\tClassInfo var2765 = new ClassInfo(\"super\", false, null, var2764, null);\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tClassInfo var2771 = new ClassInfo(\"super\", false, var2765, var2764,\n\t\t\t\tnull);\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2782.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2782.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2782.getSetters();\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2782.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2782.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2782.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2784.isSetter();\n\t\tvar2784.isSetter();\n\t}", "public String methodBase() {\n\t\tString tmp = name;\n\t\ttmp = tmp.replaceFirst(\"^get\", \"\");\n\t\ttmp = tmp.replaceFirst(\"^is\", \"\");\n\t\treturn tmp.substring(0,1).toLowerCase()+tmp.substring(1);\n\t}", "public int getModifiers() {\n return mod;\n }", "MethodName getMethod();", "boolean isAccessed (ClassMember attr) {\r\n if (accessed_attributes == null) {\r\n accessed_attributes = new java.util.Vector ();\r\n } else if (accessed_attributes.contains (attr)) {\r\n return true;\r\n } \r\n\r\n accessed_attributes.addElement (attr);\r\n return false;\r\n }", "protected void updateFlags() {\n USE_CANNY = USE_CANNY && mainInterface.DEBUG_FRAME;\n DEBUG_PREP_FRAME = DEBUG_PREP_FRAME && mainInterface.DEBUG_FRAME;\n DEBUG_CONTOURS = DEBUG_CONTOURS && mainInterface.DEBUG_FRAME;\n DEBUG_POLY = DEBUG_POLY && mainInterface.DEBUG_FRAME;\n DEBUG_DRAW_MARKERS = DEBUG_DRAW_MARKERS && mainInterface.DEBUG_FRAME;\n DEBUG_DRAW_MARKER_ID = DEBUG_DRAW_MARKER_ID && mainInterface.DEBUG_FRAME;\n DEBUG_DRAW_SAMPLING = DEBUG_DRAW_SAMPLING && mainInterface.DEBUG_FRAME;\n }", "private void resetFlag(short r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00f2 in method: android.location.GpsClock.resetFlag(short):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.location.GpsClock.resetFlag(short):void\");\n }", "public GetterSetterInliner(CodeAttrInfoEditor codeAttrInfoEditor,\n boolean allowAccessModification)\n {\n this.codeAttrInfoEditor = codeAttrInfoEditor;\n this.allowAccessModification = allowAccessModification;\n }", "public static boolean canAccessFieldsDirectly(){\n return false; //TODO codavaj!!\n }", "public synchronized void setFlags(Flags newFlags, boolean set) throws MessagingException {\n/* 91 */ Flags oldFlags = (Flags)this.flags.clone();\n/* 92 */ super.setFlags(newFlags, set);\n/* 93 */ if (!this.flags.equals(oldFlags)) {\n/* 94 */ this.folder.notifyMessageChangedListeners(1, (Message)this);\n/* */ }\n/* */ }", "protected final boolean isMutable() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: android.icu.impl.coll.CollationDataBuilder.isMutable():boolean, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.icu.impl.coll.CollationDataBuilder.isMutable():boolean\");\n }", "Method getMethod();", "Method getMethod();", "public void setImportantForAccessibility(boolean important) {\n/* 1316 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public MethodPredicate withModifiers(int... modifiers) {\n this.withModifiers = Arrays.stream(modifiers).boxed().collect(Collectors.toList());\n return this;\n }", "@Override\n\t\t\tpublic MethodVisitor visitMethod(int access, String name, String desc, String signature, String[] exceptions) {\n\t\t\t\tboolean isSynthetic = ClassInfoUtils.checkAccess(access, Opcodes.ACC_SYNTHETIC);\n\t\t\t\tboolean isNative = ClassInfoUtils.checkAccess(access, Opcodes.ACC_NATIVE);\n\t\t\t\tboolean isInterface = ClassInfoUtils.checkAccess(access, Opcodes.ACC_INTERFACE);\n\t\t\t\tboolean isAbstract = ClassInfoUtils.checkAccess(access, Opcodes.ACC_ABSTRACT);\n\t\t\t\t\n\t\t\t\tMethodVisitor mv = super.visitMethod(access, name, desc, signature, exceptions);\n\t\t\t\tif (name.equals(\"toString\") && desc.equals(\"()Ljava/lang/String;\")) {\n\t\t\t\t\treturn mv;\n\t\t\t\t} else if (name.equals(\"equals\") && desc.equals(\"(Ljava/lang/Object;)Z\")) {\n\t\t\t\t\treturn mv;\n\t\t\t\t} else if (name.equals(\"hashCode\") && desc.equals(\"()I\")) {\n\t\t\t\t\treturn mv;\n\t\t\t\t} else if (isSynthetic || isNative || isInterface || isAbstract) {\n\t\t\t\t\treturn mv;\n\t\t\t\t} else {\n\t\t\t\t\tmv = new DependencyAnalyzer(className, \n\t\t\t\t\t\t\taccess, \n\t\t\t\t\t\t\tname, \n\t\t\t\t\t\t\tdesc, \n\t\t\t\t\t\t\tsignature, \n\t\t\t\t\t\t\texceptions, \n\t\t\t\t\t\t\tmv, \n\t\t\t\t\t\t\ttrue,\n\t\t\t\t\t\t\tfalse, \n\t\t\t\t\t\t\ttrue, \n\t\t\t\t\t\t\ttrue);\n\t\t\t\t\t//mv = new CalleeAnalyzer(className, access, name, desc, signature, exceptions, mv, true);\n\t\t\t\t\treturn mv;\n\t\t\t\t}\n\t\t\t}", "@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 13:02:04.534 -0500\", hash_original_method = \"E4DEB0C107DDB25A537EF0E89F1C04F8\", hash_generated_method = \"2E76AFD8C90588F5139C0C2D28CAEA05\")\n \nprivate static int translateCodingErrorAction(CodingErrorAction action) {\n if (action == CodingErrorAction.REPORT) {\n return 0;\n } else if (action == CodingErrorAction.IGNORE) {\n return 1;\n } else if (action == CodingErrorAction.REPLACE) {\n return 2;\n } else {\n throw new AssertionError(); // Someone changed the enum.\n }\n }", "private boolean makeFieldAccessible(Field f)\n {\n // See: https://stackoverflow.com/questions/46454995/#58834966\n Method getModule;\n try\n {\n getModule = Class.class.getMethod(\"getModule\");\n }\n catch (NoSuchMethodException e)\n {\n // We are on Java 8\n getModule = null;\n }\n if (getModule != null)\n {\n try\n {\n Object thisModule = getModule.invoke(this.getClass());\n Method isNamed = thisModule.getClass().getMethod(\"isNamed\");\n if (!(boolean) isNamed.invoke(thisModule))\n {\n Class fieldClass = f.getDeclaringClass().getClass();\n Object fieldModule = getModule.invoke(fieldClass);\n Method addOpens = fieldModule.getClass().getMethod(\n \"addOpens\", String.class, thisModule.getClass());\n Method getPackageName = fieldClass.getMethod(\"getPackageName\");\n addOpens.invoke(fieldModule, getPackageName.invoke(fieldClass), thisModule);\n }\n }\n catch (Throwable t)\n {\n if (t instanceof InvocationTargetException)\n {\n InvocationTargetException e = (InvocationTargetException) t;\n if (e.getCause() != null\n && e.getCause().getClass().getName().endsWith(\"IllegalCallerException\"))\n {\n if (outputLogger != null)\n {\n outputLogger.debug(\n PROCESS_ATTRIBUTE_CHANGE_MESSAGE + e.getCause().getMessage(),\n this.getClass().getName());\n }\n t = null;\n }\n }\n if (t != null)\n {\n throw new CargoException(\"Cannot set field accessibility for [\" + f + \"]\", t);\n }\n return false;\n }\n }\n try\n {\n f.setAccessible(true);\n return true;\n }\n catch (Throwable t)\n {\n if (t.getClass().getName().endsWith(\"InaccessibleObjectException\"))\n {\n if (outputLogger != null)\n {\n outputLogger.debug(\n PROCESS_ATTRIBUTE_CHANGE_MESSAGE + t.getMessage(),\n this.getClass().getName());\n }\n t = null;\n }\n if (t != null)\n {\n throw new CargoException(\"Cannot set field accessibility for [\" + f + \"]\", t);\n }\n return false;\n }\n }", "Builder addAccessibilityFeature(String value);", "public Method getMethod();", "Methodsig getMethod();", "public short getFlags() {\n\treturn flags;\n }", "public boolean isPropertyAccessorMethod(Method paramMethod, Class paramClass) {\n/* 225 */ String str1 = paramMethod.getName();\n/* 226 */ Class<?> clazz = paramMethod.getReturnType();\n/* 227 */ Class[] arrayOfClass1 = paramMethod.getParameterTypes();\n/* 228 */ Class[] arrayOfClass2 = paramMethod.getExceptionTypes();\n/* 229 */ String str2 = null;\n/* */ \n/* 231 */ if (str1.startsWith(\"get\")) {\n/* */ \n/* 233 */ if (arrayOfClass1.length == 0 && clazz != void.class && \n/* 234 */ !readHasCorrespondingIsProperty(paramMethod, paramClass)) {\n/* 235 */ str2 = \"get\";\n/* */ }\n/* */ }\n/* 238 */ else if (str1.startsWith(\"set\")) {\n/* */ \n/* 240 */ if (clazz == void.class && arrayOfClass1.length == 1 && (\n/* 241 */ hasCorrespondingReadProperty(paramMethod, paramClass, \"get\") || \n/* 242 */ hasCorrespondingReadProperty(paramMethod, paramClass, \"is\"))) {\n/* 243 */ str2 = \"set\";\n/* */ \n/* */ }\n/* */ }\n/* 247 */ else if (str1.startsWith(\"is\") && \n/* 248 */ arrayOfClass1.length == 0 && clazz == boolean.class && \n/* 249 */ !isHasCorrespondingReadProperty(paramMethod, paramClass)) {\n/* 250 */ str2 = \"is\";\n/* */ } \n/* */ \n/* */ \n/* */ \n/* 255 */ if (str2 != null && (\n/* 256 */ !validPropertyExceptions(paramMethod) || str1\n/* 257 */ .length() <= str2.length())) {\n/* 258 */ str2 = null;\n/* */ }\n/* */ \n/* */ \n/* 262 */ return (str2 != null);\n/* */ }", "public void setAllowedMethods(Method... allowed)\n\t{\n\t\tStringBuilder s = new StringBuilder();\n\t\tfor (int i = 0; i < allowed.length; i++)\n\t\t{\n\t\t\tif (i != 0)\n\t\t\t\ts.append(\", \");\n\t\t\ts.append(allowed[i]);\n\t\t}\n\t\t\n\t\tsetHeader(ALLOW, s.toString());\n\t}", "public int getAccess()\n {\n ensureLoaded();\n return m_flags.getAccess();\n }", "String getMethod();", "String getMethod();", "public void setDeclared(int r1, boolean r2) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: org.xml.sax.ext.Attributes2Impl.setDeclared(int, boolean):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: org.xml.sax.ext.Attributes2Impl.setDeclared(int, boolean):void\");\n }", "@Override\n\tpublic MethodVisitor visitMethod(int access, String name, String desc, String signature, String[] exceptions) {\n\t\tparsingMethod = new Method(name, desc, parsingClass);\n\t\tparsingClass.getMethods().add(parsingMethod);\n\t\treturn completeMethodVisitor;\n\t}", "public interface MethodInfo {\n\t/**\n\t * Returns the class which declared the method.\n\t */\n\tpublic ClassInfo declaringClass();\n\n\t/**\n\t * Returns the index into the constant pool of the name of the method.\n\t */\n\tpublic int nameIndex();\n\n\t/**\n\t * Returns the index into the constant pool of the type of the method.\n\t */\n\tpublic int typeIndex();\n\n\t/**\n\t * Sets the index into the constant pool of the name of the method.\n\t */\n\tpublic void setNameIndex(int index);\n\n\t/**\n\t * Set the index into the constant pool of the type of the method.\n\t * \n\t * @param index\n\t * The index into the constant pool of the type of the method.\n\t */\n\tpublic void setTypeIndex(int index);\n\n\t/**\n\t * Set the modifiers of the method. The values correspond to the constants\n\t * in the Modifiers class.\n\t * \n\t * @param modifiers\n\t * A bit vector of modifier flags for the method.\n\t * @see Modifiers\n\t */\n\tpublic void setModifiers(int modifiers);\n\n\t/**\n\t * Get the modifiers of the method. The values correspond to the constants\n\t * in the Modifiers class.\n\t * \n\t * @return A bit vector of modifier flags for the method.\n\t * @see Modifiers\n\t */\n\tpublic int modifiers();\n\n\t/**\n\t * Get the indices into the constant pool of the types of the exceptions\n\t * thrown by the method.\n\t * \n\t * @return The indices into the constant pool of the types of the exceptions\n\t * thrown by the method.\n\t */\n\tpublic int[] exceptionTypes();\n\n\t/**\n\t * Get the maximum height of the operand stack.\n\t * \n\t * @return The maximum height of the operand stack.\n\t */\n\tpublic int maxStack();\n\n\t/**\n\t * Set the maximum height of the operand stack.\n\t * \n\t * @param maxStack\n\t * The maximum height of the operand stack.\n\t */\n\tpublic void setMaxStack(int maxStack);\n\n\t/**\n\t * Get the maximum number of locals used in the method.\n\t * \n\t * @return The maximum number of locals used in the method.\n\t */\n\tpublic int maxLocals();\n\n\t/**\n\t * Set the maximum number of locals used in the method.\n\t * \n\t * @param maxLocals\n\t * The maximum number of locals used in the method.\n\t */\n\tpublic void setMaxLocals(int maxLocals);\n\n\t/**\n\t * Get the byte code array of the method.\n\t * \n\t * @return The byte code array of the method.\n\t */\n\tpublic byte[] code();\n\n\t/**\n\t * Set the byte code array of the method.\n\t * \n\t * @param code\n\t * The byte code array of the method.\n\t */\n\tpublic void setCode(byte[] code);\n\n\t/**\n\t * Get the line number debug info of the instructions in the method.\n\t * \n\t * @return The line numbers of the instructions in the method. The array\n\t * will be of size 0 if the method has no line number debug info.\n\t */\n\tpublic LineNumberDebugInfo[] lineNumbers();\n\n\t/**\n\t * Set the line number debug info of the instructions in the method.\n\t * \n\t * @param lineNumbers\n\t * The line numbers of the instructions in the method. The array\n\t * will be of size 0 if the method has no line number debug info.\n\t */\n\tpublic void setLineNumbers(LineNumberDebugInfo[] lineNumbers);\n\n\t/**\n\t * Get the local variable debug information for the method.\n\t * \n\t * @return The local variables in the method. The array will be of size 0 if\n\t * the method has no local variable debug info.\n\t */\n\tpublic LocalDebugInfo[] locals();\n\n\t/**\n\t * Set the local variables in the method.\n\t * \n\t * @param locals\n\t * The local variables in the method.\n\t */\n\tpublic void setLocals(LocalDebugInfo[] locals);\n\n\t/**\n\t * Get the exception handlers in the method.\n\t * \n\t * @return The exception handlers in the method.\n\t */\n\tpublic Catch[] exceptionHandlers();\n\n\t/**\n\t * Set the exception handlers in the method.\n\t * \n\t * @param exceptions\n\t * The exception handlers in the method.\n\t */\n\tpublic void setExceptionHandlers(Catch[] exceptions);\n\n\t/**\n\t * Creates a clone of this <tt>MethodInfo</tt> except that its declaring\n\t * class does not know about it.\n\t */\n\tpublic Object clone();\n}", "public final native void setFlags(int value) /*-{\n\t\tvar jso = [email protected]::getJsObj()();\n\t\tjso.flags = value;\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}", "public void setModifierFlag(int flag) {\n\t\tthis.modifier = flag;\n\t}", "public void setFlags(final Flags flags);", "public int getFlags() {\n return flags;\n }", "public List<MethodInfo> getMethods() { \n return lstMethodInfo;\n }", "private void checkMethodPermission(HandlerMethod handlerMethod) {\n RequirePermission annotation = handlerMethod.getMethodAnnotation(RequirePermission.class);\n String str = annotation.value();\n System.out.println(\"-----+++++++\");\n }", "public void testCreateMethodWithModifiersAndExceptions() {\n IDOMMethod method = this.domFactory.createMethod();\n method.setName(\"foo\");\n method.setFlags(ClassFileConstants.AccPrivate);\n method.setExceptions(new String[] { \"java.lang.IllegalArgumentException\", \"java.io.FileNotFoundExcpetion\" });\n assertSourceEquals(\"source code incorrect\", \"private void foo() throws java.lang.IllegalArgumentException, java.io.FileNotFoundExcpetion {\\n\" + \"}\\n\", method.getContents());\n }", "public interface C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }", "public boolean visit(MethodDeclaration decl, ClassScope scope) {\r\n\t\t\tif (decl instanceof InterTypeFieldDeclaration) \r\n\t\t\t\tvalue -= 2;\r\n\r\n\t\t\treturn super.visit(decl, scope);\r\n\t\t}", "private void resetFlags(){\n\t\tint count = 0;\n\t\tif (partOfAPairedAlignment) count += Math.pow(2, 0);\n\t\tif (aProperPairedAlignment) count += Math.pow(2, 1);\n\t\tif (unmapped) count += Math.pow(2, 2);\n\t\tif (mateUnMapped) count += Math.pow(2, 3);\n\t\tif (reverseStrand) count += Math.pow(2, 4);\n\t\tif (mateReverseStrand) count += Math.pow(2, 5);\n\t\tif (firstPair) count += Math.pow(2, 6);\n\t\tif (secondPair) count += Math.pow(2, 7);\n\t\tif (notAPrimaryAlignment) count += Math.pow(2, 8);\n\t\tif (failedQC) count += Math.pow(2, 9);\n\t\tif (aDuplicate) count += Math.pow(2, 10);\n\t\tflags = (short) count;\n\t\tflagResetNeeded = false;\n\t\t\n\t}", "private void mappingMethods() throws SecurityException, NoSuchMethodException{\n\t\tmappingMethodGet();\n\t\tmappingMethodSet();\n\t}", "private void setBooleanFlags (short flags){\n\t\tthis.flags = flags;\n\t\tflagResetNeeded = false;\n\t\tpartOfAPairedAlignment = isPartOfAPairedAlignment();\n\t\taProperPairedAlignment = isAProperPairedAlignment();\n\t\tunmapped = isUnmapped();\n\t\tmateUnMapped = isMateUnMapped();\n\t\treverseStrand = isReverseStrand();\n\t\tmateReverseStrand = isMateReverseStrand();\n\t\tfirstPair = isFirstPair();\n\t\tsecondPair = isSecondPair();\n\t\tnotAPrimaryAlignment = isNotAPrimaryAlignment();\n\t\tfailedQC = failedQC();\n\t\taDuplicate = isADuplicate();\n\t\t\n\t}" ]
[ "0.6459756", "0.61941135", "0.6124305", "0.6054357", "0.6038953", "0.6038953", "0.58764786", "0.58633894", "0.586231", "0.586231", "0.58388376", "0.5695067", "0.5662682", "0.5656152", "0.56525016", "0.5636611", "0.5633119", "0.560779", "0.560779", "0.55963707", "0.5585593", "0.5527335", "0.55259675", "0.55178744", "0.5497699", "0.5462038", "0.5460664", "0.54553145", "0.54315555", "0.5428095", "0.5423939", "0.5423252", "0.5405602", "0.5403003", "0.5399762", "0.5359158", "0.5347791", "0.5321582", "0.5317954", "0.53177696", "0.53112406", "0.5308062", "0.53007996", "0.5287687", "0.52810687", "0.5266063", "0.5265689", "0.52653694", "0.5262753", "0.52625436", "0.5258052", "0.5258052", "0.52249104", "0.52223516", "0.52184665", "0.52071375", "0.5204527", "0.5204301", "0.5195871", "0.51853406", "0.5169663", "0.51661706", "0.5161185", "0.51575136", "0.51456904", "0.5145592", "0.51448935", "0.51339334", "0.5129795", "0.51288617", "0.51288617", "0.51249367", "0.51229906", "0.51223254", "0.51202285", "0.5116746", "0.5112507", "0.51069206", "0.5106849", "0.5105911", "0.5099613", "0.50912666", "0.5082884", "0.5078926", "0.5078926", "0.5075503", "0.507498", "0.5074663", "0.50737566", "0.5067883", "0.50673777", "0.5066441", "0.50620204", "0.5058641", "0.50536793", "0.50520235", "0.50424683", "0.50392544", "0.5032849", "0.50326675", "0.5027472" ]
0.0
-1
Manipulate the method access flags.
public boolean isNative() { return (getAccessFlags() & Constants.ACCESS_NATIVE) > 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void checkAccessModifier(Method method);", "public abstract int flags();", "private void writeMethodModifiers(Method m) {\n int mod = m.getModifiers();\n mod &= ~Modifier.ABSTRACT;\n mod &= ~Modifier.TRANSIENT;\n writer.print(Modifier.toString(mod) + \" \");\n }", "public int getAccessFlags() {\n return access_flags;\n }", "public int getFlags();", "public int getFlags();", "public long getFlags() {\n }", "public void testCreateMethodWithModifiers() {\n IDOMMethod method = this.domFactory.createMethod();\n method.setName(\"foo\");\n method.setFlags(ClassFileConstants.AccPublic | ClassFileConstants.AccStatic);\n assertSourceEquals(\"source code incorrect\", \"public static void foo() {\\n\" + \"}\\n\", method.getContents());\n }", "int getModifiers();", "int getModifiers();", "public Set<Method> getMethods() {\r\n \t\t// We will only consider private methods in the declared class\r\n \t\tif (forceAccess)\r\n \t\t\treturn setUnion(source.getDeclaredMethods(), source.getMethods());\r\n \t\telse\r\n \t\t\treturn setUnion(source.getMethods());\r\n \t}", "JApiModifier<AccessModifier> getAccessModifier();", "@Override\n\t\t\tpublic void visit(MethodDeclaration arg0, Object arg1) {\n\t\t\t\tif((arg0.getModifiers() & Modifier.PUBLIC) == Modifier.PUBLIC) {\n\t\t\t\t\t\tif(arg0.getName().substring(0, 3) == \"get\" || arg0.getName().substring(0, 3) == \"set\")\n\t\t\t\t\t\t\tpublicAcces.add(new Pair(arg0.getName() + \"( \"+planeL(arg0.getParameters()) +\") :\" + arg0.getType().toString(), Character.toLowerCase(arg0.getName().substring(3).charAt(0)) + (arg0.getName().substring(3).length() > 1 ? arg0.getName().substring(3).substring(1) : \"\")));\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tpublicAcces.add(new Pair(arg0.getName() + \"( \"+planeL(arg0.getParameters()) +\") :\" + arg0.getType().toString(), Character.toLowerCase(arg0.getName().substring(3).charAt(0)) + (arg0.getName().substring(3).length() > 1 ? arg0.getName().substring(3).substring(1) : \"\")));\n\t\t\t\t\t\tuses(arg0.getParameters());\n\t\t\t\t}\n\t\t\t\tsuper.visit(arg0, arg1);\n\t\t\t}", "long getFlags();", "private int patchAccess(BT_Method bm,BT_InsVector iv,int idx)\n{\n int ctr = 0;\n\n if (patch_type.getPatchLocalAccess() || patch_type.getPatchRemoteAccess()) {\n BT_FieldRefIns fri = (BT_FieldRefIns) iv.elementAt(idx);\n BT_Field fld = fri.getFieldTarget();\n if (fri.opcode == BT_Opcodes.opc_getstatic) {\n\t ctr = patch_type.getInstrumenter().patchStaticAccess(fld,bm,iv,idx);\n }\n else {\n\t ctr = patch_type.getInstrumenter().patchFieldAccess(fld,bm,iv,idx);\n }\n }\n\n patch_delta += ctr;\n\n return ctr;\n}", "private void mappingMethodSet() throws SecurityException, NoSuchMethodException{\n\t\tString aux = upFirstLetter();\n\t\tString methodSet = \"set\" + aux;\n\t\tthis.methodSet = this.classFather.getMethod(methodSet, this.classType);\n\t}", "public int modifiers();", "public interface ApiFlags {\n int GET_SOMETHING = 0;\n int GET_SOMETHING_ELSE = 1;\n }", "public interface ApiFlags {\n int GET_SOMETHING = 0;\n int GET_SOMETHING_ELSE = 1;\n }", "protected abstract MethodDescription accessorMethod();", "private void setFlag(short r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00f2 in method: android.location.GpsClock.setFlag(short):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.location.GpsClock.setFlag(short):void\");\n }", "@FameProperty(name = \"numberOfAccessingMethods\", derived = true)\n public Number getNumberOfAccessingMethods() {\n throw new UnsupportedOperationException(\"Not yet implemented!\"); \n }", "boolean isSetMethod();", "public abstract Set<MethodUsage> getDeclaredMethods();", "public void updateFlags()\n {\n initialize();\n }", "private static boolean getInternalPublicMethods(Class<?> paramClass, Map<Signature, Method> paramMap) {\n/* 143 */ Method[] arrayOfMethod = null;\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ try {\n/* 150 */ if (!Modifier.isPublic(paramClass.getModifiers())) {\n/* 151 */ return false;\n/* */ }\n/* 153 */ if (!ReflectUtil.isPackageAccessible(paramClass)) {\n/* 154 */ return false;\n/* */ }\n/* */ \n/* 157 */ arrayOfMethod = paramClass.getMethods();\n/* 158 */ } catch (SecurityException securityException) {\n/* 159 */ return false;\n/* */ } \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 168 */ boolean bool = true; byte b;\n/* 169 */ for (b = 0; b < arrayOfMethod.length; b++) {\n/* 170 */ Class<?> clazz = arrayOfMethod[b].getDeclaringClass();\n/* 171 */ if (!Modifier.isPublic(clazz.getModifiers())) {\n/* 172 */ bool = false;\n/* */ \n/* */ break;\n/* */ } \n/* */ } \n/* 177 */ if (bool) {\n/* */ \n/* */ \n/* */ \n/* */ \n/* 182 */ for (b = 0; b < arrayOfMethod.length; b++) {\n/* 183 */ addMethod(paramMap, arrayOfMethod[b]);\n/* */ \n/* */ }\n/* */ \n/* */ }\n/* */ else {\n/* */ \n/* 190 */ for (b = 0; b < arrayOfMethod.length; b++) {\n/* 191 */ Class<?> clazz = arrayOfMethod[b].getDeclaringClass();\n/* 192 */ if (paramClass.equals(clazz)) {\n/* 193 */ addMethod(paramMap, arrayOfMethod[b]);\n/* */ }\n/* */ } \n/* */ } \n/* 197 */ return bool;\n/* */ }", "@Override\n\tpublic void setAccessModifier(AccessModifier modifier) {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "int getFlag();", "public void beforeHookedMethod(MethodHookParam methodHookParam) throws Throwable {\n super.beforeHookedMethod(methodHookParam);\n methodHookParam.setResult(AbsSavedState.EMPTY_STATE);\n Field findField = XposedHelpers.findField(View.class, \"mPrivateFlags\");\n findField.set(methodHookParam.thisObject, Integer.valueOf(findField.getInt(methodHookParam.thisObject) | 131072));\n }", "public void setFlagMethodName(String name) {\n m_flagMethodName = name;\n }", "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}", "public void changeMode() {\n methodMode = !methodMode;\n }", "private void mappingMethodGet() throws SecurityException, NoSuchMethodException{\n\t\tString aux = upFirstLetter();\n\t\tString methodGet = \"get\" + aux;\n\t\tthis.methodGet = this.classFather.getMethod(methodGet);\n\t}", "public void testMethodInfo888() throws Exception {\n\t\tClassInfo var2785 = instantiateClassInfo430();\n\t\tFieldInfo var2786 = instantiateFieldInfo429();\n\t\tList<ClassInfo> var2764 = Collections.emptyList();\n\t\tList<ParameterInfo> var2766 = Collections.emptyList();\n\t\tList<LocalVariableInfo> var2767 = Collections.emptyList();\n\t\tList<Operation> var2768 = Collections.emptyList();\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tMethodInfo var2787 = new MethodInfo(var2785, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList());\n\t\tClassInfo var2765 = new ClassInfo(\"super\", false, null, var2764, null);\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2785.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2785.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2785.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tClassInfo var2771 = new ClassInfo(\"super\", false, var2765, var2764,\n\t\t\t\tnull);\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2785.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2785.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2785.getSetters();\n\t\tvar2787.isSetter();\n\t\tvar2787.isSetter();\n\t}", "public void setModifiers(int modifiers);", "Method getMethod(int id, boolean filterObsolete);", "private boolean isFlagSet(short r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00f2 in method: android.location.GpsClock.isFlagSet(short):boolean, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.location.GpsClock.isFlagSet(short):boolean\");\n }", "public MethodVisitor visitMethod(int access, String name, String desc, String signature, String[] exceptions) {\n if (\"size\".equals(name) && \"()I\".equals(desc)) {\n return addWrapperMethod(access, name, desc, signature, exceptions);\n } else if (\"isEmpty\".equals(name) && \"()Z\".equals(desc)) {\n return addWrapperMethod(access, name, desc, signature, exceptions);\n } else if (\"containsValue\".equals(name) && \"(Ljava/lang/Object;)Z\".equals(desc)) {\n return addWrapperMethod(access, name, desc, signature, exceptions);\n }\n\n MethodVisitor mv = super.visitMethod(access, name, desc, signature, exceptions);\n if (\"entrySet\".equals(name) && \"()Ljava/util/Set;\".equals(desc)) {\n return new EntrySetMethodAdapter(mv);\n } else if (\"segmentFor\".equals(name) && \"(I)Ljava/util/concurrent/ConcurrentHashMap$Segment;\".equals(desc)) {\n return rewriteSegmentForMethod(mv);\n } else if (\"get\".equals(name) && \"(Ljava/lang/Object;)Ljava/lang/Object;\".equals(desc)) {\n return new MulticastMethodVisitor(new MethodVisitor[] {\n new OriginalGetMethodAdapter(super.visitMethod(ACC_SYNTHETIC|ACC_PUBLIC, TC_ORIG_GET_METHOD_NAME, TC_ORIG_GET_METHOD_DESC, null, null)),\n new ConcurrentHashMapMethodAdapter(new GetMethodAdapter(mv))});\n }\n \n if (\"put\".equals(name) && \"(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;\".equals(desc)) {\n mv = new MulticastMethodVisitor(new MethodVisitor[] {\n mv,\n new ApplicatorPutMethodAdapter(super.visitMethod(ACC_SYNTHETIC|ACC_PUBLIC, TC_APPLICATOR_PUT_METHOD_NAME, TC_APPLICATOR_PUT_METHOD_DESC, null, null))});\n } else if (\"clear\".equals(name) && \"()V\".equals(desc)) {\n mv = new MulticastMethodVisitor(new MethodVisitor[] {\n mv,\n new ApplicatorClearMethodAdapter(super.visitMethod(ACC_SYNTHETIC|ACC_PUBLIC, TC_APPLICATOR_CLEAR_METHOD_NAME, TC_APPLICATOR_CLEAR_METHOD_DESC, null, null))});\n } else if (\"containsKey\".equals(name) && \"(Ljava/lang/Object;)Z\".equals(desc)) {\n mv = new ContainsKeyMethodAdapter(mv);\n } else if (\"remove\".equals(name) && \"(Ljava/lang/Object;)Ljava/lang/Object;\".equals(desc)) {\n mv = new MulticastMethodVisitor(new MethodVisitor[] {\n new SimpleRemoveMethodAdapter(mv),\n new ApplicatorRemoveMethodAdapter(super.visitMethod(ACC_SYNTHETIC|ACC_PUBLIC, TC_APPLICATOR_REMOVE_METHOD_NAME, TC_APPLICATOR_REMOVE_METHOD_DESC, null, null)),\n new RemoveLogicalMethodAdapter(super.visitMethod(ACC_SYNTHETIC|ACC_PUBLIC, TC_REMOVE_LOGICAL_METHOD_NAME, TC_REMOVE_LOGICAL_METHOD_DESC, null, null))});\n } else if (\"remove\".equals(name) && \"(Ljava/lang/Object;Ljava/lang/Object;)Z\".equals(desc)) {\n mv = new RemoveMethodAdapter(mv);\n } else if (\"replace\".equals(name) && \"(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;\".equals(desc)) {\n mv = new SimpleReplaceMethodAdapter(mv);\n } else if (\"replace\".equals(name) && \"(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Z\".equals(desc)) {\n mv = new ReplaceMethodAdapter(mv);\n } else if (\"writeObject\".equals(name) && \"(Ljava/io/ObjectOutputStream;)V\".equals(desc)) {\n mv = new JavaUtilConcurrentHashMapLazyValuesMethodAdapter(access, desc, mv, false);\n }\n\n return new ConcurrentHashMapMethodAdapter(mv);\n }", "public void setReadWriteOnMyLatestView()\n {\n \t m_acl = \tm_acl | (1<<2);\n }", "public static Collection<FieldAccessFlag> getFlags()\n\t{\n\t\treturn Lists.newArrayList(PUBLIC, PRIVATE, PROTECTED, STATIC, FINAL, VOLATILE, TRANSIENT, ENUM,\n\t\t\tSYNTHETIC);\n\t}", "private void addAccessor(ThreadContext context, String internedName, Visibility visibility, boolean readable, boolean writeable) {\n assert internedName == internedName.intern() : internedName + \" is not interned\";\n \n final Ruby runtime = context.getRuntime();\n \n if (visibility == PRIVATE) {\n //FIXME warning\n } else if (visibility == MODULE_FUNCTION) {\n visibility = PRIVATE;\n // FIXME warning\n }\n final String variableName = (\"@\" + internedName).intern();\n if (readable) {\n addMethod(internedName, new JavaMethodZero(this, visibility, CallConfiguration.FrameNoneScopeNone) {\n private RubyClass.VariableAccessor accessor = RubyClass.VariableAccessor.DUMMY_ACCESSOR;\n public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, String name) {\n IRubyObject variable = (IRubyObject)verifyAccessor(self.getMetaClass().getRealClass()).get(self);\n \n return variable == null ? runtime.getNil() : variable;\n }\n \n private RubyClass.VariableAccessor verifyAccessor(RubyClass cls) {\n RubyClass.VariableAccessor localAccessor = accessor;\n if (localAccessor.getClassId() != cls.hashCode()) {\n localAccessor = cls.getVariableAccessorForRead(variableName);\n accessor = localAccessor;\n }\n return localAccessor;\n }\n });\n callMethod(context, \"method_added\", runtime.fastNewSymbol(internedName));\n }\n if (writeable) {\n internedName = (internedName + \"=\").intern();\n addMethod(internedName, new JavaMethodOne(this, visibility, CallConfiguration.FrameNoneScopeNone) {\n private RubyClass.VariableAccessor accessor = RubyClass.VariableAccessor.DUMMY_ACCESSOR;\n public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, String name, IRubyObject arg1) {\n verifyAccessor(self.getMetaClass().getRealClass()).set(self, arg1);\n return arg1;\n }\n \n private RubyClass.VariableAccessor verifyAccessor(RubyClass cls) {\n RubyClass.VariableAccessor localAccessor = accessor;\n if (localAccessor.getClassId() != cls.hashCode()) {\n localAccessor = cls.getVariableAccessorForWrite(variableName);\n accessor = localAccessor;\n }\n return localAccessor;\n }\n });\n callMethod(context, \"method_added\", runtime.fastNewSymbol(internedName));\n }\n }", "public void setFlags(int param1) {\n }", "private void scanAndCopyMethods() {\n int numMethods = copyShort();\n for (int i = 0; i < numMethods; i++) {\n scanAndCopyAccessFlags();\n copy(4); // name_index, descriptor_index\n int numAttributes = copyShort();\n for (int j = 0; j < numAttributes; j++) {\n // Look for \"Code\" attribute.\n int attrNameIdx = copyShort();\n if (cpIdxIsCode(attrNameIdx)) {\n processCodeAttribute();\n } else {\n copyRestOfAttribute();\n }\n }\n }\n }", "public static void setFlags(int flag){\r\n flags |= flag;\r\n }", "void setAccessible(boolean accessible);", "public static native void OpenMM_AmoebaVdwForce_setAlchemicalMethod(PointerByReference target, int method);", "public void testMethodInfo889() throws Exception {\n\t\tClassInfo var2788 = instantiateClassInfo431();\n\t\tList<ClassInfo> var2764 = Collections.emptyList();\n\t\tList<ParameterInfo> var2766 = Collections.emptyList();\n\t\tList<LocalVariableInfo> var2767 = Collections.emptyList();\n\t\tList<Operation> var2768 = Collections.emptyList();\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tMethodInfo var2789 = new MethodInfo(var2788, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList());\n\t\tClassInfo var2765 = new ClassInfo(\"super\", false, null, var2764, null);\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tClassInfo var2771 = new ClassInfo(\"super\", false, var2765, var2764,\n\t\t\t\tnull);\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2788.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2788.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2788.getSetters();\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2788.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2788.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2788.getSetters();\n\t\tvar2789.isSetter();\n\t\tvar2789.isSetter();\n\t}", "public void method_203() {}", "public interface MethodHandleInfo {\n\n\t/**\n\t * Getter MethodHandle for an instance field\n\t */\n\tstatic final int REF_getField = 1;\n\n\t/**\n\t * Getter MethodHandle for an static field\n\t */\n\tstatic final int REF_getStatic = 2;\n\n\t/**\n\t * Setter MethodHandle for an instance field\n\t */\n\tstatic final int REF_putField = 3;\n\n\t/**\n\t * Setter MethodHandle for an static field\n\t */\n\tstatic final int REF_putStatic = 4;\n\n\t/**\n\t * MethodHandle for an instance method\n\t */\n\tstatic final int REF_invokeVirtual = 5;\n\n\t/**\n\t * MethodHandle for a static method\n\t */\n\tstatic final int REF_invokeStatic = 6;\n\n\t/**\n\t * MethodHandle for an special method\n\t */\n\tstatic final int REF_invokeSpecial = 7;\n\n\t/**\n\t * MethodHandle for a constructor\n\t */\n\tstatic final int REF_newInvokeSpecial = 8;\n\n\t/**\n\t * MethodHandle for an interface method\n\t */\n\tstatic final int REF_invokeInterface = 9;\n\n\t/**\n\t * Returns the Class where the cracked MethodHandle's underlying method, field or constructor is declared.\n\t *\n\t * @return class that declares the underlying member\n\t */\n\tClass<?> getDeclaringClass();\n\n\t/**\n\t * Returns the simple name of the MethodHandle's underlying member.\n\t *\n\t * @return A string representing the name of the method or field, or \"&lt;init&gt;\" for constructor.\n\t */\n\tString getName();\n\n\t/**\n\t * Returns the type of the MethodHandle's underlying member as a MethodType.\n\t * If the underlying member is non-static, the receiver parameter will not be included.\n\t * If the underlying member is field getter, the MethodType will take no parameters, and the return type will be the field type.\n\t * If the underlying member is field setter, the MethodType will take one parameter of the field type, and the return type will be void.\n\t *\n\t * @return A MethodType object representing the signature of the method or field\n\t */\n\tMethodType getMethodType();\n\n\t/**\n\t * Returns the modifiers of the MethodHandle's underlying member.\n\t *\n\t * @return An int representing the member's modifiers, or -1 if the underlying member is not accessible.\n\t */\n\tint getModifiers();\n\n\t/**\n\t * Returns the reference kind of the MethodHandle. The possible reference kinds are the declared MethodHandleInfo.REF fields.\n\t *\n\t * @return Returns one of the defined reference kinds which represent the MethodHandle kind.\n\t */\n\tint getReferenceKind();\n\n\t/**\n\t * Returns whether the MethodHandle's underlying method or constructor has variable argument arity.\n\t *\n\t * @return whether the underlying method has variable arity\n\t */\n\tdefault boolean isVarArgs() {\n\t\t// Check whether the MethodHandle refers to a Method or Contructor (not Field)\n\t\tif (getReferenceKind() >= REF_invokeVirtual) {\n\t\t\treturn ((getModifiers() & MethodHandles.Lookup.VARARGS) != 0);\n\t\t}\n\t\treturn false;\n\t}\n\n\t/**\n\t * Reflects the underlying member as a Method, Field or Constructor. The member must be accessible to the provided lookup object.\n\t * Public members are reflected as if by <code>getMethod</code>, <code>getField</code> or <code>getConstructor</code>.\n\t * Non-public members are reflected as if by <code>getDeclearedMethod</code>, <code>getDeclaredField</code> or <code>getDeclaredConstructor</code>.\n\t *\n\t * @param expected The expected type of the returned Member\n\t * @param lookup The lookup that was used to create the MethodHandle, or a lookup object with equivalent access\n\t * @return A Method, Field or Constructor representing the underlying member of the MethodHandle\n\t * @throws NullPointerException If either argument is null\n\t * @throws IllegalArgumentException If the underlying member is not accessible to the provided lookup object\n\t * @throws ClassCastException If the underlying member is not of the expected type\n\t */\n\t<T extends java.lang.reflect.Member> T reflectAs(Class<T> expected, MethodHandles.Lookup lookup);\n\n\t/**\n\t * Returns a string representing the equivalent bytecode for the referenceKind.\n\t *\n\t * @param referenceKind The referenceKind to lookup\n\t * @return a String representing the equivalent bytecode\n\t * @throws IllegalArgumentException If the provided referenceKind is invalid\n\t */\n\tstatic String referenceKindToString(int referenceKind) throws IllegalArgumentException {\n\t\tswitch(referenceKind) {\n\t\tcase REF_getField: \t\t\treturn \"getField\"; //$NON-NLS-1$\n\t\tcase REF_getStatic: \t\treturn \"getStatic\"; //$NON-NLS-1$\n\t\tcase REF_putField: \t\t\treturn \"putField\"; //$NON-NLS-1$\n\t\tcase REF_putStatic: \t\treturn \"putStatic\"; //$NON-NLS-1$\n\t\tcase REF_invokeVirtual: \treturn \"invokeVirtual\"; //$NON-NLS-1$\n\t\tcase REF_invokeStatic: \t\treturn \"invokeStatic\"; //$NON-NLS-1$\n\t\tcase REF_invokeSpecial: \treturn \"invokeSpecial\"; //$NON-NLS-1$\n\t\tcase REF_newInvokeSpecial: \treturn \"newInvokeSpecial\"; //$NON-NLS-1$\n\t\tcase REF_invokeInterface: \treturn \"invokeInterface\"; //$NON-NLS-1$\n\t\t}\n\t\t// K0582 = Reference kind \"{0\"} is invalid\n\t\tthrow new IllegalArgumentException(com.ibm.oti.util.Msg.getString(\"K0582\", referenceKind)); //$NON-NLS-1$\n\t}\n\n\t/**\n\t * Answers a string containing a concise, human-readable description of the receiver.\n\t *\n\t * @param kind the reference kind, one of the declared MethodHandleInfo.REF fields.\n\t * @param defc the class where the member is declared\n\t * @param name the name of the member\n\t * @param type the member's MethodType\n\t * @return a String of the format \"K C.N:MT\"\n\t */\n\tstatic String toString(int kind, Class<?> defc, String name, MethodType type) {\n\t\treturn referenceKindToString(kind) + \" \" + defc.getName() + \".\" + name + \":\" + type; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$\n\t}\n\n}", "public void andThisIsAMethodName(){}", "String getAccess();", "String getAccess();", "@Override\n\tpublic int getFlags() {\n\t\treturn heldObj.getFlags();\n\t}", "private Method getPrivateMethodFromAtrManager(String methodName, Class<?>... argClasses) throws Exception {\n\t\tMethod method = AttributesManagerBlImpl.class.getDeclaredMethod(methodName, argClasses);\n\t\tmethod.setAccessible(true);\n\t\treturn method;\n\t}", "public String getAccess();", "public void testMethodInfo886() throws Exception {\n\t\tClassInfo var2776 = instantiateClassInfo426();\n\t\tLocalField var2777 = instantiateLocalField425();\n\t\tList<ClassInfo> var2764 = Collections.emptyList();\n\t\tList<ParameterInfo> var2766 = Collections.emptyList();\n\t\tList<LocalVariableInfo> var2767 = Collections.emptyList();\n\t\tList<Operation> var2768 = Collections.emptyList();\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tMethodInfo var2778 = new MethodInfo(var2776, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList());\n\t\tvar2777.getDescription();\n\t\tvar2777.getDescription();\n\t\tClassInfo var2765 = new ClassInfo(\"super\", false, null, var2764, null);\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tClassInfo var2771 = new ClassInfo(\"super\", false, var2765, var2764,\n\t\t\t\tnull);\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2776.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2776.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2776.getSetters();\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2776.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2776.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2776.getSetters();\n\t\tvar2778.isSetter();\n\t\tvar2778.isSetter();\n\t}", "@Override\n public MethodDescriptor[] getMethodDescriptors() {\n return getMdescriptor();\n }", "private RubyArray instance_methods(IRubyObject[] args, final Visibility visibility, boolean not, boolean useSymbols) {\n boolean includeSuper = args.length > 0 ? args[0].isTrue() : true;\n Ruby runtime = getRuntime();\n RubyArray ary = runtime.newArray();\n Set<String> seen = new HashSet<String>();\n \n populateInstanceMethodNames(seen, ary, visibility, not, useSymbols, includeSuper);\n \n return ary;\n }", "public void testMethodInfo887() throws Exception {\n\t\tClassInfo var2782 = instantiateClassInfo428();\n\t\tLocalField var2783 = instantiateLocalField427();\n\t\tList<ClassInfo> var2764 = Collections.emptyList();\n\t\tList<ParameterInfo> var2766 = Collections.emptyList();\n\t\tList<LocalVariableInfo> var2767 = Collections.emptyList();\n\t\tList<Operation> var2768 = Collections.emptyList();\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tMethodInfo var2784 = new MethodInfo(var2782, \"voidX()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList());\n\t\tvar2783.getDescription();\n\t\tvar2783.getDescription();\n\t\tClassInfo var2765 = new ClassInfo(\"super\", false, null, var2764, null);\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tClassInfo var2771 = new ClassInfo(\"super\", false, var2765, var2764,\n\t\t\t\tnull);\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2782.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2782.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2782.getSetters();\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2782.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2782.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2782.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2784.isSetter();\n\t\tvar2784.isSetter();\n\t}", "public String methodBase() {\n\t\tString tmp = name;\n\t\ttmp = tmp.replaceFirst(\"^get\", \"\");\n\t\ttmp = tmp.replaceFirst(\"^is\", \"\");\n\t\treturn tmp.substring(0,1).toLowerCase()+tmp.substring(1);\n\t}", "public int getModifiers() {\n return mod;\n }", "MethodName getMethod();", "boolean isAccessed (ClassMember attr) {\r\n if (accessed_attributes == null) {\r\n accessed_attributes = new java.util.Vector ();\r\n } else if (accessed_attributes.contains (attr)) {\r\n return true;\r\n } \r\n\r\n accessed_attributes.addElement (attr);\r\n return false;\r\n }", "protected void updateFlags() {\n USE_CANNY = USE_CANNY && mainInterface.DEBUG_FRAME;\n DEBUG_PREP_FRAME = DEBUG_PREP_FRAME && mainInterface.DEBUG_FRAME;\n DEBUG_CONTOURS = DEBUG_CONTOURS && mainInterface.DEBUG_FRAME;\n DEBUG_POLY = DEBUG_POLY && mainInterface.DEBUG_FRAME;\n DEBUG_DRAW_MARKERS = DEBUG_DRAW_MARKERS && mainInterface.DEBUG_FRAME;\n DEBUG_DRAW_MARKER_ID = DEBUG_DRAW_MARKER_ID && mainInterface.DEBUG_FRAME;\n DEBUG_DRAW_SAMPLING = DEBUG_DRAW_SAMPLING && mainInterface.DEBUG_FRAME;\n }", "private void resetFlag(short r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00f2 in method: android.location.GpsClock.resetFlag(short):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.location.GpsClock.resetFlag(short):void\");\n }", "public GetterSetterInliner(CodeAttrInfoEditor codeAttrInfoEditor,\n boolean allowAccessModification)\n {\n this.codeAttrInfoEditor = codeAttrInfoEditor;\n this.allowAccessModification = allowAccessModification;\n }", "public static boolean canAccessFieldsDirectly(){\n return false; //TODO codavaj!!\n }", "public synchronized void setFlags(Flags newFlags, boolean set) throws MessagingException {\n/* 91 */ Flags oldFlags = (Flags)this.flags.clone();\n/* 92 */ super.setFlags(newFlags, set);\n/* 93 */ if (!this.flags.equals(oldFlags)) {\n/* 94 */ this.folder.notifyMessageChangedListeners(1, (Message)this);\n/* */ }\n/* */ }", "protected final boolean isMutable() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: android.icu.impl.coll.CollationDataBuilder.isMutable():boolean, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.icu.impl.coll.CollationDataBuilder.isMutable():boolean\");\n }", "Method getMethod();", "Method getMethod();", "public void setImportantForAccessibility(boolean important) {\n/* 1316 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public MethodPredicate withModifiers(int... modifiers) {\n this.withModifiers = Arrays.stream(modifiers).boxed().collect(Collectors.toList());\n return this;\n }", "@Override\n\t\t\tpublic MethodVisitor visitMethod(int access, String name, String desc, String signature, String[] exceptions) {\n\t\t\t\tboolean isSynthetic = ClassInfoUtils.checkAccess(access, Opcodes.ACC_SYNTHETIC);\n\t\t\t\tboolean isNative = ClassInfoUtils.checkAccess(access, Opcodes.ACC_NATIVE);\n\t\t\t\tboolean isInterface = ClassInfoUtils.checkAccess(access, Opcodes.ACC_INTERFACE);\n\t\t\t\tboolean isAbstract = ClassInfoUtils.checkAccess(access, Opcodes.ACC_ABSTRACT);\n\t\t\t\t\n\t\t\t\tMethodVisitor mv = super.visitMethod(access, name, desc, signature, exceptions);\n\t\t\t\tif (name.equals(\"toString\") && desc.equals(\"()Ljava/lang/String;\")) {\n\t\t\t\t\treturn mv;\n\t\t\t\t} else if (name.equals(\"equals\") && desc.equals(\"(Ljava/lang/Object;)Z\")) {\n\t\t\t\t\treturn mv;\n\t\t\t\t} else if (name.equals(\"hashCode\") && desc.equals(\"()I\")) {\n\t\t\t\t\treturn mv;\n\t\t\t\t} else if (isSynthetic || isNative || isInterface || isAbstract) {\n\t\t\t\t\treturn mv;\n\t\t\t\t} else {\n\t\t\t\t\tmv = new DependencyAnalyzer(className, \n\t\t\t\t\t\t\taccess, \n\t\t\t\t\t\t\tname, \n\t\t\t\t\t\t\tdesc, \n\t\t\t\t\t\t\tsignature, \n\t\t\t\t\t\t\texceptions, \n\t\t\t\t\t\t\tmv, \n\t\t\t\t\t\t\ttrue,\n\t\t\t\t\t\t\tfalse, \n\t\t\t\t\t\t\ttrue, \n\t\t\t\t\t\t\ttrue);\n\t\t\t\t\t//mv = new CalleeAnalyzer(className, access, name, desc, signature, exceptions, mv, true);\n\t\t\t\t\treturn mv;\n\t\t\t\t}\n\t\t\t}", "@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 13:02:04.534 -0500\", hash_original_method = \"E4DEB0C107DDB25A537EF0E89F1C04F8\", hash_generated_method = \"2E76AFD8C90588F5139C0C2D28CAEA05\")\n \nprivate static int translateCodingErrorAction(CodingErrorAction action) {\n if (action == CodingErrorAction.REPORT) {\n return 0;\n } else if (action == CodingErrorAction.IGNORE) {\n return 1;\n } else if (action == CodingErrorAction.REPLACE) {\n return 2;\n } else {\n throw new AssertionError(); // Someone changed the enum.\n }\n }", "private boolean makeFieldAccessible(Field f)\n {\n // See: https://stackoverflow.com/questions/46454995/#58834966\n Method getModule;\n try\n {\n getModule = Class.class.getMethod(\"getModule\");\n }\n catch (NoSuchMethodException e)\n {\n // We are on Java 8\n getModule = null;\n }\n if (getModule != null)\n {\n try\n {\n Object thisModule = getModule.invoke(this.getClass());\n Method isNamed = thisModule.getClass().getMethod(\"isNamed\");\n if (!(boolean) isNamed.invoke(thisModule))\n {\n Class fieldClass = f.getDeclaringClass().getClass();\n Object fieldModule = getModule.invoke(fieldClass);\n Method addOpens = fieldModule.getClass().getMethod(\n \"addOpens\", String.class, thisModule.getClass());\n Method getPackageName = fieldClass.getMethod(\"getPackageName\");\n addOpens.invoke(fieldModule, getPackageName.invoke(fieldClass), thisModule);\n }\n }\n catch (Throwable t)\n {\n if (t instanceof InvocationTargetException)\n {\n InvocationTargetException e = (InvocationTargetException) t;\n if (e.getCause() != null\n && e.getCause().getClass().getName().endsWith(\"IllegalCallerException\"))\n {\n if (outputLogger != null)\n {\n outputLogger.debug(\n PROCESS_ATTRIBUTE_CHANGE_MESSAGE + e.getCause().getMessage(),\n this.getClass().getName());\n }\n t = null;\n }\n }\n if (t != null)\n {\n throw new CargoException(\"Cannot set field accessibility for [\" + f + \"]\", t);\n }\n return false;\n }\n }\n try\n {\n f.setAccessible(true);\n return true;\n }\n catch (Throwable t)\n {\n if (t.getClass().getName().endsWith(\"InaccessibleObjectException\"))\n {\n if (outputLogger != null)\n {\n outputLogger.debug(\n PROCESS_ATTRIBUTE_CHANGE_MESSAGE + t.getMessage(),\n this.getClass().getName());\n }\n t = null;\n }\n if (t != null)\n {\n throw new CargoException(\"Cannot set field accessibility for [\" + f + \"]\", t);\n }\n return false;\n }\n }", "Builder addAccessibilityFeature(String value);", "public Method getMethod();", "Methodsig getMethod();", "public short getFlags() {\n\treturn flags;\n }", "public boolean isPropertyAccessorMethod(Method paramMethod, Class paramClass) {\n/* 225 */ String str1 = paramMethod.getName();\n/* 226 */ Class<?> clazz = paramMethod.getReturnType();\n/* 227 */ Class[] arrayOfClass1 = paramMethod.getParameterTypes();\n/* 228 */ Class[] arrayOfClass2 = paramMethod.getExceptionTypes();\n/* 229 */ String str2 = null;\n/* */ \n/* 231 */ if (str1.startsWith(\"get\")) {\n/* */ \n/* 233 */ if (arrayOfClass1.length == 0 && clazz != void.class && \n/* 234 */ !readHasCorrespondingIsProperty(paramMethod, paramClass)) {\n/* 235 */ str2 = \"get\";\n/* */ }\n/* */ }\n/* 238 */ else if (str1.startsWith(\"set\")) {\n/* */ \n/* 240 */ if (clazz == void.class && arrayOfClass1.length == 1 && (\n/* 241 */ hasCorrespondingReadProperty(paramMethod, paramClass, \"get\") || \n/* 242 */ hasCorrespondingReadProperty(paramMethod, paramClass, \"is\"))) {\n/* 243 */ str2 = \"set\";\n/* */ \n/* */ }\n/* */ }\n/* 247 */ else if (str1.startsWith(\"is\") && \n/* 248 */ arrayOfClass1.length == 0 && clazz == boolean.class && \n/* 249 */ !isHasCorrespondingReadProperty(paramMethod, paramClass)) {\n/* 250 */ str2 = \"is\";\n/* */ } \n/* */ \n/* */ \n/* */ \n/* 255 */ if (str2 != null && (\n/* 256 */ !validPropertyExceptions(paramMethod) || str1\n/* 257 */ .length() <= str2.length())) {\n/* 258 */ str2 = null;\n/* */ }\n/* */ \n/* */ \n/* 262 */ return (str2 != null);\n/* */ }", "public void setAllowedMethods(Method... allowed)\n\t{\n\t\tStringBuilder s = new StringBuilder();\n\t\tfor (int i = 0; i < allowed.length; i++)\n\t\t{\n\t\t\tif (i != 0)\n\t\t\t\ts.append(\", \");\n\t\t\ts.append(allowed[i]);\n\t\t}\n\t\t\n\t\tsetHeader(ALLOW, s.toString());\n\t}", "public int getAccess()\n {\n ensureLoaded();\n return m_flags.getAccess();\n }", "String getMethod();", "String getMethod();", "public void setDeclared(int r1, boolean r2) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: org.xml.sax.ext.Attributes2Impl.setDeclared(int, boolean):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: org.xml.sax.ext.Attributes2Impl.setDeclared(int, boolean):void\");\n }", "@Override\n\tpublic MethodVisitor visitMethod(int access, String name, String desc, String signature, String[] exceptions) {\n\t\tparsingMethod = new Method(name, desc, parsingClass);\n\t\tparsingClass.getMethods().add(parsingMethod);\n\t\treturn completeMethodVisitor;\n\t}", "public interface MethodInfo {\n\t/**\n\t * Returns the class which declared the method.\n\t */\n\tpublic ClassInfo declaringClass();\n\n\t/**\n\t * Returns the index into the constant pool of the name of the method.\n\t */\n\tpublic int nameIndex();\n\n\t/**\n\t * Returns the index into the constant pool of the type of the method.\n\t */\n\tpublic int typeIndex();\n\n\t/**\n\t * Sets the index into the constant pool of the name of the method.\n\t */\n\tpublic void setNameIndex(int index);\n\n\t/**\n\t * Set the index into the constant pool of the type of the method.\n\t * \n\t * @param index\n\t * The index into the constant pool of the type of the method.\n\t */\n\tpublic void setTypeIndex(int index);\n\n\t/**\n\t * Set the modifiers of the method. The values correspond to the constants\n\t * in the Modifiers class.\n\t * \n\t * @param modifiers\n\t * A bit vector of modifier flags for the method.\n\t * @see Modifiers\n\t */\n\tpublic void setModifiers(int modifiers);\n\n\t/**\n\t * Get the modifiers of the method. The values correspond to the constants\n\t * in the Modifiers class.\n\t * \n\t * @return A bit vector of modifier flags for the method.\n\t * @see Modifiers\n\t */\n\tpublic int modifiers();\n\n\t/**\n\t * Get the indices into the constant pool of the types of the exceptions\n\t * thrown by the method.\n\t * \n\t * @return The indices into the constant pool of the types of the exceptions\n\t * thrown by the method.\n\t */\n\tpublic int[] exceptionTypes();\n\n\t/**\n\t * Get the maximum height of the operand stack.\n\t * \n\t * @return The maximum height of the operand stack.\n\t */\n\tpublic int maxStack();\n\n\t/**\n\t * Set the maximum height of the operand stack.\n\t * \n\t * @param maxStack\n\t * The maximum height of the operand stack.\n\t */\n\tpublic void setMaxStack(int maxStack);\n\n\t/**\n\t * Get the maximum number of locals used in the method.\n\t * \n\t * @return The maximum number of locals used in the method.\n\t */\n\tpublic int maxLocals();\n\n\t/**\n\t * Set the maximum number of locals used in the method.\n\t * \n\t * @param maxLocals\n\t * The maximum number of locals used in the method.\n\t */\n\tpublic void setMaxLocals(int maxLocals);\n\n\t/**\n\t * Get the byte code array of the method.\n\t * \n\t * @return The byte code array of the method.\n\t */\n\tpublic byte[] code();\n\n\t/**\n\t * Set the byte code array of the method.\n\t * \n\t * @param code\n\t * The byte code array of the method.\n\t */\n\tpublic void setCode(byte[] code);\n\n\t/**\n\t * Get the line number debug info of the instructions in the method.\n\t * \n\t * @return The line numbers of the instructions in the method. The array\n\t * will be of size 0 if the method has no line number debug info.\n\t */\n\tpublic LineNumberDebugInfo[] lineNumbers();\n\n\t/**\n\t * Set the line number debug info of the instructions in the method.\n\t * \n\t * @param lineNumbers\n\t * The line numbers of the instructions in the method. The array\n\t * will be of size 0 if the method has no line number debug info.\n\t */\n\tpublic void setLineNumbers(LineNumberDebugInfo[] lineNumbers);\n\n\t/**\n\t * Get the local variable debug information for the method.\n\t * \n\t * @return The local variables in the method. The array will be of size 0 if\n\t * the method has no local variable debug info.\n\t */\n\tpublic LocalDebugInfo[] locals();\n\n\t/**\n\t * Set the local variables in the method.\n\t * \n\t * @param locals\n\t * The local variables in the method.\n\t */\n\tpublic void setLocals(LocalDebugInfo[] locals);\n\n\t/**\n\t * Get the exception handlers in the method.\n\t * \n\t * @return The exception handlers in the method.\n\t */\n\tpublic Catch[] exceptionHandlers();\n\n\t/**\n\t * Set the exception handlers in the method.\n\t * \n\t * @param exceptions\n\t * The exception handlers in the method.\n\t */\n\tpublic void setExceptionHandlers(Catch[] exceptions);\n\n\t/**\n\t * Creates a clone of this <tt>MethodInfo</tt> except that its declaring\n\t * class does not know about it.\n\t */\n\tpublic Object clone();\n}", "public final native void setFlags(int value) /*-{\n\t\tvar jso = [email protected]::getJsObj()();\n\t\tjso.flags = value;\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}", "public void setModifierFlag(int flag) {\n\t\tthis.modifier = flag;\n\t}", "public void setFlags(final Flags flags);", "public int getFlags() {\n return flags;\n }", "public List<MethodInfo> getMethods() { \n return lstMethodInfo;\n }", "private void checkMethodPermission(HandlerMethod handlerMethod) {\n RequirePermission annotation = handlerMethod.getMethodAnnotation(RequirePermission.class);\n String str = annotation.value();\n System.out.println(\"-----+++++++\");\n }", "public void testCreateMethodWithModifiersAndExceptions() {\n IDOMMethod method = this.domFactory.createMethod();\n method.setName(\"foo\");\n method.setFlags(ClassFileConstants.AccPrivate);\n method.setExceptions(new String[] { \"java.lang.IllegalArgumentException\", \"java.io.FileNotFoundExcpetion\" });\n assertSourceEquals(\"source code incorrect\", \"private void foo() throws java.lang.IllegalArgumentException, java.io.FileNotFoundExcpetion {\\n\" + \"}\\n\", method.getContents());\n }", "public interface C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }", "public boolean visit(MethodDeclaration decl, ClassScope scope) {\r\n\t\t\tif (decl instanceof InterTypeFieldDeclaration) \r\n\t\t\t\tvalue -= 2;\r\n\r\n\t\t\treturn super.visit(decl, scope);\r\n\t\t}", "private void resetFlags(){\n\t\tint count = 0;\n\t\tif (partOfAPairedAlignment) count += Math.pow(2, 0);\n\t\tif (aProperPairedAlignment) count += Math.pow(2, 1);\n\t\tif (unmapped) count += Math.pow(2, 2);\n\t\tif (mateUnMapped) count += Math.pow(2, 3);\n\t\tif (reverseStrand) count += Math.pow(2, 4);\n\t\tif (mateReverseStrand) count += Math.pow(2, 5);\n\t\tif (firstPair) count += Math.pow(2, 6);\n\t\tif (secondPair) count += Math.pow(2, 7);\n\t\tif (notAPrimaryAlignment) count += Math.pow(2, 8);\n\t\tif (failedQC) count += Math.pow(2, 9);\n\t\tif (aDuplicate) count += Math.pow(2, 10);\n\t\tflags = (short) count;\n\t\tflagResetNeeded = false;\n\t\t\n\t}", "private void mappingMethods() throws SecurityException, NoSuchMethodException{\n\t\tmappingMethodGet();\n\t\tmappingMethodSet();\n\t}", "private void setBooleanFlags (short flags){\n\t\tthis.flags = flags;\n\t\tflagResetNeeded = false;\n\t\tpartOfAPairedAlignment = isPartOfAPairedAlignment();\n\t\taProperPairedAlignment = isAProperPairedAlignment();\n\t\tunmapped = isUnmapped();\n\t\tmateUnMapped = isMateUnMapped();\n\t\treverseStrand = isReverseStrand();\n\t\tmateReverseStrand = isMateReverseStrand();\n\t\tfirstPair = isFirstPair();\n\t\tsecondPair = isSecondPair();\n\t\tnotAPrimaryAlignment = isNotAPrimaryAlignment();\n\t\tfailedQC = failedQC();\n\t\taDuplicate = isADuplicate();\n\t\t\n\t}" ]
[ "0.6459756", "0.61941135", "0.6124305", "0.6054357", "0.6038953", "0.6038953", "0.58764786", "0.58633894", "0.586231", "0.586231", "0.58388376", "0.5695067", "0.5662682", "0.5656152", "0.56525016", "0.5636611", "0.5633119", "0.560779", "0.560779", "0.55963707", "0.5585593", "0.5527335", "0.55259675", "0.55178744", "0.5497699", "0.5462038", "0.5460664", "0.54553145", "0.54315555", "0.5428095", "0.5423939", "0.5423252", "0.5405602", "0.5403003", "0.5399762", "0.5359158", "0.5347791", "0.5321582", "0.5317954", "0.53177696", "0.53112406", "0.5308062", "0.53007996", "0.5287687", "0.52810687", "0.5266063", "0.5265689", "0.52653694", "0.5262753", "0.52625436", "0.5258052", "0.5258052", "0.52249104", "0.52223516", "0.52184665", "0.52071375", "0.5204527", "0.5204301", "0.5195871", "0.51853406", "0.5169663", "0.51661706", "0.5161185", "0.51575136", "0.51456904", "0.5145592", "0.51448935", "0.51339334", "0.5129795", "0.51288617", "0.51288617", "0.51249367", "0.51229906", "0.51223254", "0.51202285", "0.5116746", "0.5112507", "0.51069206", "0.5106849", "0.5105911", "0.5099613", "0.50912666", "0.5082884", "0.5078926", "0.5078926", "0.5075503", "0.507498", "0.5074663", "0.50737566", "0.5067883", "0.50673777", "0.5066441", "0.50620204", "0.5058641", "0.50536793", "0.50520235", "0.50424683", "0.50392544", "0.5032849", "0.50326675", "0.5027472" ]
0.0
-1
Manipulate the method access flags.
public void setNative(boolean on) { if (on) setAccessFlags(getAccessFlags() | Constants.ACCESS_NATIVE); else setAccessFlags(getAccessFlags() & ~Constants.ACCESS_NATIVE); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void checkAccessModifier(Method method);", "public abstract int flags();", "private void writeMethodModifiers(Method m) {\n int mod = m.getModifiers();\n mod &= ~Modifier.ABSTRACT;\n mod &= ~Modifier.TRANSIENT;\n writer.print(Modifier.toString(mod) + \" \");\n }", "public int getAccessFlags() {\n return access_flags;\n }", "public int getFlags();", "public int getFlags();", "public long getFlags() {\n }", "public void testCreateMethodWithModifiers() {\n IDOMMethod method = this.domFactory.createMethod();\n method.setName(\"foo\");\n method.setFlags(ClassFileConstants.AccPublic | ClassFileConstants.AccStatic);\n assertSourceEquals(\"source code incorrect\", \"public static void foo() {\\n\" + \"}\\n\", method.getContents());\n }", "int getModifiers();", "int getModifiers();", "public Set<Method> getMethods() {\r\n \t\t// We will only consider private methods in the declared class\r\n \t\tif (forceAccess)\r\n \t\t\treturn setUnion(source.getDeclaredMethods(), source.getMethods());\r\n \t\telse\r\n \t\t\treturn setUnion(source.getMethods());\r\n \t}", "JApiModifier<AccessModifier> getAccessModifier();", "@Override\n\t\t\tpublic void visit(MethodDeclaration arg0, Object arg1) {\n\t\t\t\tif((arg0.getModifiers() & Modifier.PUBLIC) == Modifier.PUBLIC) {\n\t\t\t\t\t\tif(arg0.getName().substring(0, 3) == \"get\" || arg0.getName().substring(0, 3) == \"set\")\n\t\t\t\t\t\t\tpublicAcces.add(new Pair(arg0.getName() + \"( \"+planeL(arg0.getParameters()) +\") :\" + arg0.getType().toString(), Character.toLowerCase(arg0.getName().substring(3).charAt(0)) + (arg0.getName().substring(3).length() > 1 ? arg0.getName().substring(3).substring(1) : \"\")));\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tpublicAcces.add(new Pair(arg0.getName() + \"( \"+planeL(arg0.getParameters()) +\") :\" + arg0.getType().toString(), Character.toLowerCase(arg0.getName().substring(3).charAt(0)) + (arg0.getName().substring(3).length() > 1 ? arg0.getName().substring(3).substring(1) : \"\")));\n\t\t\t\t\t\tuses(arg0.getParameters());\n\t\t\t\t}\n\t\t\t\tsuper.visit(arg0, arg1);\n\t\t\t}", "long getFlags();", "private int patchAccess(BT_Method bm,BT_InsVector iv,int idx)\n{\n int ctr = 0;\n\n if (patch_type.getPatchLocalAccess() || patch_type.getPatchRemoteAccess()) {\n BT_FieldRefIns fri = (BT_FieldRefIns) iv.elementAt(idx);\n BT_Field fld = fri.getFieldTarget();\n if (fri.opcode == BT_Opcodes.opc_getstatic) {\n\t ctr = patch_type.getInstrumenter().patchStaticAccess(fld,bm,iv,idx);\n }\n else {\n\t ctr = patch_type.getInstrumenter().patchFieldAccess(fld,bm,iv,idx);\n }\n }\n\n patch_delta += ctr;\n\n return ctr;\n}", "private void mappingMethodSet() throws SecurityException, NoSuchMethodException{\n\t\tString aux = upFirstLetter();\n\t\tString methodSet = \"set\" + aux;\n\t\tthis.methodSet = this.classFather.getMethod(methodSet, this.classType);\n\t}", "public int modifiers();", "public interface ApiFlags {\n int GET_SOMETHING = 0;\n int GET_SOMETHING_ELSE = 1;\n }", "public interface ApiFlags {\n int GET_SOMETHING = 0;\n int GET_SOMETHING_ELSE = 1;\n }", "protected abstract MethodDescription accessorMethod();", "private void setFlag(short r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00f2 in method: android.location.GpsClock.setFlag(short):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.location.GpsClock.setFlag(short):void\");\n }", "@FameProperty(name = \"numberOfAccessingMethods\", derived = true)\n public Number getNumberOfAccessingMethods() {\n throw new UnsupportedOperationException(\"Not yet implemented!\"); \n }", "boolean isSetMethod();", "public abstract Set<MethodUsage> getDeclaredMethods();", "public void updateFlags()\n {\n initialize();\n }", "private static boolean getInternalPublicMethods(Class<?> paramClass, Map<Signature, Method> paramMap) {\n/* 143 */ Method[] arrayOfMethod = null;\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ try {\n/* 150 */ if (!Modifier.isPublic(paramClass.getModifiers())) {\n/* 151 */ return false;\n/* */ }\n/* 153 */ if (!ReflectUtil.isPackageAccessible(paramClass)) {\n/* 154 */ return false;\n/* */ }\n/* */ \n/* 157 */ arrayOfMethod = paramClass.getMethods();\n/* 158 */ } catch (SecurityException securityException) {\n/* 159 */ return false;\n/* */ } \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 168 */ boolean bool = true; byte b;\n/* 169 */ for (b = 0; b < arrayOfMethod.length; b++) {\n/* 170 */ Class<?> clazz = arrayOfMethod[b].getDeclaringClass();\n/* 171 */ if (!Modifier.isPublic(clazz.getModifiers())) {\n/* 172 */ bool = false;\n/* */ \n/* */ break;\n/* */ } \n/* */ } \n/* 177 */ if (bool) {\n/* */ \n/* */ \n/* */ \n/* */ \n/* 182 */ for (b = 0; b < arrayOfMethod.length; b++) {\n/* 183 */ addMethod(paramMap, arrayOfMethod[b]);\n/* */ \n/* */ }\n/* */ \n/* */ }\n/* */ else {\n/* */ \n/* 190 */ for (b = 0; b < arrayOfMethod.length; b++) {\n/* 191 */ Class<?> clazz = arrayOfMethod[b].getDeclaringClass();\n/* 192 */ if (paramClass.equals(clazz)) {\n/* 193 */ addMethod(paramMap, arrayOfMethod[b]);\n/* */ }\n/* */ } \n/* */ } \n/* 197 */ return bool;\n/* */ }", "@Override\n\tpublic void setAccessModifier(AccessModifier modifier) {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "int getFlag();", "public void beforeHookedMethod(MethodHookParam methodHookParam) throws Throwable {\n super.beforeHookedMethod(methodHookParam);\n methodHookParam.setResult(AbsSavedState.EMPTY_STATE);\n Field findField = XposedHelpers.findField(View.class, \"mPrivateFlags\");\n findField.set(methodHookParam.thisObject, Integer.valueOf(findField.getInt(methodHookParam.thisObject) | 131072));\n }", "public void setFlagMethodName(String name) {\n m_flagMethodName = name;\n }", "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}", "public void changeMode() {\n methodMode = !methodMode;\n }", "private void mappingMethodGet() throws SecurityException, NoSuchMethodException{\n\t\tString aux = upFirstLetter();\n\t\tString methodGet = \"get\" + aux;\n\t\tthis.methodGet = this.classFather.getMethod(methodGet);\n\t}", "public void testMethodInfo888() throws Exception {\n\t\tClassInfo var2785 = instantiateClassInfo430();\n\t\tFieldInfo var2786 = instantiateFieldInfo429();\n\t\tList<ClassInfo> var2764 = Collections.emptyList();\n\t\tList<ParameterInfo> var2766 = Collections.emptyList();\n\t\tList<LocalVariableInfo> var2767 = Collections.emptyList();\n\t\tList<Operation> var2768 = Collections.emptyList();\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tMethodInfo var2787 = new MethodInfo(var2785, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList());\n\t\tClassInfo var2765 = new ClassInfo(\"super\", false, null, var2764, null);\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2785.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2785.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2785.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tClassInfo var2771 = new ClassInfo(\"super\", false, var2765, var2764,\n\t\t\t\tnull);\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2785.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2785.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2785.getSetters();\n\t\tvar2787.isSetter();\n\t\tvar2787.isSetter();\n\t}", "public void setModifiers(int modifiers);", "Method getMethod(int id, boolean filterObsolete);", "private boolean isFlagSet(short r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00f2 in method: android.location.GpsClock.isFlagSet(short):boolean, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.location.GpsClock.isFlagSet(short):boolean\");\n }", "public MethodVisitor visitMethod(int access, String name, String desc, String signature, String[] exceptions) {\n if (\"size\".equals(name) && \"()I\".equals(desc)) {\n return addWrapperMethod(access, name, desc, signature, exceptions);\n } else if (\"isEmpty\".equals(name) && \"()Z\".equals(desc)) {\n return addWrapperMethod(access, name, desc, signature, exceptions);\n } else if (\"containsValue\".equals(name) && \"(Ljava/lang/Object;)Z\".equals(desc)) {\n return addWrapperMethod(access, name, desc, signature, exceptions);\n }\n\n MethodVisitor mv = super.visitMethod(access, name, desc, signature, exceptions);\n if (\"entrySet\".equals(name) && \"()Ljava/util/Set;\".equals(desc)) {\n return new EntrySetMethodAdapter(mv);\n } else if (\"segmentFor\".equals(name) && \"(I)Ljava/util/concurrent/ConcurrentHashMap$Segment;\".equals(desc)) {\n return rewriteSegmentForMethod(mv);\n } else if (\"get\".equals(name) && \"(Ljava/lang/Object;)Ljava/lang/Object;\".equals(desc)) {\n return new MulticastMethodVisitor(new MethodVisitor[] {\n new OriginalGetMethodAdapter(super.visitMethod(ACC_SYNTHETIC|ACC_PUBLIC, TC_ORIG_GET_METHOD_NAME, TC_ORIG_GET_METHOD_DESC, null, null)),\n new ConcurrentHashMapMethodAdapter(new GetMethodAdapter(mv))});\n }\n \n if (\"put\".equals(name) && \"(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;\".equals(desc)) {\n mv = new MulticastMethodVisitor(new MethodVisitor[] {\n mv,\n new ApplicatorPutMethodAdapter(super.visitMethod(ACC_SYNTHETIC|ACC_PUBLIC, TC_APPLICATOR_PUT_METHOD_NAME, TC_APPLICATOR_PUT_METHOD_DESC, null, null))});\n } else if (\"clear\".equals(name) && \"()V\".equals(desc)) {\n mv = new MulticastMethodVisitor(new MethodVisitor[] {\n mv,\n new ApplicatorClearMethodAdapter(super.visitMethod(ACC_SYNTHETIC|ACC_PUBLIC, TC_APPLICATOR_CLEAR_METHOD_NAME, TC_APPLICATOR_CLEAR_METHOD_DESC, null, null))});\n } else if (\"containsKey\".equals(name) && \"(Ljava/lang/Object;)Z\".equals(desc)) {\n mv = new ContainsKeyMethodAdapter(mv);\n } else if (\"remove\".equals(name) && \"(Ljava/lang/Object;)Ljava/lang/Object;\".equals(desc)) {\n mv = new MulticastMethodVisitor(new MethodVisitor[] {\n new SimpleRemoveMethodAdapter(mv),\n new ApplicatorRemoveMethodAdapter(super.visitMethod(ACC_SYNTHETIC|ACC_PUBLIC, TC_APPLICATOR_REMOVE_METHOD_NAME, TC_APPLICATOR_REMOVE_METHOD_DESC, null, null)),\n new RemoveLogicalMethodAdapter(super.visitMethod(ACC_SYNTHETIC|ACC_PUBLIC, TC_REMOVE_LOGICAL_METHOD_NAME, TC_REMOVE_LOGICAL_METHOD_DESC, null, null))});\n } else if (\"remove\".equals(name) && \"(Ljava/lang/Object;Ljava/lang/Object;)Z\".equals(desc)) {\n mv = new RemoveMethodAdapter(mv);\n } else if (\"replace\".equals(name) && \"(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;\".equals(desc)) {\n mv = new SimpleReplaceMethodAdapter(mv);\n } else if (\"replace\".equals(name) && \"(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Z\".equals(desc)) {\n mv = new ReplaceMethodAdapter(mv);\n } else if (\"writeObject\".equals(name) && \"(Ljava/io/ObjectOutputStream;)V\".equals(desc)) {\n mv = new JavaUtilConcurrentHashMapLazyValuesMethodAdapter(access, desc, mv, false);\n }\n\n return new ConcurrentHashMapMethodAdapter(mv);\n }", "public void setReadWriteOnMyLatestView()\n {\n \t m_acl = \tm_acl | (1<<2);\n }", "public static Collection<FieldAccessFlag> getFlags()\n\t{\n\t\treturn Lists.newArrayList(PUBLIC, PRIVATE, PROTECTED, STATIC, FINAL, VOLATILE, TRANSIENT, ENUM,\n\t\t\tSYNTHETIC);\n\t}", "private void addAccessor(ThreadContext context, String internedName, Visibility visibility, boolean readable, boolean writeable) {\n assert internedName == internedName.intern() : internedName + \" is not interned\";\n \n final Ruby runtime = context.getRuntime();\n \n if (visibility == PRIVATE) {\n //FIXME warning\n } else if (visibility == MODULE_FUNCTION) {\n visibility = PRIVATE;\n // FIXME warning\n }\n final String variableName = (\"@\" + internedName).intern();\n if (readable) {\n addMethod(internedName, new JavaMethodZero(this, visibility, CallConfiguration.FrameNoneScopeNone) {\n private RubyClass.VariableAccessor accessor = RubyClass.VariableAccessor.DUMMY_ACCESSOR;\n public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, String name) {\n IRubyObject variable = (IRubyObject)verifyAccessor(self.getMetaClass().getRealClass()).get(self);\n \n return variable == null ? runtime.getNil() : variable;\n }\n \n private RubyClass.VariableAccessor verifyAccessor(RubyClass cls) {\n RubyClass.VariableAccessor localAccessor = accessor;\n if (localAccessor.getClassId() != cls.hashCode()) {\n localAccessor = cls.getVariableAccessorForRead(variableName);\n accessor = localAccessor;\n }\n return localAccessor;\n }\n });\n callMethod(context, \"method_added\", runtime.fastNewSymbol(internedName));\n }\n if (writeable) {\n internedName = (internedName + \"=\").intern();\n addMethod(internedName, new JavaMethodOne(this, visibility, CallConfiguration.FrameNoneScopeNone) {\n private RubyClass.VariableAccessor accessor = RubyClass.VariableAccessor.DUMMY_ACCESSOR;\n public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, String name, IRubyObject arg1) {\n verifyAccessor(self.getMetaClass().getRealClass()).set(self, arg1);\n return arg1;\n }\n \n private RubyClass.VariableAccessor verifyAccessor(RubyClass cls) {\n RubyClass.VariableAccessor localAccessor = accessor;\n if (localAccessor.getClassId() != cls.hashCode()) {\n localAccessor = cls.getVariableAccessorForWrite(variableName);\n accessor = localAccessor;\n }\n return localAccessor;\n }\n });\n callMethod(context, \"method_added\", runtime.fastNewSymbol(internedName));\n }\n }", "public void setFlags(int param1) {\n }", "private void scanAndCopyMethods() {\n int numMethods = copyShort();\n for (int i = 0; i < numMethods; i++) {\n scanAndCopyAccessFlags();\n copy(4); // name_index, descriptor_index\n int numAttributes = copyShort();\n for (int j = 0; j < numAttributes; j++) {\n // Look for \"Code\" attribute.\n int attrNameIdx = copyShort();\n if (cpIdxIsCode(attrNameIdx)) {\n processCodeAttribute();\n } else {\n copyRestOfAttribute();\n }\n }\n }\n }", "public static void setFlags(int flag){\r\n flags |= flag;\r\n }", "void setAccessible(boolean accessible);", "public static native void OpenMM_AmoebaVdwForce_setAlchemicalMethod(PointerByReference target, int method);", "public void testMethodInfo889() throws Exception {\n\t\tClassInfo var2788 = instantiateClassInfo431();\n\t\tList<ClassInfo> var2764 = Collections.emptyList();\n\t\tList<ParameterInfo> var2766 = Collections.emptyList();\n\t\tList<LocalVariableInfo> var2767 = Collections.emptyList();\n\t\tList<Operation> var2768 = Collections.emptyList();\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tMethodInfo var2789 = new MethodInfo(var2788, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList());\n\t\tClassInfo var2765 = new ClassInfo(\"super\", false, null, var2764, null);\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tClassInfo var2771 = new ClassInfo(\"super\", false, var2765, var2764,\n\t\t\t\tnull);\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2788.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2788.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2788.getSetters();\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2788.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2788.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2788.getSetters();\n\t\tvar2789.isSetter();\n\t\tvar2789.isSetter();\n\t}", "public void method_203() {}", "public interface MethodHandleInfo {\n\n\t/**\n\t * Getter MethodHandle for an instance field\n\t */\n\tstatic final int REF_getField = 1;\n\n\t/**\n\t * Getter MethodHandle for an static field\n\t */\n\tstatic final int REF_getStatic = 2;\n\n\t/**\n\t * Setter MethodHandle for an instance field\n\t */\n\tstatic final int REF_putField = 3;\n\n\t/**\n\t * Setter MethodHandle for an static field\n\t */\n\tstatic final int REF_putStatic = 4;\n\n\t/**\n\t * MethodHandle for an instance method\n\t */\n\tstatic final int REF_invokeVirtual = 5;\n\n\t/**\n\t * MethodHandle for a static method\n\t */\n\tstatic final int REF_invokeStatic = 6;\n\n\t/**\n\t * MethodHandle for an special method\n\t */\n\tstatic final int REF_invokeSpecial = 7;\n\n\t/**\n\t * MethodHandle for a constructor\n\t */\n\tstatic final int REF_newInvokeSpecial = 8;\n\n\t/**\n\t * MethodHandle for an interface method\n\t */\n\tstatic final int REF_invokeInterface = 9;\n\n\t/**\n\t * Returns the Class where the cracked MethodHandle's underlying method, field or constructor is declared.\n\t *\n\t * @return class that declares the underlying member\n\t */\n\tClass<?> getDeclaringClass();\n\n\t/**\n\t * Returns the simple name of the MethodHandle's underlying member.\n\t *\n\t * @return A string representing the name of the method or field, or \"&lt;init&gt;\" for constructor.\n\t */\n\tString getName();\n\n\t/**\n\t * Returns the type of the MethodHandle's underlying member as a MethodType.\n\t * If the underlying member is non-static, the receiver parameter will not be included.\n\t * If the underlying member is field getter, the MethodType will take no parameters, and the return type will be the field type.\n\t * If the underlying member is field setter, the MethodType will take one parameter of the field type, and the return type will be void.\n\t *\n\t * @return A MethodType object representing the signature of the method or field\n\t */\n\tMethodType getMethodType();\n\n\t/**\n\t * Returns the modifiers of the MethodHandle's underlying member.\n\t *\n\t * @return An int representing the member's modifiers, or -1 if the underlying member is not accessible.\n\t */\n\tint getModifiers();\n\n\t/**\n\t * Returns the reference kind of the MethodHandle. The possible reference kinds are the declared MethodHandleInfo.REF fields.\n\t *\n\t * @return Returns one of the defined reference kinds which represent the MethodHandle kind.\n\t */\n\tint getReferenceKind();\n\n\t/**\n\t * Returns whether the MethodHandle's underlying method or constructor has variable argument arity.\n\t *\n\t * @return whether the underlying method has variable arity\n\t */\n\tdefault boolean isVarArgs() {\n\t\t// Check whether the MethodHandle refers to a Method or Contructor (not Field)\n\t\tif (getReferenceKind() >= REF_invokeVirtual) {\n\t\t\treturn ((getModifiers() & MethodHandles.Lookup.VARARGS) != 0);\n\t\t}\n\t\treturn false;\n\t}\n\n\t/**\n\t * Reflects the underlying member as a Method, Field or Constructor. The member must be accessible to the provided lookup object.\n\t * Public members are reflected as if by <code>getMethod</code>, <code>getField</code> or <code>getConstructor</code>.\n\t * Non-public members are reflected as if by <code>getDeclearedMethod</code>, <code>getDeclaredField</code> or <code>getDeclaredConstructor</code>.\n\t *\n\t * @param expected The expected type of the returned Member\n\t * @param lookup The lookup that was used to create the MethodHandle, or a lookup object with equivalent access\n\t * @return A Method, Field or Constructor representing the underlying member of the MethodHandle\n\t * @throws NullPointerException If either argument is null\n\t * @throws IllegalArgumentException If the underlying member is not accessible to the provided lookup object\n\t * @throws ClassCastException If the underlying member is not of the expected type\n\t */\n\t<T extends java.lang.reflect.Member> T reflectAs(Class<T> expected, MethodHandles.Lookup lookup);\n\n\t/**\n\t * Returns a string representing the equivalent bytecode for the referenceKind.\n\t *\n\t * @param referenceKind The referenceKind to lookup\n\t * @return a String representing the equivalent bytecode\n\t * @throws IllegalArgumentException If the provided referenceKind is invalid\n\t */\n\tstatic String referenceKindToString(int referenceKind) throws IllegalArgumentException {\n\t\tswitch(referenceKind) {\n\t\tcase REF_getField: \t\t\treturn \"getField\"; //$NON-NLS-1$\n\t\tcase REF_getStatic: \t\treturn \"getStatic\"; //$NON-NLS-1$\n\t\tcase REF_putField: \t\t\treturn \"putField\"; //$NON-NLS-1$\n\t\tcase REF_putStatic: \t\treturn \"putStatic\"; //$NON-NLS-1$\n\t\tcase REF_invokeVirtual: \treturn \"invokeVirtual\"; //$NON-NLS-1$\n\t\tcase REF_invokeStatic: \t\treturn \"invokeStatic\"; //$NON-NLS-1$\n\t\tcase REF_invokeSpecial: \treturn \"invokeSpecial\"; //$NON-NLS-1$\n\t\tcase REF_newInvokeSpecial: \treturn \"newInvokeSpecial\"; //$NON-NLS-1$\n\t\tcase REF_invokeInterface: \treturn \"invokeInterface\"; //$NON-NLS-1$\n\t\t}\n\t\t// K0582 = Reference kind \"{0\"} is invalid\n\t\tthrow new IllegalArgumentException(com.ibm.oti.util.Msg.getString(\"K0582\", referenceKind)); //$NON-NLS-1$\n\t}\n\n\t/**\n\t * Answers a string containing a concise, human-readable description of the receiver.\n\t *\n\t * @param kind the reference kind, one of the declared MethodHandleInfo.REF fields.\n\t * @param defc the class where the member is declared\n\t * @param name the name of the member\n\t * @param type the member's MethodType\n\t * @return a String of the format \"K C.N:MT\"\n\t */\n\tstatic String toString(int kind, Class<?> defc, String name, MethodType type) {\n\t\treturn referenceKindToString(kind) + \" \" + defc.getName() + \".\" + name + \":\" + type; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$\n\t}\n\n}", "public void andThisIsAMethodName(){}", "String getAccess();", "String getAccess();", "@Override\n\tpublic int getFlags() {\n\t\treturn heldObj.getFlags();\n\t}", "private Method getPrivateMethodFromAtrManager(String methodName, Class<?>... argClasses) throws Exception {\n\t\tMethod method = AttributesManagerBlImpl.class.getDeclaredMethod(methodName, argClasses);\n\t\tmethod.setAccessible(true);\n\t\treturn method;\n\t}", "public String getAccess();", "public void testMethodInfo886() throws Exception {\n\t\tClassInfo var2776 = instantiateClassInfo426();\n\t\tLocalField var2777 = instantiateLocalField425();\n\t\tList<ClassInfo> var2764 = Collections.emptyList();\n\t\tList<ParameterInfo> var2766 = Collections.emptyList();\n\t\tList<LocalVariableInfo> var2767 = Collections.emptyList();\n\t\tList<Operation> var2768 = Collections.emptyList();\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tMethodInfo var2778 = new MethodInfo(var2776, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList());\n\t\tvar2777.getDescription();\n\t\tvar2777.getDescription();\n\t\tClassInfo var2765 = new ClassInfo(\"super\", false, null, var2764, null);\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tClassInfo var2771 = new ClassInfo(\"super\", false, var2765, var2764,\n\t\t\t\tnull);\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2776.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2776.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2776.getSetters();\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2776.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2776.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2776.getSetters();\n\t\tvar2778.isSetter();\n\t\tvar2778.isSetter();\n\t}", "@Override\n public MethodDescriptor[] getMethodDescriptors() {\n return getMdescriptor();\n }", "private RubyArray instance_methods(IRubyObject[] args, final Visibility visibility, boolean not, boolean useSymbols) {\n boolean includeSuper = args.length > 0 ? args[0].isTrue() : true;\n Ruby runtime = getRuntime();\n RubyArray ary = runtime.newArray();\n Set<String> seen = new HashSet<String>();\n \n populateInstanceMethodNames(seen, ary, visibility, not, useSymbols, includeSuper);\n \n return ary;\n }", "public void testMethodInfo887() throws Exception {\n\t\tClassInfo var2782 = instantiateClassInfo428();\n\t\tLocalField var2783 = instantiateLocalField427();\n\t\tList<ClassInfo> var2764 = Collections.emptyList();\n\t\tList<ParameterInfo> var2766 = Collections.emptyList();\n\t\tList<LocalVariableInfo> var2767 = Collections.emptyList();\n\t\tList<Operation> var2768 = Collections.emptyList();\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tMethodInfo var2784 = new MethodInfo(var2782, \"voidX()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList());\n\t\tvar2783.getDescription();\n\t\tvar2783.getDescription();\n\t\tClassInfo var2765 = new ClassInfo(\"super\", false, null, var2764, null);\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tClassInfo var2771 = new ClassInfo(\"super\", false, var2765, var2764,\n\t\t\t\tnull);\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2782.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2782.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2782.getSetters();\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2782.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2782.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2782.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2784.isSetter();\n\t\tvar2784.isSetter();\n\t}", "public String methodBase() {\n\t\tString tmp = name;\n\t\ttmp = tmp.replaceFirst(\"^get\", \"\");\n\t\ttmp = tmp.replaceFirst(\"^is\", \"\");\n\t\treturn tmp.substring(0,1).toLowerCase()+tmp.substring(1);\n\t}", "public int getModifiers() {\n return mod;\n }", "MethodName getMethod();", "boolean isAccessed (ClassMember attr) {\r\n if (accessed_attributes == null) {\r\n accessed_attributes = new java.util.Vector ();\r\n } else if (accessed_attributes.contains (attr)) {\r\n return true;\r\n } \r\n\r\n accessed_attributes.addElement (attr);\r\n return false;\r\n }", "protected void updateFlags() {\n USE_CANNY = USE_CANNY && mainInterface.DEBUG_FRAME;\n DEBUG_PREP_FRAME = DEBUG_PREP_FRAME && mainInterface.DEBUG_FRAME;\n DEBUG_CONTOURS = DEBUG_CONTOURS && mainInterface.DEBUG_FRAME;\n DEBUG_POLY = DEBUG_POLY && mainInterface.DEBUG_FRAME;\n DEBUG_DRAW_MARKERS = DEBUG_DRAW_MARKERS && mainInterface.DEBUG_FRAME;\n DEBUG_DRAW_MARKER_ID = DEBUG_DRAW_MARKER_ID && mainInterface.DEBUG_FRAME;\n DEBUG_DRAW_SAMPLING = DEBUG_DRAW_SAMPLING && mainInterface.DEBUG_FRAME;\n }", "private void resetFlag(short r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00f2 in method: android.location.GpsClock.resetFlag(short):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.location.GpsClock.resetFlag(short):void\");\n }", "public GetterSetterInliner(CodeAttrInfoEditor codeAttrInfoEditor,\n boolean allowAccessModification)\n {\n this.codeAttrInfoEditor = codeAttrInfoEditor;\n this.allowAccessModification = allowAccessModification;\n }", "public static boolean canAccessFieldsDirectly(){\n return false; //TODO codavaj!!\n }", "public synchronized void setFlags(Flags newFlags, boolean set) throws MessagingException {\n/* 91 */ Flags oldFlags = (Flags)this.flags.clone();\n/* 92 */ super.setFlags(newFlags, set);\n/* 93 */ if (!this.flags.equals(oldFlags)) {\n/* 94 */ this.folder.notifyMessageChangedListeners(1, (Message)this);\n/* */ }\n/* */ }", "protected final boolean isMutable() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: android.icu.impl.coll.CollationDataBuilder.isMutable():boolean, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.icu.impl.coll.CollationDataBuilder.isMutable():boolean\");\n }", "Method getMethod();", "Method getMethod();", "public void setImportantForAccessibility(boolean important) {\n/* 1316 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public MethodPredicate withModifiers(int... modifiers) {\n this.withModifiers = Arrays.stream(modifiers).boxed().collect(Collectors.toList());\n return this;\n }", "@Override\n\t\t\tpublic MethodVisitor visitMethod(int access, String name, String desc, String signature, String[] exceptions) {\n\t\t\t\tboolean isSynthetic = ClassInfoUtils.checkAccess(access, Opcodes.ACC_SYNTHETIC);\n\t\t\t\tboolean isNative = ClassInfoUtils.checkAccess(access, Opcodes.ACC_NATIVE);\n\t\t\t\tboolean isInterface = ClassInfoUtils.checkAccess(access, Opcodes.ACC_INTERFACE);\n\t\t\t\tboolean isAbstract = ClassInfoUtils.checkAccess(access, Opcodes.ACC_ABSTRACT);\n\t\t\t\t\n\t\t\t\tMethodVisitor mv = super.visitMethod(access, name, desc, signature, exceptions);\n\t\t\t\tif (name.equals(\"toString\") && desc.equals(\"()Ljava/lang/String;\")) {\n\t\t\t\t\treturn mv;\n\t\t\t\t} else if (name.equals(\"equals\") && desc.equals(\"(Ljava/lang/Object;)Z\")) {\n\t\t\t\t\treturn mv;\n\t\t\t\t} else if (name.equals(\"hashCode\") && desc.equals(\"()I\")) {\n\t\t\t\t\treturn mv;\n\t\t\t\t} else if (isSynthetic || isNative || isInterface || isAbstract) {\n\t\t\t\t\treturn mv;\n\t\t\t\t} else {\n\t\t\t\t\tmv = new DependencyAnalyzer(className, \n\t\t\t\t\t\t\taccess, \n\t\t\t\t\t\t\tname, \n\t\t\t\t\t\t\tdesc, \n\t\t\t\t\t\t\tsignature, \n\t\t\t\t\t\t\texceptions, \n\t\t\t\t\t\t\tmv, \n\t\t\t\t\t\t\ttrue,\n\t\t\t\t\t\t\tfalse, \n\t\t\t\t\t\t\ttrue, \n\t\t\t\t\t\t\ttrue);\n\t\t\t\t\t//mv = new CalleeAnalyzer(className, access, name, desc, signature, exceptions, mv, true);\n\t\t\t\t\treturn mv;\n\t\t\t\t}\n\t\t\t}", "@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 13:02:04.534 -0500\", hash_original_method = \"E4DEB0C107DDB25A537EF0E89F1C04F8\", hash_generated_method = \"2E76AFD8C90588F5139C0C2D28CAEA05\")\n \nprivate static int translateCodingErrorAction(CodingErrorAction action) {\n if (action == CodingErrorAction.REPORT) {\n return 0;\n } else if (action == CodingErrorAction.IGNORE) {\n return 1;\n } else if (action == CodingErrorAction.REPLACE) {\n return 2;\n } else {\n throw new AssertionError(); // Someone changed the enum.\n }\n }", "private boolean makeFieldAccessible(Field f)\n {\n // See: https://stackoverflow.com/questions/46454995/#58834966\n Method getModule;\n try\n {\n getModule = Class.class.getMethod(\"getModule\");\n }\n catch (NoSuchMethodException e)\n {\n // We are on Java 8\n getModule = null;\n }\n if (getModule != null)\n {\n try\n {\n Object thisModule = getModule.invoke(this.getClass());\n Method isNamed = thisModule.getClass().getMethod(\"isNamed\");\n if (!(boolean) isNamed.invoke(thisModule))\n {\n Class fieldClass = f.getDeclaringClass().getClass();\n Object fieldModule = getModule.invoke(fieldClass);\n Method addOpens = fieldModule.getClass().getMethod(\n \"addOpens\", String.class, thisModule.getClass());\n Method getPackageName = fieldClass.getMethod(\"getPackageName\");\n addOpens.invoke(fieldModule, getPackageName.invoke(fieldClass), thisModule);\n }\n }\n catch (Throwable t)\n {\n if (t instanceof InvocationTargetException)\n {\n InvocationTargetException e = (InvocationTargetException) t;\n if (e.getCause() != null\n && e.getCause().getClass().getName().endsWith(\"IllegalCallerException\"))\n {\n if (outputLogger != null)\n {\n outputLogger.debug(\n PROCESS_ATTRIBUTE_CHANGE_MESSAGE + e.getCause().getMessage(),\n this.getClass().getName());\n }\n t = null;\n }\n }\n if (t != null)\n {\n throw new CargoException(\"Cannot set field accessibility for [\" + f + \"]\", t);\n }\n return false;\n }\n }\n try\n {\n f.setAccessible(true);\n return true;\n }\n catch (Throwable t)\n {\n if (t.getClass().getName().endsWith(\"InaccessibleObjectException\"))\n {\n if (outputLogger != null)\n {\n outputLogger.debug(\n PROCESS_ATTRIBUTE_CHANGE_MESSAGE + t.getMessage(),\n this.getClass().getName());\n }\n t = null;\n }\n if (t != null)\n {\n throw new CargoException(\"Cannot set field accessibility for [\" + f + \"]\", t);\n }\n return false;\n }\n }", "Builder addAccessibilityFeature(String value);", "public Method getMethod();", "Methodsig getMethod();", "public short getFlags() {\n\treturn flags;\n }", "public boolean isPropertyAccessorMethod(Method paramMethod, Class paramClass) {\n/* 225 */ String str1 = paramMethod.getName();\n/* 226 */ Class<?> clazz = paramMethod.getReturnType();\n/* 227 */ Class[] arrayOfClass1 = paramMethod.getParameterTypes();\n/* 228 */ Class[] arrayOfClass2 = paramMethod.getExceptionTypes();\n/* 229 */ String str2 = null;\n/* */ \n/* 231 */ if (str1.startsWith(\"get\")) {\n/* */ \n/* 233 */ if (arrayOfClass1.length == 0 && clazz != void.class && \n/* 234 */ !readHasCorrespondingIsProperty(paramMethod, paramClass)) {\n/* 235 */ str2 = \"get\";\n/* */ }\n/* */ }\n/* 238 */ else if (str1.startsWith(\"set\")) {\n/* */ \n/* 240 */ if (clazz == void.class && arrayOfClass1.length == 1 && (\n/* 241 */ hasCorrespondingReadProperty(paramMethod, paramClass, \"get\") || \n/* 242 */ hasCorrespondingReadProperty(paramMethod, paramClass, \"is\"))) {\n/* 243 */ str2 = \"set\";\n/* */ \n/* */ }\n/* */ }\n/* 247 */ else if (str1.startsWith(\"is\") && \n/* 248 */ arrayOfClass1.length == 0 && clazz == boolean.class && \n/* 249 */ !isHasCorrespondingReadProperty(paramMethod, paramClass)) {\n/* 250 */ str2 = \"is\";\n/* */ } \n/* */ \n/* */ \n/* */ \n/* 255 */ if (str2 != null && (\n/* 256 */ !validPropertyExceptions(paramMethod) || str1\n/* 257 */ .length() <= str2.length())) {\n/* 258 */ str2 = null;\n/* */ }\n/* */ \n/* */ \n/* 262 */ return (str2 != null);\n/* */ }", "public void setAllowedMethods(Method... allowed)\n\t{\n\t\tStringBuilder s = new StringBuilder();\n\t\tfor (int i = 0; i < allowed.length; i++)\n\t\t{\n\t\t\tif (i != 0)\n\t\t\t\ts.append(\", \");\n\t\t\ts.append(allowed[i]);\n\t\t}\n\t\t\n\t\tsetHeader(ALLOW, s.toString());\n\t}", "public int getAccess()\n {\n ensureLoaded();\n return m_flags.getAccess();\n }", "String getMethod();", "String getMethod();", "public void setDeclared(int r1, boolean r2) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: org.xml.sax.ext.Attributes2Impl.setDeclared(int, boolean):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: org.xml.sax.ext.Attributes2Impl.setDeclared(int, boolean):void\");\n }", "@Override\n\tpublic MethodVisitor visitMethod(int access, String name, String desc, String signature, String[] exceptions) {\n\t\tparsingMethod = new Method(name, desc, parsingClass);\n\t\tparsingClass.getMethods().add(parsingMethod);\n\t\treturn completeMethodVisitor;\n\t}", "public interface MethodInfo {\n\t/**\n\t * Returns the class which declared the method.\n\t */\n\tpublic ClassInfo declaringClass();\n\n\t/**\n\t * Returns the index into the constant pool of the name of the method.\n\t */\n\tpublic int nameIndex();\n\n\t/**\n\t * Returns the index into the constant pool of the type of the method.\n\t */\n\tpublic int typeIndex();\n\n\t/**\n\t * Sets the index into the constant pool of the name of the method.\n\t */\n\tpublic void setNameIndex(int index);\n\n\t/**\n\t * Set the index into the constant pool of the type of the method.\n\t * \n\t * @param index\n\t * The index into the constant pool of the type of the method.\n\t */\n\tpublic void setTypeIndex(int index);\n\n\t/**\n\t * Set the modifiers of the method. The values correspond to the constants\n\t * in the Modifiers class.\n\t * \n\t * @param modifiers\n\t * A bit vector of modifier flags for the method.\n\t * @see Modifiers\n\t */\n\tpublic void setModifiers(int modifiers);\n\n\t/**\n\t * Get the modifiers of the method. The values correspond to the constants\n\t * in the Modifiers class.\n\t * \n\t * @return A bit vector of modifier flags for the method.\n\t * @see Modifiers\n\t */\n\tpublic int modifiers();\n\n\t/**\n\t * Get the indices into the constant pool of the types of the exceptions\n\t * thrown by the method.\n\t * \n\t * @return The indices into the constant pool of the types of the exceptions\n\t * thrown by the method.\n\t */\n\tpublic int[] exceptionTypes();\n\n\t/**\n\t * Get the maximum height of the operand stack.\n\t * \n\t * @return The maximum height of the operand stack.\n\t */\n\tpublic int maxStack();\n\n\t/**\n\t * Set the maximum height of the operand stack.\n\t * \n\t * @param maxStack\n\t * The maximum height of the operand stack.\n\t */\n\tpublic void setMaxStack(int maxStack);\n\n\t/**\n\t * Get the maximum number of locals used in the method.\n\t * \n\t * @return The maximum number of locals used in the method.\n\t */\n\tpublic int maxLocals();\n\n\t/**\n\t * Set the maximum number of locals used in the method.\n\t * \n\t * @param maxLocals\n\t * The maximum number of locals used in the method.\n\t */\n\tpublic void setMaxLocals(int maxLocals);\n\n\t/**\n\t * Get the byte code array of the method.\n\t * \n\t * @return The byte code array of the method.\n\t */\n\tpublic byte[] code();\n\n\t/**\n\t * Set the byte code array of the method.\n\t * \n\t * @param code\n\t * The byte code array of the method.\n\t */\n\tpublic void setCode(byte[] code);\n\n\t/**\n\t * Get the line number debug info of the instructions in the method.\n\t * \n\t * @return The line numbers of the instructions in the method. The array\n\t * will be of size 0 if the method has no line number debug info.\n\t */\n\tpublic LineNumberDebugInfo[] lineNumbers();\n\n\t/**\n\t * Set the line number debug info of the instructions in the method.\n\t * \n\t * @param lineNumbers\n\t * The line numbers of the instructions in the method. The array\n\t * will be of size 0 if the method has no line number debug info.\n\t */\n\tpublic void setLineNumbers(LineNumberDebugInfo[] lineNumbers);\n\n\t/**\n\t * Get the local variable debug information for the method.\n\t * \n\t * @return The local variables in the method. The array will be of size 0 if\n\t * the method has no local variable debug info.\n\t */\n\tpublic LocalDebugInfo[] locals();\n\n\t/**\n\t * Set the local variables in the method.\n\t * \n\t * @param locals\n\t * The local variables in the method.\n\t */\n\tpublic void setLocals(LocalDebugInfo[] locals);\n\n\t/**\n\t * Get the exception handlers in the method.\n\t * \n\t * @return The exception handlers in the method.\n\t */\n\tpublic Catch[] exceptionHandlers();\n\n\t/**\n\t * Set the exception handlers in the method.\n\t * \n\t * @param exceptions\n\t * The exception handlers in the method.\n\t */\n\tpublic void setExceptionHandlers(Catch[] exceptions);\n\n\t/**\n\t * Creates a clone of this <tt>MethodInfo</tt> except that its declaring\n\t * class does not know about it.\n\t */\n\tpublic Object clone();\n}", "public final native void setFlags(int value) /*-{\n\t\tvar jso = [email protected]::getJsObj()();\n\t\tjso.flags = value;\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}", "public void setModifierFlag(int flag) {\n\t\tthis.modifier = flag;\n\t}", "public void setFlags(final Flags flags);", "public int getFlags() {\n return flags;\n }", "public List<MethodInfo> getMethods() { \n return lstMethodInfo;\n }", "private void checkMethodPermission(HandlerMethod handlerMethod) {\n RequirePermission annotation = handlerMethod.getMethodAnnotation(RequirePermission.class);\n String str = annotation.value();\n System.out.println(\"-----+++++++\");\n }", "public void testCreateMethodWithModifiersAndExceptions() {\n IDOMMethod method = this.domFactory.createMethod();\n method.setName(\"foo\");\n method.setFlags(ClassFileConstants.AccPrivate);\n method.setExceptions(new String[] { \"java.lang.IllegalArgumentException\", \"java.io.FileNotFoundExcpetion\" });\n assertSourceEquals(\"source code incorrect\", \"private void foo() throws java.lang.IllegalArgumentException, java.io.FileNotFoundExcpetion {\\n\" + \"}\\n\", method.getContents());\n }", "public interface C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }", "public boolean visit(MethodDeclaration decl, ClassScope scope) {\r\n\t\t\tif (decl instanceof InterTypeFieldDeclaration) \r\n\t\t\t\tvalue -= 2;\r\n\r\n\t\t\treturn super.visit(decl, scope);\r\n\t\t}", "private void resetFlags(){\n\t\tint count = 0;\n\t\tif (partOfAPairedAlignment) count += Math.pow(2, 0);\n\t\tif (aProperPairedAlignment) count += Math.pow(2, 1);\n\t\tif (unmapped) count += Math.pow(2, 2);\n\t\tif (mateUnMapped) count += Math.pow(2, 3);\n\t\tif (reverseStrand) count += Math.pow(2, 4);\n\t\tif (mateReverseStrand) count += Math.pow(2, 5);\n\t\tif (firstPair) count += Math.pow(2, 6);\n\t\tif (secondPair) count += Math.pow(2, 7);\n\t\tif (notAPrimaryAlignment) count += Math.pow(2, 8);\n\t\tif (failedQC) count += Math.pow(2, 9);\n\t\tif (aDuplicate) count += Math.pow(2, 10);\n\t\tflags = (short) count;\n\t\tflagResetNeeded = false;\n\t\t\n\t}", "private void mappingMethods() throws SecurityException, NoSuchMethodException{\n\t\tmappingMethodGet();\n\t\tmappingMethodSet();\n\t}", "private void setBooleanFlags (short flags){\n\t\tthis.flags = flags;\n\t\tflagResetNeeded = false;\n\t\tpartOfAPairedAlignment = isPartOfAPairedAlignment();\n\t\taProperPairedAlignment = isAProperPairedAlignment();\n\t\tunmapped = isUnmapped();\n\t\tmateUnMapped = isMateUnMapped();\n\t\treverseStrand = isReverseStrand();\n\t\tmateReverseStrand = isMateReverseStrand();\n\t\tfirstPair = isFirstPair();\n\t\tsecondPair = isSecondPair();\n\t\tnotAPrimaryAlignment = isNotAPrimaryAlignment();\n\t\tfailedQC = failedQC();\n\t\taDuplicate = isADuplicate();\n\t\t\n\t}" ]
[ "0.6459756", "0.61941135", "0.6124305", "0.6054357", "0.6038953", "0.6038953", "0.58764786", "0.58633894", "0.586231", "0.586231", "0.58388376", "0.5695067", "0.5662682", "0.5656152", "0.56525016", "0.5636611", "0.5633119", "0.560779", "0.560779", "0.55963707", "0.5585593", "0.5527335", "0.55259675", "0.55178744", "0.5497699", "0.5462038", "0.5460664", "0.54553145", "0.54315555", "0.5428095", "0.5423939", "0.5423252", "0.5405602", "0.5403003", "0.5399762", "0.5359158", "0.5347791", "0.5321582", "0.5317954", "0.53177696", "0.53112406", "0.5308062", "0.53007996", "0.5287687", "0.52810687", "0.5266063", "0.5265689", "0.52653694", "0.5262753", "0.52625436", "0.5258052", "0.5258052", "0.52249104", "0.52223516", "0.52184665", "0.52071375", "0.5204527", "0.5204301", "0.5195871", "0.51853406", "0.5169663", "0.51661706", "0.5161185", "0.51575136", "0.51456904", "0.5145592", "0.51448935", "0.51339334", "0.5129795", "0.51288617", "0.51288617", "0.51249367", "0.51229906", "0.51223254", "0.51202285", "0.5116746", "0.5112507", "0.51069206", "0.5106849", "0.5105911", "0.5099613", "0.50912666", "0.5082884", "0.5078926", "0.5078926", "0.5075503", "0.507498", "0.5074663", "0.50737566", "0.5067883", "0.50673777", "0.5066441", "0.50620204", "0.5058641", "0.50536793", "0.50520235", "0.50424683", "0.50392544", "0.5032849", "0.50326675", "0.5027472" ]
0.0
-1
Manipulate the method access flags.
public boolean isAbstract() { return (getAccessFlags() & Constants.ACCESS_ABSTRACT) > 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void checkAccessModifier(Method method);", "public abstract int flags();", "private void writeMethodModifiers(Method m) {\n int mod = m.getModifiers();\n mod &= ~Modifier.ABSTRACT;\n mod &= ~Modifier.TRANSIENT;\n writer.print(Modifier.toString(mod) + \" \");\n }", "public int getAccessFlags() {\n return access_flags;\n }", "public int getFlags();", "public int getFlags();", "public long getFlags() {\n }", "public void testCreateMethodWithModifiers() {\n IDOMMethod method = this.domFactory.createMethod();\n method.setName(\"foo\");\n method.setFlags(ClassFileConstants.AccPublic | ClassFileConstants.AccStatic);\n assertSourceEquals(\"source code incorrect\", \"public static void foo() {\\n\" + \"}\\n\", method.getContents());\n }", "int getModifiers();", "int getModifiers();", "public Set<Method> getMethods() {\r\n \t\t// We will only consider private methods in the declared class\r\n \t\tif (forceAccess)\r\n \t\t\treturn setUnion(source.getDeclaredMethods(), source.getMethods());\r\n \t\telse\r\n \t\t\treturn setUnion(source.getMethods());\r\n \t}", "JApiModifier<AccessModifier> getAccessModifier();", "@Override\n\t\t\tpublic void visit(MethodDeclaration arg0, Object arg1) {\n\t\t\t\tif((arg0.getModifiers() & Modifier.PUBLIC) == Modifier.PUBLIC) {\n\t\t\t\t\t\tif(arg0.getName().substring(0, 3) == \"get\" || arg0.getName().substring(0, 3) == \"set\")\n\t\t\t\t\t\t\tpublicAcces.add(new Pair(arg0.getName() + \"( \"+planeL(arg0.getParameters()) +\") :\" + arg0.getType().toString(), Character.toLowerCase(arg0.getName().substring(3).charAt(0)) + (arg0.getName().substring(3).length() > 1 ? arg0.getName().substring(3).substring(1) : \"\")));\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tpublicAcces.add(new Pair(arg0.getName() + \"( \"+planeL(arg0.getParameters()) +\") :\" + arg0.getType().toString(), Character.toLowerCase(arg0.getName().substring(3).charAt(0)) + (arg0.getName().substring(3).length() > 1 ? arg0.getName().substring(3).substring(1) : \"\")));\n\t\t\t\t\t\tuses(arg0.getParameters());\n\t\t\t\t}\n\t\t\t\tsuper.visit(arg0, arg1);\n\t\t\t}", "long getFlags();", "private int patchAccess(BT_Method bm,BT_InsVector iv,int idx)\n{\n int ctr = 0;\n\n if (patch_type.getPatchLocalAccess() || patch_type.getPatchRemoteAccess()) {\n BT_FieldRefIns fri = (BT_FieldRefIns) iv.elementAt(idx);\n BT_Field fld = fri.getFieldTarget();\n if (fri.opcode == BT_Opcodes.opc_getstatic) {\n\t ctr = patch_type.getInstrumenter().patchStaticAccess(fld,bm,iv,idx);\n }\n else {\n\t ctr = patch_type.getInstrumenter().patchFieldAccess(fld,bm,iv,idx);\n }\n }\n\n patch_delta += ctr;\n\n return ctr;\n}", "private void mappingMethodSet() throws SecurityException, NoSuchMethodException{\n\t\tString aux = upFirstLetter();\n\t\tString methodSet = \"set\" + aux;\n\t\tthis.methodSet = this.classFather.getMethod(methodSet, this.classType);\n\t}", "public int modifiers();", "public interface ApiFlags {\n int GET_SOMETHING = 0;\n int GET_SOMETHING_ELSE = 1;\n }", "public interface ApiFlags {\n int GET_SOMETHING = 0;\n int GET_SOMETHING_ELSE = 1;\n }", "protected abstract MethodDescription accessorMethod();", "private void setFlag(short r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00f2 in method: android.location.GpsClock.setFlag(short):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.location.GpsClock.setFlag(short):void\");\n }", "@FameProperty(name = \"numberOfAccessingMethods\", derived = true)\n public Number getNumberOfAccessingMethods() {\n throw new UnsupportedOperationException(\"Not yet implemented!\"); \n }", "boolean isSetMethod();", "public abstract Set<MethodUsage> getDeclaredMethods();", "public void updateFlags()\n {\n initialize();\n }", "private static boolean getInternalPublicMethods(Class<?> paramClass, Map<Signature, Method> paramMap) {\n/* 143 */ Method[] arrayOfMethod = null;\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ try {\n/* 150 */ if (!Modifier.isPublic(paramClass.getModifiers())) {\n/* 151 */ return false;\n/* */ }\n/* 153 */ if (!ReflectUtil.isPackageAccessible(paramClass)) {\n/* 154 */ return false;\n/* */ }\n/* */ \n/* 157 */ arrayOfMethod = paramClass.getMethods();\n/* 158 */ } catch (SecurityException securityException) {\n/* 159 */ return false;\n/* */ } \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 168 */ boolean bool = true; byte b;\n/* 169 */ for (b = 0; b < arrayOfMethod.length; b++) {\n/* 170 */ Class<?> clazz = arrayOfMethod[b].getDeclaringClass();\n/* 171 */ if (!Modifier.isPublic(clazz.getModifiers())) {\n/* 172 */ bool = false;\n/* */ \n/* */ break;\n/* */ } \n/* */ } \n/* 177 */ if (bool) {\n/* */ \n/* */ \n/* */ \n/* */ \n/* 182 */ for (b = 0; b < arrayOfMethod.length; b++) {\n/* 183 */ addMethod(paramMap, arrayOfMethod[b]);\n/* */ \n/* */ }\n/* */ \n/* */ }\n/* */ else {\n/* */ \n/* 190 */ for (b = 0; b < arrayOfMethod.length; b++) {\n/* 191 */ Class<?> clazz = arrayOfMethod[b].getDeclaringClass();\n/* 192 */ if (paramClass.equals(clazz)) {\n/* 193 */ addMethod(paramMap, arrayOfMethod[b]);\n/* */ }\n/* */ } \n/* */ } \n/* 197 */ return bool;\n/* */ }", "@Override\n\tpublic void setAccessModifier(AccessModifier modifier) {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "int getFlag();", "public void beforeHookedMethod(MethodHookParam methodHookParam) throws Throwable {\n super.beforeHookedMethod(methodHookParam);\n methodHookParam.setResult(AbsSavedState.EMPTY_STATE);\n Field findField = XposedHelpers.findField(View.class, \"mPrivateFlags\");\n findField.set(methodHookParam.thisObject, Integer.valueOf(findField.getInt(methodHookParam.thisObject) | 131072));\n }", "public void setFlagMethodName(String name) {\n m_flagMethodName = name;\n }", "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}", "public void changeMode() {\n methodMode = !methodMode;\n }", "private void mappingMethodGet() throws SecurityException, NoSuchMethodException{\n\t\tString aux = upFirstLetter();\n\t\tString methodGet = \"get\" + aux;\n\t\tthis.methodGet = this.classFather.getMethod(methodGet);\n\t}", "public void testMethodInfo888() throws Exception {\n\t\tClassInfo var2785 = instantiateClassInfo430();\n\t\tFieldInfo var2786 = instantiateFieldInfo429();\n\t\tList<ClassInfo> var2764 = Collections.emptyList();\n\t\tList<ParameterInfo> var2766 = Collections.emptyList();\n\t\tList<LocalVariableInfo> var2767 = Collections.emptyList();\n\t\tList<Operation> var2768 = Collections.emptyList();\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tMethodInfo var2787 = new MethodInfo(var2785, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList());\n\t\tClassInfo var2765 = new ClassInfo(\"super\", false, null, var2764, null);\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2785.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2785.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2785.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tClassInfo var2771 = new ClassInfo(\"super\", false, var2765, var2764,\n\t\t\t\tnull);\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2785.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2785.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2785.getSetters();\n\t\tvar2787.isSetter();\n\t\tvar2787.isSetter();\n\t}", "public void setModifiers(int modifiers);", "Method getMethod(int id, boolean filterObsolete);", "private boolean isFlagSet(short r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00f2 in method: android.location.GpsClock.isFlagSet(short):boolean, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.location.GpsClock.isFlagSet(short):boolean\");\n }", "public MethodVisitor visitMethod(int access, String name, String desc, String signature, String[] exceptions) {\n if (\"size\".equals(name) && \"()I\".equals(desc)) {\n return addWrapperMethod(access, name, desc, signature, exceptions);\n } else if (\"isEmpty\".equals(name) && \"()Z\".equals(desc)) {\n return addWrapperMethod(access, name, desc, signature, exceptions);\n } else if (\"containsValue\".equals(name) && \"(Ljava/lang/Object;)Z\".equals(desc)) {\n return addWrapperMethod(access, name, desc, signature, exceptions);\n }\n\n MethodVisitor mv = super.visitMethod(access, name, desc, signature, exceptions);\n if (\"entrySet\".equals(name) && \"()Ljava/util/Set;\".equals(desc)) {\n return new EntrySetMethodAdapter(mv);\n } else if (\"segmentFor\".equals(name) && \"(I)Ljava/util/concurrent/ConcurrentHashMap$Segment;\".equals(desc)) {\n return rewriteSegmentForMethod(mv);\n } else if (\"get\".equals(name) && \"(Ljava/lang/Object;)Ljava/lang/Object;\".equals(desc)) {\n return new MulticastMethodVisitor(new MethodVisitor[] {\n new OriginalGetMethodAdapter(super.visitMethod(ACC_SYNTHETIC|ACC_PUBLIC, TC_ORIG_GET_METHOD_NAME, TC_ORIG_GET_METHOD_DESC, null, null)),\n new ConcurrentHashMapMethodAdapter(new GetMethodAdapter(mv))});\n }\n \n if (\"put\".equals(name) && \"(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;\".equals(desc)) {\n mv = new MulticastMethodVisitor(new MethodVisitor[] {\n mv,\n new ApplicatorPutMethodAdapter(super.visitMethod(ACC_SYNTHETIC|ACC_PUBLIC, TC_APPLICATOR_PUT_METHOD_NAME, TC_APPLICATOR_PUT_METHOD_DESC, null, null))});\n } else if (\"clear\".equals(name) && \"()V\".equals(desc)) {\n mv = new MulticastMethodVisitor(new MethodVisitor[] {\n mv,\n new ApplicatorClearMethodAdapter(super.visitMethod(ACC_SYNTHETIC|ACC_PUBLIC, TC_APPLICATOR_CLEAR_METHOD_NAME, TC_APPLICATOR_CLEAR_METHOD_DESC, null, null))});\n } else if (\"containsKey\".equals(name) && \"(Ljava/lang/Object;)Z\".equals(desc)) {\n mv = new ContainsKeyMethodAdapter(mv);\n } else if (\"remove\".equals(name) && \"(Ljava/lang/Object;)Ljava/lang/Object;\".equals(desc)) {\n mv = new MulticastMethodVisitor(new MethodVisitor[] {\n new SimpleRemoveMethodAdapter(mv),\n new ApplicatorRemoveMethodAdapter(super.visitMethod(ACC_SYNTHETIC|ACC_PUBLIC, TC_APPLICATOR_REMOVE_METHOD_NAME, TC_APPLICATOR_REMOVE_METHOD_DESC, null, null)),\n new RemoveLogicalMethodAdapter(super.visitMethod(ACC_SYNTHETIC|ACC_PUBLIC, TC_REMOVE_LOGICAL_METHOD_NAME, TC_REMOVE_LOGICAL_METHOD_DESC, null, null))});\n } else if (\"remove\".equals(name) && \"(Ljava/lang/Object;Ljava/lang/Object;)Z\".equals(desc)) {\n mv = new RemoveMethodAdapter(mv);\n } else if (\"replace\".equals(name) && \"(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;\".equals(desc)) {\n mv = new SimpleReplaceMethodAdapter(mv);\n } else if (\"replace\".equals(name) && \"(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Z\".equals(desc)) {\n mv = new ReplaceMethodAdapter(mv);\n } else if (\"writeObject\".equals(name) && \"(Ljava/io/ObjectOutputStream;)V\".equals(desc)) {\n mv = new JavaUtilConcurrentHashMapLazyValuesMethodAdapter(access, desc, mv, false);\n }\n\n return new ConcurrentHashMapMethodAdapter(mv);\n }", "public void setReadWriteOnMyLatestView()\n {\n \t m_acl = \tm_acl | (1<<2);\n }", "public static Collection<FieldAccessFlag> getFlags()\n\t{\n\t\treturn Lists.newArrayList(PUBLIC, PRIVATE, PROTECTED, STATIC, FINAL, VOLATILE, TRANSIENT, ENUM,\n\t\t\tSYNTHETIC);\n\t}", "private void addAccessor(ThreadContext context, String internedName, Visibility visibility, boolean readable, boolean writeable) {\n assert internedName == internedName.intern() : internedName + \" is not interned\";\n \n final Ruby runtime = context.getRuntime();\n \n if (visibility == PRIVATE) {\n //FIXME warning\n } else if (visibility == MODULE_FUNCTION) {\n visibility = PRIVATE;\n // FIXME warning\n }\n final String variableName = (\"@\" + internedName).intern();\n if (readable) {\n addMethod(internedName, new JavaMethodZero(this, visibility, CallConfiguration.FrameNoneScopeNone) {\n private RubyClass.VariableAccessor accessor = RubyClass.VariableAccessor.DUMMY_ACCESSOR;\n public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, String name) {\n IRubyObject variable = (IRubyObject)verifyAccessor(self.getMetaClass().getRealClass()).get(self);\n \n return variable == null ? runtime.getNil() : variable;\n }\n \n private RubyClass.VariableAccessor verifyAccessor(RubyClass cls) {\n RubyClass.VariableAccessor localAccessor = accessor;\n if (localAccessor.getClassId() != cls.hashCode()) {\n localAccessor = cls.getVariableAccessorForRead(variableName);\n accessor = localAccessor;\n }\n return localAccessor;\n }\n });\n callMethod(context, \"method_added\", runtime.fastNewSymbol(internedName));\n }\n if (writeable) {\n internedName = (internedName + \"=\").intern();\n addMethod(internedName, new JavaMethodOne(this, visibility, CallConfiguration.FrameNoneScopeNone) {\n private RubyClass.VariableAccessor accessor = RubyClass.VariableAccessor.DUMMY_ACCESSOR;\n public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, String name, IRubyObject arg1) {\n verifyAccessor(self.getMetaClass().getRealClass()).set(self, arg1);\n return arg1;\n }\n \n private RubyClass.VariableAccessor verifyAccessor(RubyClass cls) {\n RubyClass.VariableAccessor localAccessor = accessor;\n if (localAccessor.getClassId() != cls.hashCode()) {\n localAccessor = cls.getVariableAccessorForWrite(variableName);\n accessor = localAccessor;\n }\n return localAccessor;\n }\n });\n callMethod(context, \"method_added\", runtime.fastNewSymbol(internedName));\n }\n }", "public void setFlags(int param1) {\n }", "private void scanAndCopyMethods() {\n int numMethods = copyShort();\n for (int i = 0; i < numMethods; i++) {\n scanAndCopyAccessFlags();\n copy(4); // name_index, descriptor_index\n int numAttributes = copyShort();\n for (int j = 0; j < numAttributes; j++) {\n // Look for \"Code\" attribute.\n int attrNameIdx = copyShort();\n if (cpIdxIsCode(attrNameIdx)) {\n processCodeAttribute();\n } else {\n copyRestOfAttribute();\n }\n }\n }\n }", "public static void setFlags(int flag){\r\n flags |= flag;\r\n }", "void setAccessible(boolean accessible);", "public static native void OpenMM_AmoebaVdwForce_setAlchemicalMethod(PointerByReference target, int method);", "public void testMethodInfo889() throws Exception {\n\t\tClassInfo var2788 = instantiateClassInfo431();\n\t\tList<ClassInfo> var2764 = Collections.emptyList();\n\t\tList<ParameterInfo> var2766 = Collections.emptyList();\n\t\tList<LocalVariableInfo> var2767 = Collections.emptyList();\n\t\tList<Operation> var2768 = Collections.emptyList();\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tMethodInfo var2789 = new MethodInfo(var2788, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList());\n\t\tClassInfo var2765 = new ClassInfo(\"super\", false, null, var2764, null);\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tClassInfo var2771 = new ClassInfo(\"super\", false, var2765, var2764,\n\t\t\t\tnull);\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2788.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2788.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2788.getSetters();\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2788.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2788.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2788.getSetters();\n\t\tvar2789.isSetter();\n\t\tvar2789.isSetter();\n\t}", "public void method_203() {}", "public interface MethodHandleInfo {\n\n\t/**\n\t * Getter MethodHandle for an instance field\n\t */\n\tstatic final int REF_getField = 1;\n\n\t/**\n\t * Getter MethodHandle for an static field\n\t */\n\tstatic final int REF_getStatic = 2;\n\n\t/**\n\t * Setter MethodHandle for an instance field\n\t */\n\tstatic final int REF_putField = 3;\n\n\t/**\n\t * Setter MethodHandle for an static field\n\t */\n\tstatic final int REF_putStatic = 4;\n\n\t/**\n\t * MethodHandle for an instance method\n\t */\n\tstatic final int REF_invokeVirtual = 5;\n\n\t/**\n\t * MethodHandle for a static method\n\t */\n\tstatic final int REF_invokeStatic = 6;\n\n\t/**\n\t * MethodHandle for an special method\n\t */\n\tstatic final int REF_invokeSpecial = 7;\n\n\t/**\n\t * MethodHandle for a constructor\n\t */\n\tstatic final int REF_newInvokeSpecial = 8;\n\n\t/**\n\t * MethodHandle for an interface method\n\t */\n\tstatic final int REF_invokeInterface = 9;\n\n\t/**\n\t * Returns the Class where the cracked MethodHandle's underlying method, field or constructor is declared.\n\t *\n\t * @return class that declares the underlying member\n\t */\n\tClass<?> getDeclaringClass();\n\n\t/**\n\t * Returns the simple name of the MethodHandle's underlying member.\n\t *\n\t * @return A string representing the name of the method or field, or \"&lt;init&gt;\" for constructor.\n\t */\n\tString getName();\n\n\t/**\n\t * Returns the type of the MethodHandle's underlying member as a MethodType.\n\t * If the underlying member is non-static, the receiver parameter will not be included.\n\t * If the underlying member is field getter, the MethodType will take no parameters, and the return type will be the field type.\n\t * If the underlying member is field setter, the MethodType will take one parameter of the field type, and the return type will be void.\n\t *\n\t * @return A MethodType object representing the signature of the method or field\n\t */\n\tMethodType getMethodType();\n\n\t/**\n\t * Returns the modifiers of the MethodHandle's underlying member.\n\t *\n\t * @return An int representing the member's modifiers, or -1 if the underlying member is not accessible.\n\t */\n\tint getModifiers();\n\n\t/**\n\t * Returns the reference kind of the MethodHandle. The possible reference kinds are the declared MethodHandleInfo.REF fields.\n\t *\n\t * @return Returns one of the defined reference kinds which represent the MethodHandle kind.\n\t */\n\tint getReferenceKind();\n\n\t/**\n\t * Returns whether the MethodHandle's underlying method or constructor has variable argument arity.\n\t *\n\t * @return whether the underlying method has variable arity\n\t */\n\tdefault boolean isVarArgs() {\n\t\t// Check whether the MethodHandle refers to a Method or Contructor (not Field)\n\t\tif (getReferenceKind() >= REF_invokeVirtual) {\n\t\t\treturn ((getModifiers() & MethodHandles.Lookup.VARARGS) != 0);\n\t\t}\n\t\treturn false;\n\t}\n\n\t/**\n\t * Reflects the underlying member as a Method, Field or Constructor. The member must be accessible to the provided lookup object.\n\t * Public members are reflected as if by <code>getMethod</code>, <code>getField</code> or <code>getConstructor</code>.\n\t * Non-public members are reflected as if by <code>getDeclearedMethod</code>, <code>getDeclaredField</code> or <code>getDeclaredConstructor</code>.\n\t *\n\t * @param expected The expected type of the returned Member\n\t * @param lookup The lookup that was used to create the MethodHandle, or a lookup object with equivalent access\n\t * @return A Method, Field or Constructor representing the underlying member of the MethodHandle\n\t * @throws NullPointerException If either argument is null\n\t * @throws IllegalArgumentException If the underlying member is not accessible to the provided lookup object\n\t * @throws ClassCastException If the underlying member is not of the expected type\n\t */\n\t<T extends java.lang.reflect.Member> T reflectAs(Class<T> expected, MethodHandles.Lookup lookup);\n\n\t/**\n\t * Returns a string representing the equivalent bytecode for the referenceKind.\n\t *\n\t * @param referenceKind The referenceKind to lookup\n\t * @return a String representing the equivalent bytecode\n\t * @throws IllegalArgumentException If the provided referenceKind is invalid\n\t */\n\tstatic String referenceKindToString(int referenceKind) throws IllegalArgumentException {\n\t\tswitch(referenceKind) {\n\t\tcase REF_getField: \t\t\treturn \"getField\"; //$NON-NLS-1$\n\t\tcase REF_getStatic: \t\treturn \"getStatic\"; //$NON-NLS-1$\n\t\tcase REF_putField: \t\t\treturn \"putField\"; //$NON-NLS-1$\n\t\tcase REF_putStatic: \t\treturn \"putStatic\"; //$NON-NLS-1$\n\t\tcase REF_invokeVirtual: \treturn \"invokeVirtual\"; //$NON-NLS-1$\n\t\tcase REF_invokeStatic: \t\treturn \"invokeStatic\"; //$NON-NLS-1$\n\t\tcase REF_invokeSpecial: \treturn \"invokeSpecial\"; //$NON-NLS-1$\n\t\tcase REF_newInvokeSpecial: \treturn \"newInvokeSpecial\"; //$NON-NLS-1$\n\t\tcase REF_invokeInterface: \treturn \"invokeInterface\"; //$NON-NLS-1$\n\t\t}\n\t\t// K0582 = Reference kind \"{0\"} is invalid\n\t\tthrow new IllegalArgumentException(com.ibm.oti.util.Msg.getString(\"K0582\", referenceKind)); //$NON-NLS-1$\n\t}\n\n\t/**\n\t * Answers a string containing a concise, human-readable description of the receiver.\n\t *\n\t * @param kind the reference kind, one of the declared MethodHandleInfo.REF fields.\n\t * @param defc the class where the member is declared\n\t * @param name the name of the member\n\t * @param type the member's MethodType\n\t * @return a String of the format \"K C.N:MT\"\n\t */\n\tstatic String toString(int kind, Class<?> defc, String name, MethodType type) {\n\t\treturn referenceKindToString(kind) + \" \" + defc.getName() + \".\" + name + \":\" + type; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$\n\t}\n\n}", "public void andThisIsAMethodName(){}", "String getAccess();", "String getAccess();", "@Override\n\tpublic int getFlags() {\n\t\treturn heldObj.getFlags();\n\t}", "private Method getPrivateMethodFromAtrManager(String methodName, Class<?>... argClasses) throws Exception {\n\t\tMethod method = AttributesManagerBlImpl.class.getDeclaredMethod(methodName, argClasses);\n\t\tmethod.setAccessible(true);\n\t\treturn method;\n\t}", "public String getAccess();", "public void testMethodInfo886() throws Exception {\n\t\tClassInfo var2776 = instantiateClassInfo426();\n\t\tLocalField var2777 = instantiateLocalField425();\n\t\tList<ClassInfo> var2764 = Collections.emptyList();\n\t\tList<ParameterInfo> var2766 = Collections.emptyList();\n\t\tList<LocalVariableInfo> var2767 = Collections.emptyList();\n\t\tList<Operation> var2768 = Collections.emptyList();\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tMethodInfo var2778 = new MethodInfo(var2776, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList());\n\t\tvar2777.getDescription();\n\t\tvar2777.getDescription();\n\t\tClassInfo var2765 = new ClassInfo(\"super\", false, null, var2764, null);\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tClassInfo var2771 = new ClassInfo(\"super\", false, var2765, var2764,\n\t\t\t\tnull);\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2776.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2776.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2776.getSetters();\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2776.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2776.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2776.getSetters();\n\t\tvar2778.isSetter();\n\t\tvar2778.isSetter();\n\t}", "@Override\n public MethodDescriptor[] getMethodDescriptors() {\n return getMdescriptor();\n }", "private RubyArray instance_methods(IRubyObject[] args, final Visibility visibility, boolean not, boolean useSymbols) {\n boolean includeSuper = args.length > 0 ? args[0].isTrue() : true;\n Ruby runtime = getRuntime();\n RubyArray ary = runtime.newArray();\n Set<String> seen = new HashSet<String>();\n \n populateInstanceMethodNames(seen, ary, visibility, not, useSymbols, includeSuper);\n \n return ary;\n }", "public void testMethodInfo887() throws Exception {\n\t\tClassInfo var2782 = instantiateClassInfo428();\n\t\tLocalField var2783 = instantiateLocalField427();\n\t\tList<ClassInfo> var2764 = Collections.emptyList();\n\t\tList<ParameterInfo> var2766 = Collections.emptyList();\n\t\tList<LocalVariableInfo> var2767 = Collections.emptyList();\n\t\tList<Operation> var2768 = Collections.emptyList();\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tMethodInfo var2784 = new MethodInfo(var2782, \"voidX()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList());\n\t\tvar2783.getDescription();\n\t\tvar2783.getDescription();\n\t\tClassInfo var2765 = new ClassInfo(\"super\", false, null, var2764, null);\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tClassInfo var2771 = new ClassInfo(\"super\", false, var2765, var2764,\n\t\t\t\tnull);\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2782.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2782.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2782.getSetters();\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2782.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2782.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2782.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2784.isSetter();\n\t\tvar2784.isSetter();\n\t}", "public String methodBase() {\n\t\tString tmp = name;\n\t\ttmp = tmp.replaceFirst(\"^get\", \"\");\n\t\ttmp = tmp.replaceFirst(\"^is\", \"\");\n\t\treturn tmp.substring(0,1).toLowerCase()+tmp.substring(1);\n\t}", "public int getModifiers() {\n return mod;\n }", "MethodName getMethod();", "boolean isAccessed (ClassMember attr) {\r\n if (accessed_attributes == null) {\r\n accessed_attributes = new java.util.Vector ();\r\n } else if (accessed_attributes.contains (attr)) {\r\n return true;\r\n } \r\n\r\n accessed_attributes.addElement (attr);\r\n return false;\r\n }", "protected void updateFlags() {\n USE_CANNY = USE_CANNY && mainInterface.DEBUG_FRAME;\n DEBUG_PREP_FRAME = DEBUG_PREP_FRAME && mainInterface.DEBUG_FRAME;\n DEBUG_CONTOURS = DEBUG_CONTOURS && mainInterface.DEBUG_FRAME;\n DEBUG_POLY = DEBUG_POLY && mainInterface.DEBUG_FRAME;\n DEBUG_DRAW_MARKERS = DEBUG_DRAW_MARKERS && mainInterface.DEBUG_FRAME;\n DEBUG_DRAW_MARKER_ID = DEBUG_DRAW_MARKER_ID && mainInterface.DEBUG_FRAME;\n DEBUG_DRAW_SAMPLING = DEBUG_DRAW_SAMPLING && mainInterface.DEBUG_FRAME;\n }", "private void resetFlag(short r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00f2 in method: android.location.GpsClock.resetFlag(short):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.location.GpsClock.resetFlag(short):void\");\n }", "public GetterSetterInliner(CodeAttrInfoEditor codeAttrInfoEditor,\n boolean allowAccessModification)\n {\n this.codeAttrInfoEditor = codeAttrInfoEditor;\n this.allowAccessModification = allowAccessModification;\n }", "public static boolean canAccessFieldsDirectly(){\n return false; //TODO codavaj!!\n }", "public synchronized void setFlags(Flags newFlags, boolean set) throws MessagingException {\n/* 91 */ Flags oldFlags = (Flags)this.flags.clone();\n/* 92 */ super.setFlags(newFlags, set);\n/* 93 */ if (!this.flags.equals(oldFlags)) {\n/* 94 */ this.folder.notifyMessageChangedListeners(1, (Message)this);\n/* */ }\n/* */ }", "protected final boolean isMutable() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: android.icu.impl.coll.CollationDataBuilder.isMutable():boolean, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.icu.impl.coll.CollationDataBuilder.isMutable():boolean\");\n }", "Method getMethod();", "Method getMethod();", "public void setImportantForAccessibility(boolean important) {\n/* 1316 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public MethodPredicate withModifiers(int... modifiers) {\n this.withModifiers = Arrays.stream(modifiers).boxed().collect(Collectors.toList());\n return this;\n }", "@Override\n\t\t\tpublic MethodVisitor visitMethod(int access, String name, String desc, String signature, String[] exceptions) {\n\t\t\t\tboolean isSynthetic = ClassInfoUtils.checkAccess(access, Opcodes.ACC_SYNTHETIC);\n\t\t\t\tboolean isNative = ClassInfoUtils.checkAccess(access, Opcodes.ACC_NATIVE);\n\t\t\t\tboolean isInterface = ClassInfoUtils.checkAccess(access, Opcodes.ACC_INTERFACE);\n\t\t\t\tboolean isAbstract = ClassInfoUtils.checkAccess(access, Opcodes.ACC_ABSTRACT);\n\t\t\t\t\n\t\t\t\tMethodVisitor mv = super.visitMethod(access, name, desc, signature, exceptions);\n\t\t\t\tif (name.equals(\"toString\") && desc.equals(\"()Ljava/lang/String;\")) {\n\t\t\t\t\treturn mv;\n\t\t\t\t} else if (name.equals(\"equals\") && desc.equals(\"(Ljava/lang/Object;)Z\")) {\n\t\t\t\t\treturn mv;\n\t\t\t\t} else if (name.equals(\"hashCode\") && desc.equals(\"()I\")) {\n\t\t\t\t\treturn mv;\n\t\t\t\t} else if (isSynthetic || isNative || isInterface || isAbstract) {\n\t\t\t\t\treturn mv;\n\t\t\t\t} else {\n\t\t\t\t\tmv = new DependencyAnalyzer(className, \n\t\t\t\t\t\t\taccess, \n\t\t\t\t\t\t\tname, \n\t\t\t\t\t\t\tdesc, \n\t\t\t\t\t\t\tsignature, \n\t\t\t\t\t\t\texceptions, \n\t\t\t\t\t\t\tmv, \n\t\t\t\t\t\t\ttrue,\n\t\t\t\t\t\t\tfalse, \n\t\t\t\t\t\t\ttrue, \n\t\t\t\t\t\t\ttrue);\n\t\t\t\t\t//mv = new CalleeAnalyzer(className, access, name, desc, signature, exceptions, mv, true);\n\t\t\t\t\treturn mv;\n\t\t\t\t}\n\t\t\t}", "@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 13:02:04.534 -0500\", hash_original_method = \"E4DEB0C107DDB25A537EF0E89F1C04F8\", hash_generated_method = \"2E76AFD8C90588F5139C0C2D28CAEA05\")\n \nprivate static int translateCodingErrorAction(CodingErrorAction action) {\n if (action == CodingErrorAction.REPORT) {\n return 0;\n } else if (action == CodingErrorAction.IGNORE) {\n return 1;\n } else if (action == CodingErrorAction.REPLACE) {\n return 2;\n } else {\n throw new AssertionError(); // Someone changed the enum.\n }\n }", "private boolean makeFieldAccessible(Field f)\n {\n // See: https://stackoverflow.com/questions/46454995/#58834966\n Method getModule;\n try\n {\n getModule = Class.class.getMethod(\"getModule\");\n }\n catch (NoSuchMethodException e)\n {\n // We are on Java 8\n getModule = null;\n }\n if (getModule != null)\n {\n try\n {\n Object thisModule = getModule.invoke(this.getClass());\n Method isNamed = thisModule.getClass().getMethod(\"isNamed\");\n if (!(boolean) isNamed.invoke(thisModule))\n {\n Class fieldClass = f.getDeclaringClass().getClass();\n Object fieldModule = getModule.invoke(fieldClass);\n Method addOpens = fieldModule.getClass().getMethod(\n \"addOpens\", String.class, thisModule.getClass());\n Method getPackageName = fieldClass.getMethod(\"getPackageName\");\n addOpens.invoke(fieldModule, getPackageName.invoke(fieldClass), thisModule);\n }\n }\n catch (Throwable t)\n {\n if (t instanceof InvocationTargetException)\n {\n InvocationTargetException e = (InvocationTargetException) t;\n if (e.getCause() != null\n && e.getCause().getClass().getName().endsWith(\"IllegalCallerException\"))\n {\n if (outputLogger != null)\n {\n outputLogger.debug(\n PROCESS_ATTRIBUTE_CHANGE_MESSAGE + e.getCause().getMessage(),\n this.getClass().getName());\n }\n t = null;\n }\n }\n if (t != null)\n {\n throw new CargoException(\"Cannot set field accessibility for [\" + f + \"]\", t);\n }\n return false;\n }\n }\n try\n {\n f.setAccessible(true);\n return true;\n }\n catch (Throwable t)\n {\n if (t.getClass().getName().endsWith(\"InaccessibleObjectException\"))\n {\n if (outputLogger != null)\n {\n outputLogger.debug(\n PROCESS_ATTRIBUTE_CHANGE_MESSAGE + t.getMessage(),\n this.getClass().getName());\n }\n t = null;\n }\n if (t != null)\n {\n throw new CargoException(\"Cannot set field accessibility for [\" + f + \"]\", t);\n }\n return false;\n }\n }", "Builder addAccessibilityFeature(String value);", "public Method getMethod();", "Methodsig getMethod();", "public short getFlags() {\n\treturn flags;\n }", "public boolean isPropertyAccessorMethod(Method paramMethod, Class paramClass) {\n/* 225 */ String str1 = paramMethod.getName();\n/* 226 */ Class<?> clazz = paramMethod.getReturnType();\n/* 227 */ Class[] arrayOfClass1 = paramMethod.getParameterTypes();\n/* 228 */ Class[] arrayOfClass2 = paramMethod.getExceptionTypes();\n/* 229 */ String str2 = null;\n/* */ \n/* 231 */ if (str1.startsWith(\"get\")) {\n/* */ \n/* 233 */ if (arrayOfClass1.length == 0 && clazz != void.class && \n/* 234 */ !readHasCorrespondingIsProperty(paramMethod, paramClass)) {\n/* 235 */ str2 = \"get\";\n/* */ }\n/* */ }\n/* 238 */ else if (str1.startsWith(\"set\")) {\n/* */ \n/* 240 */ if (clazz == void.class && arrayOfClass1.length == 1 && (\n/* 241 */ hasCorrespondingReadProperty(paramMethod, paramClass, \"get\") || \n/* 242 */ hasCorrespondingReadProperty(paramMethod, paramClass, \"is\"))) {\n/* 243 */ str2 = \"set\";\n/* */ \n/* */ }\n/* */ }\n/* 247 */ else if (str1.startsWith(\"is\") && \n/* 248 */ arrayOfClass1.length == 0 && clazz == boolean.class && \n/* 249 */ !isHasCorrespondingReadProperty(paramMethod, paramClass)) {\n/* 250 */ str2 = \"is\";\n/* */ } \n/* */ \n/* */ \n/* */ \n/* 255 */ if (str2 != null && (\n/* 256 */ !validPropertyExceptions(paramMethod) || str1\n/* 257 */ .length() <= str2.length())) {\n/* 258 */ str2 = null;\n/* */ }\n/* */ \n/* */ \n/* 262 */ return (str2 != null);\n/* */ }", "public void setAllowedMethods(Method... allowed)\n\t{\n\t\tStringBuilder s = new StringBuilder();\n\t\tfor (int i = 0; i < allowed.length; i++)\n\t\t{\n\t\t\tif (i != 0)\n\t\t\t\ts.append(\", \");\n\t\t\ts.append(allowed[i]);\n\t\t}\n\t\t\n\t\tsetHeader(ALLOW, s.toString());\n\t}", "public int getAccess()\n {\n ensureLoaded();\n return m_flags.getAccess();\n }", "String getMethod();", "String getMethod();", "public void setDeclared(int r1, boolean r2) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: org.xml.sax.ext.Attributes2Impl.setDeclared(int, boolean):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: org.xml.sax.ext.Attributes2Impl.setDeclared(int, boolean):void\");\n }", "@Override\n\tpublic MethodVisitor visitMethod(int access, String name, String desc, String signature, String[] exceptions) {\n\t\tparsingMethod = new Method(name, desc, parsingClass);\n\t\tparsingClass.getMethods().add(parsingMethod);\n\t\treturn completeMethodVisitor;\n\t}", "public interface MethodInfo {\n\t/**\n\t * Returns the class which declared the method.\n\t */\n\tpublic ClassInfo declaringClass();\n\n\t/**\n\t * Returns the index into the constant pool of the name of the method.\n\t */\n\tpublic int nameIndex();\n\n\t/**\n\t * Returns the index into the constant pool of the type of the method.\n\t */\n\tpublic int typeIndex();\n\n\t/**\n\t * Sets the index into the constant pool of the name of the method.\n\t */\n\tpublic void setNameIndex(int index);\n\n\t/**\n\t * Set the index into the constant pool of the type of the method.\n\t * \n\t * @param index\n\t * The index into the constant pool of the type of the method.\n\t */\n\tpublic void setTypeIndex(int index);\n\n\t/**\n\t * Set the modifiers of the method. The values correspond to the constants\n\t * in the Modifiers class.\n\t * \n\t * @param modifiers\n\t * A bit vector of modifier flags for the method.\n\t * @see Modifiers\n\t */\n\tpublic void setModifiers(int modifiers);\n\n\t/**\n\t * Get the modifiers of the method. The values correspond to the constants\n\t * in the Modifiers class.\n\t * \n\t * @return A bit vector of modifier flags for the method.\n\t * @see Modifiers\n\t */\n\tpublic int modifiers();\n\n\t/**\n\t * Get the indices into the constant pool of the types of the exceptions\n\t * thrown by the method.\n\t * \n\t * @return The indices into the constant pool of the types of the exceptions\n\t * thrown by the method.\n\t */\n\tpublic int[] exceptionTypes();\n\n\t/**\n\t * Get the maximum height of the operand stack.\n\t * \n\t * @return The maximum height of the operand stack.\n\t */\n\tpublic int maxStack();\n\n\t/**\n\t * Set the maximum height of the operand stack.\n\t * \n\t * @param maxStack\n\t * The maximum height of the operand stack.\n\t */\n\tpublic void setMaxStack(int maxStack);\n\n\t/**\n\t * Get the maximum number of locals used in the method.\n\t * \n\t * @return The maximum number of locals used in the method.\n\t */\n\tpublic int maxLocals();\n\n\t/**\n\t * Set the maximum number of locals used in the method.\n\t * \n\t * @param maxLocals\n\t * The maximum number of locals used in the method.\n\t */\n\tpublic void setMaxLocals(int maxLocals);\n\n\t/**\n\t * Get the byte code array of the method.\n\t * \n\t * @return The byte code array of the method.\n\t */\n\tpublic byte[] code();\n\n\t/**\n\t * Set the byte code array of the method.\n\t * \n\t * @param code\n\t * The byte code array of the method.\n\t */\n\tpublic void setCode(byte[] code);\n\n\t/**\n\t * Get the line number debug info of the instructions in the method.\n\t * \n\t * @return The line numbers of the instructions in the method. The array\n\t * will be of size 0 if the method has no line number debug info.\n\t */\n\tpublic LineNumberDebugInfo[] lineNumbers();\n\n\t/**\n\t * Set the line number debug info of the instructions in the method.\n\t * \n\t * @param lineNumbers\n\t * The line numbers of the instructions in the method. The array\n\t * will be of size 0 if the method has no line number debug info.\n\t */\n\tpublic void setLineNumbers(LineNumberDebugInfo[] lineNumbers);\n\n\t/**\n\t * Get the local variable debug information for the method.\n\t * \n\t * @return The local variables in the method. The array will be of size 0 if\n\t * the method has no local variable debug info.\n\t */\n\tpublic LocalDebugInfo[] locals();\n\n\t/**\n\t * Set the local variables in the method.\n\t * \n\t * @param locals\n\t * The local variables in the method.\n\t */\n\tpublic void setLocals(LocalDebugInfo[] locals);\n\n\t/**\n\t * Get the exception handlers in the method.\n\t * \n\t * @return The exception handlers in the method.\n\t */\n\tpublic Catch[] exceptionHandlers();\n\n\t/**\n\t * Set the exception handlers in the method.\n\t * \n\t * @param exceptions\n\t * The exception handlers in the method.\n\t */\n\tpublic void setExceptionHandlers(Catch[] exceptions);\n\n\t/**\n\t * Creates a clone of this <tt>MethodInfo</tt> except that its declaring\n\t * class does not know about it.\n\t */\n\tpublic Object clone();\n}", "public final native void setFlags(int value) /*-{\n\t\tvar jso = [email protected]::getJsObj()();\n\t\tjso.flags = value;\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}", "public void setModifierFlag(int flag) {\n\t\tthis.modifier = flag;\n\t}", "public void setFlags(final Flags flags);", "public int getFlags() {\n return flags;\n }", "public List<MethodInfo> getMethods() { \n return lstMethodInfo;\n }", "private void checkMethodPermission(HandlerMethod handlerMethod) {\n RequirePermission annotation = handlerMethod.getMethodAnnotation(RequirePermission.class);\n String str = annotation.value();\n System.out.println(\"-----+++++++\");\n }", "public void testCreateMethodWithModifiersAndExceptions() {\n IDOMMethod method = this.domFactory.createMethod();\n method.setName(\"foo\");\n method.setFlags(ClassFileConstants.AccPrivate);\n method.setExceptions(new String[] { \"java.lang.IllegalArgumentException\", \"java.io.FileNotFoundExcpetion\" });\n assertSourceEquals(\"source code incorrect\", \"private void foo() throws java.lang.IllegalArgumentException, java.io.FileNotFoundExcpetion {\\n\" + \"}\\n\", method.getContents());\n }", "public interface C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }", "public boolean visit(MethodDeclaration decl, ClassScope scope) {\r\n\t\t\tif (decl instanceof InterTypeFieldDeclaration) \r\n\t\t\t\tvalue -= 2;\r\n\r\n\t\t\treturn super.visit(decl, scope);\r\n\t\t}", "private void resetFlags(){\n\t\tint count = 0;\n\t\tif (partOfAPairedAlignment) count += Math.pow(2, 0);\n\t\tif (aProperPairedAlignment) count += Math.pow(2, 1);\n\t\tif (unmapped) count += Math.pow(2, 2);\n\t\tif (mateUnMapped) count += Math.pow(2, 3);\n\t\tif (reverseStrand) count += Math.pow(2, 4);\n\t\tif (mateReverseStrand) count += Math.pow(2, 5);\n\t\tif (firstPair) count += Math.pow(2, 6);\n\t\tif (secondPair) count += Math.pow(2, 7);\n\t\tif (notAPrimaryAlignment) count += Math.pow(2, 8);\n\t\tif (failedQC) count += Math.pow(2, 9);\n\t\tif (aDuplicate) count += Math.pow(2, 10);\n\t\tflags = (short) count;\n\t\tflagResetNeeded = false;\n\t\t\n\t}", "private void mappingMethods() throws SecurityException, NoSuchMethodException{\n\t\tmappingMethodGet();\n\t\tmappingMethodSet();\n\t}", "private void setBooleanFlags (short flags){\n\t\tthis.flags = flags;\n\t\tflagResetNeeded = false;\n\t\tpartOfAPairedAlignment = isPartOfAPairedAlignment();\n\t\taProperPairedAlignment = isAProperPairedAlignment();\n\t\tunmapped = isUnmapped();\n\t\tmateUnMapped = isMateUnMapped();\n\t\treverseStrand = isReverseStrand();\n\t\tmateReverseStrand = isMateReverseStrand();\n\t\tfirstPair = isFirstPair();\n\t\tsecondPair = isSecondPair();\n\t\tnotAPrimaryAlignment = isNotAPrimaryAlignment();\n\t\tfailedQC = failedQC();\n\t\taDuplicate = isADuplicate();\n\t\t\n\t}" ]
[ "0.6459756", "0.61941135", "0.6124305", "0.6054357", "0.6038953", "0.6038953", "0.58764786", "0.58633894", "0.586231", "0.586231", "0.58388376", "0.5695067", "0.5662682", "0.5656152", "0.56525016", "0.5636611", "0.5633119", "0.560779", "0.560779", "0.55963707", "0.5585593", "0.5527335", "0.55259675", "0.55178744", "0.5497699", "0.5462038", "0.5460664", "0.54553145", "0.54315555", "0.5428095", "0.5423939", "0.5423252", "0.5405602", "0.5403003", "0.5399762", "0.5359158", "0.5347791", "0.5321582", "0.5317954", "0.53177696", "0.53112406", "0.5308062", "0.53007996", "0.5287687", "0.52810687", "0.5266063", "0.5265689", "0.52653694", "0.5262753", "0.52625436", "0.5258052", "0.5258052", "0.52249104", "0.52223516", "0.52184665", "0.52071375", "0.5204527", "0.5204301", "0.5195871", "0.51853406", "0.5169663", "0.51661706", "0.5161185", "0.51575136", "0.51456904", "0.5145592", "0.51448935", "0.51339334", "0.5129795", "0.51288617", "0.51288617", "0.51249367", "0.51229906", "0.51223254", "0.51202285", "0.5116746", "0.5112507", "0.51069206", "0.5106849", "0.5105911", "0.5099613", "0.50912666", "0.5082884", "0.5078926", "0.5078926", "0.5075503", "0.507498", "0.5074663", "0.50737566", "0.5067883", "0.50673777", "0.5066441", "0.50620204", "0.5058641", "0.50536793", "0.50520235", "0.50424683", "0.50392544", "0.5032849", "0.50326675", "0.5027472" ]
0.0
-1
Manipulate the method access flags.
public void setAbstract(boolean on) { if (on) setAccessFlags(getAccessFlags() | Constants.ACCESS_ABSTRACT); else setAccessFlags(getAccessFlags() & ~Constants.ACCESS_ABSTRACT); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void checkAccessModifier(Method method);", "public abstract int flags();", "private void writeMethodModifiers(Method m) {\n int mod = m.getModifiers();\n mod &= ~Modifier.ABSTRACT;\n mod &= ~Modifier.TRANSIENT;\n writer.print(Modifier.toString(mod) + \" \");\n }", "public int getAccessFlags() {\n return access_flags;\n }", "public int getFlags();", "public int getFlags();", "public long getFlags() {\n }", "public void testCreateMethodWithModifiers() {\n IDOMMethod method = this.domFactory.createMethod();\n method.setName(\"foo\");\n method.setFlags(ClassFileConstants.AccPublic | ClassFileConstants.AccStatic);\n assertSourceEquals(\"source code incorrect\", \"public static void foo() {\\n\" + \"}\\n\", method.getContents());\n }", "int getModifiers();", "int getModifiers();", "public Set<Method> getMethods() {\r\n \t\t// We will only consider private methods in the declared class\r\n \t\tif (forceAccess)\r\n \t\t\treturn setUnion(source.getDeclaredMethods(), source.getMethods());\r\n \t\telse\r\n \t\t\treturn setUnion(source.getMethods());\r\n \t}", "JApiModifier<AccessModifier> getAccessModifier();", "@Override\n\t\t\tpublic void visit(MethodDeclaration arg0, Object arg1) {\n\t\t\t\tif((arg0.getModifiers() & Modifier.PUBLIC) == Modifier.PUBLIC) {\n\t\t\t\t\t\tif(arg0.getName().substring(0, 3) == \"get\" || arg0.getName().substring(0, 3) == \"set\")\n\t\t\t\t\t\t\tpublicAcces.add(new Pair(arg0.getName() + \"( \"+planeL(arg0.getParameters()) +\") :\" + arg0.getType().toString(), Character.toLowerCase(arg0.getName().substring(3).charAt(0)) + (arg0.getName().substring(3).length() > 1 ? arg0.getName().substring(3).substring(1) : \"\")));\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tpublicAcces.add(new Pair(arg0.getName() + \"( \"+planeL(arg0.getParameters()) +\") :\" + arg0.getType().toString(), Character.toLowerCase(arg0.getName().substring(3).charAt(0)) + (arg0.getName().substring(3).length() > 1 ? arg0.getName().substring(3).substring(1) : \"\")));\n\t\t\t\t\t\tuses(arg0.getParameters());\n\t\t\t\t}\n\t\t\t\tsuper.visit(arg0, arg1);\n\t\t\t}", "long getFlags();", "private int patchAccess(BT_Method bm,BT_InsVector iv,int idx)\n{\n int ctr = 0;\n\n if (patch_type.getPatchLocalAccess() || patch_type.getPatchRemoteAccess()) {\n BT_FieldRefIns fri = (BT_FieldRefIns) iv.elementAt(idx);\n BT_Field fld = fri.getFieldTarget();\n if (fri.opcode == BT_Opcodes.opc_getstatic) {\n\t ctr = patch_type.getInstrumenter().patchStaticAccess(fld,bm,iv,idx);\n }\n else {\n\t ctr = patch_type.getInstrumenter().patchFieldAccess(fld,bm,iv,idx);\n }\n }\n\n patch_delta += ctr;\n\n return ctr;\n}", "private void mappingMethodSet() throws SecurityException, NoSuchMethodException{\n\t\tString aux = upFirstLetter();\n\t\tString methodSet = \"set\" + aux;\n\t\tthis.methodSet = this.classFather.getMethod(methodSet, this.classType);\n\t}", "public int modifiers();", "public interface ApiFlags {\n int GET_SOMETHING = 0;\n int GET_SOMETHING_ELSE = 1;\n }", "public interface ApiFlags {\n int GET_SOMETHING = 0;\n int GET_SOMETHING_ELSE = 1;\n }", "protected abstract MethodDescription accessorMethod();", "private void setFlag(short r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00f2 in method: android.location.GpsClock.setFlag(short):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.location.GpsClock.setFlag(short):void\");\n }", "@FameProperty(name = \"numberOfAccessingMethods\", derived = true)\n public Number getNumberOfAccessingMethods() {\n throw new UnsupportedOperationException(\"Not yet implemented!\"); \n }", "boolean isSetMethod();", "public abstract Set<MethodUsage> getDeclaredMethods();", "public void updateFlags()\n {\n initialize();\n }", "private static boolean getInternalPublicMethods(Class<?> paramClass, Map<Signature, Method> paramMap) {\n/* 143 */ Method[] arrayOfMethod = null;\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ try {\n/* 150 */ if (!Modifier.isPublic(paramClass.getModifiers())) {\n/* 151 */ return false;\n/* */ }\n/* 153 */ if (!ReflectUtil.isPackageAccessible(paramClass)) {\n/* 154 */ return false;\n/* */ }\n/* */ \n/* 157 */ arrayOfMethod = paramClass.getMethods();\n/* 158 */ } catch (SecurityException securityException) {\n/* 159 */ return false;\n/* */ } \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 168 */ boolean bool = true; byte b;\n/* 169 */ for (b = 0; b < arrayOfMethod.length; b++) {\n/* 170 */ Class<?> clazz = arrayOfMethod[b].getDeclaringClass();\n/* 171 */ if (!Modifier.isPublic(clazz.getModifiers())) {\n/* 172 */ bool = false;\n/* */ \n/* */ break;\n/* */ } \n/* */ } \n/* 177 */ if (bool) {\n/* */ \n/* */ \n/* */ \n/* */ \n/* 182 */ for (b = 0; b < arrayOfMethod.length; b++) {\n/* 183 */ addMethod(paramMap, arrayOfMethod[b]);\n/* */ \n/* */ }\n/* */ \n/* */ }\n/* */ else {\n/* */ \n/* 190 */ for (b = 0; b < arrayOfMethod.length; b++) {\n/* 191 */ Class<?> clazz = arrayOfMethod[b].getDeclaringClass();\n/* 192 */ if (paramClass.equals(clazz)) {\n/* 193 */ addMethod(paramMap, arrayOfMethod[b]);\n/* */ }\n/* */ } \n/* */ } \n/* 197 */ return bool;\n/* */ }", "@Override\n\tpublic void setAccessModifier(AccessModifier modifier) {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "int getFlag();", "public void beforeHookedMethod(MethodHookParam methodHookParam) throws Throwable {\n super.beforeHookedMethod(methodHookParam);\n methodHookParam.setResult(AbsSavedState.EMPTY_STATE);\n Field findField = XposedHelpers.findField(View.class, \"mPrivateFlags\");\n findField.set(methodHookParam.thisObject, Integer.valueOf(findField.getInt(methodHookParam.thisObject) | 131072));\n }", "public void setFlagMethodName(String name) {\n m_flagMethodName = name;\n }", "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}", "public void changeMode() {\n methodMode = !methodMode;\n }", "private void mappingMethodGet() throws SecurityException, NoSuchMethodException{\n\t\tString aux = upFirstLetter();\n\t\tString methodGet = \"get\" + aux;\n\t\tthis.methodGet = this.classFather.getMethod(methodGet);\n\t}", "public void testMethodInfo888() throws Exception {\n\t\tClassInfo var2785 = instantiateClassInfo430();\n\t\tFieldInfo var2786 = instantiateFieldInfo429();\n\t\tList<ClassInfo> var2764 = Collections.emptyList();\n\t\tList<ParameterInfo> var2766 = Collections.emptyList();\n\t\tList<LocalVariableInfo> var2767 = Collections.emptyList();\n\t\tList<Operation> var2768 = Collections.emptyList();\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tMethodInfo var2787 = new MethodInfo(var2785, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList());\n\t\tClassInfo var2765 = new ClassInfo(\"super\", false, null, var2764, null);\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2785.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2785.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2785.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tClassInfo var2771 = new ClassInfo(\"super\", false, var2765, var2764,\n\t\t\t\tnull);\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2785.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2785.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2785.getSetters();\n\t\tvar2787.isSetter();\n\t\tvar2787.isSetter();\n\t}", "public void setModifiers(int modifiers);", "Method getMethod(int id, boolean filterObsolete);", "private boolean isFlagSet(short r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00f2 in method: android.location.GpsClock.isFlagSet(short):boolean, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.location.GpsClock.isFlagSet(short):boolean\");\n }", "public MethodVisitor visitMethod(int access, String name, String desc, String signature, String[] exceptions) {\n if (\"size\".equals(name) && \"()I\".equals(desc)) {\n return addWrapperMethod(access, name, desc, signature, exceptions);\n } else if (\"isEmpty\".equals(name) && \"()Z\".equals(desc)) {\n return addWrapperMethod(access, name, desc, signature, exceptions);\n } else if (\"containsValue\".equals(name) && \"(Ljava/lang/Object;)Z\".equals(desc)) {\n return addWrapperMethod(access, name, desc, signature, exceptions);\n }\n\n MethodVisitor mv = super.visitMethod(access, name, desc, signature, exceptions);\n if (\"entrySet\".equals(name) && \"()Ljava/util/Set;\".equals(desc)) {\n return new EntrySetMethodAdapter(mv);\n } else if (\"segmentFor\".equals(name) && \"(I)Ljava/util/concurrent/ConcurrentHashMap$Segment;\".equals(desc)) {\n return rewriteSegmentForMethod(mv);\n } else if (\"get\".equals(name) && \"(Ljava/lang/Object;)Ljava/lang/Object;\".equals(desc)) {\n return new MulticastMethodVisitor(new MethodVisitor[] {\n new OriginalGetMethodAdapter(super.visitMethod(ACC_SYNTHETIC|ACC_PUBLIC, TC_ORIG_GET_METHOD_NAME, TC_ORIG_GET_METHOD_DESC, null, null)),\n new ConcurrentHashMapMethodAdapter(new GetMethodAdapter(mv))});\n }\n \n if (\"put\".equals(name) && \"(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;\".equals(desc)) {\n mv = new MulticastMethodVisitor(new MethodVisitor[] {\n mv,\n new ApplicatorPutMethodAdapter(super.visitMethod(ACC_SYNTHETIC|ACC_PUBLIC, TC_APPLICATOR_PUT_METHOD_NAME, TC_APPLICATOR_PUT_METHOD_DESC, null, null))});\n } else if (\"clear\".equals(name) && \"()V\".equals(desc)) {\n mv = new MulticastMethodVisitor(new MethodVisitor[] {\n mv,\n new ApplicatorClearMethodAdapter(super.visitMethod(ACC_SYNTHETIC|ACC_PUBLIC, TC_APPLICATOR_CLEAR_METHOD_NAME, TC_APPLICATOR_CLEAR_METHOD_DESC, null, null))});\n } else if (\"containsKey\".equals(name) && \"(Ljava/lang/Object;)Z\".equals(desc)) {\n mv = new ContainsKeyMethodAdapter(mv);\n } else if (\"remove\".equals(name) && \"(Ljava/lang/Object;)Ljava/lang/Object;\".equals(desc)) {\n mv = new MulticastMethodVisitor(new MethodVisitor[] {\n new SimpleRemoveMethodAdapter(mv),\n new ApplicatorRemoveMethodAdapter(super.visitMethod(ACC_SYNTHETIC|ACC_PUBLIC, TC_APPLICATOR_REMOVE_METHOD_NAME, TC_APPLICATOR_REMOVE_METHOD_DESC, null, null)),\n new RemoveLogicalMethodAdapter(super.visitMethod(ACC_SYNTHETIC|ACC_PUBLIC, TC_REMOVE_LOGICAL_METHOD_NAME, TC_REMOVE_LOGICAL_METHOD_DESC, null, null))});\n } else if (\"remove\".equals(name) && \"(Ljava/lang/Object;Ljava/lang/Object;)Z\".equals(desc)) {\n mv = new RemoveMethodAdapter(mv);\n } else if (\"replace\".equals(name) && \"(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;\".equals(desc)) {\n mv = new SimpleReplaceMethodAdapter(mv);\n } else if (\"replace\".equals(name) && \"(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Z\".equals(desc)) {\n mv = new ReplaceMethodAdapter(mv);\n } else if (\"writeObject\".equals(name) && \"(Ljava/io/ObjectOutputStream;)V\".equals(desc)) {\n mv = new JavaUtilConcurrentHashMapLazyValuesMethodAdapter(access, desc, mv, false);\n }\n\n return new ConcurrentHashMapMethodAdapter(mv);\n }", "public void setReadWriteOnMyLatestView()\n {\n \t m_acl = \tm_acl | (1<<2);\n }", "public static Collection<FieldAccessFlag> getFlags()\n\t{\n\t\treturn Lists.newArrayList(PUBLIC, PRIVATE, PROTECTED, STATIC, FINAL, VOLATILE, TRANSIENT, ENUM,\n\t\t\tSYNTHETIC);\n\t}", "private void addAccessor(ThreadContext context, String internedName, Visibility visibility, boolean readable, boolean writeable) {\n assert internedName == internedName.intern() : internedName + \" is not interned\";\n \n final Ruby runtime = context.getRuntime();\n \n if (visibility == PRIVATE) {\n //FIXME warning\n } else if (visibility == MODULE_FUNCTION) {\n visibility = PRIVATE;\n // FIXME warning\n }\n final String variableName = (\"@\" + internedName).intern();\n if (readable) {\n addMethod(internedName, new JavaMethodZero(this, visibility, CallConfiguration.FrameNoneScopeNone) {\n private RubyClass.VariableAccessor accessor = RubyClass.VariableAccessor.DUMMY_ACCESSOR;\n public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, String name) {\n IRubyObject variable = (IRubyObject)verifyAccessor(self.getMetaClass().getRealClass()).get(self);\n \n return variable == null ? runtime.getNil() : variable;\n }\n \n private RubyClass.VariableAccessor verifyAccessor(RubyClass cls) {\n RubyClass.VariableAccessor localAccessor = accessor;\n if (localAccessor.getClassId() != cls.hashCode()) {\n localAccessor = cls.getVariableAccessorForRead(variableName);\n accessor = localAccessor;\n }\n return localAccessor;\n }\n });\n callMethod(context, \"method_added\", runtime.fastNewSymbol(internedName));\n }\n if (writeable) {\n internedName = (internedName + \"=\").intern();\n addMethod(internedName, new JavaMethodOne(this, visibility, CallConfiguration.FrameNoneScopeNone) {\n private RubyClass.VariableAccessor accessor = RubyClass.VariableAccessor.DUMMY_ACCESSOR;\n public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, String name, IRubyObject arg1) {\n verifyAccessor(self.getMetaClass().getRealClass()).set(self, arg1);\n return arg1;\n }\n \n private RubyClass.VariableAccessor verifyAccessor(RubyClass cls) {\n RubyClass.VariableAccessor localAccessor = accessor;\n if (localAccessor.getClassId() != cls.hashCode()) {\n localAccessor = cls.getVariableAccessorForWrite(variableName);\n accessor = localAccessor;\n }\n return localAccessor;\n }\n });\n callMethod(context, \"method_added\", runtime.fastNewSymbol(internedName));\n }\n }", "public void setFlags(int param1) {\n }", "private void scanAndCopyMethods() {\n int numMethods = copyShort();\n for (int i = 0; i < numMethods; i++) {\n scanAndCopyAccessFlags();\n copy(4); // name_index, descriptor_index\n int numAttributes = copyShort();\n for (int j = 0; j < numAttributes; j++) {\n // Look for \"Code\" attribute.\n int attrNameIdx = copyShort();\n if (cpIdxIsCode(attrNameIdx)) {\n processCodeAttribute();\n } else {\n copyRestOfAttribute();\n }\n }\n }\n }", "public static void setFlags(int flag){\r\n flags |= flag;\r\n }", "void setAccessible(boolean accessible);", "public static native void OpenMM_AmoebaVdwForce_setAlchemicalMethod(PointerByReference target, int method);", "public void testMethodInfo889() throws Exception {\n\t\tClassInfo var2788 = instantiateClassInfo431();\n\t\tList<ClassInfo> var2764 = Collections.emptyList();\n\t\tList<ParameterInfo> var2766 = Collections.emptyList();\n\t\tList<LocalVariableInfo> var2767 = Collections.emptyList();\n\t\tList<Operation> var2768 = Collections.emptyList();\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tMethodInfo var2789 = new MethodInfo(var2788, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList());\n\t\tClassInfo var2765 = new ClassInfo(\"super\", false, null, var2764, null);\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tClassInfo var2771 = new ClassInfo(\"super\", false, var2765, var2764,\n\t\t\t\tnull);\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2788.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2788.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2788.getSetters();\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2788.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2788.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2788.getSetters();\n\t\tvar2789.isSetter();\n\t\tvar2789.isSetter();\n\t}", "public void method_203() {}", "public interface MethodHandleInfo {\n\n\t/**\n\t * Getter MethodHandle for an instance field\n\t */\n\tstatic final int REF_getField = 1;\n\n\t/**\n\t * Getter MethodHandle for an static field\n\t */\n\tstatic final int REF_getStatic = 2;\n\n\t/**\n\t * Setter MethodHandle for an instance field\n\t */\n\tstatic final int REF_putField = 3;\n\n\t/**\n\t * Setter MethodHandle for an static field\n\t */\n\tstatic final int REF_putStatic = 4;\n\n\t/**\n\t * MethodHandle for an instance method\n\t */\n\tstatic final int REF_invokeVirtual = 5;\n\n\t/**\n\t * MethodHandle for a static method\n\t */\n\tstatic final int REF_invokeStatic = 6;\n\n\t/**\n\t * MethodHandle for an special method\n\t */\n\tstatic final int REF_invokeSpecial = 7;\n\n\t/**\n\t * MethodHandle for a constructor\n\t */\n\tstatic final int REF_newInvokeSpecial = 8;\n\n\t/**\n\t * MethodHandle for an interface method\n\t */\n\tstatic final int REF_invokeInterface = 9;\n\n\t/**\n\t * Returns the Class where the cracked MethodHandle's underlying method, field or constructor is declared.\n\t *\n\t * @return class that declares the underlying member\n\t */\n\tClass<?> getDeclaringClass();\n\n\t/**\n\t * Returns the simple name of the MethodHandle's underlying member.\n\t *\n\t * @return A string representing the name of the method or field, or \"&lt;init&gt;\" for constructor.\n\t */\n\tString getName();\n\n\t/**\n\t * Returns the type of the MethodHandle's underlying member as a MethodType.\n\t * If the underlying member is non-static, the receiver parameter will not be included.\n\t * If the underlying member is field getter, the MethodType will take no parameters, and the return type will be the field type.\n\t * If the underlying member is field setter, the MethodType will take one parameter of the field type, and the return type will be void.\n\t *\n\t * @return A MethodType object representing the signature of the method or field\n\t */\n\tMethodType getMethodType();\n\n\t/**\n\t * Returns the modifiers of the MethodHandle's underlying member.\n\t *\n\t * @return An int representing the member's modifiers, or -1 if the underlying member is not accessible.\n\t */\n\tint getModifiers();\n\n\t/**\n\t * Returns the reference kind of the MethodHandle. The possible reference kinds are the declared MethodHandleInfo.REF fields.\n\t *\n\t * @return Returns one of the defined reference kinds which represent the MethodHandle kind.\n\t */\n\tint getReferenceKind();\n\n\t/**\n\t * Returns whether the MethodHandle's underlying method or constructor has variable argument arity.\n\t *\n\t * @return whether the underlying method has variable arity\n\t */\n\tdefault boolean isVarArgs() {\n\t\t// Check whether the MethodHandle refers to a Method or Contructor (not Field)\n\t\tif (getReferenceKind() >= REF_invokeVirtual) {\n\t\t\treturn ((getModifiers() & MethodHandles.Lookup.VARARGS) != 0);\n\t\t}\n\t\treturn false;\n\t}\n\n\t/**\n\t * Reflects the underlying member as a Method, Field or Constructor. The member must be accessible to the provided lookup object.\n\t * Public members are reflected as if by <code>getMethod</code>, <code>getField</code> or <code>getConstructor</code>.\n\t * Non-public members are reflected as if by <code>getDeclearedMethod</code>, <code>getDeclaredField</code> or <code>getDeclaredConstructor</code>.\n\t *\n\t * @param expected The expected type of the returned Member\n\t * @param lookup The lookup that was used to create the MethodHandle, or a lookup object with equivalent access\n\t * @return A Method, Field or Constructor representing the underlying member of the MethodHandle\n\t * @throws NullPointerException If either argument is null\n\t * @throws IllegalArgumentException If the underlying member is not accessible to the provided lookup object\n\t * @throws ClassCastException If the underlying member is not of the expected type\n\t */\n\t<T extends java.lang.reflect.Member> T reflectAs(Class<T> expected, MethodHandles.Lookup lookup);\n\n\t/**\n\t * Returns a string representing the equivalent bytecode for the referenceKind.\n\t *\n\t * @param referenceKind The referenceKind to lookup\n\t * @return a String representing the equivalent bytecode\n\t * @throws IllegalArgumentException If the provided referenceKind is invalid\n\t */\n\tstatic String referenceKindToString(int referenceKind) throws IllegalArgumentException {\n\t\tswitch(referenceKind) {\n\t\tcase REF_getField: \t\t\treturn \"getField\"; //$NON-NLS-1$\n\t\tcase REF_getStatic: \t\treturn \"getStatic\"; //$NON-NLS-1$\n\t\tcase REF_putField: \t\t\treturn \"putField\"; //$NON-NLS-1$\n\t\tcase REF_putStatic: \t\treturn \"putStatic\"; //$NON-NLS-1$\n\t\tcase REF_invokeVirtual: \treturn \"invokeVirtual\"; //$NON-NLS-1$\n\t\tcase REF_invokeStatic: \t\treturn \"invokeStatic\"; //$NON-NLS-1$\n\t\tcase REF_invokeSpecial: \treturn \"invokeSpecial\"; //$NON-NLS-1$\n\t\tcase REF_newInvokeSpecial: \treturn \"newInvokeSpecial\"; //$NON-NLS-1$\n\t\tcase REF_invokeInterface: \treturn \"invokeInterface\"; //$NON-NLS-1$\n\t\t}\n\t\t// K0582 = Reference kind \"{0\"} is invalid\n\t\tthrow new IllegalArgumentException(com.ibm.oti.util.Msg.getString(\"K0582\", referenceKind)); //$NON-NLS-1$\n\t}\n\n\t/**\n\t * Answers a string containing a concise, human-readable description of the receiver.\n\t *\n\t * @param kind the reference kind, one of the declared MethodHandleInfo.REF fields.\n\t * @param defc the class where the member is declared\n\t * @param name the name of the member\n\t * @param type the member's MethodType\n\t * @return a String of the format \"K C.N:MT\"\n\t */\n\tstatic String toString(int kind, Class<?> defc, String name, MethodType type) {\n\t\treturn referenceKindToString(kind) + \" \" + defc.getName() + \".\" + name + \":\" + type; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$\n\t}\n\n}", "public void andThisIsAMethodName(){}", "String getAccess();", "String getAccess();", "@Override\n\tpublic int getFlags() {\n\t\treturn heldObj.getFlags();\n\t}", "private Method getPrivateMethodFromAtrManager(String methodName, Class<?>... argClasses) throws Exception {\n\t\tMethod method = AttributesManagerBlImpl.class.getDeclaredMethod(methodName, argClasses);\n\t\tmethod.setAccessible(true);\n\t\treturn method;\n\t}", "public String getAccess();", "public void testMethodInfo886() throws Exception {\n\t\tClassInfo var2776 = instantiateClassInfo426();\n\t\tLocalField var2777 = instantiateLocalField425();\n\t\tList<ClassInfo> var2764 = Collections.emptyList();\n\t\tList<ParameterInfo> var2766 = Collections.emptyList();\n\t\tList<LocalVariableInfo> var2767 = Collections.emptyList();\n\t\tList<Operation> var2768 = Collections.emptyList();\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tMethodInfo var2778 = new MethodInfo(var2776, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList());\n\t\tvar2777.getDescription();\n\t\tvar2777.getDescription();\n\t\tClassInfo var2765 = new ClassInfo(\"super\", false, null, var2764, null);\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tClassInfo var2771 = new ClassInfo(\"super\", false, var2765, var2764,\n\t\t\t\tnull);\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2776.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2776.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2776.getSetters();\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2776.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2776.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2776.getSetters();\n\t\tvar2778.isSetter();\n\t\tvar2778.isSetter();\n\t}", "@Override\n public MethodDescriptor[] getMethodDescriptors() {\n return getMdescriptor();\n }", "private RubyArray instance_methods(IRubyObject[] args, final Visibility visibility, boolean not, boolean useSymbols) {\n boolean includeSuper = args.length > 0 ? args[0].isTrue() : true;\n Ruby runtime = getRuntime();\n RubyArray ary = runtime.newArray();\n Set<String> seen = new HashSet<String>();\n \n populateInstanceMethodNames(seen, ary, visibility, not, useSymbols, includeSuper);\n \n return ary;\n }", "public void testMethodInfo887() throws Exception {\n\t\tClassInfo var2782 = instantiateClassInfo428();\n\t\tLocalField var2783 = instantiateLocalField427();\n\t\tList<ClassInfo> var2764 = Collections.emptyList();\n\t\tList<ParameterInfo> var2766 = Collections.emptyList();\n\t\tList<LocalVariableInfo> var2767 = Collections.emptyList();\n\t\tList<Operation> var2768 = Collections.emptyList();\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tMethodInfo var2784 = new MethodInfo(var2782, \"voidX()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList());\n\t\tvar2783.getDescription();\n\t\tvar2783.getDescription();\n\t\tClassInfo var2765 = new ClassInfo(\"super\", false, null, var2764, null);\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tClassInfo var2771 = new ClassInfo(\"super\", false, var2765, var2764,\n\t\t\t\tnull);\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2782.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2782.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2782.getSetters();\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2782.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2782.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2782.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2784.isSetter();\n\t\tvar2784.isSetter();\n\t}", "public String methodBase() {\n\t\tString tmp = name;\n\t\ttmp = tmp.replaceFirst(\"^get\", \"\");\n\t\ttmp = tmp.replaceFirst(\"^is\", \"\");\n\t\treturn tmp.substring(0,1).toLowerCase()+tmp.substring(1);\n\t}", "public int getModifiers() {\n return mod;\n }", "MethodName getMethod();", "boolean isAccessed (ClassMember attr) {\r\n if (accessed_attributes == null) {\r\n accessed_attributes = new java.util.Vector ();\r\n } else if (accessed_attributes.contains (attr)) {\r\n return true;\r\n } \r\n\r\n accessed_attributes.addElement (attr);\r\n return false;\r\n }", "protected void updateFlags() {\n USE_CANNY = USE_CANNY && mainInterface.DEBUG_FRAME;\n DEBUG_PREP_FRAME = DEBUG_PREP_FRAME && mainInterface.DEBUG_FRAME;\n DEBUG_CONTOURS = DEBUG_CONTOURS && mainInterface.DEBUG_FRAME;\n DEBUG_POLY = DEBUG_POLY && mainInterface.DEBUG_FRAME;\n DEBUG_DRAW_MARKERS = DEBUG_DRAW_MARKERS && mainInterface.DEBUG_FRAME;\n DEBUG_DRAW_MARKER_ID = DEBUG_DRAW_MARKER_ID && mainInterface.DEBUG_FRAME;\n DEBUG_DRAW_SAMPLING = DEBUG_DRAW_SAMPLING && mainInterface.DEBUG_FRAME;\n }", "private void resetFlag(short r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00f2 in method: android.location.GpsClock.resetFlag(short):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.location.GpsClock.resetFlag(short):void\");\n }", "public GetterSetterInliner(CodeAttrInfoEditor codeAttrInfoEditor,\n boolean allowAccessModification)\n {\n this.codeAttrInfoEditor = codeAttrInfoEditor;\n this.allowAccessModification = allowAccessModification;\n }", "public static boolean canAccessFieldsDirectly(){\n return false; //TODO codavaj!!\n }", "public synchronized void setFlags(Flags newFlags, boolean set) throws MessagingException {\n/* 91 */ Flags oldFlags = (Flags)this.flags.clone();\n/* 92 */ super.setFlags(newFlags, set);\n/* 93 */ if (!this.flags.equals(oldFlags)) {\n/* 94 */ this.folder.notifyMessageChangedListeners(1, (Message)this);\n/* */ }\n/* */ }", "protected final boolean isMutable() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: android.icu.impl.coll.CollationDataBuilder.isMutable():boolean, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.icu.impl.coll.CollationDataBuilder.isMutable():boolean\");\n }", "Method getMethod();", "Method getMethod();", "public void setImportantForAccessibility(boolean important) {\n/* 1316 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public MethodPredicate withModifiers(int... modifiers) {\n this.withModifiers = Arrays.stream(modifiers).boxed().collect(Collectors.toList());\n return this;\n }", "@Override\n\t\t\tpublic MethodVisitor visitMethod(int access, String name, String desc, String signature, String[] exceptions) {\n\t\t\t\tboolean isSynthetic = ClassInfoUtils.checkAccess(access, Opcodes.ACC_SYNTHETIC);\n\t\t\t\tboolean isNative = ClassInfoUtils.checkAccess(access, Opcodes.ACC_NATIVE);\n\t\t\t\tboolean isInterface = ClassInfoUtils.checkAccess(access, Opcodes.ACC_INTERFACE);\n\t\t\t\tboolean isAbstract = ClassInfoUtils.checkAccess(access, Opcodes.ACC_ABSTRACT);\n\t\t\t\t\n\t\t\t\tMethodVisitor mv = super.visitMethod(access, name, desc, signature, exceptions);\n\t\t\t\tif (name.equals(\"toString\") && desc.equals(\"()Ljava/lang/String;\")) {\n\t\t\t\t\treturn mv;\n\t\t\t\t} else if (name.equals(\"equals\") && desc.equals(\"(Ljava/lang/Object;)Z\")) {\n\t\t\t\t\treturn mv;\n\t\t\t\t} else if (name.equals(\"hashCode\") && desc.equals(\"()I\")) {\n\t\t\t\t\treturn mv;\n\t\t\t\t} else if (isSynthetic || isNative || isInterface || isAbstract) {\n\t\t\t\t\treturn mv;\n\t\t\t\t} else {\n\t\t\t\t\tmv = new DependencyAnalyzer(className, \n\t\t\t\t\t\t\taccess, \n\t\t\t\t\t\t\tname, \n\t\t\t\t\t\t\tdesc, \n\t\t\t\t\t\t\tsignature, \n\t\t\t\t\t\t\texceptions, \n\t\t\t\t\t\t\tmv, \n\t\t\t\t\t\t\ttrue,\n\t\t\t\t\t\t\tfalse, \n\t\t\t\t\t\t\ttrue, \n\t\t\t\t\t\t\ttrue);\n\t\t\t\t\t//mv = new CalleeAnalyzer(className, access, name, desc, signature, exceptions, mv, true);\n\t\t\t\t\treturn mv;\n\t\t\t\t}\n\t\t\t}", "@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 13:02:04.534 -0500\", hash_original_method = \"E4DEB0C107DDB25A537EF0E89F1C04F8\", hash_generated_method = \"2E76AFD8C90588F5139C0C2D28CAEA05\")\n \nprivate static int translateCodingErrorAction(CodingErrorAction action) {\n if (action == CodingErrorAction.REPORT) {\n return 0;\n } else if (action == CodingErrorAction.IGNORE) {\n return 1;\n } else if (action == CodingErrorAction.REPLACE) {\n return 2;\n } else {\n throw new AssertionError(); // Someone changed the enum.\n }\n }", "private boolean makeFieldAccessible(Field f)\n {\n // See: https://stackoverflow.com/questions/46454995/#58834966\n Method getModule;\n try\n {\n getModule = Class.class.getMethod(\"getModule\");\n }\n catch (NoSuchMethodException e)\n {\n // We are on Java 8\n getModule = null;\n }\n if (getModule != null)\n {\n try\n {\n Object thisModule = getModule.invoke(this.getClass());\n Method isNamed = thisModule.getClass().getMethod(\"isNamed\");\n if (!(boolean) isNamed.invoke(thisModule))\n {\n Class fieldClass = f.getDeclaringClass().getClass();\n Object fieldModule = getModule.invoke(fieldClass);\n Method addOpens = fieldModule.getClass().getMethod(\n \"addOpens\", String.class, thisModule.getClass());\n Method getPackageName = fieldClass.getMethod(\"getPackageName\");\n addOpens.invoke(fieldModule, getPackageName.invoke(fieldClass), thisModule);\n }\n }\n catch (Throwable t)\n {\n if (t instanceof InvocationTargetException)\n {\n InvocationTargetException e = (InvocationTargetException) t;\n if (e.getCause() != null\n && e.getCause().getClass().getName().endsWith(\"IllegalCallerException\"))\n {\n if (outputLogger != null)\n {\n outputLogger.debug(\n PROCESS_ATTRIBUTE_CHANGE_MESSAGE + e.getCause().getMessage(),\n this.getClass().getName());\n }\n t = null;\n }\n }\n if (t != null)\n {\n throw new CargoException(\"Cannot set field accessibility for [\" + f + \"]\", t);\n }\n return false;\n }\n }\n try\n {\n f.setAccessible(true);\n return true;\n }\n catch (Throwable t)\n {\n if (t.getClass().getName().endsWith(\"InaccessibleObjectException\"))\n {\n if (outputLogger != null)\n {\n outputLogger.debug(\n PROCESS_ATTRIBUTE_CHANGE_MESSAGE + t.getMessage(),\n this.getClass().getName());\n }\n t = null;\n }\n if (t != null)\n {\n throw new CargoException(\"Cannot set field accessibility for [\" + f + \"]\", t);\n }\n return false;\n }\n }", "Builder addAccessibilityFeature(String value);", "public Method getMethod();", "Methodsig getMethod();", "public short getFlags() {\n\treturn flags;\n }", "public boolean isPropertyAccessorMethod(Method paramMethod, Class paramClass) {\n/* 225 */ String str1 = paramMethod.getName();\n/* 226 */ Class<?> clazz = paramMethod.getReturnType();\n/* 227 */ Class[] arrayOfClass1 = paramMethod.getParameterTypes();\n/* 228 */ Class[] arrayOfClass2 = paramMethod.getExceptionTypes();\n/* 229 */ String str2 = null;\n/* */ \n/* 231 */ if (str1.startsWith(\"get\")) {\n/* */ \n/* 233 */ if (arrayOfClass1.length == 0 && clazz != void.class && \n/* 234 */ !readHasCorrespondingIsProperty(paramMethod, paramClass)) {\n/* 235 */ str2 = \"get\";\n/* */ }\n/* */ }\n/* 238 */ else if (str1.startsWith(\"set\")) {\n/* */ \n/* 240 */ if (clazz == void.class && arrayOfClass1.length == 1 && (\n/* 241 */ hasCorrespondingReadProperty(paramMethod, paramClass, \"get\") || \n/* 242 */ hasCorrespondingReadProperty(paramMethod, paramClass, \"is\"))) {\n/* 243 */ str2 = \"set\";\n/* */ \n/* */ }\n/* */ }\n/* 247 */ else if (str1.startsWith(\"is\") && \n/* 248 */ arrayOfClass1.length == 0 && clazz == boolean.class && \n/* 249 */ !isHasCorrespondingReadProperty(paramMethod, paramClass)) {\n/* 250 */ str2 = \"is\";\n/* */ } \n/* */ \n/* */ \n/* */ \n/* 255 */ if (str2 != null && (\n/* 256 */ !validPropertyExceptions(paramMethod) || str1\n/* 257 */ .length() <= str2.length())) {\n/* 258 */ str2 = null;\n/* */ }\n/* */ \n/* */ \n/* 262 */ return (str2 != null);\n/* */ }", "public void setAllowedMethods(Method... allowed)\n\t{\n\t\tStringBuilder s = new StringBuilder();\n\t\tfor (int i = 0; i < allowed.length; i++)\n\t\t{\n\t\t\tif (i != 0)\n\t\t\t\ts.append(\", \");\n\t\t\ts.append(allowed[i]);\n\t\t}\n\t\t\n\t\tsetHeader(ALLOW, s.toString());\n\t}", "public int getAccess()\n {\n ensureLoaded();\n return m_flags.getAccess();\n }", "String getMethod();", "String getMethod();", "public void setDeclared(int r1, boolean r2) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: org.xml.sax.ext.Attributes2Impl.setDeclared(int, boolean):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: org.xml.sax.ext.Attributes2Impl.setDeclared(int, boolean):void\");\n }", "@Override\n\tpublic MethodVisitor visitMethod(int access, String name, String desc, String signature, String[] exceptions) {\n\t\tparsingMethod = new Method(name, desc, parsingClass);\n\t\tparsingClass.getMethods().add(parsingMethod);\n\t\treturn completeMethodVisitor;\n\t}", "public interface MethodInfo {\n\t/**\n\t * Returns the class which declared the method.\n\t */\n\tpublic ClassInfo declaringClass();\n\n\t/**\n\t * Returns the index into the constant pool of the name of the method.\n\t */\n\tpublic int nameIndex();\n\n\t/**\n\t * Returns the index into the constant pool of the type of the method.\n\t */\n\tpublic int typeIndex();\n\n\t/**\n\t * Sets the index into the constant pool of the name of the method.\n\t */\n\tpublic void setNameIndex(int index);\n\n\t/**\n\t * Set the index into the constant pool of the type of the method.\n\t * \n\t * @param index\n\t * The index into the constant pool of the type of the method.\n\t */\n\tpublic void setTypeIndex(int index);\n\n\t/**\n\t * Set the modifiers of the method. The values correspond to the constants\n\t * in the Modifiers class.\n\t * \n\t * @param modifiers\n\t * A bit vector of modifier flags for the method.\n\t * @see Modifiers\n\t */\n\tpublic void setModifiers(int modifiers);\n\n\t/**\n\t * Get the modifiers of the method. The values correspond to the constants\n\t * in the Modifiers class.\n\t * \n\t * @return A bit vector of modifier flags for the method.\n\t * @see Modifiers\n\t */\n\tpublic int modifiers();\n\n\t/**\n\t * Get the indices into the constant pool of the types of the exceptions\n\t * thrown by the method.\n\t * \n\t * @return The indices into the constant pool of the types of the exceptions\n\t * thrown by the method.\n\t */\n\tpublic int[] exceptionTypes();\n\n\t/**\n\t * Get the maximum height of the operand stack.\n\t * \n\t * @return The maximum height of the operand stack.\n\t */\n\tpublic int maxStack();\n\n\t/**\n\t * Set the maximum height of the operand stack.\n\t * \n\t * @param maxStack\n\t * The maximum height of the operand stack.\n\t */\n\tpublic void setMaxStack(int maxStack);\n\n\t/**\n\t * Get the maximum number of locals used in the method.\n\t * \n\t * @return The maximum number of locals used in the method.\n\t */\n\tpublic int maxLocals();\n\n\t/**\n\t * Set the maximum number of locals used in the method.\n\t * \n\t * @param maxLocals\n\t * The maximum number of locals used in the method.\n\t */\n\tpublic void setMaxLocals(int maxLocals);\n\n\t/**\n\t * Get the byte code array of the method.\n\t * \n\t * @return The byte code array of the method.\n\t */\n\tpublic byte[] code();\n\n\t/**\n\t * Set the byte code array of the method.\n\t * \n\t * @param code\n\t * The byte code array of the method.\n\t */\n\tpublic void setCode(byte[] code);\n\n\t/**\n\t * Get the line number debug info of the instructions in the method.\n\t * \n\t * @return The line numbers of the instructions in the method. The array\n\t * will be of size 0 if the method has no line number debug info.\n\t */\n\tpublic LineNumberDebugInfo[] lineNumbers();\n\n\t/**\n\t * Set the line number debug info of the instructions in the method.\n\t * \n\t * @param lineNumbers\n\t * The line numbers of the instructions in the method. The array\n\t * will be of size 0 if the method has no line number debug info.\n\t */\n\tpublic void setLineNumbers(LineNumberDebugInfo[] lineNumbers);\n\n\t/**\n\t * Get the local variable debug information for the method.\n\t * \n\t * @return The local variables in the method. The array will be of size 0 if\n\t * the method has no local variable debug info.\n\t */\n\tpublic LocalDebugInfo[] locals();\n\n\t/**\n\t * Set the local variables in the method.\n\t * \n\t * @param locals\n\t * The local variables in the method.\n\t */\n\tpublic void setLocals(LocalDebugInfo[] locals);\n\n\t/**\n\t * Get the exception handlers in the method.\n\t * \n\t * @return The exception handlers in the method.\n\t */\n\tpublic Catch[] exceptionHandlers();\n\n\t/**\n\t * Set the exception handlers in the method.\n\t * \n\t * @param exceptions\n\t * The exception handlers in the method.\n\t */\n\tpublic void setExceptionHandlers(Catch[] exceptions);\n\n\t/**\n\t * Creates a clone of this <tt>MethodInfo</tt> except that its declaring\n\t * class does not know about it.\n\t */\n\tpublic Object clone();\n}", "public final native void setFlags(int value) /*-{\n\t\tvar jso = [email protected]::getJsObj()();\n\t\tjso.flags = value;\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}", "public void setModifierFlag(int flag) {\n\t\tthis.modifier = flag;\n\t}", "public void setFlags(final Flags flags);", "public int getFlags() {\n return flags;\n }", "public List<MethodInfo> getMethods() { \n return lstMethodInfo;\n }", "private void checkMethodPermission(HandlerMethod handlerMethod) {\n RequirePermission annotation = handlerMethod.getMethodAnnotation(RequirePermission.class);\n String str = annotation.value();\n System.out.println(\"-----+++++++\");\n }", "public void testCreateMethodWithModifiersAndExceptions() {\n IDOMMethod method = this.domFactory.createMethod();\n method.setName(\"foo\");\n method.setFlags(ClassFileConstants.AccPrivate);\n method.setExceptions(new String[] { \"java.lang.IllegalArgumentException\", \"java.io.FileNotFoundExcpetion\" });\n assertSourceEquals(\"source code incorrect\", \"private void foo() throws java.lang.IllegalArgumentException, java.io.FileNotFoundExcpetion {\\n\" + \"}\\n\", method.getContents());\n }", "public interface C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }", "public boolean visit(MethodDeclaration decl, ClassScope scope) {\r\n\t\t\tif (decl instanceof InterTypeFieldDeclaration) \r\n\t\t\t\tvalue -= 2;\r\n\r\n\t\t\treturn super.visit(decl, scope);\r\n\t\t}", "private void resetFlags(){\n\t\tint count = 0;\n\t\tif (partOfAPairedAlignment) count += Math.pow(2, 0);\n\t\tif (aProperPairedAlignment) count += Math.pow(2, 1);\n\t\tif (unmapped) count += Math.pow(2, 2);\n\t\tif (mateUnMapped) count += Math.pow(2, 3);\n\t\tif (reverseStrand) count += Math.pow(2, 4);\n\t\tif (mateReverseStrand) count += Math.pow(2, 5);\n\t\tif (firstPair) count += Math.pow(2, 6);\n\t\tif (secondPair) count += Math.pow(2, 7);\n\t\tif (notAPrimaryAlignment) count += Math.pow(2, 8);\n\t\tif (failedQC) count += Math.pow(2, 9);\n\t\tif (aDuplicate) count += Math.pow(2, 10);\n\t\tflags = (short) count;\n\t\tflagResetNeeded = false;\n\t\t\n\t}", "private void mappingMethods() throws SecurityException, NoSuchMethodException{\n\t\tmappingMethodGet();\n\t\tmappingMethodSet();\n\t}", "private void setBooleanFlags (short flags){\n\t\tthis.flags = flags;\n\t\tflagResetNeeded = false;\n\t\tpartOfAPairedAlignment = isPartOfAPairedAlignment();\n\t\taProperPairedAlignment = isAProperPairedAlignment();\n\t\tunmapped = isUnmapped();\n\t\tmateUnMapped = isMateUnMapped();\n\t\treverseStrand = isReverseStrand();\n\t\tmateReverseStrand = isMateReverseStrand();\n\t\tfirstPair = isFirstPair();\n\t\tsecondPair = isSecondPair();\n\t\tnotAPrimaryAlignment = isNotAPrimaryAlignment();\n\t\tfailedQC = failedQC();\n\t\taDuplicate = isADuplicate();\n\t\t\n\t}" ]
[ "0.6459756", "0.61941135", "0.6124305", "0.6054357", "0.6038953", "0.6038953", "0.58764786", "0.58633894", "0.586231", "0.586231", "0.58388376", "0.5695067", "0.5662682", "0.5656152", "0.56525016", "0.5636611", "0.5633119", "0.560779", "0.560779", "0.55963707", "0.5585593", "0.5527335", "0.55259675", "0.55178744", "0.5497699", "0.5462038", "0.5460664", "0.54553145", "0.54315555", "0.5428095", "0.5423939", "0.5423252", "0.5405602", "0.5403003", "0.5399762", "0.5359158", "0.5347791", "0.5321582", "0.5317954", "0.53177696", "0.53112406", "0.5308062", "0.53007996", "0.5287687", "0.52810687", "0.5266063", "0.5265689", "0.52653694", "0.5262753", "0.52625436", "0.5258052", "0.5258052", "0.52249104", "0.52223516", "0.52184665", "0.52071375", "0.5204527", "0.5204301", "0.5195871", "0.51853406", "0.5169663", "0.51661706", "0.5161185", "0.51575136", "0.51456904", "0.5145592", "0.51448935", "0.51339334", "0.5129795", "0.51288617", "0.51288617", "0.51249367", "0.51229906", "0.51223254", "0.51202285", "0.5116746", "0.5112507", "0.51069206", "0.5106849", "0.5105911", "0.5099613", "0.50912666", "0.5082884", "0.5078926", "0.5078926", "0.5075503", "0.507498", "0.5074663", "0.50737566", "0.5067883", "0.50673777", "0.5066441", "0.50620204", "0.5058641", "0.50536793", "0.50520235", "0.50424683", "0.50392544", "0.5032849", "0.50326675", "0.5027472" ]
0.0
-1
Manipulate the method access flags.
public boolean isStrict() { return (getAccessFlags() & Constants.ACCESS_STRICT) > 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void checkAccessModifier(Method method);", "public abstract int flags();", "private void writeMethodModifiers(Method m) {\n int mod = m.getModifiers();\n mod &= ~Modifier.ABSTRACT;\n mod &= ~Modifier.TRANSIENT;\n writer.print(Modifier.toString(mod) + \" \");\n }", "public int getAccessFlags() {\n return access_flags;\n }", "public int getFlags();", "public int getFlags();", "public long getFlags() {\n }", "public void testCreateMethodWithModifiers() {\n IDOMMethod method = this.domFactory.createMethod();\n method.setName(\"foo\");\n method.setFlags(ClassFileConstants.AccPublic | ClassFileConstants.AccStatic);\n assertSourceEquals(\"source code incorrect\", \"public static void foo() {\\n\" + \"}\\n\", method.getContents());\n }", "int getModifiers();", "int getModifiers();", "public Set<Method> getMethods() {\r\n \t\t// We will only consider private methods in the declared class\r\n \t\tif (forceAccess)\r\n \t\t\treturn setUnion(source.getDeclaredMethods(), source.getMethods());\r\n \t\telse\r\n \t\t\treturn setUnion(source.getMethods());\r\n \t}", "JApiModifier<AccessModifier> getAccessModifier();", "@Override\n\t\t\tpublic void visit(MethodDeclaration arg0, Object arg1) {\n\t\t\t\tif((arg0.getModifiers() & Modifier.PUBLIC) == Modifier.PUBLIC) {\n\t\t\t\t\t\tif(arg0.getName().substring(0, 3) == \"get\" || arg0.getName().substring(0, 3) == \"set\")\n\t\t\t\t\t\t\tpublicAcces.add(new Pair(arg0.getName() + \"( \"+planeL(arg0.getParameters()) +\") :\" + arg0.getType().toString(), Character.toLowerCase(arg0.getName().substring(3).charAt(0)) + (arg0.getName().substring(3).length() > 1 ? arg0.getName().substring(3).substring(1) : \"\")));\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tpublicAcces.add(new Pair(arg0.getName() + \"( \"+planeL(arg0.getParameters()) +\") :\" + arg0.getType().toString(), Character.toLowerCase(arg0.getName().substring(3).charAt(0)) + (arg0.getName().substring(3).length() > 1 ? arg0.getName().substring(3).substring(1) : \"\")));\n\t\t\t\t\t\tuses(arg0.getParameters());\n\t\t\t\t}\n\t\t\t\tsuper.visit(arg0, arg1);\n\t\t\t}", "long getFlags();", "private int patchAccess(BT_Method bm,BT_InsVector iv,int idx)\n{\n int ctr = 0;\n\n if (patch_type.getPatchLocalAccess() || patch_type.getPatchRemoteAccess()) {\n BT_FieldRefIns fri = (BT_FieldRefIns) iv.elementAt(idx);\n BT_Field fld = fri.getFieldTarget();\n if (fri.opcode == BT_Opcodes.opc_getstatic) {\n\t ctr = patch_type.getInstrumenter().patchStaticAccess(fld,bm,iv,idx);\n }\n else {\n\t ctr = patch_type.getInstrumenter().patchFieldAccess(fld,bm,iv,idx);\n }\n }\n\n patch_delta += ctr;\n\n return ctr;\n}", "private void mappingMethodSet() throws SecurityException, NoSuchMethodException{\n\t\tString aux = upFirstLetter();\n\t\tString methodSet = \"set\" + aux;\n\t\tthis.methodSet = this.classFather.getMethod(methodSet, this.classType);\n\t}", "public int modifiers();", "public interface ApiFlags {\n int GET_SOMETHING = 0;\n int GET_SOMETHING_ELSE = 1;\n }", "public interface ApiFlags {\n int GET_SOMETHING = 0;\n int GET_SOMETHING_ELSE = 1;\n }", "protected abstract MethodDescription accessorMethod();", "private void setFlag(short r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00f2 in method: android.location.GpsClock.setFlag(short):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.location.GpsClock.setFlag(short):void\");\n }", "@FameProperty(name = \"numberOfAccessingMethods\", derived = true)\n public Number getNumberOfAccessingMethods() {\n throw new UnsupportedOperationException(\"Not yet implemented!\"); \n }", "boolean isSetMethod();", "public abstract Set<MethodUsage> getDeclaredMethods();", "public void updateFlags()\n {\n initialize();\n }", "private static boolean getInternalPublicMethods(Class<?> paramClass, Map<Signature, Method> paramMap) {\n/* 143 */ Method[] arrayOfMethod = null;\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ try {\n/* 150 */ if (!Modifier.isPublic(paramClass.getModifiers())) {\n/* 151 */ return false;\n/* */ }\n/* 153 */ if (!ReflectUtil.isPackageAccessible(paramClass)) {\n/* 154 */ return false;\n/* */ }\n/* */ \n/* 157 */ arrayOfMethod = paramClass.getMethods();\n/* 158 */ } catch (SecurityException securityException) {\n/* 159 */ return false;\n/* */ } \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 168 */ boolean bool = true; byte b;\n/* 169 */ for (b = 0; b < arrayOfMethod.length; b++) {\n/* 170 */ Class<?> clazz = arrayOfMethod[b].getDeclaringClass();\n/* 171 */ if (!Modifier.isPublic(clazz.getModifiers())) {\n/* 172 */ bool = false;\n/* */ \n/* */ break;\n/* */ } \n/* */ } \n/* 177 */ if (bool) {\n/* */ \n/* */ \n/* */ \n/* */ \n/* 182 */ for (b = 0; b < arrayOfMethod.length; b++) {\n/* 183 */ addMethod(paramMap, arrayOfMethod[b]);\n/* */ \n/* */ }\n/* */ \n/* */ }\n/* */ else {\n/* */ \n/* 190 */ for (b = 0; b < arrayOfMethod.length; b++) {\n/* 191 */ Class<?> clazz = arrayOfMethod[b].getDeclaringClass();\n/* 192 */ if (paramClass.equals(clazz)) {\n/* 193 */ addMethod(paramMap, arrayOfMethod[b]);\n/* */ }\n/* */ } \n/* */ } \n/* 197 */ return bool;\n/* */ }", "@Override\n\tpublic void setAccessModifier(AccessModifier modifier) {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "int getFlag();", "public void beforeHookedMethod(MethodHookParam methodHookParam) throws Throwable {\n super.beforeHookedMethod(methodHookParam);\n methodHookParam.setResult(AbsSavedState.EMPTY_STATE);\n Field findField = XposedHelpers.findField(View.class, \"mPrivateFlags\");\n findField.set(methodHookParam.thisObject, Integer.valueOf(findField.getInt(methodHookParam.thisObject) | 131072));\n }", "public void setFlagMethodName(String name) {\n m_flagMethodName = name;\n }", "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}", "public void changeMode() {\n methodMode = !methodMode;\n }", "private void mappingMethodGet() throws SecurityException, NoSuchMethodException{\n\t\tString aux = upFirstLetter();\n\t\tString methodGet = \"get\" + aux;\n\t\tthis.methodGet = this.classFather.getMethod(methodGet);\n\t}", "public void testMethodInfo888() throws Exception {\n\t\tClassInfo var2785 = instantiateClassInfo430();\n\t\tFieldInfo var2786 = instantiateFieldInfo429();\n\t\tList<ClassInfo> var2764 = Collections.emptyList();\n\t\tList<ParameterInfo> var2766 = Collections.emptyList();\n\t\tList<LocalVariableInfo> var2767 = Collections.emptyList();\n\t\tList<Operation> var2768 = Collections.emptyList();\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tMethodInfo var2787 = new MethodInfo(var2785, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList());\n\t\tClassInfo var2765 = new ClassInfo(\"super\", false, null, var2764, null);\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2785.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2785.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2785.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tClassInfo var2771 = new ClassInfo(\"super\", false, var2765, var2764,\n\t\t\t\tnull);\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2785.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2785.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2785.getSetters();\n\t\tvar2787.isSetter();\n\t\tvar2787.isSetter();\n\t}", "public void setModifiers(int modifiers);", "Method getMethod(int id, boolean filterObsolete);", "private boolean isFlagSet(short r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00f2 in method: android.location.GpsClock.isFlagSet(short):boolean, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.location.GpsClock.isFlagSet(short):boolean\");\n }", "public MethodVisitor visitMethod(int access, String name, String desc, String signature, String[] exceptions) {\n if (\"size\".equals(name) && \"()I\".equals(desc)) {\n return addWrapperMethod(access, name, desc, signature, exceptions);\n } else if (\"isEmpty\".equals(name) && \"()Z\".equals(desc)) {\n return addWrapperMethod(access, name, desc, signature, exceptions);\n } else if (\"containsValue\".equals(name) && \"(Ljava/lang/Object;)Z\".equals(desc)) {\n return addWrapperMethod(access, name, desc, signature, exceptions);\n }\n\n MethodVisitor mv = super.visitMethod(access, name, desc, signature, exceptions);\n if (\"entrySet\".equals(name) && \"()Ljava/util/Set;\".equals(desc)) {\n return new EntrySetMethodAdapter(mv);\n } else if (\"segmentFor\".equals(name) && \"(I)Ljava/util/concurrent/ConcurrentHashMap$Segment;\".equals(desc)) {\n return rewriteSegmentForMethod(mv);\n } else if (\"get\".equals(name) && \"(Ljava/lang/Object;)Ljava/lang/Object;\".equals(desc)) {\n return new MulticastMethodVisitor(new MethodVisitor[] {\n new OriginalGetMethodAdapter(super.visitMethod(ACC_SYNTHETIC|ACC_PUBLIC, TC_ORIG_GET_METHOD_NAME, TC_ORIG_GET_METHOD_DESC, null, null)),\n new ConcurrentHashMapMethodAdapter(new GetMethodAdapter(mv))});\n }\n \n if (\"put\".equals(name) && \"(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;\".equals(desc)) {\n mv = new MulticastMethodVisitor(new MethodVisitor[] {\n mv,\n new ApplicatorPutMethodAdapter(super.visitMethod(ACC_SYNTHETIC|ACC_PUBLIC, TC_APPLICATOR_PUT_METHOD_NAME, TC_APPLICATOR_PUT_METHOD_DESC, null, null))});\n } else if (\"clear\".equals(name) && \"()V\".equals(desc)) {\n mv = new MulticastMethodVisitor(new MethodVisitor[] {\n mv,\n new ApplicatorClearMethodAdapter(super.visitMethod(ACC_SYNTHETIC|ACC_PUBLIC, TC_APPLICATOR_CLEAR_METHOD_NAME, TC_APPLICATOR_CLEAR_METHOD_DESC, null, null))});\n } else if (\"containsKey\".equals(name) && \"(Ljava/lang/Object;)Z\".equals(desc)) {\n mv = new ContainsKeyMethodAdapter(mv);\n } else if (\"remove\".equals(name) && \"(Ljava/lang/Object;)Ljava/lang/Object;\".equals(desc)) {\n mv = new MulticastMethodVisitor(new MethodVisitor[] {\n new SimpleRemoveMethodAdapter(mv),\n new ApplicatorRemoveMethodAdapter(super.visitMethod(ACC_SYNTHETIC|ACC_PUBLIC, TC_APPLICATOR_REMOVE_METHOD_NAME, TC_APPLICATOR_REMOVE_METHOD_DESC, null, null)),\n new RemoveLogicalMethodAdapter(super.visitMethod(ACC_SYNTHETIC|ACC_PUBLIC, TC_REMOVE_LOGICAL_METHOD_NAME, TC_REMOVE_LOGICAL_METHOD_DESC, null, null))});\n } else if (\"remove\".equals(name) && \"(Ljava/lang/Object;Ljava/lang/Object;)Z\".equals(desc)) {\n mv = new RemoveMethodAdapter(mv);\n } else if (\"replace\".equals(name) && \"(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;\".equals(desc)) {\n mv = new SimpleReplaceMethodAdapter(mv);\n } else if (\"replace\".equals(name) && \"(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Z\".equals(desc)) {\n mv = new ReplaceMethodAdapter(mv);\n } else if (\"writeObject\".equals(name) && \"(Ljava/io/ObjectOutputStream;)V\".equals(desc)) {\n mv = new JavaUtilConcurrentHashMapLazyValuesMethodAdapter(access, desc, mv, false);\n }\n\n return new ConcurrentHashMapMethodAdapter(mv);\n }", "public void setReadWriteOnMyLatestView()\n {\n \t m_acl = \tm_acl | (1<<2);\n }", "public static Collection<FieldAccessFlag> getFlags()\n\t{\n\t\treturn Lists.newArrayList(PUBLIC, PRIVATE, PROTECTED, STATIC, FINAL, VOLATILE, TRANSIENT, ENUM,\n\t\t\tSYNTHETIC);\n\t}", "private void addAccessor(ThreadContext context, String internedName, Visibility visibility, boolean readable, boolean writeable) {\n assert internedName == internedName.intern() : internedName + \" is not interned\";\n \n final Ruby runtime = context.getRuntime();\n \n if (visibility == PRIVATE) {\n //FIXME warning\n } else if (visibility == MODULE_FUNCTION) {\n visibility = PRIVATE;\n // FIXME warning\n }\n final String variableName = (\"@\" + internedName).intern();\n if (readable) {\n addMethod(internedName, new JavaMethodZero(this, visibility, CallConfiguration.FrameNoneScopeNone) {\n private RubyClass.VariableAccessor accessor = RubyClass.VariableAccessor.DUMMY_ACCESSOR;\n public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, String name) {\n IRubyObject variable = (IRubyObject)verifyAccessor(self.getMetaClass().getRealClass()).get(self);\n \n return variable == null ? runtime.getNil() : variable;\n }\n \n private RubyClass.VariableAccessor verifyAccessor(RubyClass cls) {\n RubyClass.VariableAccessor localAccessor = accessor;\n if (localAccessor.getClassId() != cls.hashCode()) {\n localAccessor = cls.getVariableAccessorForRead(variableName);\n accessor = localAccessor;\n }\n return localAccessor;\n }\n });\n callMethod(context, \"method_added\", runtime.fastNewSymbol(internedName));\n }\n if (writeable) {\n internedName = (internedName + \"=\").intern();\n addMethod(internedName, new JavaMethodOne(this, visibility, CallConfiguration.FrameNoneScopeNone) {\n private RubyClass.VariableAccessor accessor = RubyClass.VariableAccessor.DUMMY_ACCESSOR;\n public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, String name, IRubyObject arg1) {\n verifyAccessor(self.getMetaClass().getRealClass()).set(self, arg1);\n return arg1;\n }\n \n private RubyClass.VariableAccessor verifyAccessor(RubyClass cls) {\n RubyClass.VariableAccessor localAccessor = accessor;\n if (localAccessor.getClassId() != cls.hashCode()) {\n localAccessor = cls.getVariableAccessorForWrite(variableName);\n accessor = localAccessor;\n }\n return localAccessor;\n }\n });\n callMethod(context, \"method_added\", runtime.fastNewSymbol(internedName));\n }\n }", "public void setFlags(int param1) {\n }", "private void scanAndCopyMethods() {\n int numMethods = copyShort();\n for (int i = 0; i < numMethods; i++) {\n scanAndCopyAccessFlags();\n copy(4); // name_index, descriptor_index\n int numAttributes = copyShort();\n for (int j = 0; j < numAttributes; j++) {\n // Look for \"Code\" attribute.\n int attrNameIdx = copyShort();\n if (cpIdxIsCode(attrNameIdx)) {\n processCodeAttribute();\n } else {\n copyRestOfAttribute();\n }\n }\n }\n }", "public static void setFlags(int flag){\r\n flags |= flag;\r\n }", "void setAccessible(boolean accessible);", "public static native void OpenMM_AmoebaVdwForce_setAlchemicalMethod(PointerByReference target, int method);", "public void testMethodInfo889() throws Exception {\n\t\tClassInfo var2788 = instantiateClassInfo431();\n\t\tList<ClassInfo> var2764 = Collections.emptyList();\n\t\tList<ParameterInfo> var2766 = Collections.emptyList();\n\t\tList<LocalVariableInfo> var2767 = Collections.emptyList();\n\t\tList<Operation> var2768 = Collections.emptyList();\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tMethodInfo var2789 = new MethodInfo(var2788, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList());\n\t\tClassInfo var2765 = new ClassInfo(\"super\", false, null, var2764, null);\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tClassInfo var2771 = new ClassInfo(\"super\", false, var2765, var2764,\n\t\t\t\tnull);\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2788.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2788.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2788.getSetters();\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2788.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2788.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2788.getSetters();\n\t\tvar2789.isSetter();\n\t\tvar2789.isSetter();\n\t}", "public void method_203() {}", "public interface MethodHandleInfo {\n\n\t/**\n\t * Getter MethodHandle for an instance field\n\t */\n\tstatic final int REF_getField = 1;\n\n\t/**\n\t * Getter MethodHandle for an static field\n\t */\n\tstatic final int REF_getStatic = 2;\n\n\t/**\n\t * Setter MethodHandle for an instance field\n\t */\n\tstatic final int REF_putField = 3;\n\n\t/**\n\t * Setter MethodHandle for an static field\n\t */\n\tstatic final int REF_putStatic = 4;\n\n\t/**\n\t * MethodHandle for an instance method\n\t */\n\tstatic final int REF_invokeVirtual = 5;\n\n\t/**\n\t * MethodHandle for a static method\n\t */\n\tstatic final int REF_invokeStatic = 6;\n\n\t/**\n\t * MethodHandle for an special method\n\t */\n\tstatic final int REF_invokeSpecial = 7;\n\n\t/**\n\t * MethodHandle for a constructor\n\t */\n\tstatic final int REF_newInvokeSpecial = 8;\n\n\t/**\n\t * MethodHandle for an interface method\n\t */\n\tstatic final int REF_invokeInterface = 9;\n\n\t/**\n\t * Returns the Class where the cracked MethodHandle's underlying method, field or constructor is declared.\n\t *\n\t * @return class that declares the underlying member\n\t */\n\tClass<?> getDeclaringClass();\n\n\t/**\n\t * Returns the simple name of the MethodHandle's underlying member.\n\t *\n\t * @return A string representing the name of the method or field, or \"&lt;init&gt;\" for constructor.\n\t */\n\tString getName();\n\n\t/**\n\t * Returns the type of the MethodHandle's underlying member as a MethodType.\n\t * If the underlying member is non-static, the receiver parameter will not be included.\n\t * If the underlying member is field getter, the MethodType will take no parameters, and the return type will be the field type.\n\t * If the underlying member is field setter, the MethodType will take one parameter of the field type, and the return type will be void.\n\t *\n\t * @return A MethodType object representing the signature of the method or field\n\t */\n\tMethodType getMethodType();\n\n\t/**\n\t * Returns the modifiers of the MethodHandle's underlying member.\n\t *\n\t * @return An int representing the member's modifiers, or -1 if the underlying member is not accessible.\n\t */\n\tint getModifiers();\n\n\t/**\n\t * Returns the reference kind of the MethodHandle. The possible reference kinds are the declared MethodHandleInfo.REF fields.\n\t *\n\t * @return Returns one of the defined reference kinds which represent the MethodHandle kind.\n\t */\n\tint getReferenceKind();\n\n\t/**\n\t * Returns whether the MethodHandle's underlying method or constructor has variable argument arity.\n\t *\n\t * @return whether the underlying method has variable arity\n\t */\n\tdefault boolean isVarArgs() {\n\t\t// Check whether the MethodHandle refers to a Method or Contructor (not Field)\n\t\tif (getReferenceKind() >= REF_invokeVirtual) {\n\t\t\treturn ((getModifiers() & MethodHandles.Lookup.VARARGS) != 0);\n\t\t}\n\t\treturn false;\n\t}\n\n\t/**\n\t * Reflects the underlying member as a Method, Field or Constructor. The member must be accessible to the provided lookup object.\n\t * Public members are reflected as if by <code>getMethod</code>, <code>getField</code> or <code>getConstructor</code>.\n\t * Non-public members are reflected as if by <code>getDeclearedMethod</code>, <code>getDeclaredField</code> or <code>getDeclaredConstructor</code>.\n\t *\n\t * @param expected The expected type of the returned Member\n\t * @param lookup The lookup that was used to create the MethodHandle, or a lookup object with equivalent access\n\t * @return A Method, Field or Constructor representing the underlying member of the MethodHandle\n\t * @throws NullPointerException If either argument is null\n\t * @throws IllegalArgumentException If the underlying member is not accessible to the provided lookup object\n\t * @throws ClassCastException If the underlying member is not of the expected type\n\t */\n\t<T extends java.lang.reflect.Member> T reflectAs(Class<T> expected, MethodHandles.Lookup lookup);\n\n\t/**\n\t * Returns a string representing the equivalent bytecode for the referenceKind.\n\t *\n\t * @param referenceKind The referenceKind to lookup\n\t * @return a String representing the equivalent bytecode\n\t * @throws IllegalArgumentException If the provided referenceKind is invalid\n\t */\n\tstatic String referenceKindToString(int referenceKind) throws IllegalArgumentException {\n\t\tswitch(referenceKind) {\n\t\tcase REF_getField: \t\t\treturn \"getField\"; //$NON-NLS-1$\n\t\tcase REF_getStatic: \t\treturn \"getStatic\"; //$NON-NLS-1$\n\t\tcase REF_putField: \t\t\treturn \"putField\"; //$NON-NLS-1$\n\t\tcase REF_putStatic: \t\treturn \"putStatic\"; //$NON-NLS-1$\n\t\tcase REF_invokeVirtual: \treturn \"invokeVirtual\"; //$NON-NLS-1$\n\t\tcase REF_invokeStatic: \t\treturn \"invokeStatic\"; //$NON-NLS-1$\n\t\tcase REF_invokeSpecial: \treturn \"invokeSpecial\"; //$NON-NLS-1$\n\t\tcase REF_newInvokeSpecial: \treturn \"newInvokeSpecial\"; //$NON-NLS-1$\n\t\tcase REF_invokeInterface: \treturn \"invokeInterface\"; //$NON-NLS-1$\n\t\t}\n\t\t// K0582 = Reference kind \"{0\"} is invalid\n\t\tthrow new IllegalArgumentException(com.ibm.oti.util.Msg.getString(\"K0582\", referenceKind)); //$NON-NLS-1$\n\t}\n\n\t/**\n\t * Answers a string containing a concise, human-readable description of the receiver.\n\t *\n\t * @param kind the reference kind, one of the declared MethodHandleInfo.REF fields.\n\t * @param defc the class where the member is declared\n\t * @param name the name of the member\n\t * @param type the member's MethodType\n\t * @return a String of the format \"K C.N:MT\"\n\t */\n\tstatic String toString(int kind, Class<?> defc, String name, MethodType type) {\n\t\treturn referenceKindToString(kind) + \" \" + defc.getName() + \".\" + name + \":\" + type; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$\n\t}\n\n}", "public void andThisIsAMethodName(){}", "String getAccess();", "String getAccess();", "@Override\n\tpublic int getFlags() {\n\t\treturn heldObj.getFlags();\n\t}", "private Method getPrivateMethodFromAtrManager(String methodName, Class<?>... argClasses) throws Exception {\n\t\tMethod method = AttributesManagerBlImpl.class.getDeclaredMethod(methodName, argClasses);\n\t\tmethod.setAccessible(true);\n\t\treturn method;\n\t}", "public String getAccess();", "public void testMethodInfo886() throws Exception {\n\t\tClassInfo var2776 = instantiateClassInfo426();\n\t\tLocalField var2777 = instantiateLocalField425();\n\t\tList<ClassInfo> var2764 = Collections.emptyList();\n\t\tList<ParameterInfo> var2766 = Collections.emptyList();\n\t\tList<LocalVariableInfo> var2767 = Collections.emptyList();\n\t\tList<Operation> var2768 = Collections.emptyList();\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tMethodInfo var2778 = new MethodInfo(var2776, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList());\n\t\tvar2777.getDescription();\n\t\tvar2777.getDescription();\n\t\tClassInfo var2765 = new ClassInfo(\"super\", false, null, var2764, null);\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tClassInfo var2771 = new ClassInfo(\"super\", false, var2765, var2764,\n\t\t\t\tnull);\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2776.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2776.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2776.getSetters();\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2776.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2776.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2776.getSetters();\n\t\tvar2778.isSetter();\n\t\tvar2778.isSetter();\n\t}", "@Override\n public MethodDescriptor[] getMethodDescriptors() {\n return getMdescriptor();\n }", "private RubyArray instance_methods(IRubyObject[] args, final Visibility visibility, boolean not, boolean useSymbols) {\n boolean includeSuper = args.length > 0 ? args[0].isTrue() : true;\n Ruby runtime = getRuntime();\n RubyArray ary = runtime.newArray();\n Set<String> seen = new HashSet<String>();\n \n populateInstanceMethodNames(seen, ary, visibility, not, useSymbols, includeSuper);\n \n return ary;\n }", "public void testMethodInfo887() throws Exception {\n\t\tClassInfo var2782 = instantiateClassInfo428();\n\t\tLocalField var2783 = instantiateLocalField427();\n\t\tList<ClassInfo> var2764 = Collections.emptyList();\n\t\tList<ParameterInfo> var2766 = Collections.emptyList();\n\t\tList<LocalVariableInfo> var2767 = Collections.emptyList();\n\t\tList<Operation> var2768 = Collections.emptyList();\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tMethodInfo var2784 = new MethodInfo(var2782, \"voidX()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList());\n\t\tvar2783.getDescription();\n\t\tvar2783.getDescription();\n\t\tClassInfo var2765 = new ClassInfo(\"super\", false, null, var2764, null);\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tClassInfo var2771 = new ClassInfo(\"super\", false, var2765, var2764,\n\t\t\t\tnull);\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2782.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2782.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2782.getSetters();\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2782.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2782.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2782.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2784.isSetter();\n\t\tvar2784.isSetter();\n\t}", "public String methodBase() {\n\t\tString tmp = name;\n\t\ttmp = tmp.replaceFirst(\"^get\", \"\");\n\t\ttmp = tmp.replaceFirst(\"^is\", \"\");\n\t\treturn tmp.substring(0,1).toLowerCase()+tmp.substring(1);\n\t}", "public int getModifiers() {\n return mod;\n }", "MethodName getMethod();", "boolean isAccessed (ClassMember attr) {\r\n if (accessed_attributes == null) {\r\n accessed_attributes = new java.util.Vector ();\r\n } else if (accessed_attributes.contains (attr)) {\r\n return true;\r\n } \r\n\r\n accessed_attributes.addElement (attr);\r\n return false;\r\n }", "protected void updateFlags() {\n USE_CANNY = USE_CANNY && mainInterface.DEBUG_FRAME;\n DEBUG_PREP_FRAME = DEBUG_PREP_FRAME && mainInterface.DEBUG_FRAME;\n DEBUG_CONTOURS = DEBUG_CONTOURS && mainInterface.DEBUG_FRAME;\n DEBUG_POLY = DEBUG_POLY && mainInterface.DEBUG_FRAME;\n DEBUG_DRAW_MARKERS = DEBUG_DRAW_MARKERS && mainInterface.DEBUG_FRAME;\n DEBUG_DRAW_MARKER_ID = DEBUG_DRAW_MARKER_ID && mainInterface.DEBUG_FRAME;\n DEBUG_DRAW_SAMPLING = DEBUG_DRAW_SAMPLING && mainInterface.DEBUG_FRAME;\n }", "private void resetFlag(short r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00f2 in method: android.location.GpsClock.resetFlag(short):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.location.GpsClock.resetFlag(short):void\");\n }", "public GetterSetterInliner(CodeAttrInfoEditor codeAttrInfoEditor,\n boolean allowAccessModification)\n {\n this.codeAttrInfoEditor = codeAttrInfoEditor;\n this.allowAccessModification = allowAccessModification;\n }", "public static boolean canAccessFieldsDirectly(){\n return false; //TODO codavaj!!\n }", "public synchronized void setFlags(Flags newFlags, boolean set) throws MessagingException {\n/* 91 */ Flags oldFlags = (Flags)this.flags.clone();\n/* 92 */ super.setFlags(newFlags, set);\n/* 93 */ if (!this.flags.equals(oldFlags)) {\n/* 94 */ this.folder.notifyMessageChangedListeners(1, (Message)this);\n/* */ }\n/* */ }", "protected final boolean isMutable() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: android.icu.impl.coll.CollationDataBuilder.isMutable():boolean, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.icu.impl.coll.CollationDataBuilder.isMutable():boolean\");\n }", "Method getMethod();", "Method getMethod();", "public void setImportantForAccessibility(boolean important) {\n/* 1316 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public MethodPredicate withModifiers(int... modifiers) {\n this.withModifiers = Arrays.stream(modifiers).boxed().collect(Collectors.toList());\n return this;\n }", "@Override\n\t\t\tpublic MethodVisitor visitMethod(int access, String name, String desc, String signature, String[] exceptions) {\n\t\t\t\tboolean isSynthetic = ClassInfoUtils.checkAccess(access, Opcodes.ACC_SYNTHETIC);\n\t\t\t\tboolean isNative = ClassInfoUtils.checkAccess(access, Opcodes.ACC_NATIVE);\n\t\t\t\tboolean isInterface = ClassInfoUtils.checkAccess(access, Opcodes.ACC_INTERFACE);\n\t\t\t\tboolean isAbstract = ClassInfoUtils.checkAccess(access, Opcodes.ACC_ABSTRACT);\n\t\t\t\t\n\t\t\t\tMethodVisitor mv = super.visitMethod(access, name, desc, signature, exceptions);\n\t\t\t\tif (name.equals(\"toString\") && desc.equals(\"()Ljava/lang/String;\")) {\n\t\t\t\t\treturn mv;\n\t\t\t\t} else if (name.equals(\"equals\") && desc.equals(\"(Ljava/lang/Object;)Z\")) {\n\t\t\t\t\treturn mv;\n\t\t\t\t} else if (name.equals(\"hashCode\") && desc.equals(\"()I\")) {\n\t\t\t\t\treturn mv;\n\t\t\t\t} else if (isSynthetic || isNative || isInterface || isAbstract) {\n\t\t\t\t\treturn mv;\n\t\t\t\t} else {\n\t\t\t\t\tmv = new DependencyAnalyzer(className, \n\t\t\t\t\t\t\taccess, \n\t\t\t\t\t\t\tname, \n\t\t\t\t\t\t\tdesc, \n\t\t\t\t\t\t\tsignature, \n\t\t\t\t\t\t\texceptions, \n\t\t\t\t\t\t\tmv, \n\t\t\t\t\t\t\ttrue,\n\t\t\t\t\t\t\tfalse, \n\t\t\t\t\t\t\ttrue, \n\t\t\t\t\t\t\ttrue);\n\t\t\t\t\t//mv = new CalleeAnalyzer(className, access, name, desc, signature, exceptions, mv, true);\n\t\t\t\t\treturn mv;\n\t\t\t\t}\n\t\t\t}", "@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 13:02:04.534 -0500\", hash_original_method = \"E4DEB0C107DDB25A537EF0E89F1C04F8\", hash_generated_method = \"2E76AFD8C90588F5139C0C2D28CAEA05\")\n \nprivate static int translateCodingErrorAction(CodingErrorAction action) {\n if (action == CodingErrorAction.REPORT) {\n return 0;\n } else if (action == CodingErrorAction.IGNORE) {\n return 1;\n } else if (action == CodingErrorAction.REPLACE) {\n return 2;\n } else {\n throw new AssertionError(); // Someone changed the enum.\n }\n }", "private boolean makeFieldAccessible(Field f)\n {\n // See: https://stackoverflow.com/questions/46454995/#58834966\n Method getModule;\n try\n {\n getModule = Class.class.getMethod(\"getModule\");\n }\n catch (NoSuchMethodException e)\n {\n // We are on Java 8\n getModule = null;\n }\n if (getModule != null)\n {\n try\n {\n Object thisModule = getModule.invoke(this.getClass());\n Method isNamed = thisModule.getClass().getMethod(\"isNamed\");\n if (!(boolean) isNamed.invoke(thisModule))\n {\n Class fieldClass = f.getDeclaringClass().getClass();\n Object fieldModule = getModule.invoke(fieldClass);\n Method addOpens = fieldModule.getClass().getMethod(\n \"addOpens\", String.class, thisModule.getClass());\n Method getPackageName = fieldClass.getMethod(\"getPackageName\");\n addOpens.invoke(fieldModule, getPackageName.invoke(fieldClass), thisModule);\n }\n }\n catch (Throwable t)\n {\n if (t instanceof InvocationTargetException)\n {\n InvocationTargetException e = (InvocationTargetException) t;\n if (e.getCause() != null\n && e.getCause().getClass().getName().endsWith(\"IllegalCallerException\"))\n {\n if (outputLogger != null)\n {\n outputLogger.debug(\n PROCESS_ATTRIBUTE_CHANGE_MESSAGE + e.getCause().getMessage(),\n this.getClass().getName());\n }\n t = null;\n }\n }\n if (t != null)\n {\n throw new CargoException(\"Cannot set field accessibility for [\" + f + \"]\", t);\n }\n return false;\n }\n }\n try\n {\n f.setAccessible(true);\n return true;\n }\n catch (Throwable t)\n {\n if (t.getClass().getName().endsWith(\"InaccessibleObjectException\"))\n {\n if (outputLogger != null)\n {\n outputLogger.debug(\n PROCESS_ATTRIBUTE_CHANGE_MESSAGE + t.getMessage(),\n this.getClass().getName());\n }\n t = null;\n }\n if (t != null)\n {\n throw new CargoException(\"Cannot set field accessibility for [\" + f + \"]\", t);\n }\n return false;\n }\n }", "Builder addAccessibilityFeature(String value);", "public Method getMethod();", "Methodsig getMethod();", "public short getFlags() {\n\treturn flags;\n }", "public boolean isPropertyAccessorMethod(Method paramMethod, Class paramClass) {\n/* 225 */ String str1 = paramMethod.getName();\n/* 226 */ Class<?> clazz = paramMethod.getReturnType();\n/* 227 */ Class[] arrayOfClass1 = paramMethod.getParameterTypes();\n/* 228 */ Class[] arrayOfClass2 = paramMethod.getExceptionTypes();\n/* 229 */ String str2 = null;\n/* */ \n/* 231 */ if (str1.startsWith(\"get\")) {\n/* */ \n/* 233 */ if (arrayOfClass1.length == 0 && clazz != void.class && \n/* 234 */ !readHasCorrespondingIsProperty(paramMethod, paramClass)) {\n/* 235 */ str2 = \"get\";\n/* */ }\n/* */ }\n/* 238 */ else if (str1.startsWith(\"set\")) {\n/* */ \n/* 240 */ if (clazz == void.class && arrayOfClass1.length == 1 && (\n/* 241 */ hasCorrespondingReadProperty(paramMethod, paramClass, \"get\") || \n/* 242 */ hasCorrespondingReadProperty(paramMethod, paramClass, \"is\"))) {\n/* 243 */ str2 = \"set\";\n/* */ \n/* */ }\n/* */ }\n/* 247 */ else if (str1.startsWith(\"is\") && \n/* 248 */ arrayOfClass1.length == 0 && clazz == boolean.class && \n/* 249 */ !isHasCorrespondingReadProperty(paramMethod, paramClass)) {\n/* 250 */ str2 = \"is\";\n/* */ } \n/* */ \n/* */ \n/* */ \n/* 255 */ if (str2 != null && (\n/* 256 */ !validPropertyExceptions(paramMethod) || str1\n/* 257 */ .length() <= str2.length())) {\n/* 258 */ str2 = null;\n/* */ }\n/* */ \n/* */ \n/* 262 */ return (str2 != null);\n/* */ }", "public void setAllowedMethods(Method... allowed)\n\t{\n\t\tStringBuilder s = new StringBuilder();\n\t\tfor (int i = 0; i < allowed.length; i++)\n\t\t{\n\t\t\tif (i != 0)\n\t\t\t\ts.append(\", \");\n\t\t\ts.append(allowed[i]);\n\t\t}\n\t\t\n\t\tsetHeader(ALLOW, s.toString());\n\t}", "public int getAccess()\n {\n ensureLoaded();\n return m_flags.getAccess();\n }", "String getMethod();", "String getMethod();", "public void setDeclared(int r1, boolean r2) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: org.xml.sax.ext.Attributes2Impl.setDeclared(int, boolean):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: org.xml.sax.ext.Attributes2Impl.setDeclared(int, boolean):void\");\n }", "@Override\n\tpublic MethodVisitor visitMethod(int access, String name, String desc, String signature, String[] exceptions) {\n\t\tparsingMethod = new Method(name, desc, parsingClass);\n\t\tparsingClass.getMethods().add(parsingMethod);\n\t\treturn completeMethodVisitor;\n\t}", "public interface MethodInfo {\n\t/**\n\t * Returns the class which declared the method.\n\t */\n\tpublic ClassInfo declaringClass();\n\n\t/**\n\t * Returns the index into the constant pool of the name of the method.\n\t */\n\tpublic int nameIndex();\n\n\t/**\n\t * Returns the index into the constant pool of the type of the method.\n\t */\n\tpublic int typeIndex();\n\n\t/**\n\t * Sets the index into the constant pool of the name of the method.\n\t */\n\tpublic void setNameIndex(int index);\n\n\t/**\n\t * Set the index into the constant pool of the type of the method.\n\t * \n\t * @param index\n\t * The index into the constant pool of the type of the method.\n\t */\n\tpublic void setTypeIndex(int index);\n\n\t/**\n\t * Set the modifiers of the method. The values correspond to the constants\n\t * in the Modifiers class.\n\t * \n\t * @param modifiers\n\t * A bit vector of modifier flags for the method.\n\t * @see Modifiers\n\t */\n\tpublic void setModifiers(int modifiers);\n\n\t/**\n\t * Get the modifiers of the method. The values correspond to the constants\n\t * in the Modifiers class.\n\t * \n\t * @return A bit vector of modifier flags for the method.\n\t * @see Modifiers\n\t */\n\tpublic int modifiers();\n\n\t/**\n\t * Get the indices into the constant pool of the types of the exceptions\n\t * thrown by the method.\n\t * \n\t * @return The indices into the constant pool of the types of the exceptions\n\t * thrown by the method.\n\t */\n\tpublic int[] exceptionTypes();\n\n\t/**\n\t * Get the maximum height of the operand stack.\n\t * \n\t * @return The maximum height of the operand stack.\n\t */\n\tpublic int maxStack();\n\n\t/**\n\t * Set the maximum height of the operand stack.\n\t * \n\t * @param maxStack\n\t * The maximum height of the operand stack.\n\t */\n\tpublic void setMaxStack(int maxStack);\n\n\t/**\n\t * Get the maximum number of locals used in the method.\n\t * \n\t * @return The maximum number of locals used in the method.\n\t */\n\tpublic int maxLocals();\n\n\t/**\n\t * Set the maximum number of locals used in the method.\n\t * \n\t * @param maxLocals\n\t * The maximum number of locals used in the method.\n\t */\n\tpublic void setMaxLocals(int maxLocals);\n\n\t/**\n\t * Get the byte code array of the method.\n\t * \n\t * @return The byte code array of the method.\n\t */\n\tpublic byte[] code();\n\n\t/**\n\t * Set the byte code array of the method.\n\t * \n\t * @param code\n\t * The byte code array of the method.\n\t */\n\tpublic void setCode(byte[] code);\n\n\t/**\n\t * Get the line number debug info of the instructions in the method.\n\t * \n\t * @return The line numbers of the instructions in the method. The array\n\t * will be of size 0 if the method has no line number debug info.\n\t */\n\tpublic LineNumberDebugInfo[] lineNumbers();\n\n\t/**\n\t * Set the line number debug info of the instructions in the method.\n\t * \n\t * @param lineNumbers\n\t * The line numbers of the instructions in the method. The array\n\t * will be of size 0 if the method has no line number debug info.\n\t */\n\tpublic void setLineNumbers(LineNumberDebugInfo[] lineNumbers);\n\n\t/**\n\t * Get the local variable debug information for the method.\n\t * \n\t * @return The local variables in the method. The array will be of size 0 if\n\t * the method has no local variable debug info.\n\t */\n\tpublic LocalDebugInfo[] locals();\n\n\t/**\n\t * Set the local variables in the method.\n\t * \n\t * @param locals\n\t * The local variables in the method.\n\t */\n\tpublic void setLocals(LocalDebugInfo[] locals);\n\n\t/**\n\t * Get the exception handlers in the method.\n\t * \n\t * @return The exception handlers in the method.\n\t */\n\tpublic Catch[] exceptionHandlers();\n\n\t/**\n\t * Set the exception handlers in the method.\n\t * \n\t * @param exceptions\n\t * The exception handlers in the method.\n\t */\n\tpublic void setExceptionHandlers(Catch[] exceptions);\n\n\t/**\n\t * Creates a clone of this <tt>MethodInfo</tt> except that its declaring\n\t * class does not know about it.\n\t */\n\tpublic Object clone();\n}", "public final native void setFlags(int value) /*-{\n\t\tvar jso = [email protected]::getJsObj()();\n\t\tjso.flags = value;\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}", "public void setModifierFlag(int flag) {\n\t\tthis.modifier = flag;\n\t}", "public void setFlags(final Flags flags);", "public int getFlags() {\n return flags;\n }", "public List<MethodInfo> getMethods() { \n return lstMethodInfo;\n }", "private void checkMethodPermission(HandlerMethod handlerMethod) {\n RequirePermission annotation = handlerMethod.getMethodAnnotation(RequirePermission.class);\n String str = annotation.value();\n System.out.println(\"-----+++++++\");\n }", "public void testCreateMethodWithModifiersAndExceptions() {\n IDOMMethod method = this.domFactory.createMethod();\n method.setName(\"foo\");\n method.setFlags(ClassFileConstants.AccPrivate);\n method.setExceptions(new String[] { \"java.lang.IllegalArgumentException\", \"java.io.FileNotFoundExcpetion\" });\n assertSourceEquals(\"source code incorrect\", \"private void foo() throws java.lang.IllegalArgumentException, java.io.FileNotFoundExcpetion {\\n\" + \"}\\n\", method.getContents());\n }", "public interface C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }", "public boolean visit(MethodDeclaration decl, ClassScope scope) {\r\n\t\t\tif (decl instanceof InterTypeFieldDeclaration) \r\n\t\t\t\tvalue -= 2;\r\n\r\n\t\t\treturn super.visit(decl, scope);\r\n\t\t}", "private void resetFlags(){\n\t\tint count = 0;\n\t\tif (partOfAPairedAlignment) count += Math.pow(2, 0);\n\t\tif (aProperPairedAlignment) count += Math.pow(2, 1);\n\t\tif (unmapped) count += Math.pow(2, 2);\n\t\tif (mateUnMapped) count += Math.pow(2, 3);\n\t\tif (reverseStrand) count += Math.pow(2, 4);\n\t\tif (mateReverseStrand) count += Math.pow(2, 5);\n\t\tif (firstPair) count += Math.pow(2, 6);\n\t\tif (secondPair) count += Math.pow(2, 7);\n\t\tif (notAPrimaryAlignment) count += Math.pow(2, 8);\n\t\tif (failedQC) count += Math.pow(2, 9);\n\t\tif (aDuplicate) count += Math.pow(2, 10);\n\t\tflags = (short) count;\n\t\tflagResetNeeded = false;\n\t\t\n\t}", "private void mappingMethods() throws SecurityException, NoSuchMethodException{\n\t\tmappingMethodGet();\n\t\tmappingMethodSet();\n\t}", "private void setBooleanFlags (short flags){\n\t\tthis.flags = flags;\n\t\tflagResetNeeded = false;\n\t\tpartOfAPairedAlignment = isPartOfAPairedAlignment();\n\t\taProperPairedAlignment = isAProperPairedAlignment();\n\t\tunmapped = isUnmapped();\n\t\tmateUnMapped = isMateUnMapped();\n\t\treverseStrand = isReverseStrand();\n\t\tmateReverseStrand = isMateReverseStrand();\n\t\tfirstPair = isFirstPair();\n\t\tsecondPair = isSecondPair();\n\t\tnotAPrimaryAlignment = isNotAPrimaryAlignment();\n\t\tfailedQC = failedQC();\n\t\taDuplicate = isADuplicate();\n\t\t\n\t}" ]
[ "0.6459756", "0.61941135", "0.6124305", "0.6054357", "0.6038953", "0.6038953", "0.58764786", "0.58633894", "0.586231", "0.586231", "0.58388376", "0.5695067", "0.5662682", "0.5656152", "0.56525016", "0.5636611", "0.5633119", "0.560779", "0.560779", "0.55963707", "0.5585593", "0.5527335", "0.55259675", "0.55178744", "0.5497699", "0.5462038", "0.5460664", "0.54553145", "0.54315555", "0.5428095", "0.5423939", "0.5423252", "0.5405602", "0.5403003", "0.5399762", "0.5359158", "0.5347791", "0.5321582", "0.5317954", "0.53177696", "0.53112406", "0.5308062", "0.53007996", "0.5287687", "0.52810687", "0.5266063", "0.5265689", "0.52653694", "0.5262753", "0.52625436", "0.5258052", "0.5258052", "0.52249104", "0.52223516", "0.52184665", "0.52071375", "0.5204527", "0.5204301", "0.5195871", "0.51853406", "0.5169663", "0.51661706", "0.5161185", "0.51575136", "0.51456904", "0.5145592", "0.51448935", "0.51339334", "0.5129795", "0.51288617", "0.51288617", "0.51249367", "0.51229906", "0.51223254", "0.51202285", "0.5116746", "0.5112507", "0.51069206", "0.5106849", "0.5105911", "0.5099613", "0.50912666", "0.5082884", "0.5078926", "0.5078926", "0.5075503", "0.507498", "0.5074663", "0.50737566", "0.5067883", "0.50673777", "0.5066441", "0.50620204", "0.5058641", "0.50536793", "0.50520235", "0.50424683", "0.50392544", "0.5032849", "0.50326675", "0.5027472" ]
0.0
-1
Manipulate the method access flags.
public void setStrict(boolean on) { if (on) setAccessFlags(getAccessFlags() | Constants.ACCESS_STRICT); else setAccessFlags(getAccessFlags() & ~Constants.ACCESS_STRICT); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void checkAccessModifier(Method method);", "public abstract int flags();", "private void writeMethodModifiers(Method m) {\n int mod = m.getModifiers();\n mod &= ~Modifier.ABSTRACT;\n mod &= ~Modifier.TRANSIENT;\n writer.print(Modifier.toString(mod) + \" \");\n }", "public int getAccessFlags() {\n return access_flags;\n }", "public int getFlags();", "public int getFlags();", "public long getFlags() {\n }", "public void testCreateMethodWithModifiers() {\n IDOMMethod method = this.domFactory.createMethod();\n method.setName(\"foo\");\n method.setFlags(ClassFileConstants.AccPublic | ClassFileConstants.AccStatic);\n assertSourceEquals(\"source code incorrect\", \"public static void foo() {\\n\" + \"}\\n\", method.getContents());\n }", "int getModifiers();", "int getModifiers();", "public Set<Method> getMethods() {\r\n \t\t// We will only consider private methods in the declared class\r\n \t\tif (forceAccess)\r\n \t\t\treturn setUnion(source.getDeclaredMethods(), source.getMethods());\r\n \t\telse\r\n \t\t\treturn setUnion(source.getMethods());\r\n \t}", "JApiModifier<AccessModifier> getAccessModifier();", "@Override\n\t\t\tpublic void visit(MethodDeclaration arg0, Object arg1) {\n\t\t\t\tif((arg0.getModifiers() & Modifier.PUBLIC) == Modifier.PUBLIC) {\n\t\t\t\t\t\tif(arg0.getName().substring(0, 3) == \"get\" || arg0.getName().substring(0, 3) == \"set\")\n\t\t\t\t\t\t\tpublicAcces.add(new Pair(arg0.getName() + \"( \"+planeL(arg0.getParameters()) +\") :\" + arg0.getType().toString(), Character.toLowerCase(arg0.getName().substring(3).charAt(0)) + (arg0.getName().substring(3).length() > 1 ? arg0.getName().substring(3).substring(1) : \"\")));\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tpublicAcces.add(new Pair(arg0.getName() + \"( \"+planeL(arg0.getParameters()) +\") :\" + arg0.getType().toString(), Character.toLowerCase(arg0.getName().substring(3).charAt(0)) + (arg0.getName().substring(3).length() > 1 ? arg0.getName().substring(3).substring(1) : \"\")));\n\t\t\t\t\t\tuses(arg0.getParameters());\n\t\t\t\t}\n\t\t\t\tsuper.visit(arg0, arg1);\n\t\t\t}", "long getFlags();", "private int patchAccess(BT_Method bm,BT_InsVector iv,int idx)\n{\n int ctr = 0;\n\n if (patch_type.getPatchLocalAccess() || patch_type.getPatchRemoteAccess()) {\n BT_FieldRefIns fri = (BT_FieldRefIns) iv.elementAt(idx);\n BT_Field fld = fri.getFieldTarget();\n if (fri.opcode == BT_Opcodes.opc_getstatic) {\n\t ctr = patch_type.getInstrumenter().patchStaticAccess(fld,bm,iv,idx);\n }\n else {\n\t ctr = patch_type.getInstrumenter().patchFieldAccess(fld,bm,iv,idx);\n }\n }\n\n patch_delta += ctr;\n\n return ctr;\n}", "private void mappingMethodSet() throws SecurityException, NoSuchMethodException{\n\t\tString aux = upFirstLetter();\n\t\tString methodSet = \"set\" + aux;\n\t\tthis.methodSet = this.classFather.getMethod(methodSet, this.classType);\n\t}", "public int modifiers();", "public interface ApiFlags {\n int GET_SOMETHING = 0;\n int GET_SOMETHING_ELSE = 1;\n }", "public interface ApiFlags {\n int GET_SOMETHING = 0;\n int GET_SOMETHING_ELSE = 1;\n }", "protected abstract MethodDescription accessorMethod();", "private void setFlag(short r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00f2 in method: android.location.GpsClock.setFlag(short):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.location.GpsClock.setFlag(short):void\");\n }", "@FameProperty(name = \"numberOfAccessingMethods\", derived = true)\n public Number getNumberOfAccessingMethods() {\n throw new UnsupportedOperationException(\"Not yet implemented!\"); \n }", "boolean isSetMethod();", "public abstract Set<MethodUsage> getDeclaredMethods();", "public void updateFlags()\n {\n initialize();\n }", "private static boolean getInternalPublicMethods(Class<?> paramClass, Map<Signature, Method> paramMap) {\n/* 143 */ Method[] arrayOfMethod = null;\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ try {\n/* 150 */ if (!Modifier.isPublic(paramClass.getModifiers())) {\n/* 151 */ return false;\n/* */ }\n/* 153 */ if (!ReflectUtil.isPackageAccessible(paramClass)) {\n/* 154 */ return false;\n/* */ }\n/* */ \n/* 157 */ arrayOfMethod = paramClass.getMethods();\n/* 158 */ } catch (SecurityException securityException) {\n/* 159 */ return false;\n/* */ } \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 168 */ boolean bool = true; byte b;\n/* 169 */ for (b = 0; b < arrayOfMethod.length; b++) {\n/* 170 */ Class<?> clazz = arrayOfMethod[b].getDeclaringClass();\n/* 171 */ if (!Modifier.isPublic(clazz.getModifiers())) {\n/* 172 */ bool = false;\n/* */ \n/* */ break;\n/* */ } \n/* */ } \n/* 177 */ if (bool) {\n/* */ \n/* */ \n/* */ \n/* */ \n/* 182 */ for (b = 0; b < arrayOfMethod.length; b++) {\n/* 183 */ addMethod(paramMap, arrayOfMethod[b]);\n/* */ \n/* */ }\n/* */ \n/* */ }\n/* */ else {\n/* */ \n/* 190 */ for (b = 0; b < arrayOfMethod.length; b++) {\n/* 191 */ Class<?> clazz = arrayOfMethod[b].getDeclaringClass();\n/* 192 */ if (paramClass.equals(clazz)) {\n/* 193 */ addMethod(paramMap, arrayOfMethod[b]);\n/* */ }\n/* */ } \n/* */ } \n/* 197 */ return bool;\n/* */ }", "@Override\n\tpublic void setAccessModifier(AccessModifier modifier) {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "int getFlag();", "public void beforeHookedMethod(MethodHookParam methodHookParam) throws Throwable {\n super.beforeHookedMethod(methodHookParam);\n methodHookParam.setResult(AbsSavedState.EMPTY_STATE);\n Field findField = XposedHelpers.findField(View.class, \"mPrivateFlags\");\n findField.set(methodHookParam.thisObject, Integer.valueOf(findField.getInt(methodHookParam.thisObject) | 131072));\n }", "public void setFlagMethodName(String name) {\n m_flagMethodName = name;\n }", "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}", "public void changeMode() {\n methodMode = !methodMode;\n }", "private void mappingMethodGet() throws SecurityException, NoSuchMethodException{\n\t\tString aux = upFirstLetter();\n\t\tString methodGet = \"get\" + aux;\n\t\tthis.methodGet = this.classFather.getMethod(methodGet);\n\t}", "public void testMethodInfo888() throws Exception {\n\t\tClassInfo var2785 = instantiateClassInfo430();\n\t\tFieldInfo var2786 = instantiateFieldInfo429();\n\t\tList<ClassInfo> var2764 = Collections.emptyList();\n\t\tList<ParameterInfo> var2766 = Collections.emptyList();\n\t\tList<LocalVariableInfo> var2767 = Collections.emptyList();\n\t\tList<Operation> var2768 = Collections.emptyList();\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tMethodInfo var2787 = new MethodInfo(var2785, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList());\n\t\tClassInfo var2765 = new ClassInfo(\"super\", false, null, var2764, null);\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2785.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2785.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2785.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tClassInfo var2771 = new ClassInfo(\"super\", false, var2765, var2764,\n\t\t\t\tnull);\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2785.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2785.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2785.getSetters();\n\t\tvar2787.isSetter();\n\t\tvar2787.isSetter();\n\t}", "public void setModifiers(int modifiers);", "Method getMethod(int id, boolean filterObsolete);", "private boolean isFlagSet(short r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00f2 in method: android.location.GpsClock.isFlagSet(short):boolean, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.location.GpsClock.isFlagSet(short):boolean\");\n }", "public MethodVisitor visitMethod(int access, String name, String desc, String signature, String[] exceptions) {\n if (\"size\".equals(name) && \"()I\".equals(desc)) {\n return addWrapperMethod(access, name, desc, signature, exceptions);\n } else if (\"isEmpty\".equals(name) && \"()Z\".equals(desc)) {\n return addWrapperMethod(access, name, desc, signature, exceptions);\n } else if (\"containsValue\".equals(name) && \"(Ljava/lang/Object;)Z\".equals(desc)) {\n return addWrapperMethod(access, name, desc, signature, exceptions);\n }\n\n MethodVisitor mv = super.visitMethod(access, name, desc, signature, exceptions);\n if (\"entrySet\".equals(name) && \"()Ljava/util/Set;\".equals(desc)) {\n return new EntrySetMethodAdapter(mv);\n } else if (\"segmentFor\".equals(name) && \"(I)Ljava/util/concurrent/ConcurrentHashMap$Segment;\".equals(desc)) {\n return rewriteSegmentForMethod(mv);\n } else if (\"get\".equals(name) && \"(Ljava/lang/Object;)Ljava/lang/Object;\".equals(desc)) {\n return new MulticastMethodVisitor(new MethodVisitor[] {\n new OriginalGetMethodAdapter(super.visitMethod(ACC_SYNTHETIC|ACC_PUBLIC, TC_ORIG_GET_METHOD_NAME, TC_ORIG_GET_METHOD_DESC, null, null)),\n new ConcurrentHashMapMethodAdapter(new GetMethodAdapter(mv))});\n }\n \n if (\"put\".equals(name) && \"(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;\".equals(desc)) {\n mv = new MulticastMethodVisitor(new MethodVisitor[] {\n mv,\n new ApplicatorPutMethodAdapter(super.visitMethod(ACC_SYNTHETIC|ACC_PUBLIC, TC_APPLICATOR_PUT_METHOD_NAME, TC_APPLICATOR_PUT_METHOD_DESC, null, null))});\n } else if (\"clear\".equals(name) && \"()V\".equals(desc)) {\n mv = new MulticastMethodVisitor(new MethodVisitor[] {\n mv,\n new ApplicatorClearMethodAdapter(super.visitMethod(ACC_SYNTHETIC|ACC_PUBLIC, TC_APPLICATOR_CLEAR_METHOD_NAME, TC_APPLICATOR_CLEAR_METHOD_DESC, null, null))});\n } else if (\"containsKey\".equals(name) && \"(Ljava/lang/Object;)Z\".equals(desc)) {\n mv = new ContainsKeyMethodAdapter(mv);\n } else if (\"remove\".equals(name) && \"(Ljava/lang/Object;)Ljava/lang/Object;\".equals(desc)) {\n mv = new MulticastMethodVisitor(new MethodVisitor[] {\n new SimpleRemoveMethodAdapter(mv),\n new ApplicatorRemoveMethodAdapter(super.visitMethod(ACC_SYNTHETIC|ACC_PUBLIC, TC_APPLICATOR_REMOVE_METHOD_NAME, TC_APPLICATOR_REMOVE_METHOD_DESC, null, null)),\n new RemoveLogicalMethodAdapter(super.visitMethod(ACC_SYNTHETIC|ACC_PUBLIC, TC_REMOVE_LOGICAL_METHOD_NAME, TC_REMOVE_LOGICAL_METHOD_DESC, null, null))});\n } else if (\"remove\".equals(name) && \"(Ljava/lang/Object;Ljava/lang/Object;)Z\".equals(desc)) {\n mv = new RemoveMethodAdapter(mv);\n } else if (\"replace\".equals(name) && \"(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;\".equals(desc)) {\n mv = new SimpleReplaceMethodAdapter(mv);\n } else if (\"replace\".equals(name) && \"(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Z\".equals(desc)) {\n mv = new ReplaceMethodAdapter(mv);\n } else if (\"writeObject\".equals(name) && \"(Ljava/io/ObjectOutputStream;)V\".equals(desc)) {\n mv = new JavaUtilConcurrentHashMapLazyValuesMethodAdapter(access, desc, mv, false);\n }\n\n return new ConcurrentHashMapMethodAdapter(mv);\n }", "public void setReadWriteOnMyLatestView()\n {\n \t m_acl = \tm_acl | (1<<2);\n }", "public static Collection<FieldAccessFlag> getFlags()\n\t{\n\t\treturn Lists.newArrayList(PUBLIC, PRIVATE, PROTECTED, STATIC, FINAL, VOLATILE, TRANSIENT, ENUM,\n\t\t\tSYNTHETIC);\n\t}", "private void addAccessor(ThreadContext context, String internedName, Visibility visibility, boolean readable, boolean writeable) {\n assert internedName == internedName.intern() : internedName + \" is not interned\";\n \n final Ruby runtime = context.getRuntime();\n \n if (visibility == PRIVATE) {\n //FIXME warning\n } else if (visibility == MODULE_FUNCTION) {\n visibility = PRIVATE;\n // FIXME warning\n }\n final String variableName = (\"@\" + internedName).intern();\n if (readable) {\n addMethod(internedName, new JavaMethodZero(this, visibility, CallConfiguration.FrameNoneScopeNone) {\n private RubyClass.VariableAccessor accessor = RubyClass.VariableAccessor.DUMMY_ACCESSOR;\n public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, String name) {\n IRubyObject variable = (IRubyObject)verifyAccessor(self.getMetaClass().getRealClass()).get(self);\n \n return variable == null ? runtime.getNil() : variable;\n }\n \n private RubyClass.VariableAccessor verifyAccessor(RubyClass cls) {\n RubyClass.VariableAccessor localAccessor = accessor;\n if (localAccessor.getClassId() != cls.hashCode()) {\n localAccessor = cls.getVariableAccessorForRead(variableName);\n accessor = localAccessor;\n }\n return localAccessor;\n }\n });\n callMethod(context, \"method_added\", runtime.fastNewSymbol(internedName));\n }\n if (writeable) {\n internedName = (internedName + \"=\").intern();\n addMethod(internedName, new JavaMethodOne(this, visibility, CallConfiguration.FrameNoneScopeNone) {\n private RubyClass.VariableAccessor accessor = RubyClass.VariableAccessor.DUMMY_ACCESSOR;\n public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, String name, IRubyObject arg1) {\n verifyAccessor(self.getMetaClass().getRealClass()).set(self, arg1);\n return arg1;\n }\n \n private RubyClass.VariableAccessor verifyAccessor(RubyClass cls) {\n RubyClass.VariableAccessor localAccessor = accessor;\n if (localAccessor.getClassId() != cls.hashCode()) {\n localAccessor = cls.getVariableAccessorForWrite(variableName);\n accessor = localAccessor;\n }\n return localAccessor;\n }\n });\n callMethod(context, \"method_added\", runtime.fastNewSymbol(internedName));\n }\n }", "public void setFlags(int param1) {\n }", "private void scanAndCopyMethods() {\n int numMethods = copyShort();\n for (int i = 0; i < numMethods; i++) {\n scanAndCopyAccessFlags();\n copy(4); // name_index, descriptor_index\n int numAttributes = copyShort();\n for (int j = 0; j < numAttributes; j++) {\n // Look for \"Code\" attribute.\n int attrNameIdx = copyShort();\n if (cpIdxIsCode(attrNameIdx)) {\n processCodeAttribute();\n } else {\n copyRestOfAttribute();\n }\n }\n }\n }", "public static void setFlags(int flag){\r\n flags |= flag;\r\n }", "void setAccessible(boolean accessible);", "public static native void OpenMM_AmoebaVdwForce_setAlchemicalMethod(PointerByReference target, int method);", "public void testMethodInfo889() throws Exception {\n\t\tClassInfo var2788 = instantiateClassInfo431();\n\t\tList<ClassInfo> var2764 = Collections.emptyList();\n\t\tList<ParameterInfo> var2766 = Collections.emptyList();\n\t\tList<LocalVariableInfo> var2767 = Collections.emptyList();\n\t\tList<Operation> var2768 = Collections.emptyList();\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tMethodInfo var2789 = new MethodInfo(var2788, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList());\n\t\tClassInfo var2765 = new ClassInfo(\"super\", false, null, var2764, null);\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tClassInfo var2771 = new ClassInfo(\"super\", false, var2765, var2764,\n\t\t\t\tnull);\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2788.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2788.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2788.getSetters();\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2788.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2788.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2788.getSetters();\n\t\tvar2789.isSetter();\n\t\tvar2789.isSetter();\n\t}", "public void method_203() {}", "public interface MethodHandleInfo {\n\n\t/**\n\t * Getter MethodHandle for an instance field\n\t */\n\tstatic final int REF_getField = 1;\n\n\t/**\n\t * Getter MethodHandle for an static field\n\t */\n\tstatic final int REF_getStatic = 2;\n\n\t/**\n\t * Setter MethodHandle for an instance field\n\t */\n\tstatic final int REF_putField = 3;\n\n\t/**\n\t * Setter MethodHandle for an static field\n\t */\n\tstatic final int REF_putStatic = 4;\n\n\t/**\n\t * MethodHandle for an instance method\n\t */\n\tstatic final int REF_invokeVirtual = 5;\n\n\t/**\n\t * MethodHandle for a static method\n\t */\n\tstatic final int REF_invokeStatic = 6;\n\n\t/**\n\t * MethodHandle for an special method\n\t */\n\tstatic final int REF_invokeSpecial = 7;\n\n\t/**\n\t * MethodHandle for a constructor\n\t */\n\tstatic final int REF_newInvokeSpecial = 8;\n\n\t/**\n\t * MethodHandle for an interface method\n\t */\n\tstatic final int REF_invokeInterface = 9;\n\n\t/**\n\t * Returns the Class where the cracked MethodHandle's underlying method, field or constructor is declared.\n\t *\n\t * @return class that declares the underlying member\n\t */\n\tClass<?> getDeclaringClass();\n\n\t/**\n\t * Returns the simple name of the MethodHandle's underlying member.\n\t *\n\t * @return A string representing the name of the method or field, or \"&lt;init&gt;\" for constructor.\n\t */\n\tString getName();\n\n\t/**\n\t * Returns the type of the MethodHandle's underlying member as a MethodType.\n\t * If the underlying member is non-static, the receiver parameter will not be included.\n\t * If the underlying member is field getter, the MethodType will take no parameters, and the return type will be the field type.\n\t * If the underlying member is field setter, the MethodType will take one parameter of the field type, and the return type will be void.\n\t *\n\t * @return A MethodType object representing the signature of the method or field\n\t */\n\tMethodType getMethodType();\n\n\t/**\n\t * Returns the modifiers of the MethodHandle's underlying member.\n\t *\n\t * @return An int representing the member's modifiers, or -1 if the underlying member is not accessible.\n\t */\n\tint getModifiers();\n\n\t/**\n\t * Returns the reference kind of the MethodHandle. The possible reference kinds are the declared MethodHandleInfo.REF fields.\n\t *\n\t * @return Returns one of the defined reference kinds which represent the MethodHandle kind.\n\t */\n\tint getReferenceKind();\n\n\t/**\n\t * Returns whether the MethodHandle's underlying method or constructor has variable argument arity.\n\t *\n\t * @return whether the underlying method has variable arity\n\t */\n\tdefault boolean isVarArgs() {\n\t\t// Check whether the MethodHandle refers to a Method or Contructor (not Field)\n\t\tif (getReferenceKind() >= REF_invokeVirtual) {\n\t\t\treturn ((getModifiers() & MethodHandles.Lookup.VARARGS) != 0);\n\t\t}\n\t\treturn false;\n\t}\n\n\t/**\n\t * Reflects the underlying member as a Method, Field or Constructor. The member must be accessible to the provided lookup object.\n\t * Public members are reflected as if by <code>getMethod</code>, <code>getField</code> or <code>getConstructor</code>.\n\t * Non-public members are reflected as if by <code>getDeclearedMethod</code>, <code>getDeclaredField</code> or <code>getDeclaredConstructor</code>.\n\t *\n\t * @param expected The expected type of the returned Member\n\t * @param lookup The lookup that was used to create the MethodHandle, or a lookup object with equivalent access\n\t * @return A Method, Field or Constructor representing the underlying member of the MethodHandle\n\t * @throws NullPointerException If either argument is null\n\t * @throws IllegalArgumentException If the underlying member is not accessible to the provided lookup object\n\t * @throws ClassCastException If the underlying member is not of the expected type\n\t */\n\t<T extends java.lang.reflect.Member> T reflectAs(Class<T> expected, MethodHandles.Lookup lookup);\n\n\t/**\n\t * Returns a string representing the equivalent bytecode for the referenceKind.\n\t *\n\t * @param referenceKind The referenceKind to lookup\n\t * @return a String representing the equivalent bytecode\n\t * @throws IllegalArgumentException If the provided referenceKind is invalid\n\t */\n\tstatic String referenceKindToString(int referenceKind) throws IllegalArgumentException {\n\t\tswitch(referenceKind) {\n\t\tcase REF_getField: \t\t\treturn \"getField\"; //$NON-NLS-1$\n\t\tcase REF_getStatic: \t\treturn \"getStatic\"; //$NON-NLS-1$\n\t\tcase REF_putField: \t\t\treturn \"putField\"; //$NON-NLS-1$\n\t\tcase REF_putStatic: \t\treturn \"putStatic\"; //$NON-NLS-1$\n\t\tcase REF_invokeVirtual: \treturn \"invokeVirtual\"; //$NON-NLS-1$\n\t\tcase REF_invokeStatic: \t\treturn \"invokeStatic\"; //$NON-NLS-1$\n\t\tcase REF_invokeSpecial: \treturn \"invokeSpecial\"; //$NON-NLS-1$\n\t\tcase REF_newInvokeSpecial: \treturn \"newInvokeSpecial\"; //$NON-NLS-1$\n\t\tcase REF_invokeInterface: \treturn \"invokeInterface\"; //$NON-NLS-1$\n\t\t}\n\t\t// K0582 = Reference kind \"{0\"} is invalid\n\t\tthrow new IllegalArgumentException(com.ibm.oti.util.Msg.getString(\"K0582\", referenceKind)); //$NON-NLS-1$\n\t}\n\n\t/**\n\t * Answers a string containing a concise, human-readable description of the receiver.\n\t *\n\t * @param kind the reference kind, one of the declared MethodHandleInfo.REF fields.\n\t * @param defc the class where the member is declared\n\t * @param name the name of the member\n\t * @param type the member's MethodType\n\t * @return a String of the format \"K C.N:MT\"\n\t */\n\tstatic String toString(int kind, Class<?> defc, String name, MethodType type) {\n\t\treturn referenceKindToString(kind) + \" \" + defc.getName() + \".\" + name + \":\" + type; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$\n\t}\n\n}", "public void andThisIsAMethodName(){}", "String getAccess();", "String getAccess();", "@Override\n\tpublic int getFlags() {\n\t\treturn heldObj.getFlags();\n\t}", "private Method getPrivateMethodFromAtrManager(String methodName, Class<?>... argClasses) throws Exception {\n\t\tMethod method = AttributesManagerBlImpl.class.getDeclaredMethod(methodName, argClasses);\n\t\tmethod.setAccessible(true);\n\t\treturn method;\n\t}", "public String getAccess();", "public void testMethodInfo886() throws Exception {\n\t\tClassInfo var2776 = instantiateClassInfo426();\n\t\tLocalField var2777 = instantiateLocalField425();\n\t\tList<ClassInfo> var2764 = Collections.emptyList();\n\t\tList<ParameterInfo> var2766 = Collections.emptyList();\n\t\tList<LocalVariableInfo> var2767 = Collections.emptyList();\n\t\tList<Operation> var2768 = Collections.emptyList();\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tMethodInfo var2778 = new MethodInfo(var2776, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList());\n\t\tvar2777.getDescription();\n\t\tvar2777.getDescription();\n\t\tClassInfo var2765 = new ClassInfo(\"super\", false, null, var2764, null);\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tClassInfo var2771 = new ClassInfo(\"super\", false, var2765, var2764,\n\t\t\t\tnull);\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2776.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2776.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2776.getSetters();\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2776.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2776.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2776.getSetters();\n\t\tvar2778.isSetter();\n\t\tvar2778.isSetter();\n\t}", "@Override\n public MethodDescriptor[] getMethodDescriptors() {\n return getMdescriptor();\n }", "private RubyArray instance_methods(IRubyObject[] args, final Visibility visibility, boolean not, boolean useSymbols) {\n boolean includeSuper = args.length > 0 ? args[0].isTrue() : true;\n Ruby runtime = getRuntime();\n RubyArray ary = runtime.newArray();\n Set<String> seen = new HashSet<String>();\n \n populateInstanceMethodNames(seen, ary, visibility, not, useSymbols, includeSuper);\n \n return ary;\n }", "public void testMethodInfo887() throws Exception {\n\t\tClassInfo var2782 = instantiateClassInfo428();\n\t\tLocalField var2783 = instantiateLocalField427();\n\t\tList<ClassInfo> var2764 = Collections.emptyList();\n\t\tList<ParameterInfo> var2766 = Collections.emptyList();\n\t\tList<LocalVariableInfo> var2767 = Collections.emptyList();\n\t\tList<Operation> var2768 = Collections.emptyList();\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tMethodInfo var2784 = new MethodInfo(var2782, \"voidX()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList());\n\t\tvar2783.getDescription();\n\t\tvar2783.getDescription();\n\t\tClassInfo var2765 = new ClassInfo(\"super\", false, null, var2764, null);\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tClassInfo var2771 = new ClassInfo(\"super\", false, var2765, var2764,\n\t\t\t\tnull);\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2782.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2782.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2782.getSetters();\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2782.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2782.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2782.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2784.isSetter();\n\t\tvar2784.isSetter();\n\t}", "public String methodBase() {\n\t\tString tmp = name;\n\t\ttmp = tmp.replaceFirst(\"^get\", \"\");\n\t\ttmp = tmp.replaceFirst(\"^is\", \"\");\n\t\treturn tmp.substring(0,1).toLowerCase()+tmp.substring(1);\n\t}", "public int getModifiers() {\n return mod;\n }", "MethodName getMethod();", "boolean isAccessed (ClassMember attr) {\r\n if (accessed_attributes == null) {\r\n accessed_attributes = new java.util.Vector ();\r\n } else if (accessed_attributes.contains (attr)) {\r\n return true;\r\n } \r\n\r\n accessed_attributes.addElement (attr);\r\n return false;\r\n }", "protected void updateFlags() {\n USE_CANNY = USE_CANNY && mainInterface.DEBUG_FRAME;\n DEBUG_PREP_FRAME = DEBUG_PREP_FRAME && mainInterface.DEBUG_FRAME;\n DEBUG_CONTOURS = DEBUG_CONTOURS && mainInterface.DEBUG_FRAME;\n DEBUG_POLY = DEBUG_POLY && mainInterface.DEBUG_FRAME;\n DEBUG_DRAW_MARKERS = DEBUG_DRAW_MARKERS && mainInterface.DEBUG_FRAME;\n DEBUG_DRAW_MARKER_ID = DEBUG_DRAW_MARKER_ID && mainInterface.DEBUG_FRAME;\n DEBUG_DRAW_SAMPLING = DEBUG_DRAW_SAMPLING && mainInterface.DEBUG_FRAME;\n }", "private void resetFlag(short r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00f2 in method: android.location.GpsClock.resetFlag(short):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.location.GpsClock.resetFlag(short):void\");\n }", "public GetterSetterInliner(CodeAttrInfoEditor codeAttrInfoEditor,\n boolean allowAccessModification)\n {\n this.codeAttrInfoEditor = codeAttrInfoEditor;\n this.allowAccessModification = allowAccessModification;\n }", "public static boolean canAccessFieldsDirectly(){\n return false; //TODO codavaj!!\n }", "public synchronized void setFlags(Flags newFlags, boolean set) throws MessagingException {\n/* 91 */ Flags oldFlags = (Flags)this.flags.clone();\n/* 92 */ super.setFlags(newFlags, set);\n/* 93 */ if (!this.flags.equals(oldFlags)) {\n/* 94 */ this.folder.notifyMessageChangedListeners(1, (Message)this);\n/* */ }\n/* */ }", "protected final boolean isMutable() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: android.icu.impl.coll.CollationDataBuilder.isMutable():boolean, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.icu.impl.coll.CollationDataBuilder.isMutable():boolean\");\n }", "Method getMethod();", "Method getMethod();", "public void setImportantForAccessibility(boolean important) {\n/* 1316 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public MethodPredicate withModifiers(int... modifiers) {\n this.withModifiers = Arrays.stream(modifiers).boxed().collect(Collectors.toList());\n return this;\n }", "@Override\n\t\t\tpublic MethodVisitor visitMethod(int access, String name, String desc, String signature, String[] exceptions) {\n\t\t\t\tboolean isSynthetic = ClassInfoUtils.checkAccess(access, Opcodes.ACC_SYNTHETIC);\n\t\t\t\tboolean isNative = ClassInfoUtils.checkAccess(access, Opcodes.ACC_NATIVE);\n\t\t\t\tboolean isInterface = ClassInfoUtils.checkAccess(access, Opcodes.ACC_INTERFACE);\n\t\t\t\tboolean isAbstract = ClassInfoUtils.checkAccess(access, Opcodes.ACC_ABSTRACT);\n\t\t\t\t\n\t\t\t\tMethodVisitor mv = super.visitMethod(access, name, desc, signature, exceptions);\n\t\t\t\tif (name.equals(\"toString\") && desc.equals(\"()Ljava/lang/String;\")) {\n\t\t\t\t\treturn mv;\n\t\t\t\t} else if (name.equals(\"equals\") && desc.equals(\"(Ljava/lang/Object;)Z\")) {\n\t\t\t\t\treturn mv;\n\t\t\t\t} else if (name.equals(\"hashCode\") && desc.equals(\"()I\")) {\n\t\t\t\t\treturn mv;\n\t\t\t\t} else if (isSynthetic || isNative || isInterface || isAbstract) {\n\t\t\t\t\treturn mv;\n\t\t\t\t} else {\n\t\t\t\t\tmv = new DependencyAnalyzer(className, \n\t\t\t\t\t\t\taccess, \n\t\t\t\t\t\t\tname, \n\t\t\t\t\t\t\tdesc, \n\t\t\t\t\t\t\tsignature, \n\t\t\t\t\t\t\texceptions, \n\t\t\t\t\t\t\tmv, \n\t\t\t\t\t\t\ttrue,\n\t\t\t\t\t\t\tfalse, \n\t\t\t\t\t\t\ttrue, \n\t\t\t\t\t\t\ttrue);\n\t\t\t\t\t//mv = new CalleeAnalyzer(className, access, name, desc, signature, exceptions, mv, true);\n\t\t\t\t\treturn mv;\n\t\t\t\t}\n\t\t\t}", "@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 13:02:04.534 -0500\", hash_original_method = \"E4DEB0C107DDB25A537EF0E89F1C04F8\", hash_generated_method = \"2E76AFD8C90588F5139C0C2D28CAEA05\")\n \nprivate static int translateCodingErrorAction(CodingErrorAction action) {\n if (action == CodingErrorAction.REPORT) {\n return 0;\n } else if (action == CodingErrorAction.IGNORE) {\n return 1;\n } else if (action == CodingErrorAction.REPLACE) {\n return 2;\n } else {\n throw new AssertionError(); // Someone changed the enum.\n }\n }", "private boolean makeFieldAccessible(Field f)\n {\n // See: https://stackoverflow.com/questions/46454995/#58834966\n Method getModule;\n try\n {\n getModule = Class.class.getMethod(\"getModule\");\n }\n catch (NoSuchMethodException e)\n {\n // We are on Java 8\n getModule = null;\n }\n if (getModule != null)\n {\n try\n {\n Object thisModule = getModule.invoke(this.getClass());\n Method isNamed = thisModule.getClass().getMethod(\"isNamed\");\n if (!(boolean) isNamed.invoke(thisModule))\n {\n Class fieldClass = f.getDeclaringClass().getClass();\n Object fieldModule = getModule.invoke(fieldClass);\n Method addOpens = fieldModule.getClass().getMethod(\n \"addOpens\", String.class, thisModule.getClass());\n Method getPackageName = fieldClass.getMethod(\"getPackageName\");\n addOpens.invoke(fieldModule, getPackageName.invoke(fieldClass), thisModule);\n }\n }\n catch (Throwable t)\n {\n if (t instanceof InvocationTargetException)\n {\n InvocationTargetException e = (InvocationTargetException) t;\n if (e.getCause() != null\n && e.getCause().getClass().getName().endsWith(\"IllegalCallerException\"))\n {\n if (outputLogger != null)\n {\n outputLogger.debug(\n PROCESS_ATTRIBUTE_CHANGE_MESSAGE + e.getCause().getMessage(),\n this.getClass().getName());\n }\n t = null;\n }\n }\n if (t != null)\n {\n throw new CargoException(\"Cannot set field accessibility for [\" + f + \"]\", t);\n }\n return false;\n }\n }\n try\n {\n f.setAccessible(true);\n return true;\n }\n catch (Throwable t)\n {\n if (t.getClass().getName().endsWith(\"InaccessibleObjectException\"))\n {\n if (outputLogger != null)\n {\n outputLogger.debug(\n PROCESS_ATTRIBUTE_CHANGE_MESSAGE + t.getMessage(),\n this.getClass().getName());\n }\n t = null;\n }\n if (t != null)\n {\n throw new CargoException(\"Cannot set field accessibility for [\" + f + \"]\", t);\n }\n return false;\n }\n }", "Builder addAccessibilityFeature(String value);", "public Method getMethod();", "Methodsig getMethod();", "public short getFlags() {\n\treturn flags;\n }", "public boolean isPropertyAccessorMethod(Method paramMethod, Class paramClass) {\n/* 225 */ String str1 = paramMethod.getName();\n/* 226 */ Class<?> clazz = paramMethod.getReturnType();\n/* 227 */ Class[] arrayOfClass1 = paramMethod.getParameterTypes();\n/* 228 */ Class[] arrayOfClass2 = paramMethod.getExceptionTypes();\n/* 229 */ String str2 = null;\n/* */ \n/* 231 */ if (str1.startsWith(\"get\")) {\n/* */ \n/* 233 */ if (arrayOfClass1.length == 0 && clazz != void.class && \n/* 234 */ !readHasCorrespondingIsProperty(paramMethod, paramClass)) {\n/* 235 */ str2 = \"get\";\n/* */ }\n/* */ }\n/* 238 */ else if (str1.startsWith(\"set\")) {\n/* */ \n/* 240 */ if (clazz == void.class && arrayOfClass1.length == 1 && (\n/* 241 */ hasCorrespondingReadProperty(paramMethod, paramClass, \"get\") || \n/* 242 */ hasCorrespondingReadProperty(paramMethod, paramClass, \"is\"))) {\n/* 243 */ str2 = \"set\";\n/* */ \n/* */ }\n/* */ }\n/* 247 */ else if (str1.startsWith(\"is\") && \n/* 248 */ arrayOfClass1.length == 0 && clazz == boolean.class && \n/* 249 */ !isHasCorrespondingReadProperty(paramMethod, paramClass)) {\n/* 250 */ str2 = \"is\";\n/* */ } \n/* */ \n/* */ \n/* */ \n/* 255 */ if (str2 != null && (\n/* 256 */ !validPropertyExceptions(paramMethod) || str1\n/* 257 */ .length() <= str2.length())) {\n/* 258 */ str2 = null;\n/* */ }\n/* */ \n/* */ \n/* 262 */ return (str2 != null);\n/* */ }", "public void setAllowedMethods(Method... allowed)\n\t{\n\t\tStringBuilder s = new StringBuilder();\n\t\tfor (int i = 0; i < allowed.length; i++)\n\t\t{\n\t\t\tif (i != 0)\n\t\t\t\ts.append(\", \");\n\t\t\ts.append(allowed[i]);\n\t\t}\n\t\t\n\t\tsetHeader(ALLOW, s.toString());\n\t}", "public int getAccess()\n {\n ensureLoaded();\n return m_flags.getAccess();\n }", "String getMethod();", "String getMethod();", "public void setDeclared(int r1, boolean r2) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: org.xml.sax.ext.Attributes2Impl.setDeclared(int, boolean):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: org.xml.sax.ext.Attributes2Impl.setDeclared(int, boolean):void\");\n }", "@Override\n\tpublic MethodVisitor visitMethod(int access, String name, String desc, String signature, String[] exceptions) {\n\t\tparsingMethod = new Method(name, desc, parsingClass);\n\t\tparsingClass.getMethods().add(parsingMethod);\n\t\treturn completeMethodVisitor;\n\t}", "public interface MethodInfo {\n\t/**\n\t * Returns the class which declared the method.\n\t */\n\tpublic ClassInfo declaringClass();\n\n\t/**\n\t * Returns the index into the constant pool of the name of the method.\n\t */\n\tpublic int nameIndex();\n\n\t/**\n\t * Returns the index into the constant pool of the type of the method.\n\t */\n\tpublic int typeIndex();\n\n\t/**\n\t * Sets the index into the constant pool of the name of the method.\n\t */\n\tpublic void setNameIndex(int index);\n\n\t/**\n\t * Set the index into the constant pool of the type of the method.\n\t * \n\t * @param index\n\t * The index into the constant pool of the type of the method.\n\t */\n\tpublic void setTypeIndex(int index);\n\n\t/**\n\t * Set the modifiers of the method. The values correspond to the constants\n\t * in the Modifiers class.\n\t * \n\t * @param modifiers\n\t * A bit vector of modifier flags for the method.\n\t * @see Modifiers\n\t */\n\tpublic void setModifiers(int modifiers);\n\n\t/**\n\t * Get the modifiers of the method. The values correspond to the constants\n\t * in the Modifiers class.\n\t * \n\t * @return A bit vector of modifier flags for the method.\n\t * @see Modifiers\n\t */\n\tpublic int modifiers();\n\n\t/**\n\t * Get the indices into the constant pool of the types of the exceptions\n\t * thrown by the method.\n\t * \n\t * @return The indices into the constant pool of the types of the exceptions\n\t * thrown by the method.\n\t */\n\tpublic int[] exceptionTypes();\n\n\t/**\n\t * Get the maximum height of the operand stack.\n\t * \n\t * @return The maximum height of the operand stack.\n\t */\n\tpublic int maxStack();\n\n\t/**\n\t * Set the maximum height of the operand stack.\n\t * \n\t * @param maxStack\n\t * The maximum height of the operand stack.\n\t */\n\tpublic void setMaxStack(int maxStack);\n\n\t/**\n\t * Get the maximum number of locals used in the method.\n\t * \n\t * @return The maximum number of locals used in the method.\n\t */\n\tpublic int maxLocals();\n\n\t/**\n\t * Set the maximum number of locals used in the method.\n\t * \n\t * @param maxLocals\n\t * The maximum number of locals used in the method.\n\t */\n\tpublic void setMaxLocals(int maxLocals);\n\n\t/**\n\t * Get the byte code array of the method.\n\t * \n\t * @return The byte code array of the method.\n\t */\n\tpublic byte[] code();\n\n\t/**\n\t * Set the byte code array of the method.\n\t * \n\t * @param code\n\t * The byte code array of the method.\n\t */\n\tpublic void setCode(byte[] code);\n\n\t/**\n\t * Get the line number debug info of the instructions in the method.\n\t * \n\t * @return The line numbers of the instructions in the method. The array\n\t * will be of size 0 if the method has no line number debug info.\n\t */\n\tpublic LineNumberDebugInfo[] lineNumbers();\n\n\t/**\n\t * Set the line number debug info of the instructions in the method.\n\t * \n\t * @param lineNumbers\n\t * The line numbers of the instructions in the method. The array\n\t * will be of size 0 if the method has no line number debug info.\n\t */\n\tpublic void setLineNumbers(LineNumberDebugInfo[] lineNumbers);\n\n\t/**\n\t * Get the local variable debug information for the method.\n\t * \n\t * @return The local variables in the method. The array will be of size 0 if\n\t * the method has no local variable debug info.\n\t */\n\tpublic LocalDebugInfo[] locals();\n\n\t/**\n\t * Set the local variables in the method.\n\t * \n\t * @param locals\n\t * The local variables in the method.\n\t */\n\tpublic void setLocals(LocalDebugInfo[] locals);\n\n\t/**\n\t * Get the exception handlers in the method.\n\t * \n\t * @return The exception handlers in the method.\n\t */\n\tpublic Catch[] exceptionHandlers();\n\n\t/**\n\t * Set the exception handlers in the method.\n\t * \n\t * @param exceptions\n\t * The exception handlers in the method.\n\t */\n\tpublic void setExceptionHandlers(Catch[] exceptions);\n\n\t/**\n\t * Creates a clone of this <tt>MethodInfo</tt> except that its declaring\n\t * class does not know about it.\n\t */\n\tpublic Object clone();\n}", "public final native void setFlags(int value) /*-{\n\t\tvar jso = [email protected]::getJsObj()();\n\t\tjso.flags = value;\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}", "public void setModifierFlag(int flag) {\n\t\tthis.modifier = flag;\n\t}", "public void setFlags(final Flags flags);", "public int getFlags() {\n return flags;\n }", "public List<MethodInfo> getMethods() { \n return lstMethodInfo;\n }", "private void checkMethodPermission(HandlerMethod handlerMethod) {\n RequirePermission annotation = handlerMethod.getMethodAnnotation(RequirePermission.class);\n String str = annotation.value();\n System.out.println(\"-----+++++++\");\n }", "public void testCreateMethodWithModifiersAndExceptions() {\n IDOMMethod method = this.domFactory.createMethod();\n method.setName(\"foo\");\n method.setFlags(ClassFileConstants.AccPrivate);\n method.setExceptions(new String[] { \"java.lang.IllegalArgumentException\", \"java.io.FileNotFoundExcpetion\" });\n assertSourceEquals(\"source code incorrect\", \"private void foo() throws java.lang.IllegalArgumentException, java.io.FileNotFoundExcpetion {\\n\" + \"}\\n\", method.getContents());\n }", "public interface C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }", "public boolean visit(MethodDeclaration decl, ClassScope scope) {\r\n\t\t\tif (decl instanceof InterTypeFieldDeclaration) \r\n\t\t\t\tvalue -= 2;\r\n\r\n\t\t\treturn super.visit(decl, scope);\r\n\t\t}", "private void resetFlags(){\n\t\tint count = 0;\n\t\tif (partOfAPairedAlignment) count += Math.pow(2, 0);\n\t\tif (aProperPairedAlignment) count += Math.pow(2, 1);\n\t\tif (unmapped) count += Math.pow(2, 2);\n\t\tif (mateUnMapped) count += Math.pow(2, 3);\n\t\tif (reverseStrand) count += Math.pow(2, 4);\n\t\tif (mateReverseStrand) count += Math.pow(2, 5);\n\t\tif (firstPair) count += Math.pow(2, 6);\n\t\tif (secondPair) count += Math.pow(2, 7);\n\t\tif (notAPrimaryAlignment) count += Math.pow(2, 8);\n\t\tif (failedQC) count += Math.pow(2, 9);\n\t\tif (aDuplicate) count += Math.pow(2, 10);\n\t\tflags = (short) count;\n\t\tflagResetNeeded = false;\n\t\t\n\t}", "private void mappingMethods() throws SecurityException, NoSuchMethodException{\n\t\tmappingMethodGet();\n\t\tmappingMethodSet();\n\t}", "private void setBooleanFlags (short flags){\n\t\tthis.flags = flags;\n\t\tflagResetNeeded = false;\n\t\tpartOfAPairedAlignment = isPartOfAPairedAlignment();\n\t\taProperPairedAlignment = isAProperPairedAlignment();\n\t\tunmapped = isUnmapped();\n\t\tmateUnMapped = isMateUnMapped();\n\t\treverseStrand = isReverseStrand();\n\t\tmateReverseStrand = isMateReverseStrand();\n\t\tfirstPair = isFirstPair();\n\t\tsecondPair = isSecondPair();\n\t\tnotAPrimaryAlignment = isNotAPrimaryAlignment();\n\t\tfailedQC = failedQC();\n\t\taDuplicate = isADuplicate();\n\t\t\n\t}" ]
[ "0.6459756", "0.61941135", "0.6124305", "0.6054357", "0.6038953", "0.6038953", "0.58764786", "0.58633894", "0.586231", "0.586231", "0.58388376", "0.5695067", "0.5662682", "0.5656152", "0.56525016", "0.5636611", "0.5633119", "0.560779", "0.560779", "0.55963707", "0.5585593", "0.5527335", "0.55259675", "0.55178744", "0.5497699", "0.5462038", "0.5460664", "0.54553145", "0.54315555", "0.5428095", "0.5423939", "0.5423252", "0.5405602", "0.5403003", "0.5399762", "0.5359158", "0.5347791", "0.5321582", "0.5317954", "0.53177696", "0.53112406", "0.5308062", "0.53007996", "0.5287687", "0.52810687", "0.5266063", "0.5265689", "0.52653694", "0.5262753", "0.52625436", "0.5258052", "0.5258052", "0.52249104", "0.52223516", "0.52184665", "0.52071375", "0.5204527", "0.5204301", "0.5195871", "0.51853406", "0.5169663", "0.51661706", "0.5161185", "0.51575136", "0.51456904", "0.5145592", "0.51448935", "0.51339334", "0.5129795", "0.51288617", "0.51288617", "0.51249367", "0.51229906", "0.51223254", "0.51202285", "0.5116746", "0.5112507", "0.51069206", "0.5106849", "0.5105911", "0.5099613", "0.50912666", "0.5082884", "0.5078926", "0.5078926", "0.5075503", "0.507498", "0.5074663", "0.50737566", "0.5067883", "0.50673777", "0.5066441", "0.50620204", "0.5058641", "0.50536793", "0.50520235", "0.50424683", "0.50392544", "0.5032849", "0.50326675", "0.5027472" ]
0.0
-1
Manipulate the method access flags.
public boolean isVarArgs() { return (getAccessFlags() & Constants.ACCESS_VARARGS) > 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void checkAccessModifier(Method method);", "public abstract int flags();", "private void writeMethodModifiers(Method m) {\n int mod = m.getModifiers();\n mod &= ~Modifier.ABSTRACT;\n mod &= ~Modifier.TRANSIENT;\n writer.print(Modifier.toString(mod) + \" \");\n }", "public int getAccessFlags() {\n return access_flags;\n }", "public int getFlags();", "public int getFlags();", "public long getFlags() {\n }", "public void testCreateMethodWithModifiers() {\n IDOMMethod method = this.domFactory.createMethod();\n method.setName(\"foo\");\n method.setFlags(ClassFileConstants.AccPublic | ClassFileConstants.AccStatic);\n assertSourceEquals(\"source code incorrect\", \"public static void foo() {\\n\" + \"}\\n\", method.getContents());\n }", "int getModifiers();", "int getModifiers();", "public Set<Method> getMethods() {\r\n \t\t// We will only consider private methods in the declared class\r\n \t\tif (forceAccess)\r\n \t\t\treturn setUnion(source.getDeclaredMethods(), source.getMethods());\r\n \t\telse\r\n \t\t\treturn setUnion(source.getMethods());\r\n \t}", "JApiModifier<AccessModifier> getAccessModifier();", "@Override\n\t\t\tpublic void visit(MethodDeclaration arg0, Object arg1) {\n\t\t\t\tif((arg0.getModifiers() & Modifier.PUBLIC) == Modifier.PUBLIC) {\n\t\t\t\t\t\tif(arg0.getName().substring(0, 3) == \"get\" || arg0.getName().substring(0, 3) == \"set\")\n\t\t\t\t\t\t\tpublicAcces.add(new Pair(arg0.getName() + \"( \"+planeL(arg0.getParameters()) +\") :\" + arg0.getType().toString(), Character.toLowerCase(arg0.getName().substring(3).charAt(0)) + (arg0.getName().substring(3).length() > 1 ? arg0.getName().substring(3).substring(1) : \"\")));\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tpublicAcces.add(new Pair(arg0.getName() + \"( \"+planeL(arg0.getParameters()) +\") :\" + arg0.getType().toString(), Character.toLowerCase(arg0.getName().substring(3).charAt(0)) + (arg0.getName().substring(3).length() > 1 ? arg0.getName().substring(3).substring(1) : \"\")));\n\t\t\t\t\t\tuses(arg0.getParameters());\n\t\t\t\t}\n\t\t\t\tsuper.visit(arg0, arg1);\n\t\t\t}", "long getFlags();", "private int patchAccess(BT_Method bm,BT_InsVector iv,int idx)\n{\n int ctr = 0;\n\n if (patch_type.getPatchLocalAccess() || patch_type.getPatchRemoteAccess()) {\n BT_FieldRefIns fri = (BT_FieldRefIns) iv.elementAt(idx);\n BT_Field fld = fri.getFieldTarget();\n if (fri.opcode == BT_Opcodes.opc_getstatic) {\n\t ctr = patch_type.getInstrumenter().patchStaticAccess(fld,bm,iv,idx);\n }\n else {\n\t ctr = patch_type.getInstrumenter().patchFieldAccess(fld,bm,iv,idx);\n }\n }\n\n patch_delta += ctr;\n\n return ctr;\n}", "private void mappingMethodSet() throws SecurityException, NoSuchMethodException{\n\t\tString aux = upFirstLetter();\n\t\tString methodSet = \"set\" + aux;\n\t\tthis.methodSet = this.classFather.getMethod(methodSet, this.classType);\n\t}", "public int modifiers();", "public interface ApiFlags {\n int GET_SOMETHING = 0;\n int GET_SOMETHING_ELSE = 1;\n }", "public interface ApiFlags {\n int GET_SOMETHING = 0;\n int GET_SOMETHING_ELSE = 1;\n }", "protected abstract MethodDescription accessorMethod();", "private void setFlag(short r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00f2 in method: android.location.GpsClock.setFlag(short):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.location.GpsClock.setFlag(short):void\");\n }", "@FameProperty(name = \"numberOfAccessingMethods\", derived = true)\n public Number getNumberOfAccessingMethods() {\n throw new UnsupportedOperationException(\"Not yet implemented!\"); \n }", "boolean isSetMethod();", "public abstract Set<MethodUsage> getDeclaredMethods();", "public void updateFlags()\n {\n initialize();\n }", "private static boolean getInternalPublicMethods(Class<?> paramClass, Map<Signature, Method> paramMap) {\n/* 143 */ Method[] arrayOfMethod = null;\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ try {\n/* 150 */ if (!Modifier.isPublic(paramClass.getModifiers())) {\n/* 151 */ return false;\n/* */ }\n/* 153 */ if (!ReflectUtil.isPackageAccessible(paramClass)) {\n/* 154 */ return false;\n/* */ }\n/* */ \n/* 157 */ arrayOfMethod = paramClass.getMethods();\n/* 158 */ } catch (SecurityException securityException) {\n/* 159 */ return false;\n/* */ } \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 168 */ boolean bool = true; byte b;\n/* 169 */ for (b = 0; b < arrayOfMethod.length; b++) {\n/* 170 */ Class<?> clazz = arrayOfMethod[b].getDeclaringClass();\n/* 171 */ if (!Modifier.isPublic(clazz.getModifiers())) {\n/* 172 */ bool = false;\n/* */ \n/* */ break;\n/* */ } \n/* */ } \n/* 177 */ if (bool) {\n/* */ \n/* */ \n/* */ \n/* */ \n/* 182 */ for (b = 0; b < arrayOfMethod.length; b++) {\n/* 183 */ addMethod(paramMap, arrayOfMethod[b]);\n/* */ \n/* */ }\n/* */ \n/* */ }\n/* */ else {\n/* */ \n/* 190 */ for (b = 0; b < arrayOfMethod.length; b++) {\n/* 191 */ Class<?> clazz = arrayOfMethod[b].getDeclaringClass();\n/* 192 */ if (paramClass.equals(clazz)) {\n/* 193 */ addMethod(paramMap, arrayOfMethod[b]);\n/* */ }\n/* */ } \n/* */ } \n/* 197 */ return bool;\n/* */ }", "@Override\n\tpublic void setAccessModifier(AccessModifier modifier) {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "int getFlag();", "public void beforeHookedMethod(MethodHookParam methodHookParam) throws Throwable {\n super.beforeHookedMethod(methodHookParam);\n methodHookParam.setResult(AbsSavedState.EMPTY_STATE);\n Field findField = XposedHelpers.findField(View.class, \"mPrivateFlags\");\n findField.set(methodHookParam.thisObject, Integer.valueOf(findField.getInt(methodHookParam.thisObject) | 131072));\n }", "public void setFlagMethodName(String name) {\n m_flagMethodName = name;\n }", "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}", "public void changeMode() {\n methodMode = !methodMode;\n }", "private void mappingMethodGet() throws SecurityException, NoSuchMethodException{\n\t\tString aux = upFirstLetter();\n\t\tString methodGet = \"get\" + aux;\n\t\tthis.methodGet = this.classFather.getMethod(methodGet);\n\t}", "public void testMethodInfo888() throws Exception {\n\t\tClassInfo var2785 = instantiateClassInfo430();\n\t\tFieldInfo var2786 = instantiateFieldInfo429();\n\t\tList<ClassInfo> var2764 = Collections.emptyList();\n\t\tList<ParameterInfo> var2766 = Collections.emptyList();\n\t\tList<LocalVariableInfo> var2767 = Collections.emptyList();\n\t\tList<Operation> var2768 = Collections.emptyList();\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tMethodInfo var2787 = new MethodInfo(var2785, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList());\n\t\tClassInfo var2765 = new ClassInfo(\"super\", false, null, var2764, null);\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2785.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2785.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2785.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tClassInfo var2771 = new ClassInfo(\"super\", false, var2765, var2764,\n\t\t\t\tnull);\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2785.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2785.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2785.getSetters();\n\t\tvar2787.isSetter();\n\t\tvar2787.isSetter();\n\t}", "public void setModifiers(int modifiers);", "Method getMethod(int id, boolean filterObsolete);", "private boolean isFlagSet(short r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00f2 in method: android.location.GpsClock.isFlagSet(short):boolean, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.location.GpsClock.isFlagSet(short):boolean\");\n }", "public MethodVisitor visitMethod(int access, String name, String desc, String signature, String[] exceptions) {\n if (\"size\".equals(name) && \"()I\".equals(desc)) {\n return addWrapperMethod(access, name, desc, signature, exceptions);\n } else if (\"isEmpty\".equals(name) && \"()Z\".equals(desc)) {\n return addWrapperMethod(access, name, desc, signature, exceptions);\n } else if (\"containsValue\".equals(name) && \"(Ljava/lang/Object;)Z\".equals(desc)) {\n return addWrapperMethod(access, name, desc, signature, exceptions);\n }\n\n MethodVisitor mv = super.visitMethod(access, name, desc, signature, exceptions);\n if (\"entrySet\".equals(name) && \"()Ljava/util/Set;\".equals(desc)) {\n return new EntrySetMethodAdapter(mv);\n } else if (\"segmentFor\".equals(name) && \"(I)Ljava/util/concurrent/ConcurrentHashMap$Segment;\".equals(desc)) {\n return rewriteSegmentForMethod(mv);\n } else if (\"get\".equals(name) && \"(Ljava/lang/Object;)Ljava/lang/Object;\".equals(desc)) {\n return new MulticastMethodVisitor(new MethodVisitor[] {\n new OriginalGetMethodAdapter(super.visitMethod(ACC_SYNTHETIC|ACC_PUBLIC, TC_ORIG_GET_METHOD_NAME, TC_ORIG_GET_METHOD_DESC, null, null)),\n new ConcurrentHashMapMethodAdapter(new GetMethodAdapter(mv))});\n }\n \n if (\"put\".equals(name) && \"(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;\".equals(desc)) {\n mv = new MulticastMethodVisitor(new MethodVisitor[] {\n mv,\n new ApplicatorPutMethodAdapter(super.visitMethod(ACC_SYNTHETIC|ACC_PUBLIC, TC_APPLICATOR_PUT_METHOD_NAME, TC_APPLICATOR_PUT_METHOD_DESC, null, null))});\n } else if (\"clear\".equals(name) && \"()V\".equals(desc)) {\n mv = new MulticastMethodVisitor(new MethodVisitor[] {\n mv,\n new ApplicatorClearMethodAdapter(super.visitMethod(ACC_SYNTHETIC|ACC_PUBLIC, TC_APPLICATOR_CLEAR_METHOD_NAME, TC_APPLICATOR_CLEAR_METHOD_DESC, null, null))});\n } else if (\"containsKey\".equals(name) && \"(Ljava/lang/Object;)Z\".equals(desc)) {\n mv = new ContainsKeyMethodAdapter(mv);\n } else if (\"remove\".equals(name) && \"(Ljava/lang/Object;)Ljava/lang/Object;\".equals(desc)) {\n mv = new MulticastMethodVisitor(new MethodVisitor[] {\n new SimpleRemoveMethodAdapter(mv),\n new ApplicatorRemoveMethodAdapter(super.visitMethod(ACC_SYNTHETIC|ACC_PUBLIC, TC_APPLICATOR_REMOVE_METHOD_NAME, TC_APPLICATOR_REMOVE_METHOD_DESC, null, null)),\n new RemoveLogicalMethodAdapter(super.visitMethod(ACC_SYNTHETIC|ACC_PUBLIC, TC_REMOVE_LOGICAL_METHOD_NAME, TC_REMOVE_LOGICAL_METHOD_DESC, null, null))});\n } else if (\"remove\".equals(name) && \"(Ljava/lang/Object;Ljava/lang/Object;)Z\".equals(desc)) {\n mv = new RemoveMethodAdapter(mv);\n } else if (\"replace\".equals(name) && \"(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;\".equals(desc)) {\n mv = new SimpleReplaceMethodAdapter(mv);\n } else if (\"replace\".equals(name) && \"(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Z\".equals(desc)) {\n mv = new ReplaceMethodAdapter(mv);\n } else if (\"writeObject\".equals(name) && \"(Ljava/io/ObjectOutputStream;)V\".equals(desc)) {\n mv = new JavaUtilConcurrentHashMapLazyValuesMethodAdapter(access, desc, mv, false);\n }\n\n return new ConcurrentHashMapMethodAdapter(mv);\n }", "public void setReadWriteOnMyLatestView()\n {\n \t m_acl = \tm_acl | (1<<2);\n }", "public static Collection<FieldAccessFlag> getFlags()\n\t{\n\t\treturn Lists.newArrayList(PUBLIC, PRIVATE, PROTECTED, STATIC, FINAL, VOLATILE, TRANSIENT, ENUM,\n\t\t\tSYNTHETIC);\n\t}", "private void addAccessor(ThreadContext context, String internedName, Visibility visibility, boolean readable, boolean writeable) {\n assert internedName == internedName.intern() : internedName + \" is not interned\";\n \n final Ruby runtime = context.getRuntime();\n \n if (visibility == PRIVATE) {\n //FIXME warning\n } else if (visibility == MODULE_FUNCTION) {\n visibility = PRIVATE;\n // FIXME warning\n }\n final String variableName = (\"@\" + internedName).intern();\n if (readable) {\n addMethod(internedName, new JavaMethodZero(this, visibility, CallConfiguration.FrameNoneScopeNone) {\n private RubyClass.VariableAccessor accessor = RubyClass.VariableAccessor.DUMMY_ACCESSOR;\n public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, String name) {\n IRubyObject variable = (IRubyObject)verifyAccessor(self.getMetaClass().getRealClass()).get(self);\n \n return variable == null ? runtime.getNil() : variable;\n }\n \n private RubyClass.VariableAccessor verifyAccessor(RubyClass cls) {\n RubyClass.VariableAccessor localAccessor = accessor;\n if (localAccessor.getClassId() != cls.hashCode()) {\n localAccessor = cls.getVariableAccessorForRead(variableName);\n accessor = localAccessor;\n }\n return localAccessor;\n }\n });\n callMethod(context, \"method_added\", runtime.fastNewSymbol(internedName));\n }\n if (writeable) {\n internedName = (internedName + \"=\").intern();\n addMethod(internedName, new JavaMethodOne(this, visibility, CallConfiguration.FrameNoneScopeNone) {\n private RubyClass.VariableAccessor accessor = RubyClass.VariableAccessor.DUMMY_ACCESSOR;\n public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, String name, IRubyObject arg1) {\n verifyAccessor(self.getMetaClass().getRealClass()).set(self, arg1);\n return arg1;\n }\n \n private RubyClass.VariableAccessor verifyAccessor(RubyClass cls) {\n RubyClass.VariableAccessor localAccessor = accessor;\n if (localAccessor.getClassId() != cls.hashCode()) {\n localAccessor = cls.getVariableAccessorForWrite(variableName);\n accessor = localAccessor;\n }\n return localAccessor;\n }\n });\n callMethod(context, \"method_added\", runtime.fastNewSymbol(internedName));\n }\n }", "public void setFlags(int param1) {\n }", "private void scanAndCopyMethods() {\n int numMethods = copyShort();\n for (int i = 0; i < numMethods; i++) {\n scanAndCopyAccessFlags();\n copy(4); // name_index, descriptor_index\n int numAttributes = copyShort();\n for (int j = 0; j < numAttributes; j++) {\n // Look for \"Code\" attribute.\n int attrNameIdx = copyShort();\n if (cpIdxIsCode(attrNameIdx)) {\n processCodeAttribute();\n } else {\n copyRestOfAttribute();\n }\n }\n }\n }", "public static void setFlags(int flag){\r\n flags |= flag;\r\n }", "void setAccessible(boolean accessible);", "public static native void OpenMM_AmoebaVdwForce_setAlchemicalMethod(PointerByReference target, int method);", "public void testMethodInfo889() throws Exception {\n\t\tClassInfo var2788 = instantiateClassInfo431();\n\t\tList<ClassInfo> var2764 = Collections.emptyList();\n\t\tList<ParameterInfo> var2766 = Collections.emptyList();\n\t\tList<LocalVariableInfo> var2767 = Collections.emptyList();\n\t\tList<Operation> var2768 = Collections.emptyList();\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tMethodInfo var2789 = new MethodInfo(var2788, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList());\n\t\tClassInfo var2765 = new ClassInfo(\"super\", false, null, var2764, null);\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tClassInfo var2771 = new ClassInfo(\"super\", false, var2765, var2764,\n\t\t\t\tnull);\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2788.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2788.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2788.getSetters();\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2788.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2788.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2788.getSetters();\n\t\tvar2789.isSetter();\n\t\tvar2789.isSetter();\n\t}", "public void method_203() {}", "public interface MethodHandleInfo {\n\n\t/**\n\t * Getter MethodHandle for an instance field\n\t */\n\tstatic final int REF_getField = 1;\n\n\t/**\n\t * Getter MethodHandle for an static field\n\t */\n\tstatic final int REF_getStatic = 2;\n\n\t/**\n\t * Setter MethodHandle for an instance field\n\t */\n\tstatic final int REF_putField = 3;\n\n\t/**\n\t * Setter MethodHandle for an static field\n\t */\n\tstatic final int REF_putStatic = 4;\n\n\t/**\n\t * MethodHandle for an instance method\n\t */\n\tstatic final int REF_invokeVirtual = 5;\n\n\t/**\n\t * MethodHandle for a static method\n\t */\n\tstatic final int REF_invokeStatic = 6;\n\n\t/**\n\t * MethodHandle for an special method\n\t */\n\tstatic final int REF_invokeSpecial = 7;\n\n\t/**\n\t * MethodHandle for a constructor\n\t */\n\tstatic final int REF_newInvokeSpecial = 8;\n\n\t/**\n\t * MethodHandle for an interface method\n\t */\n\tstatic final int REF_invokeInterface = 9;\n\n\t/**\n\t * Returns the Class where the cracked MethodHandle's underlying method, field or constructor is declared.\n\t *\n\t * @return class that declares the underlying member\n\t */\n\tClass<?> getDeclaringClass();\n\n\t/**\n\t * Returns the simple name of the MethodHandle's underlying member.\n\t *\n\t * @return A string representing the name of the method or field, or \"&lt;init&gt;\" for constructor.\n\t */\n\tString getName();\n\n\t/**\n\t * Returns the type of the MethodHandle's underlying member as a MethodType.\n\t * If the underlying member is non-static, the receiver parameter will not be included.\n\t * If the underlying member is field getter, the MethodType will take no parameters, and the return type will be the field type.\n\t * If the underlying member is field setter, the MethodType will take one parameter of the field type, and the return type will be void.\n\t *\n\t * @return A MethodType object representing the signature of the method or field\n\t */\n\tMethodType getMethodType();\n\n\t/**\n\t * Returns the modifiers of the MethodHandle's underlying member.\n\t *\n\t * @return An int representing the member's modifiers, or -1 if the underlying member is not accessible.\n\t */\n\tint getModifiers();\n\n\t/**\n\t * Returns the reference kind of the MethodHandle. The possible reference kinds are the declared MethodHandleInfo.REF fields.\n\t *\n\t * @return Returns one of the defined reference kinds which represent the MethodHandle kind.\n\t */\n\tint getReferenceKind();\n\n\t/**\n\t * Returns whether the MethodHandle's underlying method or constructor has variable argument arity.\n\t *\n\t * @return whether the underlying method has variable arity\n\t */\n\tdefault boolean isVarArgs() {\n\t\t// Check whether the MethodHandle refers to a Method or Contructor (not Field)\n\t\tif (getReferenceKind() >= REF_invokeVirtual) {\n\t\t\treturn ((getModifiers() & MethodHandles.Lookup.VARARGS) != 0);\n\t\t}\n\t\treturn false;\n\t}\n\n\t/**\n\t * Reflects the underlying member as a Method, Field or Constructor. The member must be accessible to the provided lookup object.\n\t * Public members are reflected as if by <code>getMethod</code>, <code>getField</code> or <code>getConstructor</code>.\n\t * Non-public members are reflected as if by <code>getDeclearedMethod</code>, <code>getDeclaredField</code> or <code>getDeclaredConstructor</code>.\n\t *\n\t * @param expected The expected type of the returned Member\n\t * @param lookup The lookup that was used to create the MethodHandle, or a lookup object with equivalent access\n\t * @return A Method, Field or Constructor representing the underlying member of the MethodHandle\n\t * @throws NullPointerException If either argument is null\n\t * @throws IllegalArgumentException If the underlying member is not accessible to the provided lookup object\n\t * @throws ClassCastException If the underlying member is not of the expected type\n\t */\n\t<T extends java.lang.reflect.Member> T reflectAs(Class<T> expected, MethodHandles.Lookup lookup);\n\n\t/**\n\t * Returns a string representing the equivalent bytecode for the referenceKind.\n\t *\n\t * @param referenceKind The referenceKind to lookup\n\t * @return a String representing the equivalent bytecode\n\t * @throws IllegalArgumentException If the provided referenceKind is invalid\n\t */\n\tstatic String referenceKindToString(int referenceKind) throws IllegalArgumentException {\n\t\tswitch(referenceKind) {\n\t\tcase REF_getField: \t\t\treturn \"getField\"; //$NON-NLS-1$\n\t\tcase REF_getStatic: \t\treturn \"getStatic\"; //$NON-NLS-1$\n\t\tcase REF_putField: \t\t\treturn \"putField\"; //$NON-NLS-1$\n\t\tcase REF_putStatic: \t\treturn \"putStatic\"; //$NON-NLS-1$\n\t\tcase REF_invokeVirtual: \treturn \"invokeVirtual\"; //$NON-NLS-1$\n\t\tcase REF_invokeStatic: \t\treturn \"invokeStatic\"; //$NON-NLS-1$\n\t\tcase REF_invokeSpecial: \treturn \"invokeSpecial\"; //$NON-NLS-1$\n\t\tcase REF_newInvokeSpecial: \treturn \"newInvokeSpecial\"; //$NON-NLS-1$\n\t\tcase REF_invokeInterface: \treturn \"invokeInterface\"; //$NON-NLS-1$\n\t\t}\n\t\t// K0582 = Reference kind \"{0\"} is invalid\n\t\tthrow new IllegalArgumentException(com.ibm.oti.util.Msg.getString(\"K0582\", referenceKind)); //$NON-NLS-1$\n\t}\n\n\t/**\n\t * Answers a string containing a concise, human-readable description of the receiver.\n\t *\n\t * @param kind the reference kind, one of the declared MethodHandleInfo.REF fields.\n\t * @param defc the class where the member is declared\n\t * @param name the name of the member\n\t * @param type the member's MethodType\n\t * @return a String of the format \"K C.N:MT\"\n\t */\n\tstatic String toString(int kind, Class<?> defc, String name, MethodType type) {\n\t\treturn referenceKindToString(kind) + \" \" + defc.getName() + \".\" + name + \":\" + type; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$\n\t}\n\n}", "public void andThisIsAMethodName(){}", "String getAccess();", "String getAccess();", "@Override\n\tpublic int getFlags() {\n\t\treturn heldObj.getFlags();\n\t}", "private Method getPrivateMethodFromAtrManager(String methodName, Class<?>... argClasses) throws Exception {\n\t\tMethod method = AttributesManagerBlImpl.class.getDeclaredMethod(methodName, argClasses);\n\t\tmethod.setAccessible(true);\n\t\treturn method;\n\t}", "public String getAccess();", "public void testMethodInfo886() throws Exception {\n\t\tClassInfo var2776 = instantiateClassInfo426();\n\t\tLocalField var2777 = instantiateLocalField425();\n\t\tList<ClassInfo> var2764 = Collections.emptyList();\n\t\tList<ParameterInfo> var2766 = Collections.emptyList();\n\t\tList<LocalVariableInfo> var2767 = Collections.emptyList();\n\t\tList<Operation> var2768 = Collections.emptyList();\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tMethodInfo var2778 = new MethodInfo(var2776, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList());\n\t\tvar2777.getDescription();\n\t\tvar2777.getDescription();\n\t\tClassInfo var2765 = new ClassInfo(\"super\", false, null, var2764, null);\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tClassInfo var2771 = new ClassInfo(\"super\", false, var2765, var2764,\n\t\t\t\tnull);\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2776.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2776.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2776.getSetters();\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2776.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2776.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2776.getSetters();\n\t\tvar2778.isSetter();\n\t\tvar2778.isSetter();\n\t}", "@Override\n public MethodDescriptor[] getMethodDescriptors() {\n return getMdescriptor();\n }", "private RubyArray instance_methods(IRubyObject[] args, final Visibility visibility, boolean not, boolean useSymbols) {\n boolean includeSuper = args.length > 0 ? args[0].isTrue() : true;\n Ruby runtime = getRuntime();\n RubyArray ary = runtime.newArray();\n Set<String> seen = new HashSet<String>();\n \n populateInstanceMethodNames(seen, ary, visibility, not, useSymbols, includeSuper);\n \n return ary;\n }", "public void testMethodInfo887() throws Exception {\n\t\tClassInfo var2782 = instantiateClassInfo428();\n\t\tLocalField var2783 = instantiateLocalField427();\n\t\tList<ClassInfo> var2764 = Collections.emptyList();\n\t\tList<ParameterInfo> var2766 = Collections.emptyList();\n\t\tList<LocalVariableInfo> var2767 = Collections.emptyList();\n\t\tList<Operation> var2768 = Collections.emptyList();\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tMethodInfo var2784 = new MethodInfo(var2782, \"voidX()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList());\n\t\tvar2783.getDescription();\n\t\tvar2783.getDescription();\n\t\tClassInfo var2765 = new ClassInfo(\"super\", false, null, var2764, null);\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tClassInfo var2771 = new ClassInfo(\"super\", false, var2765, var2764,\n\t\t\t\tnull);\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2782.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2782.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2782.getSetters();\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2782.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2782.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2782.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2784.isSetter();\n\t\tvar2784.isSetter();\n\t}", "public String methodBase() {\n\t\tString tmp = name;\n\t\ttmp = tmp.replaceFirst(\"^get\", \"\");\n\t\ttmp = tmp.replaceFirst(\"^is\", \"\");\n\t\treturn tmp.substring(0,1).toLowerCase()+tmp.substring(1);\n\t}", "public int getModifiers() {\n return mod;\n }", "MethodName getMethod();", "boolean isAccessed (ClassMember attr) {\r\n if (accessed_attributes == null) {\r\n accessed_attributes = new java.util.Vector ();\r\n } else if (accessed_attributes.contains (attr)) {\r\n return true;\r\n } \r\n\r\n accessed_attributes.addElement (attr);\r\n return false;\r\n }", "protected void updateFlags() {\n USE_CANNY = USE_CANNY && mainInterface.DEBUG_FRAME;\n DEBUG_PREP_FRAME = DEBUG_PREP_FRAME && mainInterface.DEBUG_FRAME;\n DEBUG_CONTOURS = DEBUG_CONTOURS && mainInterface.DEBUG_FRAME;\n DEBUG_POLY = DEBUG_POLY && mainInterface.DEBUG_FRAME;\n DEBUG_DRAW_MARKERS = DEBUG_DRAW_MARKERS && mainInterface.DEBUG_FRAME;\n DEBUG_DRAW_MARKER_ID = DEBUG_DRAW_MARKER_ID && mainInterface.DEBUG_FRAME;\n DEBUG_DRAW_SAMPLING = DEBUG_DRAW_SAMPLING && mainInterface.DEBUG_FRAME;\n }", "private void resetFlag(short r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00f2 in method: android.location.GpsClock.resetFlag(short):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.location.GpsClock.resetFlag(short):void\");\n }", "public GetterSetterInliner(CodeAttrInfoEditor codeAttrInfoEditor,\n boolean allowAccessModification)\n {\n this.codeAttrInfoEditor = codeAttrInfoEditor;\n this.allowAccessModification = allowAccessModification;\n }", "public static boolean canAccessFieldsDirectly(){\n return false; //TODO codavaj!!\n }", "public synchronized void setFlags(Flags newFlags, boolean set) throws MessagingException {\n/* 91 */ Flags oldFlags = (Flags)this.flags.clone();\n/* 92 */ super.setFlags(newFlags, set);\n/* 93 */ if (!this.flags.equals(oldFlags)) {\n/* 94 */ this.folder.notifyMessageChangedListeners(1, (Message)this);\n/* */ }\n/* */ }", "protected final boolean isMutable() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: android.icu.impl.coll.CollationDataBuilder.isMutable():boolean, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.icu.impl.coll.CollationDataBuilder.isMutable():boolean\");\n }", "Method getMethod();", "Method getMethod();", "public void setImportantForAccessibility(boolean important) {\n/* 1316 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public MethodPredicate withModifiers(int... modifiers) {\n this.withModifiers = Arrays.stream(modifiers).boxed().collect(Collectors.toList());\n return this;\n }", "@Override\n\t\t\tpublic MethodVisitor visitMethod(int access, String name, String desc, String signature, String[] exceptions) {\n\t\t\t\tboolean isSynthetic = ClassInfoUtils.checkAccess(access, Opcodes.ACC_SYNTHETIC);\n\t\t\t\tboolean isNative = ClassInfoUtils.checkAccess(access, Opcodes.ACC_NATIVE);\n\t\t\t\tboolean isInterface = ClassInfoUtils.checkAccess(access, Opcodes.ACC_INTERFACE);\n\t\t\t\tboolean isAbstract = ClassInfoUtils.checkAccess(access, Opcodes.ACC_ABSTRACT);\n\t\t\t\t\n\t\t\t\tMethodVisitor mv = super.visitMethod(access, name, desc, signature, exceptions);\n\t\t\t\tif (name.equals(\"toString\") && desc.equals(\"()Ljava/lang/String;\")) {\n\t\t\t\t\treturn mv;\n\t\t\t\t} else if (name.equals(\"equals\") && desc.equals(\"(Ljava/lang/Object;)Z\")) {\n\t\t\t\t\treturn mv;\n\t\t\t\t} else if (name.equals(\"hashCode\") && desc.equals(\"()I\")) {\n\t\t\t\t\treturn mv;\n\t\t\t\t} else if (isSynthetic || isNative || isInterface || isAbstract) {\n\t\t\t\t\treturn mv;\n\t\t\t\t} else {\n\t\t\t\t\tmv = new DependencyAnalyzer(className, \n\t\t\t\t\t\t\taccess, \n\t\t\t\t\t\t\tname, \n\t\t\t\t\t\t\tdesc, \n\t\t\t\t\t\t\tsignature, \n\t\t\t\t\t\t\texceptions, \n\t\t\t\t\t\t\tmv, \n\t\t\t\t\t\t\ttrue,\n\t\t\t\t\t\t\tfalse, \n\t\t\t\t\t\t\ttrue, \n\t\t\t\t\t\t\ttrue);\n\t\t\t\t\t//mv = new CalleeAnalyzer(className, access, name, desc, signature, exceptions, mv, true);\n\t\t\t\t\treturn mv;\n\t\t\t\t}\n\t\t\t}", "@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 13:02:04.534 -0500\", hash_original_method = \"E4DEB0C107DDB25A537EF0E89F1C04F8\", hash_generated_method = \"2E76AFD8C90588F5139C0C2D28CAEA05\")\n \nprivate static int translateCodingErrorAction(CodingErrorAction action) {\n if (action == CodingErrorAction.REPORT) {\n return 0;\n } else if (action == CodingErrorAction.IGNORE) {\n return 1;\n } else if (action == CodingErrorAction.REPLACE) {\n return 2;\n } else {\n throw new AssertionError(); // Someone changed the enum.\n }\n }", "private boolean makeFieldAccessible(Field f)\n {\n // See: https://stackoverflow.com/questions/46454995/#58834966\n Method getModule;\n try\n {\n getModule = Class.class.getMethod(\"getModule\");\n }\n catch (NoSuchMethodException e)\n {\n // We are on Java 8\n getModule = null;\n }\n if (getModule != null)\n {\n try\n {\n Object thisModule = getModule.invoke(this.getClass());\n Method isNamed = thisModule.getClass().getMethod(\"isNamed\");\n if (!(boolean) isNamed.invoke(thisModule))\n {\n Class fieldClass = f.getDeclaringClass().getClass();\n Object fieldModule = getModule.invoke(fieldClass);\n Method addOpens = fieldModule.getClass().getMethod(\n \"addOpens\", String.class, thisModule.getClass());\n Method getPackageName = fieldClass.getMethod(\"getPackageName\");\n addOpens.invoke(fieldModule, getPackageName.invoke(fieldClass), thisModule);\n }\n }\n catch (Throwable t)\n {\n if (t instanceof InvocationTargetException)\n {\n InvocationTargetException e = (InvocationTargetException) t;\n if (e.getCause() != null\n && e.getCause().getClass().getName().endsWith(\"IllegalCallerException\"))\n {\n if (outputLogger != null)\n {\n outputLogger.debug(\n PROCESS_ATTRIBUTE_CHANGE_MESSAGE + e.getCause().getMessage(),\n this.getClass().getName());\n }\n t = null;\n }\n }\n if (t != null)\n {\n throw new CargoException(\"Cannot set field accessibility for [\" + f + \"]\", t);\n }\n return false;\n }\n }\n try\n {\n f.setAccessible(true);\n return true;\n }\n catch (Throwable t)\n {\n if (t.getClass().getName().endsWith(\"InaccessibleObjectException\"))\n {\n if (outputLogger != null)\n {\n outputLogger.debug(\n PROCESS_ATTRIBUTE_CHANGE_MESSAGE + t.getMessage(),\n this.getClass().getName());\n }\n t = null;\n }\n if (t != null)\n {\n throw new CargoException(\"Cannot set field accessibility for [\" + f + \"]\", t);\n }\n return false;\n }\n }", "Builder addAccessibilityFeature(String value);", "public Method getMethod();", "Methodsig getMethod();", "public short getFlags() {\n\treturn flags;\n }", "public boolean isPropertyAccessorMethod(Method paramMethod, Class paramClass) {\n/* 225 */ String str1 = paramMethod.getName();\n/* 226 */ Class<?> clazz = paramMethod.getReturnType();\n/* 227 */ Class[] arrayOfClass1 = paramMethod.getParameterTypes();\n/* 228 */ Class[] arrayOfClass2 = paramMethod.getExceptionTypes();\n/* 229 */ String str2 = null;\n/* */ \n/* 231 */ if (str1.startsWith(\"get\")) {\n/* */ \n/* 233 */ if (arrayOfClass1.length == 0 && clazz != void.class && \n/* 234 */ !readHasCorrespondingIsProperty(paramMethod, paramClass)) {\n/* 235 */ str2 = \"get\";\n/* */ }\n/* */ }\n/* 238 */ else if (str1.startsWith(\"set\")) {\n/* */ \n/* 240 */ if (clazz == void.class && arrayOfClass1.length == 1 && (\n/* 241 */ hasCorrespondingReadProperty(paramMethod, paramClass, \"get\") || \n/* 242 */ hasCorrespondingReadProperty(paramMethod, paramClass, \"is\"))) {\n/* 243 */ str2 = \"set\";\n/* */ \n/* */ }\n/* */ }\n/* 247 */ else if (str1.startsWith(\"is\") && \n/* 248 */ arrayOfClass1.length == 0 && clazz == boolean.class && \n/* 249 */ !isHasCorrespondingReadProperty(paramMethod, paramClass)) {\n/* 250 */ str2 = \"is\";\n/* */ } \n/* */ \n/* */ \n/* */ \n/* 255 */ if (str2 != null && (\n/* 256 */ !validPropertyExceptions(paramMethod) || str1\n/* 257 */ .length() <= str2.length())) {\n/* 258 */ str2 = null;\n/* */ }\n/* */ \n/* */ \n/* 262 */ return (str2 != null);\n/* */ }", "public void setAllowedMethods(Method... allowed)\n\t{\n\t\tStringBuilder s = new StringBuilder();\n\t\tfor (int i = 0; i < allowed.length; i++)\n\t\t{\n\t\t\tif (i != 0)\n\t\t\t\ts.append(\", \");\n\t\t\ts.append(allowed[i]);\n\t\t}\n\t\t\n\t\tsetHeader(ALLOW, s.toString());\n\t}", "public int getAccess()\n {\n ensureLoaded();\n return m_flags.getAccess();\n }", "String getMethod();", "String getMethod();", "public void setDeclared(int r1, boolean r2) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: org.xml.sax.ext.Attributes2Impl.setDeclared(int, boolean):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: org.xml.sax.ext.Attributes2Impl.setDeclared(int, boolean):void\");\n }", "@Override\n\tpublic MethodVisitor visitMethod(int access, String name, String desc, String signature, String[] exceptions) {\n\t\tparsingMethod = new Method(name, desc, parsingClass);\n\t\tparsingClass.getMethods().add(parsingMethod);\n\t\treturn completeMethodVisitor;\n\t}", "public interface MethodInfo {\n\t/**\n\t * Returns the class which declared the method.\n\t */\n\tpublic ClassInfo declaringClass();\n\n\t/**\n\t * Returns the index into the constant pool of the name of the method.\n\t */\n\tpublic int nameIndex();\n\n\t/**\n\t * Returns the index into the constant pool of the type of the method.\n\t */\n\tpublic int typeIndex();\n\n\t/**\n\t * Sets the index into the constant pool of the name of the method.\n\t */\n\tpublic void setNameIndex(int index);\n\n\t/**\n\t * Set the index into the constant pool of the type of the method.\n\t * \n\t * @param index\n\t * The index into the constant pool of the type of the method.\n\t */\n\tpublic void setTypeIndex(int index);\n\n\t/**\n\t * Set the modifiers of the method. The values correspond to the constants\n\t * in the Modifiers class.\n\t * \n\t * @param modifiers\n\t * A bit vector of modifier flags for the method.\n\t * @see Modifiers\n\t */\n\tpublic void setModifiers(int modifiers);\n\n\t/**\n\t * Get the modifiers of the method. The values correspond to the constants\n\t * in the Modifiers class.\n\t * \n\t * @return A bit vector of modifier flags for the method.\n\t * @see Modifiers\n\t */\n\tpublic int modifiers();\n\n\t/**\n\t * Get the indices into the constant pool of the types of the exceptions\n\t * thrown by the method.\n\t * \n\t * @return The indices into the constant pool of the types of the exceptions\n\t * thrown by the method.\n\t */\n\tpublic int[] exceptionTypes();\n\n\t/**\n\t * Get the maximum height of the operand stack.\n\t * \n\t * @return The maximum height of the operand stack.\n\t */\n\tpublic int maxStack();\n\n\t/**\n\t * Set the maximum height of the operand stack.\n\t * \n\t * @param maxStack\n\t * The maximum height of the operand stack.\n\t */\n\tpublic void setMaxStack(int maxStack);\n\n\t/**\n\t * Get the maximum number of locals used in the method.\n\t * \n\t * @return The maximum number of locals used in the method.\n\t */\n\tpublic int maxLocals();\n\n\t/**\n\t * Set the maximum number of locals used in the method.\n\t * \n\t * @param maxLocals\n\t * The maximum number of locals used in the method.\n\t */\n\tpublic void setMaxLocals(int maxLocals);\n\n\t/**\n\t * Get the byte code array of the method.\n\t * \n\t * @return The byte code array of the method.\n\t */\n\tpublic byte[] code();\n\n\t/**\n\t * Set the byte code array of the method.\n\t * \n\t * @param code\n\t * The byte code array of the method.\n\t */\n\tpublic void setCode(byte[] code);\n\n\t/**\n\t * Get the line number debug info of the instructions in the method.\n\t * \n\t * @return The line numbers of the instructions in the method. The array\n\t * will be of size 0 if the method has no line number debug info.\n\t */\n\tpublic LineNumberDebugInfo[] lineNumbers();\n\n\t/**\n\t * Set the line number debug info of the instructions in the method.\n\t * \n\t * @param lineNumbers\n\t * The line numbers of the instructions in the method. The array\n\t * will be of size 0 if the method has no line number debug info.\n\t */\n\tpublic void setLineNumbers(LineNumberDebugInfo[] lineNumbers);\n\n\t/**\n\t * Get the local variable debug information for the method.\n\t * \n\t * @return The local variables in the method. The array will be of size 0 if\n\t * the method has no local variable debug info.\n\t */\n\tpublic LocalDebugInfo[] locals();\n\n\t/**\n\t * Set the local variables in the method.\n\t * \n\t * @param locals\n\t * The local variables in the method.\n\t */\n\tpublic void setLocals(LocalDebugInfo[] locals);\n\n\t/**\n\t * Get the exception handlers in the method.\n\t * \n\t * @return The exception handlers in the method.\n\t */\n\tpublic Catch[] exceptionHandlers();\n\n\t/**\n\t * Set the exception handlers in the method.\n\t * \n\t * @param exceptions\n\t * The exception handlers in the method.\n\t */\n\tpublic void setExceptionHandlers(Catch[] exceptions);\n\n\t/**\n\t * Creates a clone of this <tt>MethodInfo</tt> except that its declaring\n\t * class does not know about it.\n\t */\n\tpublic Object clone();\n}", "public final native void setFlags(int value) /*-{\n\t\tvar jso = [email protected]::getJsObj()();\n\t\tjso.flags = value;\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}", "public void setModifierFlag(int flag) {\n\t\tthis.modifier = flag;\n\t}", "public void setFlags(final Flags flags);", "public int getFlags() {\n return flags;\n }", "public List<MethodInfo> getMethods() { \n return lstMethodInfo;\n }", "private void checkMethodPermission(HandlerMethod handlerMethod) {\n RequirePermission annotation = handlerMethod.getMethodAnnotation(RequirePermission.class);\n String str = annotation.value();\n System.out.println(\"-----+++++++\");\n }", "public void testCreateMethodWithModifiersAndExceptions() {\n IDOMMethod method = this.domFactory.createMethod();\n method.setName(\"foo\");\n method.setFlags(ClassFileConstants.AccPrivate);\n method.setExceptions(new String[] { \"java.lang.IllegalArgumentException\", \"java.io.FileNotFoundExcpetion\" });\n assertSourceEquals(\"source code incorrect\", \"private void foo() throws java.lang.IllegalArgumentException, java.io.FileNotFoundExcpetion {\\n\" + \"}\\n\", method.getContents());\n }", "public interface C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }", "public boolean visit(MethodDeclaration decl, ClassScope scope) {\r\n\t\t\tif (decl instanceof InterTypeFieldDeclaration) \r\n\t\t\t\tvalue -= 2;\r\n\r\n\t\t\treturn super.visit(decl, scope);\r\n\t\t}", "private void resetFlags(){\n\t\tint count = 0;\n\t\tif (partOfAPairedAlignment) count += Math.pow(2, 0);\n\t\tif (aProperPairedAlignment) count += Math.pow(2, 1);\n\t\tif (unmapped) count += Math.pow(2, 2);\n\t\tif (mateUnMapped) count += Math.pow(2, 3);\n\t\tif (reverseStrand) count += Math.pow(2, 4);\n\t\tif (mateReverseStrand) count += Math.pow(2, 5);\n\t\tif (firstPair) count += Math.pow(2, 6);\n\t\tif (secondPair) count += Math.pow(2, 7);\n\t\tif (notAPrimaryAlignment) count += Math.pow(2, 8);\n\t\tif (failedQC) count += Math.pow(2, 9);\n\t\tif (aDuplicate) count += Math.pow(2, 10);\n\t\tflags = (short) count;\n\t\tflagResetNeeded = false;\n\t\t\n\t}", "private void mappingMethods() throws SecurityException, NoSuchMethodException{\n\t\tmappingMethodGet();\n\t\tmappingMethodSet();\n\t}", "private void setBooleanFlags (short flags){\n\t\tthis.flags = flags;\n\t\tflagResetNeeded = false;\n\t\tpartOfAPairedAlignment = isPartOfAPairedAlignment();\n\t\taProperPairedAlignment = isAProperPairedAlignment();\n\t\tunmapped = isUnmapped();\n\t\tmateUnMapped = isMateUnMapped();\n\t\treverseStrand = isReverseStrand();\n\t\tmateReverseStrand = isMateReverseStrand();\n\t\tfirstPair = isFirstPair();\n\t\tsecondPair = isSecondPair();\n\t\tnotAPrimaryAlignment = isNotAPrimaryAlignment();\n\t\tfailedQC = failedQC();\n\t\taDuplicate = isADuplicate();\n\t\t\n\t}" ]
[ "0.6459756", "0.61941135", "0.6124305", "0.6054357", "0.6038953", "0.6038953", "0.58764786", "0.58633894", "0.586231", "0.586231", "0.58388376", "0.5695067", "0.5662682", "0.5656152", "0.56525016", "0.5636611", "0.5633119", "0.560779", "0.560779", "0.55963707", "0.5585593", "0.5527335", "0.55259675", "0.55178744", "0.5497699", "0.5462038", "0.5460664", "0.54553145", "0.54315555", "0.5428095", "0.5423939", "0.5423252", "0.5405602", "0.5403003", "0.5399762", "0.5359158", "0.5347791", "0.5321582", "0.5317954", "0.53177696", "0.53112406", "0.5308062", "0.53007996", "0.5287687", "0.52810687", "0.5266063", "0.5265689", "0.52653694", "0.5262753", "0.52625436", "0.5258052", "0.5258052", "0.52249104", "0.52223516", "0.52184665", "0.52071375", "0.5204527", "0.5204301", "0.5195871", "0.51853406", "0.5169663", "0.51661706", "0.5161185", "0.51575136", "0.51456904", "0.5145592", "0.51448935", "0.51339334", "0.5129795", "0.51288617", "0.51288617", "0.51249367", "0.51229906", "0.51223254", "0.51202285", "0.5116746", "0.5112507", "0.51069206", "0.5106849", "0.5105911", "0.5099613", "0.50912666", "0.5082884", "0.5078926", "0.5078926", "0.5075503", "0.507498", "0.5074663", "0.50737566", "0.5067883", "0.50673777", "0.5066441", "0.50620204", "0.5058641", "0.50536793", "0.50520235", "0.50424683", "0.50392544", "0.5032849", "0.50326675", "0.5027472" ]
0.0
-1
Manipulate the method access flags.
public void setVarArgs(boolean on) { if (on) setAccessFlags(getAccessFlags() | Constants.ACCESS_VARARGS); else setAccessFlags(getAccessFlags() & ~Constants.ACCESS_VARARGS); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void checkAccessModifier(Method method);", "public abstract int flags();", "private void writeMethodModifiers(Method m) {\n int mod = m.getModifiers();\n mod &= ~Modifier.ABSTRACT;\n mod &= ~Modifier.TRANSIENT;\n writer.print(Modifier.toString(mod) + \" \");\n }", "public int getAccessFlags() {\n return access_flags;\n }", "public int getFlags();", "public int getFlags();", "public long getFlags() {\n }", "public void testCreateMethodWithModifiers() {\n IDOMMethod method = this.domFactory.createMethod();\n method.setName(\"foo\");\n method.setFlags(ClassFileConstants.AccPublic | ClassFileConstants.AccStatic);\n assertSourceEquals(\"source code incorrect\", \"public static void foo() {\\n\" + \"}\\n\", method.getContents());\n }", "int getModifiers();", "int getModifiers();", "public Set<Method> getMethods() {\r\n \t\t// We will only consider private methods in the declared class\r\n \t\tif (forceAccess)\r\n \t\t\treturn setUnion(source.getDeclaredMethods(), source.getMethods());\r\n \t\telse\r\n \t\t\treturn setUnion(source.getMethods());\r\n \t}", "JApiModifier<AccessModifier> getAccessModifier();", "@Override\n\t\t\tpublic void visit(MethodDeclaration arg0, Object arg1) {\n\t\t\t\tif((arg0.getModifiers() & Modifier.PUBLIC) == Modifier.PUBLIC) {\n\t\t\t\t\t\tif(arg0.getName().substring(0, 3) == \"get\" || arg0.getName().substring(0, 3) == \"set\")\n\t\t\t\t\t\t\tpublicAcces.add(new Pair(arg0.getName() + \"( \"+planeL(arg0.getParameters()) +\") :\" + arg0.getType().toString(), Character.toLowerCase(arg0.getName().substring(3).charAt(0)) + (arg0.getName().substring(3).length() > 1 ? arg0.getName().substring(3).substring(1) : \"\")));\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tpublicAcces.add(new Pair(arg0.getName() + \"( \"+planeL(arg0.getParameters()) +\") :\" + arg0.getType().toString(), Character.toLowerCase(arg0.getName().substring(3).charAt(0)) + (arg0.getName().substring(3).length() > 1 ? arg0.getName().substring(3).substring(1) : \"\")));\n\t\t\t\t\t\tuses(arg0.getParameters());\n\t\t\t\t}\n\t\t\t\tsuper.visit(arg0, arg1);\n\t\t\t}", "long getFlags();", "private int patchAccess(BT_Method bm,BT_InsVector iv,int idx)\n{\n int ctr = 0;\n\n if (patch_type.getPatchLocalAccess() || patch_type.getPatchRemoteAccess()) {\n BT_FieldRefIns fri = (BT_FieldRefIns) iv.elementAt(idx);\n BT_Field fld = fri.getFieldTarget();\n if (fri.opcode == BT_Opcodes.opc_getstatic) {\n\t ctr = patch_type.getInstrumenter().patchStaticAccess(fld,bm,iv,idx);\n }\n else {\n\t ctr = patch_type.getInstrumenter().patchFieldAccess(fld,bm,iv,idx);\n }\n }\n\n patch_delta += ctr;\n\n return ctr;\n}", "private void mappingMethodSet() throws SecurityException, NoSuchMethodException{\n\t\tString aux = upFirstLetter();\n\t\tString methodSet = \"set\" + aux;\n\t\tthis.methodSet = this.classFather.getMethod(methodSet, this.classType);\n\t}", "public int modifiers();", "public interface ApiFlags {\n int GET_SOMETHING = 0;\n int GET_SOMETHING_ELSE = 1;\n }", "public interface ApiFlags {\n int GET_SOMETHING = 0;\n int GET_SOMETHING_ELSE = 1;\n }", "protected abstract MethodDescription accessorMethod();", "private void setFlag(short r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00f2 in method: android.location.GpsClock.setFlag(short):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.location.GpsClock.setFlag(short):void\");\n }", "@FameProperty(name = \"numberOfAccessingMethods\", derived = true)\n public Number getNumberOfAccessingMethods() {\n throw new UnsupportedOperationException(\"Not yet implemented!\"); \n }", "boolean isSetMethod();", "public abstract Set<MethodUsage> getDeclaredMethods();", "public void updateFlags()\n {\n initialize();\n }", "private static boolean getInternalPublicMethods(Class<?> paramClass, Map<Signature, Method> paramMap) {\n/* 143 */ Method[] arrayOfMethod = null;\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ try {\n/* 150 */ if (!Modifier.isPublic(paramClass.getModifiers())) {\n/* 151 */ return false;\n/* */ }\n/* 153 */ if (!ReflectUtil.isPackageAccessible(paramClass)) {\n/* 154 */ return false;\n/* */ }\n/* */ \n/* 157 */ arrayOfMethod = paramClass.getMethods();\n/* 158 */ } catch (SecurityException securityException) {\n/* 159 */ return false;\n/* */ } \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 168 */ boolean bool = true; byte b;\n/* 169 */ for (b = 0; b < arrayOfMethod.length; b++) {\n/* 170 */ Class<?> clazz = arrayOfMethod[b].getDeclaringClass();\n/* 171 */ if (!Modifier.isPublic(clazz.getModifiers())) {\n/* 172 */ bool = false;\n/* */ \n/* */ break;\n/* */ } \n/* */ } \n/* 177 */ if (bool) {\n/* */ \n/* */ \n/* */ \n/* */ \n/* 182 */ for (b = 0; b < arrayOfMethod.length; b++) {\n/* 183 */ addMethod(paramMap, arrayOfMethod[b]);\n/* */ \n/* */ }\n/* */ \n/* */ }\n/* */ else {\n/* */ \n/* 190 */ for (b = 0; b < arrayOfMethod.length; b++) {\n/* 191 */ Class<?> clazz = arrayOfMethod[b].getDeclaringClass();\n/* 192 */ if (paramClass.equals(clazz)) {\n/* 193 */ addMethod(paramMap, arrayOfMethod[b]);\n/* */ }\n/* */ } \n/* */ } \n/* 197 */ return bool;\n/* */ }", "@Override\n\tpublic void setAccessModifier(AccessModifier modifier) {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "int getFlag();", "public void beforeHookedMethod(MethodHookParam methodHookParam) throws Throwable {\n super.beforeHookedMethod(methodHookParam);\n methodHookParam.setResult(AbsSavedState.EMPTY_STATE);\n Field findField = XposedHelpers.findField(View.class, \"mPrivateFlags\");\n findField.set(methodHookParam.thisObject, Integer.valueOf(findField.getInt(methodHookParam.thisObject) | 131072));\n }", "public void setFlagMethodName(String name) {\n m_flagMethodName = name;\n }", "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}", "public void changeMode() {\n methodMode = !methodMode;\n }", "private void mappingMethodGet() throws SecurityException, NoSuchMethodException{\n\t\tString aux = upFirstLetter();\n\t\tString methodGet = \"get\" + aux;\n\t\tthis.methodGet = this.classFather.getMethod(methodGet);\n\t}", "public void testMethodInfo888() throws Exception {\n\t\tClassInfo var2785 = instantiateClassInfo430();\n\t\tFieldInfo var2786 = instantiateFieldInfo429();\n\t\tList<ClassInfo> var2764 = Collections.emptyList();\n\t\tList<ParameterInfo> var2766 = Collections.emptyList();\n\t\tList<LocalVariableInfo> var2767 = Collections.emptyList();\n\t\tList<Operation> var2768 = Collections.emptyList();\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tMethodInfo var2787 = new MethodInfo(var2785, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList());\n\t\tClassInfo var2765 = new ClassInfo(\"super\", false, null, var2764, null);\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2785.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2785.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2785.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tClassInfo var2771 = new ClassInfo(\"super\", false, var2765, var2764,\n\t\t\t\tnull);\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2785.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2785.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2785.getSetters();\n\t\tvar2787.isSetter();\n\t\tvar2787.isSetter();\n\t}", "public void setModifiers(int modifiers);", "Method getMethod(int id, boolean filterObsolete);", "private boolean isFlagSet(short r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00f2 in method: android.location.GpsClock.isFlagSet(short):boolean, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.location.GpsClock.isFlagSet(short):boolean\");\n }", "public MethodVisitor visitMethod(int access, String name, String desc, String signature, String[] exceptions) {\n if (\"size\".equals(name) && \"()I\".equals(desc)) {\n return addWrapperMethod(access, name, desc, signature, exceptions);\n } else if (\"isEmpty\".equals(name) && \"()Z\".equals(desc)) {\n return addWrapperMethod(access, name, desc, signature, exceptions);\n } else if (\"containsValue\".equals(name) && \"(Ljava/lang/Object;)Z\".equals(desc)) {\n return addWrapperMethod(access, name, desc, signature, exceptions);\n }\n\n MethodVisitor mv = super.visitMethod(access, name, desc, signature, exceptions);\n if (\"entrySet\".equals(name) && \"()Ljava/util/Set;\".equals(desc)) {\n return new EntrySetMethodAdapter(mv);\n } else if (\"segmentFor\".equals(name) && \"(I)Ljava/util/concurrent/ConcurrentHashMap$Segment;\".equals(desc)) {\n return rewriteSegmentForMethod(mv);\n } else if (\"get\".equals(name) && \"(Ljava/lang/Object;)Ljava/lang/Object;\".equals(desc)) {\n return new MulticastMethodVisitor(new MethodVisitor[] {\n new OriginalGetMethodAdapter(super.visitMethod(ACC_SYNTHETIC|ACC_PUBLIC, TC_ORIG_GET_METHOD_NAME, TC_ORIG_GET_METHOD_DESC, null, null)),\n new ConcurrentHashMapMethodAdapter(new GetMethodAdapter(mv))});\n }\n \n if (\"put\".equals(name) && \"(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;\".equals(desc)) {\n mv = new MulticastMethodVisitor(new MethodVisitor[] {\n mv,\n new ApplicatorPutMethodAdapter(super.visitMethod(ACC_SYNTHETIC|ACC_PUBLIC, TC_APPLICATOR_PUT_METHOD_NAME, TC_APPLICATOR_PUT_METHOD_DESC, null, null))});\n } else if (\"clear\".equals(name) && \"()V\".equals(desc)) {\n mv = new MulticastMethodVisitor(new MethodVisitor[] {\n mv,\n new ApplicatorClearMethodAdapter(super.visitMethod(ACC_SYNTHETIC|ACC_PUBLIC, TC_APPLICATOR_CLEAR_METHOD_NAME, TC_APPLICATOR_CLEAR_METHOD_DESC, null, null))});\n } else if (\"containsKey\".equals(name) && \"(Ljava/lang/Object;)Z\".equals(desc)) {\n mv = new ContainsKeyMethodAdapter(mv);\n } else if (\"remove\".equals(name) && \"(Ljava/lang/Object;)Ljava/lang/Object;\".equals(desc)) {\n mv = new MulticastMethodVisitor(new MethodVisitor[] {\n new SimpleRemoveMethodAdapter(mv),\n new ApplicatorRemoveMethodAdapter(super.visitMethod(ACC_SYNTHETIC|ACC_PUBLIC, TC_APPLICATOR_REMOVE_METHOD_NAME, TC_APPLICATOR_REMOVE_METHOD_DESC, null, null)),\n new RemoveLogicalMethodAdapter(super.visitMethod(ACC_SYNTHETIC|ACC_PUBLIC, TC_REMOVE_LOGICAL_METHOD_NAME, TC_REMOVE_LOGICAL_METHOD_DESC, null, null))});\n } else if (\"remove\".equals(name) && \"(Ljava/lang/Object;Ljava/lang/Object;)Z\".equals(desc)) {\n mv = new RemoveMethodAdapter(mv);\n } else if (\"replace\".equals(name) && \"(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;\".equals(desc)) {\n mv = new SimpleReplaceMethodAdapter(mv);\n } else if (\"replace\".equals(name) && \"(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Z\".equals(desc)) {\n mv = new ReplaceMethodAdapter(mv);\n } else if (\"writeObject\".equals(name) && \"(Ljava/io/ObjectOutputStream;)V\".equals(desc)) {\n mv = new JavaUtilConcurrentHashMapLazyValuesMethodAdapter(access, desc, mv, false);\n }\n\n return new ConcurrentHashMapMethodAdapter(mv);\n }", "public void setReadWriteOnMyLatestView()\n {\n \t m_acl = \tm_acl | (1<<2);\n }", "public static Collection<FieldAccessFlag> getFlags()\n\t{\n\t\treturn Lists.newArrayList(PUBLIC, PRIVATE, PROTECTED, STATIC, FINAL, VOLATILE, TRANSIENT, ENUM,\n\t\t\tSYNTHETIC);\n\t}", "private void addAccessor(ThreadContext context, String internedName, Visibility visibility, boolean readable, boolean writeable) {\n assert internedName == internedName.intern() : internedName + \" is not interned\";\n \n final Ruby runtime = context.getRuntime();\n \n if (visibility == PRIVATE) {\n //FIXME warning\n } else if (visibility == MODULE_FUNCTION) {\n visibility = PRIVATE;\n // FIXME warning\n }\n final String variableName = (\"@\" + internedName).intern();\n if (readable) {\n addMethod(internedName, new JavaMethodZero(this, visibility, CallConfiguration.FrameNoneScopeNone) {\n private RubyClass.VariableAccessor accessor = RubyClass.VariableAccessor.DUMMY_ACCESSOR;\n public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, String name) {\n IRubyObject variable = (IRubyObject)verifyAccessor(self.getMetaClass().getRealClass()).get(self);\n \n return variable == null ? runtime.getNil() : variable;\n }\n \n private RubyClass.VariableAccessor verifyAccessor(RubyClass cls) {\n RubyClass.VariableAccessor localAccessor = accessor;\n if (localAccessor.getClassId() != cls.hashCode()) {\n localAccessor = cls.getVariableAccessorForRead(variableName);\n accessor = localAccessor;\n }\n return localAccessor;\n }\n });\n callMethod(context, \"method_added\", runtime.fastNewSymbol(internedName));\n }\n if (writeable) {\n internedName = (internedName + \"=\").intern();\n addMethod(internedName, new JavaMethodOne(this, visibility, CallConfiguration.FrameNoneScopeNone) {\n private RubyClass.VariableAccessor accessor = RubyClass.VariableAccessor.DUMMY_ACCESSOR;\n public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, String name, IRubyObject arg1) {\n verifyAccessor(self.getMetaClass().getRealClass()).set(self, arg1);\n return arg1;\n }\n \n private RubyClass.VariableAccessor verifyAccessor(RubyClass cls) {\n RubyClass.VariableAccessor localAccessor = accessor;\n if (localAccessor.getClassId() != cls.hashCode()) {\n localAccessor = cls.getVariableAccessorForWrite(variableName);\n accessor = localAccessor;\n }\n return localAccessor;\n }\n });\n callMethod(context, \"method_added\", runtime.fastNewSymbol(internedName));\n }\n }", "public void setFlags(int param1) {\n }", "private void scanAndCopyMethods() {\n int numMethods = copyShort();\n for (int i = 0; i < numMethods; i++) {\n scanAndCopyAccessFlags();\n copy(4); // name_index, descriptor_index\n int numAttributes = copyShort();\n for (int j = 0; j < numAttributes; j++) {\n // Look for \"Code\" attribute.\n int attrNameIdx = copyShort();\n if (cpIdxIsCode(attrNameIdx)) {\n processCodeAttribute();\n } else {\n copyRestOfAttribute();\n }\n }\n }\n }", "public static void setFlags(int flag){\r\n flags |= flag;\r\n }", "void setAccessible(boolean accessible);", "public static native void OpenMM_AmoebaVdwForce_setAlchemicalMethod(PointerByReference target, int method);", "public void testMethodInfo889() throws Exception {\n\t\tClassInfo var2788 = instantiateClassInfo431();\n\t\tList<ClassInfo> var2764 = Collections.emptyList();\n\t\tList<ParameterInfo> var2766 = Collections.emptyList();\n\t\tList<LocalVariableInfo> var2767 = Collections.emptyList();\n\t\tList<Operation> var2768 = Collections.emptyList();\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tMethodInfo var2789 = new MethodInfo(var2788, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList());\n\t\tClassInfo var2765 = new ClassInfo(\"super\", false, null, var2764, null);\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tClassInfo var2771 = new ClassInfo(\"super\", false, var2765, var2764,\n\t\t\t\tnull);\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2788.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2788.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2788.getSetters();\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2788.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2788.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2788.getSetters();\n\t\tvar2789.isSetter();\n\t\tvar2789.isSetter();\n\t}", "public void method_203() {}", "public interface MethodHandleInfo {\n\n\t/**\n\t * Getter MethodHandle for an instance field\n\t */\n\tstatic final int REF_getField = 1;\n\n\t/**\n\t * Getter MethodHandle for an static field\n\t */\n\tstatic final int REF_getStatic = 2;\n\n\t/**\n\t * Setter MethodHandle for an instance field\n\t */\n\tstatic final int REF_putField = 3;\n\n\t/**\n\t * Setter MethodHandle for an static field\n\t */\n\tstatic final int REF_putStatic = 4;\n\n\t/**\n\t * MethodHandle for an instance method\n\t */\n\tstatic final int REF_invokeVirtual = 5;\n\n\t/**\n\t * MethodHandle for a static method\n\t */\n\tstatic final int REF_invokeStatic = 6;\n\n\t/**\n\t * MethodHandle for an special method\n\t */\n\tstatic final int REF_invokeSpecial = 7;\n\n\t/**\n\t * MethodHandle for a constructor\n\t */\n\tstatic final int REF_newInvokeSpecial = 8;\n\n\t/**\n\t * MethodHandle for an interface method\n\t */\n\tstatic final int REF_invokeInterface = 9;\n\n\t/**\n\t * Returns the Class where the cracked MethodHandle's underlying method, field or constructor is declared.\n\t *\n\t * @return class that declares the underlying member\n\t */\n\tClass<?> getDeclaringClass();\n\n\t/**\n\t * Returns the simple name of the MethodHandle's underlying member.\n\t *\n\t * @return A string representing the name of the method or field, or \"&lt;init&gt;\" for constructor.\n\t */\n\tString getName();\n\n\t/**\n\t * Returns the type of the MethodHandle's underlying member as a MethodType.\n\t * If the underlying member is non-static, the receiver parameter will not be included.\n\t * If the underlying member is field getter, the MethodType will take no parameters, and the return type will be the field type.\n\t * If the underlying member is field setter, the MethodType will take one parameter of the field type, and the return type will be void.\n\t *\n\t * @return A MethodType object representing the signature of the method or field\n\t */\n\tMethodType getMethodType();\n\n\t/**\n\t * Returns the modifiers of the MethodHandle's underlying member.\n\t *\n\t * @return An int representing the member's modifiers, or -1 if the underlying member is not accessible.\n\t */\n\tint getModifiers();\n\n\t/**\n\t * Returns the reference kind of the MethodHandle. The possible reference kinds are the declared MethodHandleInfo.REF fields.\n\t *\n\t * @return Returns one of the defined reference kinds which represent the MethodHandle kind.\n\t */\n\tint getReferenceKind();\n\n\t/**\n\t * Returns whether the MethodHandle's underlying method or constructor has variable argument arity.\n\t *\n\t * @return whether the underlying method has variable arity\n\t */\n\tdefault boolean isVarArgs() {\n\t\t// Check whether the MethodHandle refers to a Method or Contructor (not Field)\n\t\tif (getReferenceKind() >= REF_invokeVirtual) {\n\t\t\treturn ((getModifiers() & MethodHandles.Lookup.VARARGS) != 0);\n\t\t}\n\t\treturn false;\n\t}\n\n\t/**\n\t * Reflects the underlying member as a Method, Field or Constructor. The member must be accessible to the provided lookup object.\n\t * Public members are reflected as if by <code>getMethod</code>, <code>getField</code> or <code>getConstructor</code>.\n\t * Non-public members are reflected as if by <code>getDeclearedMethod</code>, <code>getDeclaredField</code> or <code>getDeclaredConstructor</code>.\n\t *\n\t * @param expected The expected type of the returned Member\n\t * @param lookup The lookup that was used to create the MethodHandle, or a lookup object with equivalent access\n\t * @return A Method, Field or Constructor representing the underlying member of the MethodHandle\n\t * @throws NullPointerException If either argument is null\n\t * @throws IllegalArgumentException If the underlying member is not accessible to the provided lookup object\n\t * @throws ClassCastException If the underlying member is not of the expected type\n\t */\n\t<T extends java.lang.reflect.Member> T reflectAs(Class<T> expected, MethodHandles.Lookup lookup);\n\n\t/**\n\t * Returns a string representing the equivalent bytecode for the referenceKind.\n\t *\n\t * @param referenceKind The referenceKind to lookup\n\t * @return a String representing the equivalent bytecode\n\t * @throws IllegalArgumentException If the provided referenceKind is invalid\n\t */\n\tstatic String referenceKindToString(int referenceKind) throws IllegalArgumentException {\n\t\tswitch(referenceKind) {\n\t\tcase REF_getField: \t\t\treturn \"getField\"; //$NON-NLS-1$\n\t\tcase REF_getStatic: \t\treturn \"getStatic\"; //$NON-NLS-1$\n\t\tcase REF_putField: \t\t\treturn \"putField\"; //$NON-NLS-1$\n\t\tcase REF_putStatic: \t\treturn \"putStatic\"; //$NON-NLS-1$\n\t\tcase REF_invokeVirtual: \treturn \"invokeVirtual\"; //$NON-NLS-1$\n\t\tcase REF_invokeStatic: \t\treturn \"invokeStatic\"; //$NON-NLS-1$\n\t\tcase REF_invokeSpecial: \treturn \"invokeSpecial\"; //$NON-NLS-1$\n\t\tcase REF_newInvokeSpecial: \treturn \"newInvokeSpecial\"; //$NON-NLS-1$\n\t\tcase REF_invokeInterface: \treturn \"invokeInterface\"; //$NON-NLS-1$\n\t\t}\n\t\t// K0582 = Reference kind \"{0\"} is invalid\n\t\tthrow new IllegalArgumentException(com.ibm.oti.util.Msg.getString(\"K0582\", referenceKind)); //$NON-NLS-1$\n\t}\n\n\t/**\n\t * Answers a string containing a concise, human-readable description of the receiver.\n\t *\n\t * @param kind the reference kind, one of the declared MethodHandleInfo.REF fields.\n\t * @param defc the class where the member is declared\n\t * @param name the name of the member\n\t * @param type the member's MethodType\n\t * @return a String of the format \"K C.N:MT\"\n\t */\n\tstatic String toString(int kind, Class<?> defc, String name, MethodType type) {\n\t\treturn referenceKindToString(kind) + \" \" + defc.getName() + \".\" + name + \":\" + type; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$\n\t}\n\n}", "public void andThisIsAMethodName(){}", "String getAccess();", "String getAccess();", "@Override\n\tpublic int getFlags() {\n\t\treturn heldObj.getFlags();\n\t}", "private Method getPrivateMethodFromAtrManager(String methodName, Class<?>... argClasses) throws Exception {\n\t\tMethod method = AttributesManagerBlImpl.class.getDeclaredMethod(methodName, argClasses);\n\t\tmethod.setAccessible(true);\n\t\treturn method;\n\t}", "public String getAccess();", "public void testMethodInfo886() throws Exception {\n\t\tClassInfo var2776 = instantiateClassInfo426();\n\t\tLocalField var2777 = instantiateLocalField425();\n\t\tList<ClassInfo> var2764 = Collections.emptyList();\n\t\tList<ParameterInfo> var2766 = Collections.emptyList();\n\t\tList<LocalVariableInfo> var2767 = Collections.emptyList();\n\t\tList<Operation> var2768 = Collections.emptyList();\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tMethodInfo var2778 = new MethodInfo(var2776, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList());\n\t\tvar2777.getDescription();\n\t\tvar2777.getDescription();\n\t\tClassInfo var2765 = new ClassInfo(\"super\", false, null, var2764, null);\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tClassInfo var2771 = new ClassInfo(\"super\", false, var2765, var2764,\n\t\t\t\tnull);\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2776.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2776.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2776.getSetters();\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2776.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2776.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2776.getSetters();\n\t\tvar2778.isSetter();\n\t\tvar2778.isSetter();\n\t}", "@Override\n public MethodDescriptor[] getMethodDescriptors() {\n return getMdescriptor();\n }", "private RubyArray instance_methods(IRubyObject[] args, final Visibility visibility, boolean not, boolean useSymbols) {\n boolean includeSuper = args.length > 0 ? args[0].isTrue() : true;\n Ruby runtime = getRuntime();\n RubyArray ary = runtime.newArray();\n Set<String> seen = new HashSet<String>();\n \n populateInstanceMethodNames(seen, ary, visibility, not, useSymbols, includeSuper);\n \n return ary;\n }", "public void testMethodInfo887() throws Exception {\n\t\tClassInfo var2782 = instantiateClassInfo428();\n\t\tLocalField var2783 = instantiateLocalField427();\n\t\tList<ClassInfo> var2764 = Collections.emptyList();\n\t\tList<ParameterInfo> var2766 = Collections.emptyList();\n\t\tList<LocalVariableInfo> var2767 = Collections.emptyList();\n\t\tList<Operation> var2768 = Collections.emptyList();\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tMethodInfo var2784 = new MethodInfo(var2782, \"voidX()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList());\n\t\tvar2783.getDescription();\n\t\tvar2783.getDescription();\n\t\tClassInfo var2765 = new ClassInfo(\"super\", false, null, var2764, null);\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tClassInfo var2771 = new ClassInfo(\"super\", false, var2765, var2764,\n\t\t\t\tnull);\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2782.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2782.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2782.getSetters();\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2782.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2782.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2782.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2784.isSetter();\n\t\tvar2784.isSetter();\n\t}", "public String methodBase() {\n\t\tString tmp = name;\n\t\ttmp = tmp.replaceFirst(\"^get\", \"\");\n\t\ttmp = tmp.replaceFirst(\"^is\", \"\");\n\t\treturn tmp.substring(0,1).toLowerCase()+tmp.substring(1);\n\t}", "public int getModifiers() {\n return mod;\n }", "MethodName getMethod();", "boolean isAccessed (ClassMember attr) {\r\n if (accessed_attributes == null) {\r\n accessed_attributes = new java.util.Vector ();\r\n } else if (accessed_attributes.contains (attr)) {\r\n return true;\r\n } \r\n\r\n accessed_attributes.addElement (attr);\r\n return false;\r\n }", "protected void updateFlags() {\n USE_CANNY = USE_CANNY && mainInterface.DEBUG_FRAME;\n DEBUG_PREP_FRAME = DEBUG_PREP_FRAME && mainInterface.DEBUG_FRAME;\n DEBUG_CONTOURS = DEBUG_CONTOURS && mainInterface.DEBUG_FRAME;\n DEBUG_POLY = DEBUG_POLY && mainInterface.DEBUG_FRAME;\n DEBUG_DRAW_MARKERS = DEBUG_DRAW_MARKERS && mainInterface.DEBUG_FRAME;\n DEBUG_DRAW_MARKER_ID = DEBUG_DRAW_MARKER_ID && mainInterface.DEBUG_FRAME;\n DEBUG_DRAW_SAMPLING = DEBUG_DRAW_SAMPLING && mainInterface.DEBUG_FRAME;\n }", "private void resetFlag(short r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00f2 in method: android.location.GpsClock.resetFlag(short):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.location.GpsClock.resetFlag(short):void\");\n }", "public GetterSetterInliner(CodeAttrInfoEditor codeAttrInfoEditor,\n boolean allowAccessModification)\n {\n this.codeAttrInfoEditor = codeAttrInfoEditor;\n this.allowAccessModification = allowAccessModification;\n }", "public static boolean canAccessFieldsDirectly(){\n return false; //TODO codavaj!!\n }", "public synchronized void setFlags(Flags newFlags, boolean set) throws MessagingException {\n/* 91 */ Flags oldFlags = (Flags)this.flags.clone();\n/* 92 */ super.setFlags(newFlags, set);\n/* 93 */ if (!this.flags.equals(oldFlags)) {\n/* 94 */ this.folder.notifyMessageChangedListeners(1, (Message)this);\n/* */ }\n/* */ }", "protected final boolean isMutable() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: android.icu.impl.coll.CollationDataBuilder.isMutable():boolean, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.icu.impl.coll.CollationDataBuilder.isMutable():boolean\");\n }", "Method getMethod();", "Method getMethod();", "public void setImportantForAccessibility(boolean important) {\n/* 1316 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public MethodPredicate withModifiers(int... modifiers) {\n this.withModifiers = Arrays.stream(modifiers).boxed().collect(Collectors.toList());\n return this;\n }", "@Override\n\t\t\tpublic MethodVisitor visitMethod(int access, String name, String desc, String signature, String[] exceptions) {\n\t\t\t\tboolean isSynthetic = ClassInfoUtils.checkAccess(access, Opcodes.ACC_SYNTHETIC);\n\t\t\t\tboolean isNative = ClassInfoUtils.checkAccess(access, Opcodes.ACC_NATIVE);\n\t\t\t\tboolean isInterface = ClassInfoUtils.checkAccess(access, Opcodes.ACC_INTERFACE);\n\t\t\t\tboolean isAbstract = ClassInfoUtils.checkAccess(access, Opcodes.ACC_ABSTRACT);\n\t\t\t\t\n\t\t\t\tMethodVisitor mv = super.visitMethod(access, name, desc, signature, exceptions);\n\t\t\t\tif (name.equals(\"toString\") && desc.equals(\"()Ljava/lang/String;\")) {\n\t\t\t\t\treturn mv;\n\t\t\t\t} else if (name.equals(\"equals\") && desc.equals(\"(Ljava/lang/Object;)Z\")) {\n\t\t\t\t\treturn mv;\n\t\t\t\t} else if (name.equals(\"hashCode\") && desc.equals(\"()I\")) {\n\t\t\t\t\treturn mv;\n\t\t\t\t} else if (isSynthetic || isNative || isInterface || isAbstract) {\n\t\t\t\t\treturn mv;\n\t\t\t\t} else {\n\t\t\t\t\tmv = new DependencyAnalyzer(className, \n\t\t\t\t\t\t\taccess, \n\t\t\t\t\t\t\tname, \n\t\t\t\t\t\t\tdesc, \n\t\t\t\t\t\t\tsignature, \n\t\t\t\t\t\t\texceptions, \n\t\t\t\t\t\t\tmv, \n\t\t\t\t\t\t\ttrue,\n\t\t\t\t\t\t\tfalse, \n\t\t\t\t\t\t\ttrue, \n\t\t\t\t\t\t\ttrue);\n\t\t\t\t\t//mv = new CalleeAnalyzer(className, access, name, desc, signature, exceptions, mv, true);\n\t\t\t\t\treturn mv;\n\t\t\t\t}\n\t\t\t}", "@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 13:02:04.534 -0500\", hash_original_method = \"E4DEB0C107DDB25A537EF0E89F1C04F8\", hash_generated_method = \"2E76AFD8C90588F5139C0C2D28CAEA05\")\n \nprivate static int translateCodingErrorAction(CodingErrorAction action) {\n if (action == CodingErrorAction.REPORT) {\n return 0;\n } else if (action == CodingErrorAction.IGNORE) {\n return 1;\n } else if (action == CodingErrorAction.REPLACE) {\n return 2;\n } else {\n throw new AssertionError(); // Someone changed the enum.\n }\n }", "private boolean makeFieldAccessible(Field f)\n {\n // See: https://stackoverflow.com/questions/46454995/#58834966\n Method getModule;\n try\n {\n getModule = Class.class.getMethod(\"getModule\");\n }\n catch (NoSuchMethodException e)\n {\n // We are on Java 8\n getModule = null;\n }\n if (getModule != null)\n {\n try\n {\n Object thisModule = getModule.invoke(this.getClass());\n Method isNamed = thisModule.getClass().getMethod(\"isNamed\");\n if (!(boolean) isNamed.invoke(thisModule))\n {\n Class fieldClass = f.getDeclaringClass().getClass();\n Object fieldModule = getModule.invoke(fieldClass);\n Method addOpens = fieldModule.getClass().getMethod(\n \"addOpens\", String.class, thisModule.getClass());\n Method getPackageName = fieldClass.getMethod(\"getPackageName\");\n addOpens.invoke(fieldModule, getPackageName.invoke(fieldClass), thisModule);\n }\n }\n catch (Throwable t)\n {\n if (t instanceof InvocationTargetException)\n {\n InvocationTargetException e = (InvocationTargetException) t;\n if (e.getCause() != null\n && e.getCause().getClass().getName().endsWith(\"IllegalCallerException\"))\n {\n if (outputLogger != null)\n {\n outputLogger.debug(\n PROCESS_ATTRIBUTE_CHANGE_MESSAGE + e.getCause().getMessage(),\n this.getClass().getName());\n }\n t = null;\n }\n }\n if (t != null)\n {\n throw new CargoException(\"Cannot set field accessibility for [\" + f + \"]\", t);\n }\n return false;\n }\n }\n try\n {\n f.setAccessible(true);\n return true;\n }\n catch (Throwable t)\n {\n if (t.getClass().getName().endsWith(\"InaccessibleObjectException\"))\n {\n if (outputLogger != null)\n {\n outputLogger.debug(\n PROCESS_ATTRIBUTE_CHANGE_MESSAGE + t.getMessage(),\n this.getClass().getName());\n }\n t = null;\n }\n if (t != null)\n {\n throw new CargoException(\"Cannot set field accessibility for [\" + f + \"]\", t);\n }\n return false;\n }\n }", "Builder addAccessibilityFeature(String value);", "public Method getMethod();", "Methodsig getMethod();", "public short getFlags() {\n\treturn flags;\n }", "public boolean isPropertyAccessorMethod(Method paramMethod, Class paramClass) {\n/* 225 */ String str1 = paramMethod.getName();\n/* 226 */ Class<?> clazz = paramMethod.getReturnType();\n/* 227 */ Class[] arrayOfClass1 = paramMethod.getParameterTypes();\n/* 228 */ Class[] arrayOfClass2 = paramMethod.getExceptionTypes();\n/* 229 */ String str2 = null;\n/* */ \n/* 231 */ if (str1.startsWith(\"get\")) {\n/* */ \n/* 233 */ if (arrayOfClass1.length == 0 && clazz != void.class && \n/* 234 */ !readHasCorrespondingIsProperty(paramMethod, paramClass)) {\n/* 235 */ str2 = \"get\";\n/* */ }\n/* */ }\n/* 238 */ else if (str1.startsWith(\"set\")) {\n/* */ \n/* 240 */ if (clazz == void.class && arrayOfClass1.length == 1 && (\n/* 241 */ hasCorrespondingReadProperty(paramMethod, paramClass, \"get\") || \n/* 242 */ hasCorrespondingReadProperty(paramMethod, paramClass, \"is\"))) {\n/* 243 */ str2 = \"set\";\n/* */ \n/* */ }\n/* */ }\n/* 247 */ else if (str1.startsWith(\"is\") && \n/* 248 */ arrayOfClass1.length == 0 && clazz == boolean.class && \n/* 249 */ !isHasCorrespondingReadProperty(paramMethod, paramClass)) {\n/* 250 */ str2 = \"is\";\n/* */ } \n/* */ \n/* */ \n/* */ \n/* 255 */ if (str2 != null && (\n/* 256 */ !validPropertyExceptions(paramMethod) || str1\n/* 257 */ .length() <= str2.length())) {\n/* 258 */ str2 = null;\n/* */ }\n/* */ \n/* */ \n/* 262 */ return (str2 != null);\n/* */ }", "public void setAllowedMethods(Method... allowed)\n\t{\n\t\tStringBuilder s = new StringBuilder();\n\t\tfor (int i = 0; i < allowed.length; i++)\n\t\t{\n\t\t\tif (i != 0)\n\t\t\t\ts.append(\", \");\n\t\t\ts.append(allowed[i]);\n\t\t}\n\t\t\n\t\tsetHeader(ALLOW, s.toString());\n\t}", "public int getAccess()\n {\n ensureLoaded();\n return m_flags.getAccess();\n }", "String getMethod();", "String getMethod();", "public void setDeclared(int r1, boolean r2) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: org.xml.sax.ext.Attributes2Impl.setDeclared(int, boolean):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: org.xml.sax.ext.Attributes2Impl.setDeclared(int, boolean):void\");\n }", "@Override\n\tpublic MethodVisitor visitMethod(int access, String name, String desc, String signature, String[] exceptions) {\n\t\tparsingMethod = new Method(name, desc, parsingClass);\n\t\tparsingClass.getMethods().add(parsingMethod);\n\t\treturn completeMethodVisitor;\n\t}", "public interface MethodInfo {\n\t/**\n\t * Returns the class which declared the method.\n\t */\n\tpublic ClassInfo declaringClass();\n\n\t/**\n\t * Returns the index into the constant pool of the name of the method.\n\t */\n\tpublic int nameIndex();\n\n\t/**\n\t * Returns the index into the constant pool of the type of the method.\n\t */\n\tpublic int typeIndex();\n\n\t/**\n\t * Sets the index into the constant pool of the name of the method.\n\t */\n\tpublic void setNameIndex(int index);\n\n\t/**\n\t * Set the index into the constant pool of the type of the method.\n\t * \n\t * @param index\n\t * The index into the constant pool of the type of the method.\n\t */\n\tpublic void setTypeIndex(int index);\n\n\t/**\n\t * Set the modifiers of the method. The values correspond to the constants\n\t * in the Modifiers class.\n\t * \n\t * @param modifiers\n\t * A bit vector of modifier flags for the method.\n\t * @see Modifiers\n\t */\n\tpublic void setModifiers(int modifiers);\n\n\t/**\n\t * Get the modifiers of the method. The values correspond to the constants\n\t * in the Modifiers class.\n\t * \n\t * @return A bit vector of modifier flags for the method.\n\t * @see Modifiers\n\t */\n\tpublic int modifiers();\n\n\t/**\n\t * Get the indices into the constant pool of the types of the exceptions\n\t * thrown by the method.\n\t * \n\t * @return The indices into the constant pool of the types of the exceptions\n\t * thrown by the method.\n\t */\n\tpublic int[] exceptionTypes();\n\n\t/**\n\t * Get the maximum height of the operand stack.\n\t * \n\t * @return The maximum height of the operand stack.\n\t */\n\tpublic int maxStack();\n\n\t/**\n\t * Set the maximum height of the operand stack.\n\t * \n\t * @param maxStack\n\t * The maximum height of the operand stack.\n\t */\n\tpublic void setMaxStack(int maxStack);\n\n\t/**\n\t * Get the maximum number of locals used in the method.\n\t * \n\t * @return The maximum number of locals used in the method.\n\t */\n\tpublic int maxLocals();\n\n\t/**\n\t * Set the maximum number of locals used in the method.\n\t * \n\t * @param maxLocals\n\t * The maximum number of locals used in the method.\n\t */\n\tpublic void setMaxLocals(int maxLocals);\n\n\t/**\n\t * Get the byte code array of the method.\n\t * \n\t * @return The byte code array of the method.\n\t */\n\tpublic byte[] code();\n\n\t/**\n\t * Set the byte code array of the method.\n\t * \n\t * @param code\n\t * The byte code array of the method.\n\t */\n\tpublic void setCode(byte[] code);\n\n\t/**\n\t * Get the line number debug info of the instructions in the method.\n\t * \n\t * @return The line numbers of the instructions in the method. The array\n\t * will be of size 0 if the method has no line number debug info.\n\t */\n\tpublic LineNumberDebugInfo[] lineNumbers();\n\n\t/**\n\t * Set the line number debug info of the instructions in the method.\n\t * \n\t * @param lineNumbers\n\t * The line numbers of the instructions in the method. The array\n\t * will be of size 0 if the method has no line number debug info.\n\t */\n\tpublic void setLineNumbers(LineNumberDebugInfo[] lineNumbers);\n\n\t/**\n\t * Get the local variable debug information for the method.\n\t * \n\t * @return The local variables in the method. The array will be of size 0 if\n\t * the method has no local variable debug info.\n\t */\n\tpublic LocalDebugInfo[] locals();\n\n\t/**\n\t * Set the local variables in the method.\n\t * \n\t * @param locals\n\t * The local variables in the method.\n\t */\n\tpublic void setLocals(LocalDebugInfo[] locals);\n\n\t/**\n\t * Get the exception handlers in the method.\n\t * \n\t * @return The exception handlers in the method.\n\t */\n\tpublic Catch[] exceptionHandlers();\n\n\t/**\n\t * Set the exception handlers in the method.\n\t * \n\t * @param exceptions\n\t * The exception handlers in the method.\n\t */\n\tpublic void setExceptionHandlers(Catch[] exceptions);\n\n\t/**\n\t * Creates a clone of this <tt>MethodInfo</tt> except that its declaring\n\t * class does not know about it.\n\t */\n\tpublic Object clone();\n}", "public final native void setFlags(int value) /*-{\n\t\tvar jso = [email protected]::getJsObj()();\n\t\tjso.flags = value;\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}", "public void setModifierFlag(int flag) {\n\t\tthis.modifier = flag;\n\t}", "public void setFlags(final Flags flags);", "public int getFlags() {\n return flags;\n }", "public List<MethodInfo> getMethods() { \n return lstMethodInfo;\n }", "private void checkMethodPermission(HandlerMethod handlerMethod) {\n RequirePermission annotation = handlerMethod.getMethodAnnotation(RequirePermission.class);\n String str = annotation.value();\n System.out.println(\"-----+++++++\");\n }", "public void testCreateMethodWithModifiersAndExceptions() {\n IDOMMethod method = this.domFactory.createMethod();\n method.setName(\"foo\");\n method.setFlags(ClassFileConstants.AccPrivate);\n method.setExceptions(new String[] { \"java.lang.IllegalArgumentException\", \"java.io.FileNotFoundExcpetion\" });\n assertSourceEquals(\"source code incorrect\", \"private void foo() throws java.lang.IllegalArgumentException, java.io.FileNotFoundExcpetion {\\n\" + \"}\\n\", method.getContents());\n }", "public interface C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }", "public boolean visit(MethodDeclaration decl, ClassScope scope) {\r\n\t\t\tif (decl instanceof InterTypeFieldDeclaration) \r\n\t\t\t\tvalue -= 2;\r\n\r\n\t\t\treturn super.visit(decl, scope);\r\n\t\t}", "private void resetFlags(){\n\t\tint count = 0;\n\t\tif (partOfAPairedAlignment) count += Math.pow(2, 0);\n\t\tif (aProperPairedAlignment) count += Math.pow(2, 1);\n\t\tif (unmapped) count += Math.pow(2, 2);\n\t\tif (mateUnMapped) count += Math.pow(2, 3);\n\t\tif (reverseStrand) count += Math.pow(2, 4);\n\t\tif (mateReverseStrand) count += Math.pow(2, 5);\n\t\tif (firstPair) count += Math.pow(2, 6);\n\t\tif (secondPair) count += Math.pow(2, 7);\n\t\tif (notAPrimaryAlignment) count += Math.pow(2, 8);\n\t\tif (failedQC) count += Math.pow(2, 9);\n\t\tif (aDuplicate) count += Math.pow(2, 10);\n\t\tflags = (short) count;\n\t\tflagResetNeeded = false;\n\t\t\n\t}", "private void mappingMethods() throws SecurityException, NoSuchMethodException{\n\t\tmappingMethodGet();\n\t\tmappingMethodSet();\n\t}", "private void setBooleanFlags (short flags){\n\t\tthis.flags = flags;\n\t\tflagResetNeeded = false;\n\t\tpartOfAPairedAlignment = isPartOfAPairedAlignment();\n\t\taProperPairedAlignment = isAProperPairedAlignment();\n\t\tunmapped = isUnmapped();\n\t\tmateUnMapped = isMateUnMapped();\n\t\treverseStrand = isReverseStrand();\n\t\tmateReverseStrand = isMateReverseStrand();\n\t\tfirstPair = isFirstPair();\n\t\tsecondPair = isSecondPair();\n\t\tnotAPrimaryAlignment = isNotAPrimaryAlignment();\n\t\tfailedQC = failedQC();\n\t\taDuplicate = isADuplicate();\n\t\t\n\t}" ]
[ "0.6459756", "0.61941135", "0.6124305", "0.6054357", "0.6038953", "0.6038953", "0.58764786", "0.58633894", "0.586231", "0.586231", "0.58388376", "0.5695067", "0.5662682", "0.5656152", "0.56525016", "0.5636611", "0.5633119", "0.560779", "0.560779", "0.55963707", "0.5585593", "0.5527335", "0.55259675", "0.55178744", "0.5497699", "0.5462038", "0.5460664", "0.54553145", "0.54315555", "0.5428095", "0.5423939", "0.5423252", "0.5405602", "0.5403003", "0.5399762", "0.5359158", "0.5347791", "0.5321582", "0.5317954", "0.53177696", "0.53112406", "0.5308062", "0.53007996", "0.5287687", "0.52810687", "0.5266063", "0.5265689", "0.52653694", "0.5262753", "0.52625436", "0.5258052", "0.5258052", "0.52249104", "0.52223516", "0.52184665", "0.52071375", "0.5204527", "0.5204301", "0.5195871", "0.51853406", "0.5169663", "0.51661706", "0.5161185", "0.51575136", "0.51456904", "0.5145592", "0.51448935", "0.51339334", "0.5129795", "0.51288617", "0.51288617", "0.51249367", "0.51229906", "0.51223254", "0.51202285", "0.5116746", "0.5112507", "0.51069206", "0.5106849", "0.5105911", "0.5099613", "0.50912666", "0.5082884", "0.5078926", "0.5078926", "0.5075503", "0.507498", "0.5074663", "0.50737566", "0.5067883", "0.50673777", "0.5066441", "0.50620204", "0.5058641", "0.50536793", "0.50520235", "0.50424683", "0.50392544", "0.5032849", "0.50326675", "0.5027472" ]
0.0
-1
Manipulate the method access flags.
public boolean isBridge() { return (getAccessFlags() & Constants.ACCESS_BRIDGE) > 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void checkAccessModifier(Method method);", "public abstract int flags();", "private void writeMethodModifiers(Method m) {\n int mod = m.getModifiers();\n mod &= ~Modifier.ABSTRACT;\n mod &= ~Modifier.TRANSIENT;\n writer.print(Modifier.toString(mod) + \" \");\n }", "public int getAccessFlags() {\n return access_flags;\n }", "public int getFlags();", "public int getFlags();", "public long getFlags() {\n }", "public void testCreateMethodWithModifiers() {\n IDOMMethod method = this.domFactory.createMethod();\n method.setName(\"foo\");\n method.setFlags(ClassFileConstants.AccPublic | ClassFileConstants.AccStatic);\n assertSourceEquals(\"source code incorrect\", \"public static void foo() {\\n\" + \"}\\n\", method.getContents());\n }", "int getModifiers();", "int getModifiers();", "public Set<Method> getMethods() {\r\n \t\t// We will only consider private methods in the declared class\r\n \t\tif (forceAccess)\r\n \t\t\treturn setUnion(source.getDeclaredMethods(), source.getMethods());\r\n \t\telse\r\n \t\t\treturn setUnion(source.getMethods());\r\n \t}", "JApiModifier<AccessModifier> getAccessModifier();", "@Override\n\t\t\tpublic void visit(MethodDeclaration arg0, Object arg1) {\n\t\t\t\tif((arg0.getModifiers() & Modifier.PUBLIC) == Modifier.PUBLIC) {\n\t\t\t\t\t\tif(arg0.getName().substring(0, 3) == \"get\" || arg0.getName().substring(0, 3) == \"set\")\n\t\t\t\t\t\t\tpublicAcces.add(new Pair(arg0.getName() + \"( \"+planeL(arg0.getParameters()) +\") :\" + arg0.getType().toString(), Character.toLowerCase(arg0.getName().substring(3).charAt(0)) + (arg0.getName().substring(3).length() > 1 ? arg0.getName().substring(3).substring(1) : \"\")));\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tpublicAcces.add(new Pair(arg0.getName() + \"( \"+planeL(arg0.getParameters()) +\") :\" + arg0.getType().toString(), Character.toLowerCase(arg0.getName().substring(3).charAt(0)) + (arg0.getName().substring(3).length() > 1 ? arg0.getName().substring(3).substring(1) : \"\")));\n\t\t\t\t\t\tuses(arg0.getParameters());\n\t\t\t\t}\n\t\t\t\tsuper.visit(arg0, arg1);\n\t\t\t}", "long getFlags();", "private int patchAccess(BT_Method bm,BT_InsVector iv,int idx)\n{\n int ctr = 0;\n\n if (patch_type.getPatchLocalAccess() || patch_type.getPatchRemoteAccess()) {\n BT_FieldRefIns fri = (BT_FieldRefIns) iv.elementAt(idx);\n BT_Field fld = fri.getFieldTarget();\n if (fri.opcode == BT_Opcodes.opc_getstatic) {\n\t ctr = patch_type.getInstrumenter().patchStaticAccess(fld,bm,iv,idx);\n }\n else {\n\t ctr = patch_type.getInstrumenter().patchFieldAccess(fld,bm,iv,idx);\n }\n }\n\n patch_delta += ctr;\n\n return ctr;\n}", "private void mappingMethodSet() throws SecurityException, NoSuchMethodException{\n\t\tString aux = upFirstLetter();\n\t\tString methodSet = \"set\" + aux;\n\t\tthis.methodSet = this.classFather.getMethod(methodSet, this.classType);\n\t}", "public int modifiers();", "public interface ApiFlags {\n int GET_SOMETHING = 0;\n int GET_SOMETHING_ELSE = 1;\n }", "public interface ApiFlags {\n int GET_SOMETHING = 0;\n int GET_SOMETHING_ELSE = 1;\n }", "protected abstract MethodDescription accessorMethod();", "private void setFlag(short r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00f2 in method: android.location.GpsClock.setFlag(short):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.location.GpsClock.setFlag(short):void\");\n }", "@FameProperty(name = \"numberOfAccessingMethods\", derived = true)\n public Number getNumberOfAccessingMethods() {\n throw new UnsupportedOperationException(\"Not yet implemented!\"); \n }", "boolean isSetMethod();", "public abstract Set<MethodUsage> getDeclaredMethods();", "public void updateFlags()\n {\n initialize();\n }", "private static boolean getInternalPublicMethods(Class<?> paramClass, Map<Signature, Method> paramMap) {\n/* 143 */ Method[] arrayOfMethod = null;\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ try {\n/* 150 */ if (!Modifier.isPublic(paramClass.getModifiers())) {\n/* 151 */ return false;\n/* */ }\n/* 153 */ if (!ReflectUtil.isPackageAccessible(paramClass)) {\n/* 154 */ return false;\n/* */ }\n/* */ \n/* 157 */ arrayOfMethod = paramClass.getMethods();\n/* 158 */ } catch (SecurityException securityException) {\n/* 159 */ return false;\n/* */ } \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 168 */ boolean bool = true; byte b;\n/* 169 */ for (b = 0; b < arrayOfMethod.length; b++) {\n/* 170 */ Class<?> clazz = arrayOfMethod[b].getDeclaringClass();\n/* 171 */ if (!Modifier.isPublic(clazz.getModifiers())) {\n/* 172 */ bool = false;\n/* */ \n/* */ break;\n/* */ } \n/* */ } \n/* 177 */ if (bool) {\n/* */ \n/* */ \n/* */ \n/* */ \n/* 182 */ for (b = 0; b < arrayOfMethod.length; b++) {\n/* 183 */ addMethod(paramMap, arrayOfMethod[b]);\n/* */ \n/* */ }\n/* */ \n/* */ }\n/* */ else {\n/* */ \n/* 190 */ for (b = 0; b < arrayOfMethod.length; b++) {\n/* 191 */ Class<?> clazz = arrayOfMethod[b].getDeclaringClass();\n/* 192 */ if (paramClass.equals(clazz)) {\n/* 193 */ addMethod(paramMap, arrayOfMethod[b]);\n/* */ }\n/* */ } \n/* */ } \n/* 197 */ return bool;\n/* */ }", "@Override\n\tpublic void setAccessModifier(AccessModifier modifier) {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "int getFlag();", "public void beforeHookedMethod(MethodHookParam methodHookParam) throws Throwable {\n super.beforeHookedMethod(methodHookParam);\n methodHookParam.setResult(AbsSavedState.EMPTY_STATE);\n Field findField = XposedHelpers.findField(View.class, \"mPrivateFlags\");\n findField.set(methodHookParam.thisObject, Integer.valueOf(findField.getInt(methodHookParam.thisObject) | 131072));\n }", "public void setFlagMethodName(String name) {\n m_flagMethodName = name;\n }", "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}", "public void changeMode() {\n methodMode = !methodMode;\n }", "private void mappingMethodGet() throws SecurityException, NoSuchMethodException{\n\t\tString aux = upFirstLetter();\n\t\tString methodGet = \"get\" + aux;\n\t\tthis.methodGet = this.classFather.getMethod(methodGet);\n\t}", "public void testMethodInfo888() throws Exception {\n\t\tClassInfo var2785 = instantiateClassInfo430();\n\t\tFieldInfo var2786 = instantiateFieldInfo429();\n\t\tList<ClassInfo> var2764 = Collections.emptyList();\n\t\tList<ParameterInfo> var2766 = Collections.emptyList();\n\t\tList<LocalVariableInfo> var2767 = Collections.emptyList();\n\t\tList<Operation> var2768 = Collections.emptyList();\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tMethodInfo var2787 = new MethodInfo(var2785, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList());\n\t\tClassInfo var2765 = new ClassInfo(\"super\", false, null, var2764, null);\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2785.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2785.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2785.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tClassInfo var2771 = new ClassInfo(\"super\", false, var2765, var2764,\n\t\t\t\tnull);\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2785.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2785.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2785.getSetters();\n\t\tvar2787.isSetter();\n\t\tvar2787.isSetter();\n\t}", "public void setModifiers(int modifiers);", "Method getMethod(int id, boolean filterObsolete);", "private boolean isFlagSet(short r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00f2 in method: android.location.GpsClock.isFlagSet(short):boolean, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.location.GpsClock.isFlagSet(short):boolean\");\n }", "public MethodVisitor visitMethod(int access, String name, String desc, String signature, String[] exceptions) {\n if (\"size\".equals(name) && \"()I\".equals(desc)) {\n return addWrapperMethod(access, name, desc, signature, exceptions);\n } else if (\"isEmpty\".equals(name) && \"()Z\".equals(desc)) {\n return addWrapperMethod(access, name, desc, signature, exceptions);\n } else if (\"containsValue\".equals(name) && \"(Ljava/lang/Object;)Z\".equals(desc)) {\n return addWrapperMethod(access, name, desc, signature, exceptions);\n }\n\n MethodVisitor mv = super.visitMethod(access, name, desc, signature, exceptions);\n if (\"entrySet\".equals(name) && \"()Ljava/util/Set;\".equals(desc)) {\n return new EntrySetMethodAdapter(mv);\n } else if (\"segmentFor\".equals(name) && \"(I)Ljava/util/concurrent/ConcurrentHashMap$Segment;\".equals(desc)) {\n return rewriteSegmentForMethod(mv);\n } else if (\"get\".equals(name) && \"(Ljava/lang/Object;)Ljava/lang/Object;\".equals(desc)) {\n return new MulticastMethodVisitor(new MethodVisitor[] {\n new OriginalGetMethodAdapter(super.visitMethod(ACC_SYNTHETIC|ACC_PUBLIC, TC_ORIG_GET_METHOD_NAME, TC_ORIG_GET_METHOD_DESC, null, null)),\n new ConcurrentHashMapMethodAdapter(new GetMethodAdapter(mv))});\n }\n \n if (\"put\".equals(name) && \"(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;\".equals(desc)) {\n mv = new MulticastMethodVisitor(new MethodVisitor[] {\n mv,\n new ApplicatorPutMethodAdapter(super.visitMethod(ACC_SYNTHETIC|ACC_PUBLIC, TC_APPLICATOR_PUT_METHOD_NAME, TC_APPLICATOR_PUT_METHOD_DESC, null, null))});\n } else if (\"clear\".equals(name) && \"()V\".equals(desc)) {\n mv = new MulticastMethodVisitor(new MethodVisitor[] {\n mv,\n new ApplicatorClearMethodAdapter(super.visitMethod(ACC_SYNTHETIC|ACC_PUBLIC, TC_APPLICATOR_CLEAR_METHOD_NAME, TC_APPLICATOR_CLEAR_METHOD_DESC, null, null))});\n } else if (\"containsKey\".equals(name) && \"(Ljava/lang/Object;)Z\".equals(desc)) {\n mv = new ContainsKeyMethodAdapter(mv);\n } else if (\"remove\".equals(name) && \"(Ljava/lang/Object;)Ljava/lang/Object;\".equals(desc)) {\n mv = new MulticastMethodVisitor(new MethodVisitor[] {\n new SimpleRemoveMethodAdapter(mv),\n new ApplicatorRemoveMethodAdapter(super.visitMethod(ACC_SYNTHETIC|ACC_PUBLIC, TC_APPLICATOR_REMOVE_METHOD_NAME, TC_APPLICATOR_REMOVE_METHOD_DESC, null, null)),\n new RemoveLogicalMethodAdapter(super.visitMethod(ACC_SYNTHETIC|ACC_PUBLIC, TC_REMOVE_LOGICAL_METHOD_NAME, TC_REMOVE_LOGICAL_METHOD_DESC, null, null))});\n } else if (\"remove\".equals(name) && \"(Ljava/lang/Object;Ljava/lang/Object;)Z\".equals(desc)) {\n mv = new RemoveMethodAdapter(mv);\n } else if (\"replace\".equals(name) && \"(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;\".equals(desc)) {\n mv = new SimpleReplaceMethodAdapter(mv);\n } else if (\"replace\".equals(name) && \"(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Z\".equals(desc)) {\n mv = new ReplaceMethodAdapter(mv);\n } else if (\"writeObject\".equals(name) && \"(Ljava/io/ObjectOutputStream;)V\".equals(desc)) {\n mv = new JavaUtilConcurrentHashMapLazyValuesMethodAdapter(access, desc, mv, false);\n }\n\n return new ConcurrentHashMapMethodAdapter(mv);\n }", "public void setReadWriteOnMyLatestView()\n {\n \t m_acl = \tm_acl | (1<<2);\n }", "public static Collection<FieldAccessFlag> getFlags()\n\t{\n\t\treturn Lists.newArrayList(PUBLIC, PRIVATE, PROTECTED, STATIC, FINAL, VOLATILE, TRANSIENT, ENUM,\n\t\t\tSYNTHETIC);\n\t}", "private void addAccessor(ThreadContext context, String internedName, Visibility visibility, boolean readable, boolean writeable) {\n assert internedName == internedName.intern() : internedName + \" is not interned\";\n \n final Ruby runtime = context.getRuntime();\n \n if (visibility == PRIVATE) {\n //FIXME warning\n } else if (visibility == MODULE_FUNCTION) {\n visibility = PRIVATE;\n // FIXME warning\n }\n final String variableName = (\"@\" + internedName).intern();\n if (readable) {\n addMethod(internedName, new JavaMethodZero(this, visibility, CallConfiguration.FrameNoneScopeNone) {\n private RubyClass.VariableAccessor accessor = RubyClass.VariableAccessor.DUMMY_ACCESSOR;\n public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, String name) {\n IRubyObject variable = (IRubyObject)verifyAccessor(self.getMetaClass().getRealClass()).get(self);\n \n return variable == null ? runtime.getNil() : variable;\n }\n \n private RubyClass.VariableAccessor verifyAccessor(RubyClass cls) {\n RubyClass.VariableAccessor localAccessor = accessor;\n if (localAccessor.getClassId() != cls.hashCode()) {\n localAccessor = cls.getVariableAccessorForRead(variableName);\n accessor = localAccessor;\n }\n return localAccessor;\n }\n });\n callMethod(context, \"method_added\", runtime.fastNewSymbol(internedName));\n }\n if (writeable) {\n internedName = (internedName + \"=\").intern();\n addMethod(internedName, new JavaMethodOne(this, visibility, CallConfiguration.FrameNoneScopeNone) {\n private RubyClass.VariableAccessor accessor = RubyClass.VariableAccessor.DUMMY_ACCESSOR;\n public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, String name, IRubyObject arg1) {\n verifyAccessor(self.getMetaClass().getRealClass()).set(self, arg1);\n return arg1;\n }\n \n private RubyClass.VariableAccessor verifyAccessor(RubyClass cls) {\n RubyClass.VariableAccessor localAccessor = accessor;\n if (localAccessor.getClassId() != cls.hashCode()) {\n localAccessor = cls.getVariableAccessorForWrite(variableName);\n accessor = localAccessor;\n }\n return localAccessor;\n }\n });\n callMethod(context, \"method_added\", runtime.fastNewSymbol(internedName));\n }\n }", "public void setFlags(int param1) {\n }", "private void scanAndCopyMethods() {\n int numMethods = copyShort();\n for (int i = 0; i < numMethods; i++) {\n scanAndCopyAccessFlags();\n copy(4); // name_index, descriptor_index\n int numAttributes = copyShort();\n for (int j = 0; j < numAttributes; j++) {\n // Look for \"Code\" attribute.\n int attrNameIdx = copyShort();\n if (cpIdxIsCode(attrNameIdx)) {\n processCodeAttribute();\n } else {\n copyRestOfAttribute();\n }\n }\n }\n }", "public static void setFlags(int flag){\r\n flags |= flag;\r\n }", "void setAccessible(boolean accessible);", "public static native void OpenMM_AmoebaVdwForce_setAlchemicalMethod(PointerByReference target, int method);", "public void testMethodInfo889() throws Exception {\n\t\tClassInfo var2788 = instantiateClassInfo431();\n\t\tList<ClassInfo> var2764 = Collections.emptyList();\n\t\tList<ParameterInfo> var2766 = Collections.emptyList();\n\t\tList<LocalVariableInfo> var2767 = Collections.emptyList();\n\t\tList<Operation> var2768 = Collections.emptyList();\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tMethodInfo var2789 = new MethodInfo(var2788, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList());\n\t\tClassInfo var2765 = new ClassInfo(\"super\", false, null, var2764, null);\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tClassInfo var2771 = new ClassInfo(\"super\", false, var2765, var2764,\n\t\t\t\tnull);\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2788.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2788.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2788.getSetters();\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2788.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2788.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2788.getSetters();\n\t\tvar2789.isSetter();\n\t\tvar2789.isSetter();\n\t}", "public void method_203() {}", "public interface MethodHandleInfo {\n\n\t/**\n\t * Getter MethodHandle for an instance field\n\t */\n\tstatic final int REF_getField = 1;\n\n\t/**\n\t * Getter MethodHandle for an static field\n\t */\n\tstatic final int REF_getStatic = 2;\n\n\t/**\n\t * Setter MethodHandle for an instance field\n\t */\n\tstatic final int REF_putField = 3;\n\n\t/**\n\t * Setter MethodHandle for an static field\n\t */\n\tstatic final int REF_putStatic = 4;\n\n\t/**\n\t * MethodHandle for an instance method\n\t */\n\tstatic final int REF_invokeVirtual = 5;\n\n\t/**\n\t * MethodHandle for a static method\n\t */\n\tstatic final int REF_invokeStatic = 6;\n\n\t/**\n\t * MethodHandle for an special method\n\t */\n\tstatic final int REF_invokeSpecial = 7;\n\n\t/**\n\t * MethodHandle for a constructor\n\t */\n\tstatic final int REF_newInvokeSpecial = 8;\n\n\t/**\n\t * MethodHandle for an interface method\n\t */\n\tstatic final int REF_invokeInterface = 9;\n\n\t/**\n\t * Returns the Class where the cracked MethodHandle's underlying method, field or constructor is declared.\n\t *\n\t * @return class that declares the underlying member\n\t */\n\tClass<?> getDeclaringClass();\n\n\t/**\n\t * Returns the simple name of the MethodHandle's underlying member.\n\t *\n\t * @return A string representing the name of the method or field, or \"&lt;init&gt;\" for constructor.\n\t */\n\tString getName();\n\n\t/**\n\t * Returns the type of the MethodHandle's underlying member as a MethodType.\n\t * If the underlying member is non-static, the receiver parameter will not be included.\n\t * If the underlying member is field getter, the MethodType will take no parameters, and the return type will be the field type.\n\t * If the underlying member is field setter, the MethodType will take one parameter of the field type, and the return type will be void.\n\t *\n\t * @return A MethodType object representing the signature of the method or field\n\t */\n\tMethodType getMethodType();\n\n\t/**\n\t * Returns the modifiers of the MethodHandle's underlying member.\n\t *\n\t * @return An int representing the member's modifiers, or -1 if the underlying member is not accessible.\n\t */\n\tint getModifiers();\n\n\t/**\n\t * Returns the reference kind of the MethodHandle. The possible reference kinds are the declared MethodHandleInfo.REF fields.\n\t *\n\t * @return Returns one of the defined reference kinds which represent the MethodHandle kind.\n\t */\n\tint getReferenceKind();\n\n\t/**\n\t * Returns whether the MethodHandle's underlying method or constructor has variable argument arity.\n\t *\n\t * @return whether the underlying method has variable arity\n\t */\n\tdefault boolean isVarArgs() {\n\t\t// Check whether the MethodHandle refers to a Method or Contructor (not Field)\n\t\tif (getReferenceKind() >= REF_invokeVirtual) {\n\t\t\treturn ((getModifiers() & MethodHandles.Lookup.VARARGS) != 0);\n\t\t}\n\t\treturn false;\n\t}\n\n\t/**\n\t * Reflects the underlying member as a Method, Field or Constructor. The member must be accessible to the provided lookup object.\n\t * Public members are reflected as if by <code>getMethod</code>, <code>getField</code> or <code>getConstructor</code>.\n\t * Non-public members are reflected as if by <code>getDeclearedMethod</code>, <code>getDeclaredField</code> or <code>getDeclaredConstructor</code>.\n\t *\n\t * @param expected The expected type of the returned Member\n\t * @param lookup The lookup that was used to create the MethodHandle, or a lookup object with equivalent access\n\t * @return A Method, Field or Constructor representing the underlying member of the MethodHandle\n\t * @throws NullPointerException If either argument is null\n\t * @throws IllegalArgumentException If the underlying member is not accessible to the provided lookup object\n\t * @throws ClassCastException If the underlying member is not of the expected type\n\t */\n\t<T extends java.lang.reflect.Member> T reflectAs(Class<T> expected, MethodHandles.Lookup lookup);\n\n\t/**\n\t * Returns a string representing the equivalent bytecode for the referenceKind.\n\t *\n\t * @param referenceKind The referenceKind to lookup\n\t * @return a String representing the equivalent bytecode\n\t * @throws IllegalArgumentException If the provided referenceKind is invalid\n\t */\n\tstatic String referenceKindToString(int referenceKind) throws IllegalArgumentException {\n\t\tswitch(referenceKind) {\n\t\tcase REF_getField: \t\t\treturn \"getField\"; //$NON-NLS-1$\n\t\tcase REF_getStatic: \t\treturn \"getStatic\"; //$NON-NLS-1$\n\t\tcase REF_putField: \t\t\treturn \"putField\"; //$NON-NLS-1$\n\t\tcase REF_putStatic: \t\treturn \"putStatic\"; //$NON-NLS-1$\n\t\tcase REF_invokeVirtual: \treturn \"invokeVirtual\"; //$NON-NLS-1$\n\t\tcase REF_invokeStatic: \t\treturn \"invokeStatic\"; //$NON-NLS-1$\n\t\tcase REF_invokeSpecial: \treturn \"invokeSpecial\"; //$NON-NLS-1$\n\t\tcase REF_newInvokeSpecial: \treturn \"newInvokeSpecial\"; //$NON-NLS-1$\n\t\tcase REF_invokeInterface: \treturn \"invokeInterface\"; //$NON-NLS-1$\n\t\t}\n\t\t// K0582 = Reference kind \"{0\"} is invalid\n\t\tthrow new IllegalArgumentException(com.ibm.oti.util.Msg.getString(\"K0582\", referenceKind)); //$NON-NLS-1$\n\t}\n\n\t/**\n\t * Answers a string containing a concise, human-readable description of the receiver.\n\t *\n\t * @param kind the reference kind, one of the declared MethodHandleInfo.REF fields.\n\t * @param defc the class where the member is declared\n\t * @param name the name of the member\n\t * @param type the member's MethodType\n\t * @return a String of the format \"K C.N:MT\"\n\t */\n\tstatic String toString(int kind, Class<?> defc, String name, MethodType type) {\n\t\treturn referenceKindToString(kind) + \" \" + defc.getName() + \".\" + name + \":\" + type; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$\n\t}\n\n}", "public void andThisIsAMethodName(){}", "String getAccess();", "String getAccess();", "@Override\n\tpublic int getFlags() {\n\t\treturn heldObj.getFlags();\n\t}", "private Method getPrivateMethodFromAtrManager(String methodName, Class<?>... argClasses) throws Exception {\n\t\tMethod method = AttributesManagerBlImpl.class.getDeclaredMethod(methodName, argClasses);\n\t\tmethod.setAccessible(true);\n\t\treturn method;\n\t}", "public String getAccess();", "public void testMethodInfo886() throws Exception {\n\t\tClassInfo var2776 = instantiateClassInfo426();\n\t\tLocalField var2777 = instantiateLocalField425();\n\t\tList<ClassInfo> var2764 = Collections.emptyList();\n\t\tList<ParameterInfo> var2766 = Collections.emptyList();\n\t\tList<LocalVariableInfo> var2767 = Collections.emptyList();\n\t\tList<Operation> var2768 = Collections.emptyList();\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tMethodInfo var2778 = new MethodInfo(var2776, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList());\n\t\tvar2777.getDescription();\n\t\tvar2777.getDescription();\n\t\tClassInfo var2765 = new ClassInfo(\"super\", false, null, var2764, null);\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tClassInfo var2771 = new ClassInfo(\"super\", false, var2765, var2764,\n\t\t\t\tnull);\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2776.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2776.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2776.getSetters();\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2776.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2776.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2776.getSetters();\n\t\tvar2778.isSetter();\n\t\tvar2778.isSetter();\n\t}", "@Override\n public MethodDescriptor[] getMethodDescriptors() {\n return getMdescriptor();\n }", "private RubyArray instance_methods(IRubyObject[] args, final Visibility visibility, boolean not, boolean useSymbols) {\n boolean includeSuper = args.length > 0 ? args[0].isTrue() : true;\n Ruby runtime = getRuntime();\n RubyArray ary = runtime.newArray();\n Set<String> seen = new HashSet<String>();\n \n populateInstanceMethodNames(seen, ary, visibility, not, useSymbols, includeSuper);\n \n return ary;\n }", "public void testMethodInfo887() throws Exception {\n\t\tClassInfo var2782 = instantiateClassInfo428();\n\t\tLocalField var2783 = instantiateLocalField427();\n\t\tList<ClassInfo> var2764 = Collections.emptyList();\n\t\tList<ParameterInfo> var2766 = Collections.emptyList();\n\t\tList<LocalVariableInfo> var2767 = Collections.emptyList();\n\t\tList<Operation> var2768 = Collections.emptyList();\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tMethodInfo var2784 = new MethodInfo(var2782, \"voidX()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList());\n\t\tvar2783.getDescription();\n\t\tvar2783.getDescription();\n\t\tClassInfo var2765 = new ClassInfo(\"super\", false, null, var2764, null);\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tClassInfo var2771 = new ClassInfo(\"super\", false, var2765, var2764,\n\t\t\t\tnull);\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2782.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2782.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2782.getSetters();\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2782.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2782.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2782.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2784.isSetter();\n\t\tvar2784.isSetter();\n\t}", "public String methodBase() {\n\t\tString tmp = name;\n\t\ttmp = tmp.replaceFirst(\"^get\", \"\");\n\t\ttmp = tmp.replaceFirst(\"^is\", \"\");\n\t\treturn tmp.substring(0,1).toLowerCase()+tmp.substring(1);\n\t}", "public int getModifiers() {\n return mod;\n }", "MethodName getMethod();", "boolean isAccessed (ClassMember attr) {\r\n if (accessed_attributes == null) {\r\n accessed_attributes = new java.util.Vector ();\r\n } else if (accessed_attributes.contains (attr)) {\r\n return true;\r\n } \r\n\r\n accessed_attributes.addElement (attr);\r\n return false;\r\n }", "protected void updateFlags() {\n USE_CANNY = USE_CANNY && mainInterface.DEBUG_FRAME;\n DEBUG_PREP_FRAME = DEBUG_PREP_FRAME && mainInterface.DEBUG_FRAME;\n DEBUG_CONTOURS = DEBUG_CONTOURS && mainInterface.DEBUG_FRAME;\n DEBUG_POLY = DEBUG_POLY && mainInterface.DEBUG_FRAME;\n DEBUG_DRAW_MARKERS = DEBUG_DRAW_MARKERS && mainInterface.DEBUG_FRAME;\n DEBUG_DRAW_MARKER_ID = DEBUG_DRAW_MARKER_ID && mainInterface.DEBUG_FRAME;\n DEBUG_DRAW_SAMPLING = DEBUG_DRAW_SAMPLING && mainInterface.DEBUG_FRAME;\n }", "private void resetFlag(short r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00f2 in method: android.location.GpsClock.resetFlag(short):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.location.GpsClock.resetFlag(short):void\");\n }", "public GetterSetterInliner(CodeAttrInfoEditor codeAttrInfoEditor,\n boolean allowAccessModification)\n {\n this.codeAttrInfoEditor = codeAttrInfoEditor;\n this.allowAccessModification = allowAccessModification;\n }", "public static boolean canAccessFieldsDirectly(){\n return false; //TODO codavaj!!\n }", "public synchronized void setFlags(Flags newFlags, boolean set) throws MessagingException {\n/* 91 */ Flags oldFlags = (Flags)this.flags.clone();\n/* 92 */ super.setFlags(newFlags, set);\n/* 93 */ if (!this.flags.equals(oldFlags)) {\n/* 94 */ this.folder.notifyMessageChangedListeners(1, (Message)this);\n/* */ }\n/* */ }", "protected final boolean isMutable() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: android.icu.impl.coll.CollationDataBuilder.isMutable():boolean, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.icu.impl.coll.CollationDataBuilder.isMutable():boolean\");\n }", "Method getMethod();", "Method getMethod();", "public void setImportantForAccessibility(boolean important) {\n/* 1316 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public MethodPredicate withModifiers(int... modifiers) {\n this.withModifiers = Arrays.stream(modifiers).boxed().collect(Collectors.toList());\n return this;\n }", "@Override\n\t\t\tpublic MethodVisitor visitMethod(int access, String name, String desc, String signature, String[] exceptions) {\n\t\t\t\tboolean isSynthetic = ClassInfoUtils.checkAccess(access, Opcodes.ACC_SYNTHETIC);\n\t\t\t\tboolean isNative = ClassInfoUtils.checkAccess(access, Opcodes.ACC_NATIVE);\n\t\t\t\tboolean isInterface = ClassInfoUtils.checkAccess(access, Opcodes.ACC_INTERFACE);\n\t\t\t\tboolean isAbstract = ClassInfoUtils.checkAccess(access, Opcodes.ACC_ABSTRACT);\n\t\t\t\t\n\t\t\t\tMethodVisitor mv = super.visitMethod(access, name, desc, signature, exceptions);\n\t\t\t\tif (name.equals(\"toString\") && desc.equals(\"()Ljava/lang/String;\")) {\n\t\t\t\t\treturn mv;\n\t\t\t\t} else if (name.equals(\"equals\") && desc.equals(\"(Ljava/lang/Object;)Z\")) {\n\t\t\t\t\treturn mv;\n\t\t\t\t} else if (name.equals(\"hashCode\") && desc.equals(\"()I\")) {\n\t\t\t\t\treturn mv;\n\t\t\t\t} else if (isSynthetic || isNative || isInterface || isAbstract) {\n\t\t\t\t\treturn mv;\n\t\t\t\t} else {\n\t\t\t\t\tmv = new DependencyAnalyzer(className, \n\t\t\t\t\t\t\taccess, \n\t\t\t\t\t\t\tname, \n\t\t\t\t\t\t\tdesc, \n\t\t\t\t\t\t\tsignature, \n\t\t\t\t\t\t\texceptions, \n\t\t\t\t\t\t\tmv, \n\t\t\t\t\t\t\ttrue,\n\t\t\t\t\t\t\tfalse, \n\t\t\t\t\t\t\ttrue, \n\t\t\t\t\t\t\ttrue);\n\t\t\t\t\t//mv = new CalleeAnalyzer(className, access, name, desc, signature, exceptions, mv, true);\n\t\t\t\t\treturn mv;\n\t\t\t\t}\n\t\t\t}", "@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 13:02:04.534 -0500\", hash_original_method = \"E4DEB0C107DDB25A537EF0E89F1C04F8\", hash_generated_method = \"2E76AFD8C90588F5139C0C2D28CAEA05\")\n \nprivate static int translateCodingErrorAction(CodingErrorAction action) {\n if (action == CodingErrorAction.REPORT) {\n return 0;\n } else if (action == CodingErrorAction.IGNORE) {\n return 1;\n } else if (action == CodingErrorAction.REPLACE) {\n return 2;\n } else {\n throw new AssertionError(); // Someone changed the enum.\n }\n }", "private boolean makeFieldAccessible(Field f)\n {\n // See: https://stackoverflow.com/questions/46454995/#58834966\n Method getModule;\n try\n {\n getModule = Class.class.getMethod(\"getModule\");\n }\n catch (NoSuchMethodException e)\n {\n // We are on Java 8\n getModule = null;\n }\n if (getModule != null)\n {\n try\n {\n Object thisModule = getModule.invoke(this.getClass());\n Method isNamed = thisModule.getClass().getMethod(\"isNamed\");\n if (!(boolean) isNamed.invoke(thisModule))\n {\n Class fieldClass = f.getDeclaringClass().getClass();\n Object fieldModule = getModule.invoke(fieldClass);\n Method addOpens = fieldModule.getClass().getMethod(\n \"addOpens\", String.class, thisModule.getClass());\n Method getPackageName = fieldClass.getMethod(\"getPackageName\");\n addOpens.invoke(fieldModule, getPackageName.invoke(fieldClass), thisModule);\n }\n }\n catch (Throwable t)\n {\n if (t instanceof InvocationTargetException)\n {\n InvocationTargetException e = (InvocationTargetException) t;\n if (e.getCause() != null\n && e.getCause().getClass().getName().endsWith(\"IllegalCallerException\"))\n {\n if (outputLogger != null)\n {\n outputLogger.debug(\n PROCESS_ATTRIBUTE_CHANGE_MESSAGE + e.getCause().getMessage(),\n this.getClass().getName());\n }\n t = null;\n }\n }\n if (t != null)\n {\n throw new CargoException(\"Cannot set field accessibility for [\" + f + \"]\", t);\n }\n return false;\n }\n }\n try\n {\n f.setAccessible(true);\n return true;\n }\n catch (Throwable t)\n {\n if (t.getClass().getName().endsWith(\"InaccessibleObjectException\"))\n {\n if (outputLogger != null)\n {\n outputLogger.debug(\n PROCESS_ATTRIBUTE_CHANGE_MESSAGE + t.getMessage(),\n this.getClass().getName());\n }\n t = null;\n }\n if (t != null)\n {\n throw new CargoException(\"Cannot set field accessibility for [\" + f + \"]\", t);\n }\n return false;\n }\n }", "Builder addAccessibilityFeature(String value);", "public Method getMethod();", "Methodsig getMethod();", "public short getFlags() {\n\treturn flags;\n }", "public boolean isPropertyAccessorMethod(Method paramMethod, Class paramClass) {\n/* 225 */ String str1 = paramMethod.getName();\n/* 226 */ Class<?> clazz = paramMethod.getReturnType();\n/* 227 */ Class[] arrayOfClass1 = paramMethod.getParameterTypes();\n/* 228 */ Class[] arrayOfClass2 = paramMethod.getExceptionTypes();\n/* 229 */ String str2 = null;\n/* */ \n/* 231 */ if (str1.startsWith(\"get\")) {\n/* */ \n/* 233 */ if (arrayOfClass1.length == 0 && clazz != void.class && \n/* 234 */ !readHasCorrespondingIsProperty(paramMethod, paramClass)) {\n/* 235 */ str2 = \"get\";\n/* */ }\n/* */ }\n/* 238 */ else if (str1.startsWith(\"set\")) {\n/* */ \n/* 240 */ if (clazz == void.class && arrayOfClass1.length == 1 && (\n/* 241 */ hasCorrespondingReadProperty(paramMethod, paramClass, \"get\") || \n/* 242 */ hasCorrespondingReadProperty(paramMethod, paramClass, \"is\"))) {\n/* 243 */ str2 = \"set\";\n/* */ \n/* */ }\n/* */ }\n/* 247 */ else if (str1.startsWith(\"is\") && \n/* 248 */ arrayOfClass1.length == 0 && clazz == boolean.class && \n/* 249 */ !isHasCorrespondingReadProperty(paramMethod, paramClass)) {\n/* 250 */ str2 = \"is\";\n/* */ } \n/* */ \n/* */ \n/* */ \n/* 255 */ if (str2 != null && (\n/* 256 */ !validPropertyExceptions(paramMethod) || str1\n/* 257 */ .length() <= str2.length())) {\n/* 258 */ str2 = null;\n/* */ }\n/* */ \n/* */ \n/* 262 */ return (str2 != null);\n/* */ }", "public void setAllowedMethods(Method... allowed)\n\t{\n\t\tStringBuilder s = new StringBuilder();\n\t\tfor (int i = 0; i < allowed.length; i++)\n\t\t{\n\t\t\tif (i != 0)\n\t\t\t\ts.append(\", \");\n\t\t\ts.append(allowed[i]);\n\t\t}\n\t\t\n\t\tsetHeader(ALLOW, s.toString());\n\t}", "public int getAccess()\n {\n ensureLoaded();\n return m_flags.getAccess();\n }", "String getMethod();", "String getMethod();", "public void setDeclared(int r1, boolean r2) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: org.xml.sax.ext.Attributes2Impl.setDeclared(int, boolean):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: org.xml.sax.ext.Attributes2Impl.setDeclared(int, boolean):void\");\n }", "@Override\n\tpublic MethodVisitor visitMethod(int access, String name, String desc, String signature, String[] exceptions) {\n\t\tparsingMethod = new Method(name, desc, parsingClass);\n\t\tparsingClass.getMethods().add(parsingMethod);\n\t\treturn completeMethodVisitor;\n\t}", "public interface MethodInfo {\n\t/**\n\t * Returns the class which declared the method.\n\t */\n\tpublic ClassInfo declaringClass();\n\n\t/**\n\t * Returns the index into the constant pool of the name of the method.\n\t */\n\tpublic int nameIndex();\n\n\t/**\n\t * Returns the index into the constant pool of the type of the method.\n\t */\n\tpublic int typeIndex();\n\n\t/**\n\t * Sets the index into the constant pool of the name of the method.\n\t */\n\tpublic void setNameIndex(int index);\n\n\t/**\n\t * Set the index into the constant pool of the type of the method.\n\t * \n\t * @param index\n\t * The index into the constant pool of the type of the method.\n\t */\n\tpublic void setTypeIndex(int index);\n\n\t/**\n\t * Set the modifiers of the method. The values correspond to the constants\n\t * in the Modifiers class.\n\t * \n\t * @param modifiers\n\t * A bit vector of modifier flags for the method.\n\t * @see Modifiers\n\t */\n\tpublic void setModifiers(int modifiers);\n\n\t/**\n\t * Get the modifiers of the method. The values correspond to the constants\n\t * in the Modifiers class.\n\t * \n\t * @return A bit vector of modifier flags for the method.\n\t * @see Modifiers\n\t */\n\tpublic int modifiers();\n\n\t/**\n\t * Get the indices into the constant pool of the types of the exceptions\n\t * thrown by the method.\n\t * \n\t * @return The indices into the constant pool of the types of the exceptions\n\t * thrown by the method.\n\t */\n\tpublic int[] exceptionTypes();\n\n\t/**\n\t * Get the maximum height of the operand stack.\n\t * \n\t * @return The maximum height of the operand stack.\n\t */\n\tpublic int maxStack();\n\n\t/**\n\t * Set the maximum height of the operand stack.\n\t * \n\t * @param maxStack\n\t * The maximum height of the operand stack.\n\t */\n\tpublic void setMaxStack(int maxStack);\n\n\t/**\n\t * Get the maximum number of locals used in the method.\n\t * \n\t * @return The maximum number of locals used in the method.\n\t */\n\tpublic int maxLocals();\n\n\t/**\n\t * Set the maximum number of locals used in the method.\n\t * \n\t * @param maxLocals\n\t * The maximum number of locals used in the method.\n\t */\n\tpublic void setMaxLocals(int maxLocals);\n\n\t/**\n\t * Get the byte code array of the method.\n\t * \n\t * @return The byte code array of the method.\n\t */\n\tpublic byte[] code();\n\n\t/**\n\t * Set the byte code array of the method.\n\t * \n\t * @param code\n\t * The byte code array of the method.\n\t */\n\tpublic void setCode(byte[] code);\n\n\t/**\n\t * Get the line number debug info of the instructions in the method.\n\t * \n\t * @return The line numbers of the instructions in the method. The array\n\t * will be of size 0 if the method has no line number debug info.\n\t */\n\tpublic LineNumberDebugInfo[] lineNumbers();\n\n\t/**\n\t * Set the line number debug info of the instructions in the method.\n\t * \n\t * @param lineNumbers\n\t * The line numbers of the instructions in the method. The array\n\t * will be of size 0 if the method has no line number debug info.\n\t */\n\tpublic void setLineNumbers(LineNumberDebugInfo[] lineNumbers);\n\n\t/**\n\t * Get the local variable debug information for the method.\n\t * \n\t * @return The local variables in the method. The array will be of size 0 if\n\t * the method has no local variable debug info.\n\t */\n\tpublic LocalDebugInfo[] locals();\n\n\t/**\n\t * Set the local variables in the method.\n\t * \n\t * @param locals\n\t * The local variables in the method.\n\t */\n\tpublic void setLocals(LocalDebugInfo[] locals);\n\n\t/**\n\t * Get the exception handlers in the method.\n\t * \n\t * @return The exception handlers in the method.\n\t */\n\tpublic Catch[] exceptionHandlers();\n\n\t/**\n\t * Set the exception handlers in the method.\n\t * \n\t * @param exceptions\n\t * The exception handlers in the method.\n\t */\n\tpublic void setExceptionHandlers(Catch[] exceptions);\n\n\t/**\n\t * Creates a clone of this <tt>MethodInfo</tt> except that its declaring\n\t * class does not know about it.\n\t */\n\tpublic Object clone();\n}", "public final native void setFlags(int value) /*-{\n\t\tvar jso = [email protected]::getJsObj()();\n\t\tjso.flags = value;\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}", "public void setModifierFlag(int flag) {\n\t\tthis.modifier = flag;\n\t}", "public void setFlags(final Flags flags);", "public int getFlags() {\n return flags;\n }", "public List<MethodInfo> getMethods() { \n return lstMethodInfo;\n }", "private void checkMethodPermission(HandlerMethod handlerMethod) {\n RequirePermission annotation = handlerMethod.getMethodAnnotation(RequirePermission.class);\n String str = annotation.value();\n System.out.println(\"-----+++++++\");\n }", "public void testCreateMethodWithModifiersAndExceptions() {\n IDOMMethod method = this.domFactory.createMethod();\n method.setName(\"foo\");\n method.setFlags(ClassFileConstants.AccPrivate);\n method.setExceptions(new String[] { \"java.lang.IllegalArgumentException\", \"java.io.FileNotFoundExcpetion\" });\n assertSourceEquals(\"source code incorrect\", \"private void foo() throws java.lang.IllegalArgumentException, java.io.FileNotFoundExcpetion {\\n\" + \"}\\n\", method.getContents());\n }", "public interface C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }", "public boolean visit(MethodDeclaration decl, ClassScope scope) {\r\n\t\t\tif (decl instanceof InterTypeFieldDeclaration) \r\n\t\t\t\tvalue -= 2;\r\n\r\n\t\t\treturn super.visit(decl, scope);\r\n\t\t}", "private void resetFlags(){\n\t\tint count = 0;\n\t\tif (partOfAPairedAlignment) count += Math.pow(2, 0);\n\t\tif (aProperPairedAlignment) count += Math.pow(2, 1);\n\t\tif (unmapped) count += Math.pow(2, 2);\n\t\tif (mateUnMapped) count += Math.pow(2, 3);\n\t\tif (reverseStrand) count += Math.pow(2, 4);\n\t\tif (mateReverseStrand) count += Math.pow(2, 5);\n\t\tif (firstPair) count += Math.pow(2, 6);\n\t\tif (secondPair) count += Math.pow(2, 7);\n\t\tif (notAPrimaryAlignment) count += Math.pow(2, 8);\n\t\tif (failedQC) count += Math.pow(2, 9);\n\t\tif (aDuplicate) count += Math.pow(2, 10);\n\t\tflags = (short) count;\n\t\tflagResetNeeded = false;\n\t\t\n\t}", "private void mappingMethods() throws SecurityException, NoSuchMethodException{\n\t\tmappingMethodGet();\n\t\tmappingMethodSet();\n\t}", "private void setBooleanFlags (short flags){\n\t\tthis.flags = flags;\n\t\tflagResetNeeded = false;\n\t\tpartOfAPairedAlignment = isPartOfAPairedAlignment();\n\t\taProperPairedAlignment = isAProperPairedAlignment();\n\t\tunmapped = isUnmapped();\n\t\tmateUnMapped = isMateUnMapped();\n\t\treverseStrand = isReverseStrand();\n\t\tmateReverseStrand = isMateReverseStrand();\n\t\tfirstPair = isFirstPair();\n\t\tsecondPair = isSecondPair();\n\t\tnotAPrimaryAlignment = isNotAPrimaryAlignment();\n\t\tfailedQC = failedQC();\n\t\taDuplicate = isADuplicate();\n\t\t\n\t}" ]
[ "0.6459756", "0.61941135", "0.6124305", "0.6054357", "0.6038953", "0.6038953", "0.58764786", "0.58633894", "0.586231", "0.586231", "0.58388376", "0.5695067", "0.5662682", "0.5656152", "0.56525016", "0.5636611", "0.5633119", "0.560779", "0.560779", "0.55963707", "0.5585593", "0.5527335", "0.55259675", "0.55178744", "0.5497699", "0.5462038", "0.5460664", "0.54553145", "0.54315555", "0.5428095", "0.5423939", "0.5423252", "0.5405602", "0.5403003", "0.5399762", "0.5359158", "0.5347791", "0.5321582", "0.5317954", "0.53177696", "0.53112406", "0.5308062", "0.53007996", "0.5287687", "0.52810687", "0.5266063", "0.5265689", "0.52653694", "0.5262753", "0.52625436", "0.5258052", "0.5258052", "0.52249104", "0.52223516", "0.52184665", "0.52071375", "0.5204527", "0.5204301", "0.5195871", "0.51853406", "0.5169663", "0.51661706", "0.5161185", "0.51575136", "0.51456904", "0.5145592", "0.51448935", "0.51339334", "0.5129795", "0.51288617", "0.51288617", "0.51249367", "0.51229906", "0.51223254", "0.51202285", "0.5116746", "0.5112507", "0.51069206", "0.5106849", "0.5105911", "0.5099613", "0.50912666", "0.5082884", "0.5078926", "0.5078926", "0.5075503", "0.507498", "0.5074663", "0.50737566", "0.5067883", "0.50673777", "0.5066441", "0.50620204", "0.5058641", "0.50536793", "0.50520235", "0.50424683", "0.50392544", "0.5032849", "0.50326675", "0.5027472" ]
0.0
-1
Manipulate the method access flags.
public void setBridge(boolean on) { if (on) setAccessFlags(getAccessFlags() | Constants.ACCESS_BRIDGE); else setAccessFlags(getAccessFlags() & ~Constants.ACCESS_BRIDGE); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void checkAccessModifier(Method method);", "public abstract int flags();", "private void writeMethodModifiers(Method m) {\n int mod = m.getModifiers();\n mod &= ~Modifier.ABSTRACT;\n mod &= ~Modifier.TRANSIENT;\n writer.print(Modifier.toString(mod) + \" \");\n }", "public int getAccessFlags() {\n return access_flags;\n }", "public int getFlags();", "public int getFlags();", "public long getFlags() {\n }", "public void testCreateMethodWithModifiers() {\n IDOMMethod method = this.domFactory.createMethod();\n method.setName(\"foo\");\n method.setFlags(ClassFileConstants.AccPublic | ClassFileConstants.AccStatic);\n assertSourceEquals(\"source code incorrect\", \"public static void foo() {\\n\" + \"}\\n\", method.getContents());\n }", "int getModifiers();", "int getModifiers();", "public Set<Method> getMethods() {\r\n \t\t// We will only consider private methods in the declared class\r\n \t\tif (forceAccess)\r\n \t\t\treturn setUnion(source.getDeclaredMethods(), source.getMethods());\r\n \t\telse\r\n \t\t\treturn setUnion(source.getMethods());\r\n \t}", "JApiModifier<AccessModifier> getAccessModifier();", "@Override\n\t\t\tpublic void visit(MethodDeclaration arg0, Object arg1) {\n\t\t\t\tif((arg0.getModifiers() & Modifier.PUBLIC) == Modifier.PUBLIC) {\n\t\t\t\t\t\tif(arg0.getName().substring(0, 3) == \"get\" || arg0.getName().substring(0, 3) == \"set\")\n\t\t\t\t\t\t\tpublicAcces.add(new Pair(arg0.getName() + \"( \"+planeL(arg0.getParameters()) +\") :\" + arg0.getType().toString(), Character.toLowerCase(arg0.getName().substring(3).charAt(0)) + (arg0.getName().substring(3).length() > 1 ? arg0.getName().substring(3).substring(1) : \"\")));\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tpublicAcces.add(new Pair(arg0.getName() + \"( \"+planeL(arg0.getParameters()) +\") :\" + arg0.getType().toString(), Character.toLowerCase(arg0.getName().substring(3).charAt(0)) + (arg0.getName().substring(3).length() > 1 ? arg0.getName().substring(3).substring(1) : \"\")));\n\t\t\t\t\t\tuses(arg0.getParameters());\n\t\t\t\t}\n\t\t\t\tsuper.visit(arg0, arg1);\n\t\t\t}", "long getFlags();", "private int patchAccess(BT_Method bm,BT_InsVector iv,int idx)\n{\n int ctr = 0;\n\n if (patch_type.getPatchLocalAccess() || patch_type.getPatchRemoteAccess()) {\n BT_FieldRefIns fri = (BT_FieldRefIns) iv.elementAt(idx);\n BT_Field fld = fri.getFieldTarget();\n if (fri.opcode == BT_Opcodes.opc_getstatic) {\n\t ctr = patch_type.getInstrumenter().patchStaticAccess(fld,bm,iv,idx);\n }\n else {\n\t ctr = patch_type.getInstrumenter().patchFieldAccess(fld,bm,iv,idx);\n }\n }\n\n patch_delta += ctr;\n\n return ctr;\n}", "private void mappingMethodSet() throws SecurityException, NoSuchMethodException{\n\t\tString aux = upFirstLetter();\n\t\tString methodSet = \"set\" + aux;\n\t\tthis.methodSet = this.classFather.getMethod(methodSet, this.classType);\n\t}", "public int modifiers();", "public interface ApiFlags {\n int GET_SOMETHING = 0;\n int GET_SOMETHING_ELSE = 1;\n }", "public interface ApiFlags {\n int GET_SOMETHING = 0;\n int GET_SOMETHING_ELSE = 1;\n }", "protected abstract MethodDescription accessorMethod();", "private void setFlag(short r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00f2 in method: android.location.GpsClock.setFlag(short):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.location.GpsClock.setFlag(short):void\");\n }", "@FameProperty(name = \"numberOfAccessingMethods\", derived = true)\n public Number getNumberOfAccessingMethods() {\n throw new UnsupportedOperationException(\"Not yet implemented!\"); \n }", "boolean isSetMethod();", "public abstract Set<MethodUsage> getDeclaredMethods();", "public void updateFlags()\n {\n initialize();\n }", "private static boolean getInternalPublicMethods(Class<?> paramClass, Map<Signature, Method> paramMap) {\n/* 143 */ Method[] arrayOfMethod = null;\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ try {\n/* 150 */ if (!Modifier.isPublic(paramClass.getModifiers())) {\n/* 151 */ return false;\n/* */ }\n/* 153 */ if (!ReflectUtil.isPackageAccessible(paramClass)) {\n/* 154 */ return false;\n/* */ }\n/* */ \n/* 157 */ arrayOfMethod = paramClass.getMethods();\n/* 158 */ } catch (SecurityException securityException) {\n/* 159 */ return false;\n/* */ } \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 168 */ boolean bool = true; byte b;\n/* 169 */ for (b = 0; b < arrayOfMethod.length; b++) {\n/* 170 */ Class<?> clazz = arrayOfMethod[b].getDeclaringClass();\n/* 171 */ if (!Modifier.isPublic(clazz.getModifiers())) {\n/* 172 */ bool = false;\n/* */ \n/* */ break;\n/* */ } \n/* */ } \n/* 177 */ if (bool) {\n/* */ \n/* */ \n/* */ \n/* */ \n/* 182 */ for (b = 0; b < arrayOfMethod.length; b++) {\n/* 183 */ addMethod(paramMap, arrayOfMethod[b]);\n/* */ \n/* */ }\n/* */ \n/* */ }\n/* */ else {\n/* */ \n/* 190 */ for (b = 0; b < arrayOfMethod.length; b++) {\n/* 191 */ Class<?> clazz = arrayOfMethod[b].getDeclaringClass();\n/* 192 */ if (paramClass.equals(clazz)) {\n/* 193 */ addMethod(paramMap, arrayOfMethod[b]);\n/* */ }\n/* */ } \n/* */ } \n/* 197 */ return bool;\n/* */ }", "@Override\n\tpublic void setAccessModifier(AccessModifier modifier) {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "int getFlag();", "public void beforeHookedMethod(MethodHookParam methodHookParam) throws Throwable {\n super.beforeHookedMethod(methodHookParam);\n methodHookParam.setResult(AbsSavedState.EMPTY_STATE);\n Field findField = XposedHelpers.findField(View.class, \"mPrivateFlags\");\n findField.set(methodHookParam.thisObject, Integer.valueOf(findField.getInt(methodHookParam.thisObject) | 131072));\n }", "public void setFlagMethodName(String name) {\n m_flagMethodName = name;\n }", "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}", "public void changeMode() {\n methodMode = !methodMode;\n }", "private void mappingMethodGet() throws SecurityException, NoSuchMethodException{\n\t\tString aux = upFirstLetter();\n\t\tString methodGet = \"get\" + aux;\n\t\tthis.methodGet = this.classFather.getMethod(methodGet);\n\t}", "public void testMethodInfo888() throws Exception {\n\t\tClassInfo var2785 = instantiateClassInfo430();\n\t\tFieldInfo var2786 = instantiateFieldInfo429();\n\t\tList<ClassInfo> var2764 = Collections.emptyList();\n\t\tList<ParameterInfo> var2766 = Collections.emptyList();\n\t\tList<LocalVariableInfo> var2767 = Collections.emptyList();\n\t\tList<Operation> var2768 = Collections.emptyList();\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tMethodInfo var2787 = new MethodInfo(var2785, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList());\n\t\tClassInfo var2765 = new ClassInfo(\"super\", false, null, var2764, null);\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2785.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2785.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2785.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tClassInfo var2771 = new ClassInfo(\"super\", false, var2765, var2764,\n\t\t\t\tnull);\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2785.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2785.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2785.getSetters();\n\t\tvar2787.isSetter();\n\t\tvar2787.isSetter();\n\t}", "public void setModifiers(int modifiers);", "Method getMethod(int id, boolean filterObsolete);", "private boolean isFlagSet(short r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00f2 in method: android.location.GpsClock.isFlagSet(short):boolean, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.location.GpsClock.isFlagSet(short):boolean\");\n }", "public MethodVisitor visitMethod(int access, String name, String desc, String signature, String[] exceptions) {\n if (\"size\".equals(name) && \"()I\".equals(desc)) {\n return addWrapperMethod(access, name, desc, signature, exceptions);\n } else if (\"isEmpty\".equals(name) && \"()Z\".equals(desc)) {\n return addWrapperMethod(access, name, desc, signature, exceptions);\n } else if (\"containsValue\".equals(name) && \"(Ljava/lang/Object;)Z\".equals(desc)) {\n return addWrapperMethod(access, name, desc, signature, exceptions);\n }\n\n MethodVisitor mv = super.visitMethod(access, name, desc, signature, exceptions);\n if (\"entrySet\".equals(name) && \"()Ljava/util/Set;\".equals(desc)) {\n return new EntrySetMethodAdapter(mv);\n } else if (\"segmentFor\".equals(name) && \"(I)Ljava/util/concurrent/ConcurrentHashMap$Segment;\".equals(desc)) {\n return rewriteSegmentForMethod(mv);\n } else if (\"get\".equals(name) && \"(Ljava/lang/Object;)Ljava/lang/Object;\".equals(desc)) {\n return new MulticastMethodVisitor(new MethodVisitor[] {\n new OriginalGetMethodAdapter(super.visitMethod(ACC_SYNTHETIC|ACC_PUBLIC, TC_ORIG_GET_METHOD_NAME, TC_ORIG_GET_METHOD_DESC, null, null)),\n new ConcurrentHashMapMethodAdapter(new GetMethodAdapter(mv))});\n }\n \n if (\"put\".equals(name) && \"(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;\".equals(desc)) {\n mv = new MulticastMethodVisitor(new MethodVisitor[] {\n mv,\n new ApplicatorPutMethodAdapter(super.visitMethod(ACC_SYNTHETIC|ACC_PUBLIC, TC_APPLICATOR_PUT_METHOD_NAME, TC_APPLICATOR_PUT_METHOD_DESC, null, null))});\n } else if (\"clear\".equals(name) && \"()V\".equals(desc)) {\n mv = new MulticastMethodVisitor(new MethodVisitor[] {\n mv,\n new ApplicatorClearMethodAdapter(super.visitMethod(ACC_SYNTHETIC|ACC_PUBLIC, TC_APPLICATOR_CLEAR_METHOD_NAME, TC_APPLICATOR_CLEAR_METHOD_DESC, null, null))});\n } else if (\"containsKey\".equals(name) && \"(Ljava/lang/Object;)Z\".equals(desc)) {\n mv = new ContainsKeyMethodAdapter(mv);\n } else if (\"remove\".equals(name) && \"(Ljava/lang/Object;)Ljava/lang/Object;\".equals(desc)) {\n mv = new MulticastMethodVisitor(new MethodVisitor[] {\n new SimpleRemoveMethodAdapter(mv),\n new ApplicatorRemoveMethodAdapter(super.visitMethod(ACC_SYNTHETIC|ACC_PUBLIC, TC_APPLICATOR_REMOVE_METHOD_NAME, TC_APPLICATOR_REMOVE_METHOD_DESC, null, null)),\n new RemoveLogicalMethodAdapter(super.visitMethod(ACC_SYNTHETIC|ACC_PUBLIC, TC_REMOVE_LOGICAL_METHOD_NAME, TC_REMOVE_LOGICAL_METHOD_DESC, null, null))});\n } else if (\"remove\".equals(name) && \"(Ljava/lang/Object;Ljava/lang/Object;)Z\".equals(desc)) {\n mv = new RemoveMethodAdapter(mv);\n } else if (\"replace\".equals(name) && \"(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;\".equals(desc)) {\n mv = new SimpleReplaceMethodAdapter(mv);\n } else if (\"replace\".equals(name) && \"(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Z\".equals(desc)) {\n mv = new ReplaceMethodAdapter(mv);\n } else if (\"writeObject\".equals(name) && \"(Ljava/io/ObjectOutputStream;)V\".equals(desc)) {\n mv = new JavaUtilConcurrentHashMapLazyValuesMethodAdapter(access, desc, mv, false);\n }\n\n return new ConcurrentHashMapMethodAdapter(mv);\n }", "public void setReadWriteOnMyLatestView()\n {\n \t m_acl = \tm_acl | (1<<2);\n }", "public static Collection<FieldAccessFlag> getFlags()\n\t{\n\t\treturn Lists.newArrayList(PUBLIC, PRIVATE, PROTECTED, STATIC, FINAL, VOLATILE, TRANSIENT, ENUM,\n\t\t\tSYNTHETIC);\n\t}", "private void addAccessor(ThreadContext context, String internedName, Visibility visibility, boolean readable, boolean writeable) {\n assert internedName == internedName.intern() : internedName + \" is not interned\";\n \n final Ruby runtime = context.getRuntime();\n \n if (visibility == PRIVATE) {\n //FIXME warning\n } else if (visibility == MODULE_FUNCTION) {\n visibility = PRIVATE;\n // FIXME warning\n }\n final String variableName = (\"@\" + internedName).intern();\n if (readable) {\n addMethod(internedName, new JavaMethodZero(this, visibility, CallConfiguration.FrameNoneScopeNone) {\n private RubyClass.VariableAccessor accessor = RubyClass.VariableAccessor.DUMMY_ACCESSOR;\n public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, String name) {\n IRubyObject variable = (IRubyObject)verifyAccessor(self.getMetaClass().getRealClass()).get(self);\n \n return variable == null ? runtime.getNil() : variable;\n }\n \n private RubyClass.VariableAccessor verifyAccessor(RubyClass cls) {\n RubyClass.VariableAccessor localAccessor = accessor;\n if (localAccessor.getClassId() != cls.hashCode()) {\n localAccessor = cls.getVariableAccessorForRead(variableName);\n accessor = localAccessor;\n }\n return localAccessor;\n }\n });\n callMethod(context, \"method_added\", runtime.fastNewSymbol(internedName));\n }\n if (writeable) {\n internedName = (internedName + \"=\").intern();\n addMethod(internedName, new JavaMethodOne(this, visibility, CallConfiguration.FrameNoneScopeNone) {\n private RubyClass.VariableAccessor accessor = RubyClass.VariableAccessor.DUMMY_ACCESSOR;\n public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, String name, IRubyObject arg1) {\n verifyAccessor(self.getMetaClass().getRealClass()).set(self, arg1);\n return arg1;\n }\n \n private RubyClass.VariableAccessor verifyAccessor(RubyClass cls) {\n RubyClass.VariableAccessor localAccessor = accessor;\n if (localAccessor.getClassId() != cls.hashCode()) {\n localAccessor = cls.getVariableAccessorForWrite(variableName);\n accessor = localAccessor;\n }\n return localAccessor;\n }\n });\n callMethod(context, \"method_added\", runtime.fastNewSymbol(internedName));\n }\n }", "public void setFlags(int param1) {\n }", "private void scanAndCopyMethods() {\n int numMethods = copyShort();\n for (int i = 0; i < numMethods; i++) {\n scanAndCopyAccessFlags();\n copy(4); // name_index, descriptor_index\n int numAttributes = copyShort();\n for (int j = 0; j < numAttributes; j++) {\n // Look for \"Code\" attribute.\n int attrNameIdx = copyShort();\n if (cpIdxIsCode(attrNameIdx)) {\n processCodeAttribute();\n } else {\n copyRestOfAttribute();\n }\n }\n }\n }", "public static void setFlags(int flag){\r\n flags |= flag;\r\n }", "void setAccessible(boolean accessible);", "public static native void OpenMM_AmoebaVdwForce_setAlchemicalMethod(PointerByReference target, int method);", "public void testMethodInfo889() throws Exception {\n\t\tClassInfo var2788 = instantiateClassInfo431();\n\t\tList<ClassInfo> var2764 = Collections.emptyList();\n\t\tList<ParameterInfo> var2766 = Collections.emptyList();\n\t\tList<LocalVariableInfo> var2767 = Collections.emptyList();\n\t\tList<Operation> var2768 = Collections.emptyList();\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tMethodInfo var2789 = new MethodInfo(var2788, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList());\n\t\tClassInfo var2765 = new ClassInfo(\"super\", false, null, var2764, null);\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tClassInfo var2771 = new ClassInfo(\"super\", false, var2765, var2764,\n\t\t\t\tnull);\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2788.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2788.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2788.getSetters();\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2788.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2788.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2788.getSetters();\n\t\tvar2789.isSetter();\n\t\tvar2789.isSetter();\n\t}", "public void method_203() {}", "public interface MethodHandleInfo {\n\n\t/**\n\t * Getter MethodHandle for an instance field\n\t */\n\tstatic final int REF_getField = 1;\n\n\t/**\n\t * Getter MethodHandle for an static field\n\t */\n\tstatic final int REF_getStatic = 2;\n\n\t/**\n\t * Setter MethodHandle for an instance field\n\t */\n\tstatic final int REF_putField = 3;\n\n\t/**\n\t * Setter MethodHandle for an static field\n\t */\n\tstatic final int REF_putStatic = 4;\n\n\t/**\n\t * MethodHandle for an instance method\n\t */\n\tstatic final int REF_invokeVirtual = 5;\n\n\t/**\n\t * MethodHandle for a static method\n\t */\n\tstatic final int REF_invokeStatic = 6;\n\n\t/**\n\t * MethodHandle for an special method\n\t */\n\tstatic final int REF_invokeSpecial = 7;\n\n\t/**\n\t * MethodHandle for a constructor\n\t */\n\tstatic final int REF_newInvokeSpecial = 8;\n\n\t/**\n\t * MethodHandle for an interface method\n\t */\n\tstatic final int REF_invokeInterface = 9;\n\n\t/**\n\t * Returns the Class where the cracked MethodHandle's underlying method, field or constructor is declared.\n\t *\n\t * @return class that declares the underlying member\n\t */\n\tClass<?> getDeclaringClass();\n\n\t/**\n\t * Returns the simple name of the MethodHandle's underlying member.\n\t *\n\t * @return A string representing the name of the method or field, or \"&lt;init&gt;\" for constructor.\n\t */\n\tString getName();\n\n\t/**\n\t * Returns the type of the MethodHandle's underlying member as a MethodType.\n\t * If the underlying member is non-static, the receiver parameter will not be included.\n\t * If the underlying member is field getter, the MethodType will take no parameters, and the return type will be the field type.\n\t * If the underlying member is field setter, the MethodType will take one parameter of the field type, and the return type will be void.\n\t *\n\t * @return A MethodType object representing the signature of the method or field\n\t */\n\tMethodType getMethodType();\n\n\t/**\n\t * Returns the modifiers of the MethodHandle's underlying member.\n\t *\n\t * @return An int representing the member's modifiers, or -1 if the underlying member is not accessible.\n\t */\n\tint getModifiers();\n\n\t/**\n\t * Returns the reference kind of the MethodHandle. The possible reference kinds are the declared MethodHandleInfo.REF fields.\n\t *\n\t * @return Returns one of the defined reference kinds which represent the MethodHandle kind.\n\t */\n\tint getReferenceKind();\n\n\t/**\n\t * Returns whether the MethodHandle's underlying method or constructor has variable argument arity.\n\t *\n\t * @return whether the underlying method has variable arity\n\t */\n\tdefault boolean isVarArgs() {\n\t\t// Check whether the MethodHandle refers to a Method or Contructor (not Field)\n\t\tif (getReferenceKind() >= REF_invokeVirtual) {\n\t\t\treturn ((getModifiers() & MethodHandles.Lookup.VARARGS) != 0);\n\t\t}\n\t\treturn false;\n\t}\n\n\t/**\n\t * Reflects the underlying member as a Method, Field or Constructor. The member must be accessible to the provided lookup object.\n\t * Public members are reflected as if by <code>getMethod</code>, <code>getField</code> or <code>getConstructor</code>.\n\t * Non-public members are reflected as if by <code>getDeclearedMethod</code>, <code>getDeclaredField</code> or <code>getDeclaredConstructor</code>.\n\t *\n\t * @param expected The expected type of the returned Member\n\t * @param lookup The lookup that was used to create the MethodHandle, or a lookup object with equivalent access\n\t * @return A Method, Field or Constructor representing the underlying member of the MethodHandle\n\t * @throws NullPointerException If either argument is null\n\t * @throws IllegalArgumentException If the underlying member is not accessible to the provided lookup object\n\t * @throws ClassCastException If the underlying member is not of the expected type\n\t */\n\t<T extends java.lang.reflect.Member> T reflectAs(Class<T> expected, MethodHandles.Lookup lookup);\n\n\t/**\n\t * Returns a string representing the equivalent bytecode for the referenceKind.\n\t *\n\t * @param referenceKind The referenceKind to lookup\n\t * @return a String representing the equivalent bytecode\n\t * @throws IllegalArgumentException If the provided referenceKind is invalid\n\t */\n\tstatic String referenceKindToString(int referenceKind) throws IllegalArgumentException {\n\t\tswitch(referenceKind) {\n\t\tcase REF_getField: \t\t\treturn \"getField\"; //$NON-NLS-1$\n\t\tcase REF_getStatic: \t\treturn \"getStatic\"; //$NON-NLS-1$\n\t\tcase REF_putField: \t\t\treturn \"putField\"; //$NON-NLS-1$\n\t\tcase REF_putStatic: \t\treturn \"putStatic\"; //$NON-NLS-1$\n\t\tcase REF_invokeVirtual: \treturn \"invokeVirtual\"; //$NON-NLS-1$\n\t\tcase REF_invokeStatic: \t\treturn \"invokeStatic\"; //$NON-NLS-1$\n\t\tcase REF_invokeSpecial: \treturn \"invokeSpecial\"; //$NON-NLS-1$\n\t\tcase REF_newInvokeSpecial: \treturn \"newInvokeSpecial\"; //$NON-NLS-1$\n\t\tcase REF_invokeInterface: \treturn \"invokeInterface\"; //$NON-NLS-1$\n\t\t}\n\t\t// K0582 = Reference kind \"{0\"} is invalid\n\t\tthrow new IllegalArgumentException(com.ibm.oti.util.Msg.getString(\"K0582\", referenceKind)); //$NON-NLS-1$\n\t}\n\n\t/**\n\t * Answers a string containing a concise, human-readable description of the receiver.\n\t *\n\t * @param kind the reference kind, one of the declared MethodHandleInfo.REF fields.\n\t * @param defc the class where the member is declared\n\t * @param name the name of the member\n\t * @param type the member's MethodType\n\t * @return a String of the format \"K C.N:MT\"\n\t */\n\tstatic String toString(int kind, Class<?> defc, String name, MethodType type) {\n\t\treturn referenceKindToString(kind) + \" \" + defc.getName() + \".\" + name + \":\" + type; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$\n\t}\n\n}", "public void andThisIsAMethodName(){}", "String getAccess();", "String getAccess();", "@Override\n\tpublic int getFlags() {\n\t\treturn heldObj.getFlags();\n\t}", "private Method getPrivateMethodFromAtrManager(String methodName, Class<?>... argClasses) throws Exception {\n\t\tMethod method = AttributesManagerBlImpl.class.getDeclaredMethod(methodName, argClasses);\n\t\tmethod.setAccessible(true);\n\t\treturn method;\n\t}", "public String getAccess();", "public void testMethodInfo886() throws Exception {\n\t\tClassInfo var2776 = instantiateClassInfo426();\n\t\tLocalField var2777 = instantiateLocalField425();\n\t\tList<ClassInfo> var2764 = Collections.emptyList();\n\t\tList<ParameterInfo> var2766 = Collections.emptyList();\n\t\tList<LocalVariableInfo> var2767 = Collections.emptyList();\n\t\tList<Operation> var2768 = Collections.emptyList();\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tMethodInfo var2778 = new MethodInfo(var2776, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList());\n\t\tvar2777.getDescription();\n\t\tvar2777.getDescription();\n\t\tClassInfo var2765 = new ClassInfo(\"super\", false, null, var2764, null);\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tClassInfo var2771 = new ClassInfo(\"super\", false, var2765, var2764,\n\t\t\t\tnull);\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2776.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2776.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2776.getSetters();\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2776.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2776.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2776.getSetters();\n\t\tvar2778.isSetter();\n\t\tvar2778.isSetter();\n\t}", "@Override\n public MethodDescriptor[] getMethodDescriptors() {\n return getMdescriptor();\n }", "private RubyArray instance_methods(IRubyObject[] args, final Visibility visibility, boolean not, boolean useSymbols) {\n boolean includeSuper = args.length > 0 ? args[0].isTrue() : true;\n Ruby runtime = getRuntime();\n RubyArray ary = runtime.newArray();\n Set<String> seen = new HashSet<String>();\n \n populateInstanceMethodNames(seen, ary, visibility, not, useSymbols, includeSuper);\n \n return ary;\n }", "public void testMethodInfo887() throws Exception {\n\t\tClassInfo var2782 = instantiateClassInfo428();\n\t\tLocalField var2783 = instantiateLocalField427();\n\t\tList<ClassInfo> var2764 = Collections.emptyList();\n\t\tList<ParameterInfo> var2766 = Collections.emptyList();\n\t\tList<LocalVariableInfo> var2767 = Collections.emptyList();\n\t\tList<Operation> var2768 = Collections.emptyList();\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tMethodInfo var2784 = new MethodInfo(var2782, \"voidX()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList());\n\t\tvar2783.getDescription();\n\t\tvar2783.getDescription();\n\t\tClassInfo var2765 = new ClassInfo(\"super\", false, null, var2764, null);\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tClassInfo var2771 = new ClassInfo(\"super\", false, var2765, var2764,\n\t\t\t\tnull);\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2782.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2782.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2782.getSetters();\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2782.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2782.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2782.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2784.isSetter();\n\t\tvar2784.isSetter();\n\t}", "public String methodBase() {\n\t\tString tmp = name;\n\t\ttmp = tmp.replaceFirst(\"^get\", \"\");\n\t\ttmp = tmp.replaceFirst(\"^is\", \"\");\n\t\treturn tmp.substring(0,1).toLowerCase()+tmp.substring(1);\n\t}", "public int getModifiers() {\n return mod;\n }", "MethodName getMethod();", "boolean isAccessed (ClassMember attr) {\r\n if (accessed_attributes == null) {\r\n accessed_attributes = new java.util.Vector ();\r\n } else if (accessed_attributes.contains (attr)) {\r\n return true;\r\n } \r\n\r\n accessed_attributes.addElement (attr);\r\n return false;\r\n }", "protected void updateFlags() {\n USE_CANNY = USE_CANNY && mainInterface.DEBUG_FRAME;\n DEBUG_PREP_FRAME = DEBUG_PREP_FRAME && mainInterface.DEBUG_FRAME;\n DEBUG_CONTOURS = DEBUG_CONTOURS && mainInterface.DEBUG_FRAME;\n DEBUG_POLY = DEBUG_POLY && mainInterface.DEBUG_FRAME;\n DEBUG_DRAW_MARKERS = DEBUG_DRAW_MARKERS && mainInterface.DEBUG_FRAME;\n DEBUG_DRAW_MARKER_ID = DEBUG_DRAW_MARKER_ID && mainInterface.DEBUG_FRAME;\n DEBUG_DRAW_SAMPLING = DEBUG_DRAW_SAMPLING && mainInterface.DEBUG_FRAME;\n }", "private void resetFlag(short r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00f2 in method: android.location.GpsClock.resetFlag(short):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.location.GpsClock.resetFlag(short):void\");\n }", "public GetterSetterInliner(CodeAttrInfoEditor codeAttrInfoEditor,\n boolean allowAccessModification)\n {\n this.codeAttrInfoEditor = codeAttrInfoEditor;\n this.allowAccessModification = allowAccessModification;\n }", "public static boolean canAccessFieldsDirectly(){\n return false; //TODO codavaj!!\n }", "public synchronized void setFlags(Flags newFlags, boolean set) throws MessagingException {\n/* 91 */ Flags oldFlags = (Flags)this.flags.clone();\n/* 92 */ super.setFlags(newFlags, set);\n/* 93 */ if (!this.flags.equals(oldFlags)) {\n/* 94 */ this.folder.notifyMessageChangedListeners(1, (Message)this);\n/* */ }\n/* */ }", "protected final boolean isMutable() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: android.icu.impl.coll.CollationDataBuilder.isMutable():boolean, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.icu.impl.coll.CollationDataBuilder.isMutable():boolean\");\n }", "Method getMethod();", "Method getMethod();", "public void setImportantForAccessibility(boolean important) {\n/* 1316 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public MethodPredicate withModifiers(int... modifiers) {\n this.withModifiers = Arrays.stream(modifiers).boxed().collect(Collectors.toList());\n return this;\n }", "@Override\n\t\t\tpublic MethodVisitor visitMethod(int access, String name, String desc, String signature, String[] exceptions) {\n\t\t\t\tboolean isSynthetic = ClassInfoUtils.checkAccess(access, Opcodes.ACC_SYNTHETIC);\n\t\t\t\tboolean isNative = ClassInfoUtils.checkAccess(access, Opcodes.ACC_NATIVE);\n\t\t\t\tboolean isInterface = ClassInfoUtils.checkAccess(access, Opcodes.ACC_INTERFACE);\n\t\t\t\tboolean isAbstract = ClassInfoUtils.checkAccess(access, Opcodes.ACC_ABSTRACT);\n\t\t\t\t\n\t\t\t\tMethodVisitor mv = super.visitMethod(access, name, desc, signature, exceptions);\n\t\t\t\tif (name.equals(\"toString\") && desc.equals(\"()Ljava/lang/String;\")) {\n\t\t\t\t\treturn mv;\n\t\t\t\t} else if (name.equals(\"equals\") && desc.equals(\"(Ljava/lang/Object;)Z\")) {\n\t\t\t\t\treturn mv;\n\t\t\t\t} else if (name.equals(\"hashCode\") && desc.equals(\"()I\")) {\n\t\t\t\t\treturn mv;\n\t\t\t\t} else if (isSynthetic || isNative || isInterface || isAbstract) {\n\t\t\t\t\treturn mv;\n\t\t\t\t} else {\n\t\t\t\t\tmv = new DependencyAnalyzer(className, \n\t\t\t\t\t\t\taccess, \n\t\t\t\t\t\t\tname, \n\t\t\t\t\t\t\tdesc, \n\t\t\t\t\t\t\tsignature, \n\t\t\t\t\t\t\texceptions, \n\t\t\t\t\t\t\tmv, \n\t\t\t\t\t\t\ttrue,\n\t\t\t\t\t\t\tfalse, \n\t\t\t\t\t\t\ttrue, \n\t\t\t\t\t\t\ttrue);\n\t\t\t\t\t//mv = new CalleeAnalyzer(className, access, name, desc, signature, exceptions, mv, true);\n\t\t\t\t\treturn mv;\n\t\t\t\t}\n\t\t\t}", "@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 13:02:04.534 -0500\", hash_original_method = \"E4DEB0C107DDB25A537EF0E89F1C04F8\", hash_generated_method = \"2E76AFD8C90588F5139C0C2D28CAEA05\")\n \nprivate static int translateCodingErrorAction(CodingErrorAction action) {\n if (action == CodingErrorAction.REPORT) {\n return 0;\n } else if (action == CodingErrorAction.IGNORE) {\n return 1;\n } else if (action == CodingErrorAction.REPLACE) {\n return 2;\n } else {\n throw new AssertionError(); // Someone changed the enum.\n }\n }", "private boolean makeFieldAccessible(Field f)\n {\n // See: https://stackoverflow.com/questions/46454995/#58834966\n Method getModule;\n try\n {\n getModule = Class.class.getMethod(\"getModule\");\n }\n catch (NoSuchMethodException e)\n {\n // We are on Java 8\n getModule = null;\n }\n if (getModule != null)\n {\n try\n {\n Object thisModule = getModule.invoke(this.getClass());\n Method isNamed = thisModule.getClass().getMethod(\"isNamed\");\n if (!(boolean) isNamed.invoke(thisModule))\n {\n Class fieldClass = f.getDeclaringClass().getClass();\n Object fieldModule = getModule.invoke(fieldClass);\n Method addOpens = fieldModule.getClass().getMethod(\n \"addOpens\", String.class, thisModule.getClass());\n Method getPackageName = fieldClass.getMethod(\"getPackageName\");\n addOpens.invoke(fieldModule, getPackageName.invoke(fieldClass), thisModule);\n }\n }\n catch (Throwable t)\n {\n if (t instanceof InvocationTargetException)\n {\n InvocationTargetException e = (InvocationTargetException) t;\n if (e.getCause() != null\n && e.getCause().getClass().getName().endsWith(\"IllegalCallerException\"))\n {\n if (outputLogger != null)\n {\n outputLogger.debug(\n PROCESS_ATTRIBUTE_CHANGE_MESSAGE + e.getCause().getMessage(),\n this.getClass().getName());\n }\n t = null;\n }\n }\n if (t != null)\n {\n throw new CargoException(\"Cannot set field accessibility for [\" + f + \"]\", t);\n }\n return false;\n }\n }\n try\n {\n f.setAccessible(true);\n return true;\n }\n catch (Throwable t)\n {\n if (t.getClass().getName().endsWith(\"InaccessibleObjectException\"))\n {\n if (outputLogger != null)\n {\n outputLogger.debug(\n PROCESS_ATTRIBUTE_CHANGE_MESSAGE + t.getMessage(),\n this.getClass().getName());\n }\n t = null;\n }\n if (t != null)\n {\n throw new CargoException(\"Cannot set field accessibility for [\" + f + \"]\", t);\n }\n return false;\n }\n }", "Builder addAccessibilityFeature(String value);", "public Method getMethod();", "Methodsig getMethod();", "public short getFlags() {\n\treturn flags;\n }", "public boolean isPropertyAccessorMethod(Method paramMethod, Class paramClass) {\n/* 225 */ String str1 = paramMethod.getName();\n/* 226 */ Class<?> clazz = paramMethod.getReturnType();\n/* 227 */ Class[] arrayOfClass1 = paramMethod.getParameterTypes();\n/* 228 */ Class[] arrayOfClass2 = paramMethod.getExceptionTypes();\n/* 229 */ String str2 = null;\n/* */ \n/* 231 */ if (str1.startsWith(\"get\")) {\n/* */ \n/* 233 */ if (arrayOfClass1.length == 0 && clazz != void.class && \n/* 234 */ !readHasCorrespondingIsProperty(paramMethod, paramClass)) {\n/* 235 */ str2 = \"get\";\n/* */ }\n/* */ }\n/* 238 */ else if (str1.startsWith(\"set\")) {\n/* */ \n/* 240 */ if (clazz == void.class && arrayOfClass1.length == 1 && (\n/* 241 */ hasCorrespondingReadProperty(paramMethod, paramClass, \"get\") || \n/* 242 */ hasCorrespondingReadProperty(paramMethod, paramClass, \"is\"))) {\n/* 243 */ str2 = \"set\";\n/* */ \n/* */ }\n/* */ }\n/* 247 */ else if (str1.startsWith(\"is\") && \n/* 248 */ arrayOfClass1.length == 0 && clazz == boolean.class && \n/* 249 */ !isHasCorrespondingReadProperty(paramMethod, paramClass)) {\n/* 250 */ str2 = \"is\";\n/* */ } \n/* */ \n/* */ \n/* */ \n/* 255 */ if (str2 != null && (\n/* 256 */ !validPropertyExceptions(paramMethod) || str1\n/* 257 */ .length() <= str2.length())) {\n/* 258 */ str2 = null;\n/* */ }\n/* */ \n/* */ \n/* 262 */ return (str2 != null);\n/* */ }", "public void setAllowedMethods(Method... allowed)\n\t{\n\t\tStringBuilder s = new StringBuilder();\n\t\tfor (int i = 0; i < allowed.length; i++)\n\t\t{\n\t\t\tif (i != 0)\n\t\t\t\ts.append(\", \");\n\t\t\ts.append(allowed[i]);\n\t\t}\n\t\t\n\t\tsetHeader(ALLOW, s.toString());\n\t}", "public int getAccess()\n {\n ensureLoaded();\n return m_flags.getAccess();\n }", "String getMethod();", "String getMethod();", "public void setDeclared(int r1, boolean r2) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: org.xml.sax.ext.Attributes2Impl.setDeclared(int, boolean):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: org.xml.sax.ext.Attributes2Impl.setDeclared(int, boolean):void\");\n }", "@Override\n\tpublic MethodVisitor visitMethod(int access, String name, String desc, String signature, String[] exceptions) {\n\t\tparsingMethod = new Method(name, desc, parsingClass);\n\t\tparsingClass.getMethods().add(parsingMethod);\n\t\treturn completeMethodVisitor;\n\t}", "public interface MethodInfo {\n\t/**\n\t * Returns the class which declared the method.\n\t */\n\tpublic ClassInfo declaringClass();\n\n\t/**\n\t * Returns the index into the constant pool of the name of the method.\n\t */\n\tpublic int nameIndex();\n\n\t/**\n\t * Returns the index into the constant pool of the type of the method.\n\t */\n\tpublic int typeIndex();\n\n\t/**\n\t * Sets the index into the constant pool of the name of the method.\n\t */\n\tpublic void setNameIndex(int index);\n\n\t/**\n\t * Set the index into the constant pool of the type of the method.\n\t * \n\t * @param index\n\t * The index into the constant pool of the type of the method.\n\t */\n\tpublic void setTypeIndex(int index);\n\n\t/**\n\t * Set the modifiers of the method. The values correspond to the constants\n\t * in the Modifiers class.\n\t * \n\t * @param modifiers\n\t * A bit vector of modifier flags for the method.\n\t * @see Modifiers\n\t */\n\tpublic void setModifiers(int modifiers);\n\n\t/**\n\t * Get the modifiers of the method. The values correspond to the constants\n\t * in the Modifiers class.\n\t * \n\t * @return A bit vector of modifier flags for the method.\n\t * @see Modifiers\n\t */\n\tpublic int modifiers();\n\n\t/**\n\t * Get the indices into the constant pool of the types of the exceptions\n\t * thrown by the method.\n\t * \n\t * @return The indices into the constant pool of the types of the exceptions\n\t * thrown by the method.\n\t */\n\tpublic int[] exceptionTypes();\n\n\t/**\n\t * Get the maximum height of the operand stack.\n\t * \n\t * @return The maximum height of the operand stack.\n\t */\n\tpublic int maxStack();\n\n\t/**\n\t * Set the maximum height of the operand stack.\n\t * \n\t * @param maxStack\n\t * The maximum height of the operand stack.\n\t */\n\tpublic void setMaxStack(int maxStack);\n\n\t/**\n\t * Get the maximum number of locals used in the method.\n\t * \n\t * @return The maximum number of locals used in the method.\n\t */\n\tpublic int maxLocals();\n\n\t/**\n\t * Set the maximum number of locals used in the method.\n\t * \n\t * @param maxLocals\n\t * The maximum number of locals used in the method.\n\t */\n\tpublic void setMaxLocals(int maxLocals);\n\n\t/**\n\t * Get the byte code array of the method.\n\t * \n\t * @return The byte code array of the method.\n\t */\n\tpublic byte[] code();\n\n\t/**\n\t * Set the byte code array of the method.\n\t * \n\t * @param code\n\t * The byte code array of the method.\n\t */\n\tpublic void setCode(byte[] code);\n\n\t/**\n\t * Get the line number debug info of the instructions in the method.\n\t * \n\t * @return The line numbers of the instructions in the method. The array\n\t * will be of size 0 if the method has no line number debug info.\n\t */\n\tpublic LineNumberDebugInfo[] lineNumbers();\n\n\t/**\n\t * Set the line number debug info of the instructions in the method.\n\t * \n\t * @param lineNumbers\n\t * The line numbers of the instructions in the method. The array\n\t * will be of size 0 if the method has no line number debug info.\n\t */\n\tpublic void setLineNumbers(LineNumberDebugInfo[] lineNumbers);\n\n\t/**\n\t * Get the local variable debug information for the method.\n\t * \n\t * @return The local variables in the method. The array will be of size 0 if\n\t * the method has no local variable debug info.\n\t */\n\tpublic LocalDebugInfo[] locals();\n\n\t/**\n\t * Set the local variables in the method.\n\t * \n\t * @param locals\n\t * The local variables in the method.\n\t */\n\tpublic void setLocals(LocalDebugInfo[] locals);\n\n\t/**\n\t * Get the exception handlers in the method.\n\t * \n\t * @return The exception handlers in the method.\n\t */\n\tpublic Catch[] exceptionHandlers();\n\n\t/**\n\t * Set the exception handlers in the method.\n\t * \n\t * @param exceptions\n\t * The exception handlers in the method.\n\t */\n\tpublic void setExceptionHandlers(Catch[] exceptions);\n\n\t/**\n\t * Creates a clone of this <tt>MethodInfo</tt> except that its declaring\n\t * class does not know about it.\n\t */\n\tpublic Object clone();\n}", "public final native void setFlags(int value) /*-{\n\t\tvar jso = [email protected]::getJsObj()();\n\t\tjso.flags = value;\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}", "public void setModifierFlag(int flag) {\n\t\tthis.modifier = flag;\n\t}", "public void setFlags(final Flags flags);", "public int getFlags() {\n return flags;\n }", "public List<MethodInfo> getMethods() { \n return lstMethodInfo;\n }", "private void checkMethodPermission(HandlerMethod handlerMethod) {\n RequirePermission annotation = handlerMethod.getMethodAnnotation(RequirePermission.class);\n String str = annotation.value();\n System.out.println(\"-----+++++++\");\n }", "public void testCreateMethodWithModifiersAndExceptions() {\n IDOMMethod method = this.domFactory.createMethod();\n method.setName(\"foo\");\n method.setFlags(ClassFileConstants.AccPrivate);\n method.setExceptions(new String[] { \"java.lang.IllegalArgumentException\", \"java.io.FileNotFoundExcpetion\" });\n assertSourceEquals(\"source code incorrect\", \"private void foo() throws java.lang.IllegalArgumentException, java.io.FileNotFoundExcpetion {\\n\" + \"}\\n\", method.getContents());\n }", "public interface C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }", "public boolean visit(MethodDeclaration decl, ClassScope scope) {\r\n\t\t\tif (decl instanceof InterTypeFieldDeclaration) \r\n\t\t\t\tvalue -= 2;\r\n\r\n\t\t\treturn super.visit(decl, scope);\r\n\t\t}", "private void resetFlags(){\n\t\tint count = 0;\n\t\tif (partOfAPairedAlignment) count += Math.pow(2, 0);\n\t\tif (aProperPairedAlignment) count += Math.pow(2, 1);\n\t\tif (unmapped) count += Math.pow(2, 2);\n\t\tif (mateUnMapped) count += Math.pow(2, 3);\n\t\tif (reverseStrand) count += Math.pow(2, 4);\n\t\tif (mateReverseStrand) count += Math.pow(2, 5);\n\t\tif (firstPair) count += Math.pow(2, 6);\n\t\tif (secondPair) count += Math.pow(2, 7);\n\t\tif (notAPrimaryAlignment) count += Math.pow(2, 8);\n\t\tif (failedQC) count += Math.pow(2, 9);\n\t\tif (aDuplicate) count += Math.pow(2, 10);\n\t\tflags = (short) count;\n\t\tflagResetNeeded = false;\n\t\t\n\t}", "private void mappingMethods() throws SecurityException, NoSuchMethodException{\n\t\tmappingMethodGet();\n\t\tmappingMethodSet();\n\t}", "private void setBooleanFlags (short flags){\n\t\tthis.flags = flags;\n\t\tflagResetNeeded = false;\n\t\tpartOfAPairedAlignment = isPartOfAPairedAlignment();\n\t\taProperPairedAlignment = isAProperPairedAlignment();\n\t\tunmapped = isUnmapped();\n\t\tmateUnMapped = isMateUnMapped();\n\t\treverseStrand = isReverseStrand();\n\t\tmateReverseStrand = isMateReverseStrand();\n\t\tfirstPair = isFirstPair();\n\t\tsecondPair = isSecondPair();\n\t\tnotAPrimaryAlignment = isNotAPrimaryAlignment();\n\t\tfailedQC = failedQC();\n\t\taDuplicate = isADuplicate();\n\t\t\n\t}" ]
[ "0.6459756", "0.61941135", "0.6124305", "0.6054357", "0.6038953", "0.6038953", "0.58764786", "0.58633894", "0.586231", "0.586231", "0.58388376", "0.5695067", "0.5662682", "0.5656152", "0.56525016", "0.5636611", "0.5633119", "0.560779", "0.560779", "0.55963707", "0.5585593", "0.5527335", "0.55259675", "0.55178744", "0.5497699", "0.5462038", "0.5460664", "0.54553145", "0.54315555", "0.5428095", "0.5423939", "0.5423252", "0.5405602", "0.5403003", "0.5399762", "0.5359158", "0.5347791", "0.5321582", "0.5317954", "0.53177696", "0.53112406", "0.5308062", "0.53007996", "0.5287687", "0.52810687", "0.5266063", "0.5265689", "0.52653694", "0.5262753", "0.52625436", "0.5258052", "0.5258052", "0.52249104", "0.52223516", "0.52184665", "0.52071375", "0.5204527", "0.5204301", "0.5195871", "0.51853406", "0.5169663", "0.51661706", "0.5161185", "0.51575136", "0.51456904", "0.5145592", "0.51448935", "0.51339334", "0.5129795", "0.51288617", "0.51288617", "0.51249367", "0.51229906", "0.51223254", "0.51202285", "0.5116746", "0.5112507", "0.51069206", "0.5106849", "0.5105911", "0.5099613", "0.50912666", "0.5082884", "0.5078926", "0.5078926", "0.5075503", "0.507498", "0.5074663", "0.50737566", "0.5067883", "0.50673777", "0.5066441", "0.50620204", "0.5058641", "0.50536793", "0.50520235", "0.50424683", "0.50392544", "0.5032849", "0.50326675", "0.5027472" ]
0.0
-1
Return the bytecode for the return type of this method.
public BCClass getReturnBC() { return getProject().loadClass(getReturnName(), getClassLoader()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public com.google.protobuf.ByteString\n getReturnTypeBytes() {\n Object ref = returnType_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n returnType_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "com.google.protobuf.ByteString\n getReturnTypeBytes();", "public com.google.protobuf.ByteString\n getReturnTypeBytes() {\n Object ref = returnType_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n returnType_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "Type getReturnType () { return return_type; }", "public Type getReturnType() {\n/* 227 */ return Type.getReturnType(this.desc);\n/* */ }", "String getReturnType();", "@Override\n public String getReturnType() {\n Object ref = returnType_;\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 returnType_ = s;\n return s;\n }\n }", "public String getReturnType() {\n Object ref = returnType_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n returnType_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }", "public String getReturnType() {\n return returnType;\n }", "public String getReturnType() {\n return returnType;\n }", "TypeDescription getReturnType();", "Type getReturnType();", "public String returnType() {\n return this.data.returnType();\n }", "@Override\n public HxType getReturnType() {\n return toMethod().getReturnType();\n }", "public Class<?> getSourceReturnType() {\n return returnType;\n }", "public String getReturnType() {\n\t\treturn returnType;\n\t}", "public char[] getReturnTypeName() {\n return returnTypeName;\n }", "public byte getCode();", "public abstract Code vreturn();", "public Class<?> getReturnType() {\r\n\t\treturn returnType;\r\n\t}", "@Override\n\tpublic TipoInstrucao getTipoInstrucao() {\n\t\treturn TipoInstrucao.RETURN;\n\t}", "Code getCode();", "public byte[] code();", "public TypeConstraint getReturnType() {\n return new TypeConstraint(executable.getReturnType());\n }", "com.google.protobuf.ByteString getByteCode();", "@NonNull\n public byte[] getBytecode() {\n return mBytes;\n }", "com.google.protobuf.ByteString\n getCodeBytes();", "com.google.protobuf.ByteString\n getCodeBytes();", "@Override \n\tpublic String visitMethod(MethodContext ctx){\n\t\ttable.enterScope();\n\t\tString declaredRetType=visit(ctx.getChild(0));\n\t\tvisit(ctx.getChild(7));\t\t\n\t\tString retType=visit(ctx.getChild(8));\n\t\tif(!declaredRetType.equals(retType))throw new RuntimeException(\"Method must return \"+ declaredRetType);\n\t\ttable.exitScope();\n\t\treturn declaredRetType;\n\t}", "public ITypeInfo getReturnType();", "public Element compileReturn() {\n\t\tElement ele = null;\n\t\tString token, tokenType;\n\n\t\tElement returnParent = document.createElement(\"returnStatement\");\n\n\t\t// return keyword\n\t\ttokenType = jTokenizer.tokenType();\n\t\tele = createXMLnode(tokenType);\n\t\treturnParent.appendChild(ele);\n\n\t\tjTokenizer.advance();\n\t\ttoken = jTokenizer.returnTokenVal();\n\n\t\t// Return can either just be nothing or a variable/expression etc.\n\t\tif (token.equals(\";\")) {\n\t\t\t// Empty return, pushing 0 on stack\n\t\t\twriter.writePush(\"constant\", 0);\n\n\t\t\ttokenType = jTokenizer.tokenType();\n\t\t\tele = createXMLnode(tokenType);\n\t\t\treturnParent.appendChild(ele);\n\n\t\t\twriter.writeReturn();\n\t\t\treturn returnParent;\n\t\t} \n\t\t\n\t\t//Push the expression onto the stack\n\t\telse {\n\t\t\treturnParent.appendChild(compileExpression());\n\t\t}\n\n\t\t// ;\n\t\tjTokenizer.advance();\n\t\ttokenType = jTokenizer.tokenType();\n\t\tele = createXMLnode(tokenType);\n\t\treturnParent.appendChild(ele);\n\t\t\n\t\t//Write return statement\n\t\twriter.writeReturn();\n\n\t\treturn returnParent;\n\t}", "@Nonnull\n public static UBL23WriterBuilder <InstructionForReturnsType> instructionForReturns ()\n {\n return UBL23WriterBuilder.create (InstructionForReturnsType.class);\n }", "public static native short getReturnType(short remote_method_info);", "public Symbol getReturnSymbol() {\n\t\treturn this.returnSymbol;\n\t}", "public Type getType(ConstantPoolGen cp) {\n/* 79 */ return new ReturnaddressType(physicalSuccessor());\n/* */ }", "@Override\n\tpublic char javaMethodBaseWithUCharRet() {\n\t\treturn 0;\n\t}", "public int methodName (...) {\r\n // method body with a return statement\r\n}", "@Override\n\tpublic char javaMethodBaseWithCharRet() {\n\t\treturn 0;\n\t}", "@Deprecated public TypeRef getReturnType(){\n return this.returnType!=null?this.returnType.build():null;\n }", "public String getReturnTypeName() {\n return returnTypeName;\n }", "Variable getReturn();", "@Override\n\t/**\n\t * returns a String \"no\" because a class does not have a data or return type\n\t * \n\t * @return \"no\"\n\t */\n\tpublic String getReturnType() {\n\t\treturn \"no\";\n\t}", "public byte getType() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00f0 in method: android.location.GpsClock.getType():byte, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.location.GpsClock.getType():byte\");\n }", "java.lang.String getCode();", "java.lang.String getCode();", "public void testCreateMethodWithReturnType() {\n IDOMMethod method = this.domFactory.createMethod();\n method.setName(\"foo\");\n method.setReturnType(\"String\");\n assertSourceEquals(\"source code incorrect\", \"public String foo() {\\n\" + \"}\\n\", method.getContents());\n }", "public byte[] getByteCode() {\n return byteCode;\n }", "public Class<?> getTargetReturnType() {\n return targetReturnType;\n }", "public String getReturnType() {\n String type;\r\n if (this.getTypeIdentifier() != null) { //Collection<Entity> , Collection<String>\r\n type = this.getTypeIdentifier().getVariableType();\r\n } else {\r\n type = classHelper.getClassName();\r\n }\r\n\r\n if ((this.getTypeIdentifier() == null\r\n || getRelation() instanceof SingleRelationAttributeSnippet)\r\n && functionalType) {\r\n if (isArray(type)) {\r\n type = \"Optional<\" + type + '>';\r\n } else {\r\n type = \"Optional<\" + getWrapperType(type) + '>';\r\n }\r\n }\r\n return type;\r\n }", "String getCode();", "String getCode();", "String getCode();", "String getCode();", "String getCode();", "public void visitReturnInstruction(ReturnInstruction o){\n\t\tif (o instanceof RETURN){\n\t\t\treturn;\n\t\t}\n\t\tif (o instanceof ARETURN){\n\t\t\tif (stack().peek() == Type.NULL){\n\t\t\t\treturn;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tif (! (stack().peek() instanceof ReferenceType)){\n\t\t\t\t\tconstraintViolated(o, \"Reference type expected on top of stack, but is: '\"+stack().peek()+\"'.\");\n\t\t\t\t}\n\t\t\t\treferenceTypeIsInitialized(o, (ReferenceType) (stack().peek()));\n\t\t\t\t//ReferenceType objectref = (ReferenceType) (stack().peek());\n\t\t\t\t// TODO: This can only be checked if using Staerk-et-al's \"set of object types\" instead of a\n\t\t\t\t// \"wider cast object type\" created during verification.\n\t\t\t\t//if (! (objectref.isAssignmentCompatibleWith(mg.getType())) ){\n\t\t\t\t//\tconstraintViolated(o, \"Type on stack top which should be returned is a '\"+stack().peek()+\"' which is not assignment compatible with the return type of this method, '\"+mg.getType()+\"'.\");\n\t\t\t\t//}\n\t\t\t}\n\t\t}\n\t\telse{\n\t\t\tType method_type = mg.getType();\n\t\t\tif (method_type == Type.BOOLEAN ||\n\t\t\t\t\tmethod_type == Type.BYTE ||\n\t\t\t\t\tmethod_type == Type.SHORT ||\n\t\t\t\t\tmethod_type == Type.CHAR){\n\t\t\t\tmethod_type = Type.INT;\n\t\t\t}\n\t\t\tif (! ( method_type.equals( stack().peek() ))){\n\t\t\t\tconstraintViolated(o, \"Current method has return type of '\"+mg.getType()+\"' expecting a '\"+method_type+\"' on top of the stack. But stack top is a '\"+stack().peek()+\"'.\");\n\t\t\t}\n\t\t}\n\t}", "public static boolean returnType(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"returnType\")) return false;\n boolean r;\n Marker m = enter_section_(b, l, _NONE_, RETURN_TYPE, \"<return type>\");\n r = returnType_0(b, l + 1);\n if (!r) r = type(b, l + 1);\n exit_section_(b, l, m, r, false, null);\n return r;\n }", "public TypeToken<?> returnType() {\n return this.modelType;\n }", "com.google.protobuf.ByteString getWasmByteCode();", "public List<String> getReturnTypes() {\n if (returnTypes.isEmpty()) {\n return Lists.newArrayList(\"void\");\n } else {\n return new ArrayList<>(returnTypes);\n }\n }", "public String returnKind(){ return kind; }", "@Override\n\tpublic short javaMethodBaseWithShortRet() {\n\t\treturn 0;\n\t}", "public static void typeCheckReturn(PegObject node) {\n\t\tSymbolTable gamma = node.getSymbolTable();\n\t\tDefinedNameFunctor f = gamma.getName(\"return\");\n\t\tBunType returnType = f.getReturnType(BunType.UntypedType);\n\t\tSystem.out.println(\"returnType=\"+returnType);\n\t\tgamma.checkTypeAt(node, 0, returnType, false);\n\t}", "public void setReturnType(String returnType) {\n this.returnType = returnType;\n }", "@Override\r\n\tpublic List getCodeType() throws Exception {\n\t\treturn codeMasterService.getCodeType();\r\n\t}", "int getCode();", "int getCode();", "int getCode();", "private void return_(ReturnStmt stmt) {\n Value op = immediate(stmt, (Immediate) stmt.getOp());\n Value value = narrowFromI32Value(function.getType().getReturnType(), op);\n function.add(new Ret(value));\n }", "protected Type getJoinPointReturnType() {\n return Type.getType(m_calleeMemberDesc);\n }", "private ReturnStmt returnStmt() {\n Expr myExpr = null;\n \n lexer.nextToken();\n \n if (isFunction) myExpr = expr();\n \n return new ReturnStmt(myExpr); \n }", "public String methodReturn() {\n\t\t\n\t\treturn \"Executing a method which returns a String Text\";\n\t}", "public Object getReturnValue() {\n return returnValue;\n }", "public String getReturn() {\n\t\treturn stringReturn;\n\t}", "public abstract Class<?> getVTLReturnTypeFor(Class<?> clazz);", "private void parseReturnStatement() {\n check(Token.RETURN);\n\n if (EXPR_STARTERS.contains(nextToken.kind)) {\n Struct type = parseExpr().type;\n if (!(type.assignableTo(currentMethod.type))) {\n error(\"Invalid expression type in return statement\");\n }\n } else {\n if (currentMethod.type != SymbolTable.STRUCT_NONE) {\n error(\"Missing return value in return statement\");\n }\n }\n\n check(Token.SEMICOLON);\n\n code.put(Code.OP_EXIT);\n code.put(Code.OP_RETURN);\n }", "public void setReturn(BCClass type) {\n setReturn(type.getName());\n }", "public short getCode() {\n/* 92 */ return this.code;\n/* */ }", "public int getCode();", "public Instruction readNextInstruction() {\n // method -> method's code\n byte[] bytecode = this.getJvmMethod().getCode();\n\n int pc = this.getNextPc();\n BytecodeReader bytecodeReader = new BytecodeReader(Arrays.copyOfRange(bytecode, pc, bytecode.length));\n\n Instruction instruction = Instruction.readInstruction(bytecodeReader);\n logger.debug(\"read instruction: {}\", instruction);\n\n // fetch operands (may fetch nothing)\n instruction.fetchOperands(bytecodeReader);\n\n return instruction;\n }", "public Class returnedClass();", "default int foo (){\n System.out.println(\"this is bytecode G1.foo()\");\n return -1;\n }", "Integer getCode();", "public String getCode();", "public String getCode();", "public int returnTypeArity() {\n return this.arity;\n }", "public Object visitReturnStmt(GoIRReturnStmtNode node) {\n\t\t \treturn node.getChild().accept(this);\n\t}", "public abstract int[] getReturnTypes();", "public void setSourceReturnType(Class<?> type) {\n this.returnType = type;\n }", "public Type[] getReturnTypes() {\n \t\treturn actualReturnTypes;\n \t}", "public boolean returnTypeMatch(Method m, String retType) {\n Class ret = m.getReturnType();\n Class retTypeClass = checkIfPrimitive(retType);\n if (retTypeClass == null);\n try {\n retTypeClass = Class.forName(retType);\n } catch (ClassNotFoundException e) {\n //do nothing. If return type is incorrect, it will be caught by\n // another test in verifier.\n }\n if(retTypeClass != null) //this may happen if retType is\n return retTypeClass.equals(ret);//non-primitive and invalid\n else return false;\n }", "public CodeItem getCodeItem() {\n\t\treturn method.getCodeItem();\n\t}", "public Builder setReturnTypeBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n\n returnType_ = value;\n onChanged();\n return this;\n }", "public ByteVector getCodeItemCode() {\n\t\treturn codeItem.getCodeItemCode();\n\t}", "int getCodeValue();", "public boolean getSaveBytecode();", "public ReturnStmt return_stmt() {\n if (lexer.token != Symbol.RETURN) {\n error.signal(\"Missing RETURN keyword at return statement\");\n }\n lexer.nextToken();\n Expr e = expr();\n if (lexer.token != Symbol.SEMICOLON) {\n error.signal(\"Semicolon expected after return statement\");\n }\n lexer.nextToken();\n return new ReturnStmt(e);\n }", "public ITravelClassType getClassCode();", "@Override\n\tpublic int javaMethodBaseWithIntRet() {\n\t\treturn 0;\n\t}", "public final JavaliParser.returnStmt_return returnStmt() throws RecognitionException {\n\t\tJavaliParser.returnStmt_return retval = new JavaliParser.returnStmt_return();\n\t\tretval.start = input.LT(1);\n\n\t\tObject root_0 = null;\n\n\t\tToken string_literal74=null;\n\t\tToken char_literal76=null;\n\t\tParserRuleReturnScope expr75 =null;\n\n\t\tObject string_literal74_tree=null;\n\t\tObject char_literal76_tree=null;\n\t\tRewriteRuleTokenStream stream_97=new RewriteRuleTokenStream(adaptor,\"token 97\");\n\t\tRewriteRuleTokenStream stream_77=new RewriteRuleTokenStream(adaptor,\"token 77\");\n\t\tRewriteRuleSubtreeStream stream_expr=new RewriteRuleSubtreeStream(adaptor,\"rule expr\");\n\n\t\ttry {\n\t\t\t// /home/luca/svn-repos/cd_students/2015ss/master/CD2_A1/src/cd/parser/Javali.g:396:2: ( 'return' ( expr )? ';' -> ^( ReturnStmt ( expr )? ) )\n\t\t\t// /home/luca/svn-repos/cd_students/2015ss/master/CD2_A1/src/cd/parser/Javali.g:396:5: 'return' ( expr )? ';'\n\t\t\t{\n\t\t\tstring_literal74=(Token)match(input,97,FOLLOW_97_in_returnStmt1298); \n\t\t\tstream_97.add(string_literal74);\n\n\t\t\t// /home/luca/svn-repos/cd_students/2015ss/master/CD2_A1/src/cd/parser/Javali.g:396:14: ( expr )?\n\t\t\tint alt22=2;\n\t\t\tint LA22_0 = input.LA(1);\n\t\t\tif ( (LA22_0==BooleanLiteral||LA22_0==DecimalNumber||LA22_0==FloatNumber||LA22_0==HexNumber||LA22_0==Identifier||LA22_0==65||LA22_0==69||LA22_0==72||LA22_0==74||LA22_0==94||LA22_0==98) ) {\n\t\t\t\talt22=1;\n\t\t\t}\n\t\t\tswitch (alt22) {\n\t\t\t\tcase 1 :\n\t\t\t\t\t// /home/luca/svn-repos/cd_students/2015ss/master/CD2_A1/src/cd/parser/Javali.g:396:14: expr\n\t\t\t\t\t{\n\t\t\t\t\tpushFollow(FOLLOW_expr_in_returnStmt1300);\n\t\t\t\t\texpr75=expr();\n\t\t\t\t\tstate._fsp--;\n\n\t\t\t\t\tstream_expr.add(expr75.getTree());\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\n\t\t\t}\n\n\t\t\tchar_literal76=(Token)match(input,77,FOLLOW_77_in_returnStmt1303); \n\t\t\tstream_77.add(char_literal76);\n\n\t\t\t// AST REWRITE\n\t\t\t// elements: expr\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// 397:3: -> ^( ReturnStmt ( expr )? )\n\t\t\t{\n\t\t\t\t// /home/luca/svn-repos/cd_students/2015ss/master/CD2_A1/src/cd/parser/Javali.g:397:6: ^( ReturnStmt ( expr )? )\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(ReturnStmt, \"ReturnStmt\"), root_1);\n\t\t\t\t// /home/luca/svn-repos/cd_students/2015ss/master/CD2_A1/src/cd/parser/Javali.g:397:20: ( expr )?\n\t\t\t\tif ( stream_expr.hasNext() ) {\n\t\t\t\t\tadaptor.addChild(root_1, stream_expr.nextTree());\n\t\t\t\t}\n\t\t\t\tstream_expr.reset();\n\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}", "public int getRet() {\n\t\treturn ret;\n\t}" ]
[ "0.71736693", "0.70435953", "0.7027102", "0.7017667", "0.68015736", "0.6663439", "0.665727", "0.6624836", "0.6619939", "0.6523282", "0.6496446", "0.6488567", "0.6466035", "0.64510906", "0.64445114", "0.639526", "0.6364623", "0.63451564", "0.6241815", "0.61790085", "0.6156553", "0.61076057", "0.61040914", "0.6101683", "0.6022161", "0.6005125", "0.5992979", "0.59641325", "0.59502465", "0.5930195", "0.5919084", "0.58809453", "0.5843994", "0.58332217", "0.5819427", "0.5818913", "0.58170784", "0.5809484", "0.5808901", "0.58053434", "0.57900274", "0.5755107", "0.57527894", "0.57384336", "0.57384336", "0.5715205", "0.5567734", "0.5556669", "0.55515724", "0.5540769", "0.5540769", "0.5540769", "0.5540769", "0.5540769", "0.5531235", "0.5528879", "0.55233246", "0.5501176", "0.5491689", "0.5482765", "0.5482077", "0.54639834", "0.54627544", "0.54604644", "0.545409", "0.545409", "0.545409", "0.5443887", "0.5438113", "0.5436597", "0.5406276", "0.5399366", "0.53804857", "0.53468305", "0.53452027", "0.53445756", "0.533947", "0.53392637", "0.53371567", "0.5333403", "0.5332853", "0.53234315", "0.5303257", "0.5303257", "0.5298308", "0.5295917", "0.52949566", "0.5286311", "0.52752703", "0.52687246", "0.52639353", "0.52614594", "0.52527773", "0.5243609", "0.52329445", "0.5222155", "0.52182317", "0.5211224", "0.5210448", "0.52063125" ]
0.56942123
46
Set the return type of this method.
public void setReturn(String name) { setDescriptor(getProject().getNameCache().getDescriptor(name, getParamNames())); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setReturn(Class type) {\n setReturn(type.getName());\n }", "public void setReturnType(String returnType) {\n this.returnType = returnType;\n }", "public void setReturn(BCClass type) {\n setReturn(type.getName());\n }", "public void setSourceReturnType(Class<?> type) {\n this.returnType = type;\n }", "public Builder setReturnType(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n returnType_ = value;\n onChanged();\n return this;\n }", "public void setReturn(int returnType) {\n switch (returnType) {\n case DomainApiReturn.JSON:\n this.returnType = \"json\";\n break;\n case DomainApiReturn.XML:\n this.returnType = \"xml\";\n break;\n case DomainApiReturn.RT:\n this.returnType = \"rt\";\n break;\n }\n }", "public void setTargetReturnType(Class<?> type) {\n this.targetReturnType = type;\n }", "public void setReturnTypeName(String returnTypeName) {\n this.returnTypeName = returnTypeName;\n }", "Type getReturnType () { return return_type; }", "public void setType(String fieldReturnType);", "@Override\n\t/**\n\t * does nothing for classes as they do not have return types or data types\n\t */\n\tpublic void setReturnType(String s) {\n\n\t}", "public String getReturnTypeName() {\n return returnTypeName;\n }", "public void setReturnTypeName(char[] name) {\n returnTypeName = name;\n }", "public String getReturnType() {\n return returnType;\n }", "Type getReturnType();", "public Class<?> getReturnType() {\r\n\t\treturn returnType;\r\n\t}", "public String getReturnType() {\n return returnType;\n }", "public MethodSignature modifyReturnType(Klass type) {\n if (type == returnType) {\n return this;\n } else {\n return new MethodSignature(type, parameterTypes);\n }\n }", "String getReturnType();", "public String getReturnType() {\n\t\treturn returnType;\n\t}", "TypeDescription getReturnType();", "public MethodPredicate withReturnType(Class<?> returnType) {\n this.returnType = returnType;\n return this;\n }", "public Class<?> getSourceReturnType() {\n return returnType;\n }", "public Builder clearReturnType() {\n\n returnType_ = getDefaultInstance().getReturnType();\n onChanged();\n return this;\n }", "@Override\n public com.google.protobuf.ByteString\n getReturnTypeBytes() {\n Object ref = returnType_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n returnType_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public char[] getReturnTypeName() {\n return returnTypeName;\n }", "public Builder setReturnTypeBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n\n returnType_ = value;\n onChanged();\n return this;\n }", "public String returnType() {\n return this.data.returnType();\n }", "public com.google.protobuf.ByteString\n getReturnTypeBytes() {\n Object ref = returnType_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n returnType_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public ITypeInfo getReturnType();", "@Override\n public HxType getReturnType() {\n return toMethod().getReturnType();\n }", "public Type getReturnType() {\n/* 227 */ return Type.getReturnType(this.desc);\n/* */ }", "@Override\n public String getReturnType() {\n Object ref = returnType_;\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 returnType_ = s;\n return s;\n }\n }", "public FunctionTypeNode returnType(TypeNode returnType) {\n \t\tFunctionTypeNode_c n = (FunctionTypeNode_c) copy();\n \t\tn.returnType = returnType;\n \t\treturn n;\n \t}", "public String getReturnType() {\n Object ref = returnType_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n returnType_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }", "public void setReturnValue(Object value) {\n this.returnValue = value;\n }", "public Type[] getReturnTypes() {\n \t\treturn actualReturnTypes;\n \t}", "@Deprecated public TypeRef getReturnType(){\n return this.returnType!=null?this.returnType.build():null;\n }", "public Class<?> getTargetReturnType() {\n return targetReturnType;\n }", "public TypeToken<?> returnType() {\n return this.modelType;\n }", "void setReturnValue(Object returnValue) {\r\n this.returnValue = returnValue;\r\n }", "com.google.protobuf.ByteString\n getReturnTypeBytes();", "public List<String> getReturnTypes() {\n if (returnTypes.isEmpty()) {\n return Lists.newArrayList(\"void\");\n } else {\n return new ArrayList<>(returnTypes);\n }\n }", "@Override\n\t/**\n\t * returns a String \"no\" because a class does not have a data or return type\n\t * \n\t * @return \"no\"\n\t */\n\tpublic String getReturnType() {\n\t\treturn \"no\";\n\t}", "@SuppressWarnings(\"unchecked\")\r\n\tpublic void createReturnType(AST ast, AbstractTypeDeclaration td,\r\n\t\t\tMethodDeclaration md, String umlTypeName,\r\n\t\t\tString umlQualifiedTypeName, String sourceDirectoryPackageName) {\r\n\t\t// Choose type\r\n\t\tType chosenType = getChosenType(ast, umlTypeName, umlQualifiedTypeName,\r\n\t\t\t\tsourceDirectoryPackageName);\r\n\r\n\t\tmd.setReturnType2(chosenType);\r\n\t\ttd.bodyDeclarations().add(md);\r\n\t}", "@Override public Type type() {\n return type;\n }", "public MethodBuilder type(String type) {\n\t\tthis.type = type;\n\t\treturn this;\n\t}", "@Override\n public String getType() {\n return this.type;\n }", "public void setResult(String name, Class type) {\r\n DatabaseField returnField = (DatabaseField)getParameters().get(0);\r\n returnField.setName(name);\r\n returnField.setType(type);\r\n }", "public void setResult(String name, int type) {\r\n DatabaseField returnField = (DatabaseField)getParameters().get(0);\r\n returnField.setName(name);\r\n returnField.setSqlType(type);\r\n }", "@Override\n\tpublic String type() {\n\t\treturn type;\n\t}", "@Override\n public Type getType() {\n return type;\n }", "@Override\n public Type getType() {\n return type;\n }", "public boolean isSetReturnType() {\n return this.returnType != null;\n }", "public void testCreateMethodWithReturnType() {\n IDOMMethod method = this.domFactory.createMethod();\n method.setName(\"foo\");\n method.setReturnType(\"String\");\n assertSourceEquals(\"source code incorrect\", \"public String foo() {\\n\" + \"}\\n\", method.getContents());\n }", "public TypeConstraint getReturnType() {\n return new TypeConstraint(executable.getReturnType());\n }", "@Override\n\tpublic String getType() {\n\t\treturn type;\n\t}", "@Override\n\tpublic String getType() {\n\t\treturn type;\n\t}", "@Override\n\tpublic String getType() {\n\t\treturn type;\n\t}", "public abstract int[] getReturnTypes();", "public void setResultSetType(Class<? extends ResultSet> resultSetType)\r\n/* 40: */ {\r\n/* 41: 92 */ this.resultSetType = resultSetType;\r\n/* 42: */ }", "@Override\r\n\tpublic String getType() {\n\t\treturn type;\r\n\t}", "public String getReturnType() {\n String type;\r\n if (this.getTypeIdentifier() != null) { //Collection<Entity> , Collection<String>\r\n type = this.getTypeIdentifier().getVariableType();\r\n } else {\r\n type = classHelper.getClassName();\r\n }\r\n\r\n if ((this.getTypeIdentifier() == null\r\n || getRelation() instanceof SingleRelationAttributeSnippet)\r\n && functionalType) {\r\n if (isArray(type)) {\r\n type = \"Optional<\" + type + '>';\r\n } else {\r\n type = \"Optional<\" + getWrapperType(type) + '>';\r\n }\r\n }\r\n return type;\r\n }", "@Override\n\tpublic String getType() {\n\t\treturn this.type;\n\t}", "public void setResultType(ReadOperationResultType resultType)\n {\n this.resultType = resultType;\n }", "public void set_return(boolean param) {\r\n\r\n // setting primitive attribute tracker to true\r\n local_returnTracker =\r\n true;\r\n\r\n this.local_return = param;\r\n\r\n\r\n }", "@Override\n\tpublic TipoInstrucao getTipoInstrucao() {\n\t\treturn TipoInstrucao.RETURN;\n\t}", "@Override\n\tpublic T getType() {\n\t\treturn this.type;\n\t}", "public abstract void setType();", "public void setReturningDate(String returningDate) {\r\n this.returningDate = returningDate;\r\n }", "static boolean setterDeclarationWithReturnType(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"setterDeclarationWithReturnType\")) return false;\n boolean r, p;\n Marker m = enter_section_(b, l, _NONE_);\n r = setterDeclarationWithReturnType_0(b, l + 1);\n r = r && setterDeclarationWithReturnType_1(b, l + 1);\n r = r && returnType(b, l + 1);\n r = r && consumeToken(b, SET);\n r = r && componentName(b, l + 1);\n p = r; // pin = 5\n r = r && report_error_(b, formalParameterList(b, l + 1));\n r = p && setterDeclarationWithReturnType_6(b, l + 1) && r;\n exit_section_(b, l, m, r, p, null);\n return r || p;\n }", "protected String getType() {\n\t\treturn type;\n\t}", "public setType_result(setType_result other) {\n }", "@Override\n\tpublic void setType(String type) {\n\t}", "public boolean returnTypeMatch(Method m, String retType) {\n Class ret = m.getReturnType();\n Class retTypeClass = checkIfPrimitive(retType);\n if (retTypeClass == null);\n try {\n retTypeClass = Class.forName(retType);\n } catch (ClassNotFoundException e) {\n //do nothing. If return type is incorrect, it will be caught by\n // another test in verifier.\n }\n if(retTypeClass != null) //this may happen if retType is\n return retTypeClass.equals(ret);//non-primitive and invalid\n else return false;\n }", "public int 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 void changeToType(TYPE type){\n this.type=type;\n return;\n }", "String getType() {\n return type;\n }", "@Nonnull\n public static UBL23WriterBuilder <InstructionForReturnsType> instructionForReturns ()\n {\n return UBL23WriterBuilder.create (InstructionForReturnsType.class);\n }", "String getType() {\r\n return this.type;\r\n }", "public void setRet(int ret) {\n\t\tthis.ret = ret;\n\t}", "public String get_type()\r\n\t{\r\n\t\treturn this.type;\r\n\t}", "void setVarReturn(boolean varReturn);", "public String getType() { return type; }", "public String getType() \n {\n return type;\n }", "public static <R> PyActorMethod<R> of(String methodName, Class<R> returnType) {\n return new PyActorMethod<>(methodName, returnType);\n }", "public static void typeCheckReturn(PegObject node) {\n\t\tSymbolTable gamma = node.getSymbolTable();\n\t\tDefinedNameFunctor f = gamma.getName(\"return\");\n\t\tBunType returnType = f.getReturnType(BunType.UntypedType);\n\t\tSystem.out.println(\"returnType=\"+returnType);\n\t\tgamma.checkTypeAt(node, 0, returnType, false);\n\t}", "public String getType(){\n return this.type;\n }", "public void setGetTerminalCardTypeReturn(org.apache.axis2.databinding.types.soapencoding.String param){\n \n this.localGetTerminalCardTypeReturn=param;\n \n\n }", "@Override\n public String getType(){\n return Type;\n }", "String getTYPE() {\n return TYPE;\n }", "public String getType(){\r\n return type;\r\n }", "@Override abstract public String type();", "public void setReturnStatus(String returnStatus) {\n this.returnStatus = returnStatus;\n }", "public TYPE getType(){\n return this.type;\n }", "public T returnValue();", "protected void setReturnDate(Date d){ this.returnDate = d; }", "public Report type(String type) {\n this.type = type;\n return this;\n }", "public void setReturnPage(String returnPage) {this.returnPage=returnPage;}", "@Override\r\n\tpublic byte getType() {\n\t\treturn type;\r\n\t}" ]
[ "0.7898304", "0.7452606", "0.72403896", "0.71555936", "0.6957776", "0.6841938", "0.6711746", "0.6658766", "0.66204953", "0.6500927", "0.6488238", "0.64104587", "0.6361748", "0.62933475", "0.62751424", "0.62280804", "0.6192333", "0.6188484", "0.60542226", "0.6018932", "0.5979585", "0.589261", "0.58615553", "0.5831488", "0.58295786", "0.57520217", "0.57479185", "0.5709517", "0.5702774", "0.5694808", "0.566726", "0.5660507", "0.5638647", "0.56253475", "0.56225866", "0.560477", "0.56002414", "0.5590675", "0.55774784", "0.5571267", "0.55582196", "0.55376416", "0.55193925", "0.54531205", "0.5426925", "0.54171", "0.54134506", "0.5385088", "0.5384567", "0.53732663", "0.53687733", "0.53604203", "0.53604203", "0.5351751", "0.5326219", "0.5326063", "0.5298074", "0.5298074", "0.5298074", "0.5292833", "0.5279822", "0.5278417", "0.5258233", "0.5254192", "0.52523965", "0.52465224", "0.5244765", "0.5240984", "0.52380127", "0.523569", "0.5232795", "0.5225806", "0.51888067", "0.5156785", "0.51373744", "0.5121857", "0.5107634", "0.5106474", "0.5104714", "0.5103398", "0.50852907", "0.5081933", "0.5065737", "0.50557405", "0.5044362", "0.5038974", "0.50354546", "0.5026585", "0.50211686", "0.50199836", "0.50163364", "0.5012784", "0.5008434", "0.5008117", "0.50063044", "0.5004765", "0.50019336", "0.500003", "0.49998865", "0.49928722", "0.49914634" ]
0.0
-1
Set the return type of this method.
public void setReturn(Class type) { setReturn(type.getName()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setReturnType(String returnType) {\n this.returnType = returnType;\n }", "public void setReturn(BCClass type) {\n setReturn(type.getName());\n }", "public void setSourceReturnType(Class<?> type) {\n this.returnType = type;\n }", "public Builder setReturnType(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n returnType_ = value;\n onChanged();\n return this;\n }", "public void setReturn(int returnType) {\n switch (returnType) {\n case DomainApiReturn.JSON:\n this.returnType = \"json\";\n break;\n case DomainApiReturn.XML:\n this.returnType = \"xml\";\n break;\n case DomainApiReturn.RT:\n this.returnType = \"rt\";\n break;\n }\n }", "public void setTargetReturnType(Class<?> type) {\n this.targetReturnType = type;\n }", "public void setReturnTypeName(String returnTypeName) {\n this.returnTypeName = returnTypeName;\n }", "Type getReturnType () { return return_type; }", "public void setType(String fieldReturnType);", "@Override\n\t/**\n\t * does nothing for classes as they do not have return types or data types\n\t */\n\tpublic void setReturnType(String s) {\n\n\t}", "public String getReturnTypeName() {\n return returnTypeName;\n }", "public void setReturnTypeName(char[] name) {\n returnTypeName = name;\n }", "public String getReturnType() {\n return returnType;\n }", "Type getReturnType();", "public Class<?> getReturnType() {\r\n\t\treturn returnType;\r\n\t}", "public String getReturnType() {\n return returnType;\n }", "public MethodSignature modifyReturnType(Klass type) {\n if (type == returnType) {\n return this;\n } else {\n return new MethodSignature(type, parameterTypes);\n }\n }", "String getReturnType();", "public String getReturnType() {\n\t\treturn returnType;\n\t}", "TypeDescription getReturnType();", "public MethodPredicate withReturnType(Class<?> returnType) {\n this.returnType = returnType;\n return this;\n }", "public Class<?> getSourceReturnType() {\n return returnType;\n }", "public Builder clearReturnType() {\n\n returnType_ = getDefaultInstance().getReturnType();\n onChanged();\n return this;\n }", "@Override\n public com.google.protobuf.ByteString\n getReturnTypeBytes() {\n Object ref = returnType_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n returnType_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public char[] getReturnTypeName() {\n return returnTypeName;\n }", "public Builder setReturnTypeBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n\n returnType_ = value;\n onChanged();\n return this;\n }", "public String returnType() {\n return this.data.returnType();\n }", "public com.google.protobuf.ByteString\n getReturnTypeBytes() {\n Object ref = returnType_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n returnType_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public ITypeInfo getReturnType();", "@Override\n public HxType getReturnType() {\n return toMethod().getReturnType();\n }", "public Type getReturnType() {\n/* 227 */ return Type.getReturnType(this.desc);\n/* */ }", "@Override\n public String getReturnType() {\n Object ref = returnType_;\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 returnType_ = s;\n return s;\n }\n }", "public FunctionTypeNode returnType(TypeNode returnType) {\n \t\tFunctionTypeNode_c n = (FunctionTypeNode_c) copy();\n \t\tn.returnType = returnType;\n \t\treturn n;\n \t}", "public String getReturnType() {\n Object ref = returnType_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n returnType_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }", "public void setReturnValue(Object value) {\n this.returnValue = value;\n }", "public Type[] getReturnTypes() {\n \t\treturn actualReturnTypes;\n \t}", "@Deprecated public TypeRef getReturnType(){\n return this.returnType!=null?this.returnType.build():null;\n }", "public Class<?> getTargetReturnType() {\n return targetReturnType;\n }", "public TypeToken<?> returnType() {\n return this.modelType;\n }", "void setReturnValue(Object returnValue) {\r\n this.returnValue = returnValue;\r\n }", "com.google.protobuf.ByteString\n getReturnTypeBytes();", "public List<String> getReturnTypes() {\n if (returnTypes.isEmpty()) {\n return Lists.newArrayList(\"void\");\n } else {\n return new ArrayList<>(returnTypes);\n }\n }", "@Override\n\t/**\n\t * returns a String \"no\" because a class does not have a data or return type\n\t * \n\t * @return \"no\"\n\t */\n\tpublic String getReturnType() {\n\t\treturn \"no\";\n\t}", "@SuppressWarnings(\"unchecked\")\r\n\tpublic void createReturnType(AST ast, AbstractTypeDeclaration td,\r\n\t\t\tMethodDeclaration md, String umlTypeName,\r\n\t\t\tString umlQualifiedTypeName, String sourceDirectoryPackageName) {\r\n\t\t// Choose type\r\n\t\tType chosenType = getChosenType(ast, umlTypeName, umlQualifiedTypeName,\r\n\t\t\t\tsourceDirectoryPackageName);\r\n\r\n\t\tmd.setReturnType2(chosenType);\r\n\t\ttd.bodyDeclarations().add(md);\r\n\t}", "@Override public Type type() {\n return type;\n }", "public MethodBuilder type(String type) {\n\t\tthis.type = type;\n\t\treturn this;\n\t}", "@Override\n public String getType() {\n return this.type;\n }", "public void setResult(String name, Class type) {\r\n DatabaseField returnField = (DatabaseField)getParameters().get(0);\r\n returnField.setName(name);\r\n returnField.setType(type);\r\n }", "public void setResult(String name, int type) {\r\n DatabaseField returnField = (DatabaseField)getParameters().get(0);\r\n returnField.setName(name);\r\n returnField.setSqlType(type);\r\n }", "@Override\n\tpublic String type() {\n\t\treturn type;\n\t}", "@Override\n public Type getType() {\n return type;\n }", "@Override\n public Type getType() {\n return type;\n }", "public boolean isSetReturnType() {\n return this.returnType != null;\n }", "public void testCreateMethodWithReturnType() {\n IDOMMethod method = this.domFactory.createMethod();\n method.setName(\"foo\");\n method.setReturnType(\"String\");\n assertSourceEquals(\"source code incorrect\", \"public String foo() {\\n\" + \"}\\n\", method.getContents());\n }", "public TypeConstraint getReturnType() {\n return new TypeConstraint(executable.getReturnType());\n }", "@Override\n\tpublic String getType() {\n\t\treturn type;\n\t}", "@Override\n\tpublic String getType() {\n\t\treturn type;\n\t}", "@Override\n\tpublic String getType() {\n\t\treturn type;\n\t}", "public abstract int[] getReturnTypes();", "public void setResultSetType(Class<? extends ResultSet> resultSetType)\r\n/* 40: */ {\r\n/* 41: 92 */ this.resultSetType = resultSetType;\r\n/* 42: */ }", "@Override\r\n\tpublic String getType() {\n\t\treturn type;\r\n\t}", "public String getReturnType() {\n String type;\r\n if (this.getTypeIdentifier() != null) { //Collection<Entity> , Collection<String>\r\n type = this.getTypeIdentifier().getVariableType();\r\n } else {\r\n type = classHelper.getClassName();\r\n }\r\n\r\n if ((this.getTypeIdentifier() == null\r\n || getRelation() instanceof SingleRelationAttributeSnippet)\r\n && functionalType) {\r\n if (isArray(type)) {\r\n type = \"Optional<\" + type + '>';\r\n } else {\r\n type = \"Optional<\" + getWrapperType(type) + '>';\r\n }\r\n }\r\n return type;\r\n }", "@Override\n\tpublic String getType() {\n\t\treturn this.type;\n\t}", "public void setResultType(ReadOperationResultType resultType)\n {\n this.resultType = resultType;\n }", "public void set_return(boolean param) {\r\n\r\n // setting primitive attribute tracker to true\r\n local_returnTracker =\r\n true;\r\n\r\n this.local_return = param;\r\n\r\n\r\n }", "@Override\n\tpublic TipoInstrucao getTipoInstrucao() {\n\t\treturn TipoInstrucao.RETURN;\n\t}", "@Override\n\tpublic T getType() {\n\t\treturn this.type;\n\t}", "public abstract void setType();", "public void setReturningDate(String returningDate) {\r\n this.returningDate = returningDate;\r\n }", "static boolean setterDeclarationWithReturnType(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"setterDeclarationWithReturnType\")) return false;\n boolean r, p;\n Marker m = enter_section_(b, l, _NONE_);\n r = setterDeclarationWithReturnType_0(b, l + 1);\n r = r && setterDeclarationWithReturnType_1(b, l + 1);\n r = r && returnType(b, l + 1);\n r = r && consumeToken(b, SET);\n r = r && componentName(b, l + 1);\n p = r; // pin = 5\n r = r && report_error_(b, formalParameterList(b, l + 1));\n r = p && setterDeclarationWithReturnType_6(b, l + 1) && r;\n exit_section_(b, l, m, r, p, null);\n return r || p;\n }", "protected String getType() {\n\t\treturn type;\n\t}", "public setType_result(setType_result other) {\n }", "@Override\n\tpublic void setType(String type) {\n\t}", "public boolean returnTypeMatch(Method m, String retType) {\n Class ret = m.getReturnType();\n Class retTypeClass = checkIfPrimitive(retType);\n if (retTypeClass == null);\n try {\n retTypeClass = Class.forName(retType);\n } catch (ClassNotFoundException e) {\n //do nothing. If return type is incorrect, it will be caught by\n // another test in verifier.\n }\n if(retTypeClass != null) //this may happen if retType is\n return retTypeClass.equals(ret);//non-primitive and invalid\n else return false;\n }", "public int 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 void changeToType(TYPE type){\n this.type=type;\n return;\n }", "String getType() {\n return type;\n }", "@Nonnull\n public static UBL23WriterBuilder <InstructionForReturnsType> instructionForReturns ()\n {\n return UBL23WriterBuilder.create (InstructionForReturnsType.class);\n }", "String getType() {\r\n return this.type;\r\n }", "public void setRet(int ret) {\n\t\tthis.ret = ret;\n\t}", "public String get_type()\r\n\t{\r\n\t\treturn this.type;\r\n\t}", "void setVarReturn(boolean varReturn);", "public String getType() { return type; }", "public String getType() \n {\n return type;\n }", "public static <R> PyActorMethod<R> of(String methodName, Class<R> returnType) {\n return new PyActorMethod<>(methodName, returnType);\n }", "public static void typeCheckReturn(PegObject node) {\n\t\tSymbolTable gamma = node.getSymbolTable();\n\t\tDefinedNameFunctor f = gamma.getName(\"return\");\n\t\tBunType returnType = f.getReturnType(BunType.UntypedType);\n\t\tSystem.out.println(\"returnType=\"+returnType);\n\t\tgamma.checkTypeAt(node, 0, returnType, false);\n\t}", "public String getType(){\n return this.type;\n }", "public void setGetTerminalCardTypeReturn(org.apache.axis2.databinding.types.soapencoding.String param){\n \n this.localGetTerminalCardTypeReturn=param;\n \n\n }", "@Override\n public String getType(){\n return Type;\n }", "String getTYPE() {\n return TYPE;\n }", "public String getType(){\r\n return type;\r\n }", "@Override abstract public String type();", "public void setReturnStatus(String returnStatus) {\n this.returnStatus = returnStatus;\n }", "public TYPE getType(){\n return this.type;\n }", "public T returnValue();", "protected void setReturnDate(Date d){ this.returnDate = d; }", "public Report type(String type) {\n this.type = type;\n return this;\n }", "public void setReturnPage(String returnPage) {this.returnPage=returnPage;}", "@Override\r\n\tpublic byte getType() {\n\t\treturn type;\r\n\t}" ]
[ "0.7452606", "0.72403896", "0.71555936", "0.6957776", "0.6841938", "0.6711746", "0.6658766", "0.66204953", "0.6500927", "0.6488238", "0.64104587", "0.6361748", "0.62933475", "0.62751424", "0.62280804", "0.6192333", "0.6188484", "0.60542226", "0.6018932", "0.5979585", "0.589261", "0.58615553", "0.5831488", "0.58295786", "0.57520217", "0.57479185", "0.5709517", "0.5702774", "0.5694808", "0.566726", "0.5660507", "0.5638647", "0.56253475", "0.56225866", "0.560477", "0.56002414", "0.5590675", "0.55774784", "0.5571267", "0.55582196", "0.55376416", "0.55193925", "0.54531205", "0.5426925", "0.54171", "0.54134506", "0.5385088", "0.5384567", "0.53732663", "0.53687733", "0.53604203", "0.53604203", "0.5351751", "0.5326219", "0.5326063", "0.5298074", "0.5298074", "0.5298074", "0.5292833", "0.5279822", "0.5278417", "0.5258233", "0.5254192", "0.52523965", "0.52465224", "0.5244765", "0.5240984", "0.52380127", "0.523569", "0.5232795", "0.5225806", "0.51888067", "0.5156785", "0.51373744", "0.5121857", "0.5107634", "0.5106474", "0.5104714", "0.5103398", "0.50852907", "0.5081933", "0.5065737", "0.50557405", "0.5044362", "0.5038974", "0.50354546", "0.5026585", "0.50211686", "0.50199836", "0.50163364", "0.5012784", "0.5008434", "0.5008117", "0.50063044", "0.5004765", "0.50019336", "0.500003", "0.49998865", "0.49928722", "0.49914634" ]
0.7898304
0
Set the return type of this method.
public void setReturn(BCClass type) { setReturn(type.getName()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setReturn(Class type) {\n setReturn(type.getName());\n }", "public void setReturnType(String returnType) {\n this.returnType = returnType;\n }", "public void setSourceReturnType(Class<?> type) {\n this.returnType = type;\n }", "public Builder setReturnType(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n returnType_ = value;\n onChanged();\n return this;\n }", "public void setReturn(int returnType) {\n switch (returnType) {\n case DomainApiReturn.JSON:\n this.returnType = \"json\";\n break;\n case DomainApiReturn.XML:\n this.returnType = \"xml\";\n break;\n case DomainApiReturn.RT:\n this.returnType = \"rt\";\n break;\n }\n }", "public void setTargetReturnType(Class<?> type) {\n this.targetReturnType = type;\n }", "public void setReturnTypeName(String returnTypeName) {\n this.returnTypeName = returnTypeName;\n }", "Type getReturnType () { return return_type; }", "public void setType(String fieldReturnType);", "@Override\n\t/**\n\t * does nothing for classes as they do not have return types or data types\n\t */\n\tpublic void setReturnType(String s) {\n\n\t}", "public String getReturnTypeName() {\n return returnTypeName;\n }", "public void setReturnTypeName(char[] name) {\n returnTypeName = name;\n }", "public String getReturnType() {\n return returnType;\n }", "Type getReturnType();", "public Class<?> getReturnType() {\r\n\t\treturn returnType;\r\n\t}", "public String getReturnType() {\n return returnType;\n }", "public MethodSignature modifyReturnType(Klass type) {\n if (type == returnType) {\n return this;\n } else {\n return new MethodSignature(type, parameterTypes);\n }\n }", "String getReturnType();", "public String getReturnType() {\n\t\treturn returnType;\n\t}", "TypeDescription getReturnType();", "public MethodPredicate withReturnType(Class<?> returnType) {\n this.returnType = returnType;\n return this;\n }", "public Class<?> getSourceReturnType() {\n return returnType;\n }", "public Builder clearReturnType() {\n\n returnType_ = getDefaultInstance().getReturnType();\n onChanged();\n return this;\n }", "@Override\n public com.google.protobuf.ByteString\n getReturnTypeBytes() {\n Object ref = returnType_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n returnType_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public char[] getReturnTypeName() {\n return returnTypeName;\n }", "public Builder setReturnTypeBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n\n returnType_ = value;\n onChanged();\n return this;\n }", "public String returnType() {\n return this.data.returnType();\n }", "public com.google.protobuf.ByteString\n getReturnTypeBytes() {\n Object ref = returnType_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n returnType_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public ITypeInfo getReturnType();", "@Override\n public HxType getReturnType() {\n return toMethod().getReturnType();\n }", "public Type getReturnType() {\n/* 227 */ return Type.getReturnType(this.desc);\n/* */ }", "@Override\n public String getReturnType() {\n Object ref = returnType_;\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 returnType_ = s;\n return s;\n }\n }", "public FunctionTypeNode returnType(TypeNode returnType) {\n \t\tFunctionTypeNode_c n = (FunctionTypeNode_c) copy();\n \t\tn.returnType = returnType;\n \t\treturn n;\n \t}", "public String getReturnType() {\n Object ref = returnType_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n returnType_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }", "public void setReturnValue(Object value) {\n this.returnValue = value;\n }", "public Type[] getReturnTypes() {\n \t\treturn actualReturnTypes;\n \t}", "@Deprecated public TypeRef getReturnType(){\n return this.returnType!=null?this.returnType.build():null;\n }", "public Class<?> getTargetReturnType() {\n return targetReturnType;\n }", "public TypeToken<?> returnType() {\n return this.modelType;\n }", "void setReturnValue(Object returnValue) {\r\n this.returnValue = returnValue;\r\n }", "com.google.protobuf.ByteString\n getReturnTypeBytes();", "public List<String> getReturnTypes() {\n if (returnTypes.isEmpty()) {\n return Lists.newArrayList(\"void\");\n } else {\n return new ArrayList<>(returnTypes);\n }\n }", "@Override\n\t/**\n\t * returns a String \"no\" because a class does not have a data or return type\n\t * \n\t * @return \"no\"\n\t */\n\tpublic String getReturnType() {\n\t\treturn \"no\";\n\t}", "@SuppressWarnings(\"unchecked\")\r\n\tpublic void createReturnType(AST ast, AbstractTypeDeclaration td,\r\n\t\t\tMethodDeclaration md, String umlTypeName,\r\n\t\t\tString umlQualifiedTypeName, String sourceDirectoryPackageName) {\r\n\t\t// Choose type\r\n\t\tType chosenType = getChosenType(ast, umlTypeName, umlQualifiedTypeName,\r\n\t\t\t\tsourceDirectoryPackageName);\r\n\r\n\t\tmd.setReturnType2(chosenType);\r\n\t\ttd.bodyDeclarations().add(md);\r\n\t}", "@Override public Type type() {\n return type;\n }", "public MethodBuilder type(String type) {\n\t\tthis.type = type;\n\t\treturn this;\n\t}", "@Override\n public String getType() {\n return this.type;\n }", "public void setResult(String name, Class type) {\r\n DatabaseField returnField = (DatabaseField)getParameters().get(0);\r\n returnField.setName(name);\r\n returnField.setType(type);\r\n }", "public void setResult(String name, int type) {\r\n DatabaseField returnField = (DatabaseField)getParameters().get(0);\r\n returnField.setName(name);\r\n returnField.setSqlType(type);\r\n }", "@Override\n\tpublic String type() {\n\t\treturn type;\n\t}", "@Override\n public Type getType() {\n return type;\n }", "@Override\n public Type getType() {\n return type;\n }", "public boolean isSetReturnType() {\n return this.returnType != null;\n }", "public void testCreateMethodWithReturnType() {\n IDOMMethod method = this.domFactory.createMethod();\n method.setName(\"foo\");\n method.setReturnType(\"String\");\n assertSourceEquals(\"source code incorrect\", \"public String foo() {\\n\" + \"}\\n\", method.getContents());\n }", "public TypeConstraint getReturnType() {\n return new TypeConstraint(executable.getReturnType());\n }", "@Override\n\tpublic String getType() {\n\t\treturn type;\n\t}", "@Override\n\tpublic String getType() {\n\t\treturn type;\n\t}", "@Override\n\tpublic String getType() {\n\t\treturn type;\n\t}", "public abstract int[] getReturnTypes();", "public void setResultSetType(Class<? extends ResultSet> resultSetType)\r\n/* 40: */ {\r\n/* 41: 92 */ this.resultSetType = resultSetType;\r\n/* 42: */ }", "@Override\r\n\tpublic String getType() {\n\t\treturn type;\r\n\t}", "public String getReturnType() {\n String type;\r\n if (this.getTypeIdentifier() != null) { //Collection<Entity> , Collection<String>\r\n type = this.getTypeIdentifier().getVariableType();\r\n } else {\r\n type = classHelper.getClassName();\r\n }\r\n\r\n if ((this.getTypeIdentifier() == null\r\n || getRelation() instanceof SingleRelationAttributeSnippet)\r\n && functionalType) {\r\n if (isArray(type)) {\r\n type = \"Optional<\" + type + '>';\r\n } else {\r\n type = \"Optional<\" + getWrapperType(type) + '>';\r\n }\r\n }\r\n return type;\r\n }", "@Override\n\tpublic String getType() {\n\t\treturn this.type;\n\t}", "public void setResultType(ReadOperationResultType resultType)\n {\n this.resultType = resultType;\n }", "public void set_return(boolean param) {\r\n\r\n // setting primitive attribute tracker to true\r\n local_returnTracker =\r\n true;\r\n\r\n this.local_return = param;\r\n\r\n\r\n }", "@Override\n\tpublic TipoInstrucao getTipoInstrucao() {\n\t\treturn TipoInstrucao.RETURN;\n\t}", "@Override\n\tpublic T getType() {\n\t\treturn this.type;\n\t}", "public abstract void setType();", "public void setReturningDate(String returningDate) {\r\n this.returningDate = returningDate;\r\n }", "static boolean setterDeclarationWithReturnType(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"setterDeclarationWithReturnType\")) return false;\n boolean r, p;\n Marker m = enter_section_(b, l, _NONE_);\n r = setterDeclarationWithReturnType_0(b, l + 1);\n r = r && setterDeclarationWithReturnType_1(b, l + 1);\n r = r && returnType(b, l + 1);\n r = r && consumeToken(b, SET);\n r = r && componentName(b, l + 1);\n p = r; // pin = 5\n r = r && report_error_(b, formalParameterList(b, l + 1));\n r = p && setterDeclarationWithReturnType_6(b, l + 1) && r;\n exit_section_(b, l, m, r, p, null);\n return r || p;\n }", "protected String getType() {\n\t\treturn type;\n\t}", "public setType_result(setType_result other) {\n }", "@Override\n\tpublic void setType(String type) {\n\t}", "public boolean returnTypeMatch(Method m, String retType) {\n Class ret = m.getReturnType();\n Class retTypeClass = checkIfPrimitive(retType);\n if (retTypeClass == null);\n try {\n retTypeClass = Class.forName(retType);\n } catch (ClassNotFoundException e) {\n //do nothing. If return type is incorrect, it will be caught by\n // another test in verifier.\n }\n if(retTypeClass != null) //this may happen if retType is\n return retTypeClass.equals(ret);//non-primitive and invalid\n else return false;\n }", "public int 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 void changeToType(TYPE type){\n this.type=type;\n return;\n }", "String getType() {\n return type;\n }", "@Nonnull\n public static UBL23WriterBuilder <InstructionForReturnsType> instructionForReturns ()\n {\n return UBL23WriterBuilder.create (InstructionForReturnsType.class);\n }", "String getType() {\r\n return this.type;\r\n }", "public void setRet(int ret) {\n\t\tthis.ret = ret;\n\t}", "public String get_type()\r\n\t{\r\n\t\treturn this.type;\r\n\t}", "void setVarReturn(boolean varReturn);", "public String getType() { return type; }", "public String getType() \n {\n return type;\n }", "public static <R> PyActorMethod<R> of(String methodName, Class<R> returnType) {\n return new PyActorMethod<>(methodName, returnType);\n }", "public static void typeCheckReturn(PegObject node) {\n\t\tSymbolTable gamma = node.getSymbolTable();\n\t\tDefinedNameFunctor f = gamma.getName(\"return\");\n\t\tBunType returnType = f.getReturnType(BunType.UntypedType);\n\t\tSystem.out.println(\"returnType=\"+returnType);\n\t\tgamma.checkTypeAt(node, 0, returnType, false);\n\t}", "public String getType(){\n return this.type;\n }", "public void setGetTerminalCardTypeReturn(org.apache.axis2.databinding.types.soapencoding.String param){\n \n this.localGetTerminalCardTypeReturn=param;\n \n\n }", "@Override\n public String getType(){\n return Type;\n }", "String getTYPE() {\n return TYPE;\n }", "public String getType(){\r\n return type;\r\n }", "@Override abstract public String type();", "public void setReturnStatus(String returnStatus) {\n this.returnStatus = returnStatus;\n }", "public TYPE getType(){\n return this.type;\n }", "public T returnValue();", "protected void setReturnDate(Date d){ this.returnDate = d; }", "public Report type(String type) {\n this.type = type;\n return this;\n }", "public void setReturnPage(String returnPage) {this.returnPage=returnPage;}", "@Override\r\n\tpublic byte getType() {\n\t\treturn type;\r\n\t}" ]
[ "0.7898304", "0.7452606", "0.71555936", "0.6957776", "0.6841938", "0.6711746", "0.6658766", "0.66204953", "0.6500927", "0.6488238", "0.64104587", "0.6361748", "0.62933475", "0.62751424", "0.62280804", "0.6192333", "0.6188484", "0.60542226", "0.6018932", "0.5979585", "0.589261", "0.58615553", "0.5831488", "0.58295786", "0.57520217", "0.57479185", "0.5709517", "0.5702774", "0.5694808", "0.566726", "0.5660507", "0.5638647", "0.56253475", "0.56225866", "0.560477", "0.56002414", "0.5590675", "0.55774784", "0.5571267", "0.55582196", "0.55376416", "0.55193925", "0.54531205", "0.5426925", "0.54171", "0.54134506", "0.5385088", "0.5384567", "0.53732663", "0.53687733", "0.53604203", "0.53604203", "0.5351751", "0.5326219", "0.5326063", "0.5298074", "0.5298074", "0.5298074", "0.5292833", "0.5279822", "0.5278417", "0.5258233", "0.5254192", "0.52523965", "0.52465224", "0.5244765", "0.5240984", "0.52380127", "0.523569", "0.5232795", "0.5225806", "0.51888067", "0.5156785", "0.51373744", "0.5121857", "0.5107634", "0.5106474", "0.5104714", "0.5103398", "0.50852907", "0.5081933", "0.5065737", "0.50557405", "0.5044362", "0.5038974", "0.50354546", "0.5026585", "0.50211686", "0.50199836", "0.50163364", "0.5012784", "0.5008434", "0.5008117", "0.50063044", "0.5004765", "0.50019336", "0.500003", "0.49998865", "0.49928722", "0.49914634" ]
0.72403896
2
Return the bytecode for all the parameter types for this method.
public BCClass[] getParamBCs() { String[] paramNames = getParamNames(); BCClass[] params = new BCClass[paramNames.length]; for (int i = 0; i < paramNames.length; i++) params[i] = getProject().loadClass(paramNames[i], getClassLoader()); return params; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic Class[] getMethodParameterTypes() {\n\t\treturn new Class[]{byte[].class, int.class,byte[].class,\n\t\t byte[].class, int.class, byte[].class,\n\t\t int.class, byte[].class, byte[].class};\n\t}", "List<Type> getTypeParameters();", "public List<Class<?>> getSourceParameterTypes() {\n return parameterTypes;\n }", "TypeInfo[] typeParams();", "public ITypeInfo[] getParameters();", "public final IClass[]\r\n getParameterTypes() throws CompileException {\r\n if (this.parameterTypesCache != null) return this.parameterTypesCache;\r\n return (this.parameterTypesCache = this.getParameterTypes2());\r\n }", "public Type[] getArgumentTypes() {\n/* 236 */ return Type.getArgumentTypes(this.desc);\n/* */ }", "private static String getMethodSignature(Class[] paramTypes, Class retType) {\n StringBuffer sbuf = new StringBuffer();\n sbuf.append('(');\n for (int i = 0; i < paramTypes.length; i++) {\n sbuf.append(getClassSignature(paramTypes[i]));\n }\n sbuf.append(')');\n sbuf.append(getClassSignature(retType));\n return sbuf.toString();\n }", "private String[] getParameterTypeNames(MethodNode method) {\n GenericsMapper mapper = null;\n ClassNode declaringClass = method.getDeclaringClass();\n if (declaringClass.getGenericsTypes() != null && declaringClass.getGenericsTypes().length > 0) {\n if (!mappers.containsKey(declaringClass)) {\n ClassNode thiz = getClassNode();\n mapper = GenericsMapper.gatherGenerics(findResolvedType(thiz, declaringClass), declaringClass);\n } else {\n mapper = mappers.get(declaringClass);\n }\n }\n Parameter[] parameters = method.getParameters();\n String[] paramTypeNames = new String[parameters.length];\n for (int i = 0; i < paramTypeNames.length; i++) {\n ClassNode paramType = parameters[i].getType();\n if (mapper != null && paramType.getGenericsTypes() != null && paramType.getGenericsTypes().length > 0) {\n paramType = VariableScope.resolveTypeParameterization(mapper, VariableScope.clone(paramType));\n }\n paramTypeNames[i] = paramType.getName();\n if (paramTypeNames[i].startsWith(\"[\")) {\n int cnt = Signature.getArrayCount(paramTypeNames[i]);\n String sig = Signature.getElementType(paramTypeNames[i]);\n String qualifier = Signature.getSignatureQualifier(sig);\n String simple = Signature.getSignatureSimpleName(sig);\n StringBuilder sb = new StringBuilder();\n if (qualifier.length() > 0) {\n sb.append(qualifier).append(\".\");\n }\n sb.append(simple);\n for (int j = 0; j < cnt; j++) {\n sb.append(\"[]\");\n }\n paramTypeNames[i] = sb.toString();\n }\n }\n return paramTypeNames;\n }", "List<List<Class<?>>> getConstructorParametersTypes();", "static MBeanParameterInfo[] methodSignature(Method method) {\r\n Class[] classes = method.getParameterTypes();\r\n MBeanParameterInfo[] params = new MBeanParameterInfo[classes.length];\r\n\r\n for (int i = 0; i < classes.length; i++) {\r\n String parameterName = \"p\" + (i + 1);\r\n params[i] = new MBeanParameterInfo(parameterName, classes[i].getName(), \"\");\r\n }\r\n\r\n return params;\r\n }", "public ParameterType getType();", "char[][] getTypeParameterNames();", "Collection<Parameter> getTypedParameters();", "public String[] getParamTypeNames()\n/* */ {\n/* 353 */ return this.parameterTypeNames;\n/* */ }", "public static StackManipulation of(JavaInstance.MethodType methodType) {\n Type[] parameterType = new Type[methodType.getParameterTypes().size()];\n int index = 0;\n for (TypeDescription typeDescription : methodType.getParameterTypes()) {\n parameterType[index++] = Type.getType(typeDescription.getDescriptor());\n }\n return new MethodTypeConstant(Type.getMethodType(Type.getType(methodType.getReturnType().getDescriptor()), parameterType));\n }", "public DataTypeDescriptor[] getParameterTypes() {\r\n return parameterTypes;\r\n }", "@Override\n public Class<?>[] getParameterTypes() {\n return null;\n }", "Type getMethodParameterType() throws IllegalArgumentException;", "public TypeParameterListNode getTypeParameters()throws ClassCastException;", "public ActionParameterTypes getParametersTypes() {\n\t\treturn this.signature;\n\t}", "public String getParamDefs() {\n return super.getParamDefs() + \", \" + PlainValueFunction.paramNameTypes;\n }", "public void buildTypeParamInfo() {\n\t\twriter.writeTypeParamInfo();\n\t}", "public static Class<?>[] getConstructorParamTypes() {\n\t\tfinal Class<?>[] out = { RabbitMQService.class, String.class, RentMovementDAO.class, RPCClient.class, RPCClient.class, IRentConfiguration.class };\n\t\treturn out;\n\t}", "protected Type[] getJoinPointArgumentTypes() {\n return new Type[]{Type.getType(m_calleeMemberDesc)};\n }", "public List<Pair<ResolvedTypeParameterDeclaration, ResolvedType>> getTypeParametersMap() {\n List<Pair<ResolvedTypeParameterDeclaration, ResolvedType>> typeParametersMap = new ArrayList<>();\n if (!isRawType()) {\n for (int i = 0; i < typeDeclaration.getTypeParameters().size(); i++) {\n typeParametersMap.add(new Pair<>(typeDeclaration.getTypeParameters().get(i), typeParametersValues().get(i)));\n }\n }\n return typeParametersMap;\n }", "List<LightweightTypeReference> getTypeArguments();", "List<InferredStandardParameter> getOriginalParameterTypes();", "public MethodSignature(Klass returnType, Klass[] parameterTypes) {\n this.returnType = returnType;\n this.parameterTypes = parameterTypes;\n }", "public List<ResolvedType> typeParametersValues() {\n return this.typeParametersMap.isEmpty() ? Collections.emptyList() : typeDeclaration.getTypeParameters().stream().map(tp -> typeParametersMap.getValue(tp)).collect(Collectors.toList());\n }", "public List<Class<?>> getTargetParameterTypes() {\n return targetParameterTypes;\n }", "public String getParameterType() { return parameterType; }", "public List<TypeArg> typeArgs()\n {\n return typeArgs;\n }", "private static List<StackManipulation> typeConstantsFor(List<TypeDescription> parameterTypes) {\n List<StackManipulation> typeConstants = new ArrayList<StackManipulation>(parameterTypes.size());\n for (TypeDescription parameterType : parameterTypes) {\n typeConstants.add(ClassConstant.of(parameterType));\n }\n return typeConstants;\n }", "@Override\n public List<KParameter> getParameters() {\n return getReflected().getParameters();\n }", "java.util.List<org.tensorflow.proto.framework.FullTypeDef> \n getArgsList();", "public List<TypeDefinition> getParameters() {\n\t\treturn parameters;\n\t}", "@Override\n public String kind() {\n return \"@param\";\n }", "private MethodType(MethodSymbol method) {\n super(method.getName());\n declarer = method.getDeclaringClass();\n typeParams = Arrays.copyOf(method.getTypeParameters(), method.getTypeParameters().length);\n paramTypes = Arrays.copyOf(method.getParameterTypes(), method.getParameterTypes().length);\n }", "public static String getDesc(Method m)\n\t{\n\t\tStringBuilder sb = new StringBuilder();\n\t\tsb.append(m.getName());\n\t\tsb.append('(');\n\t\t\n\t\tClass<?>[] types = m.getParameterTypes();\n\t\tfor (Class<?> type : types) \n\t\t{\n\t\t\tsb.append(getDesc(type));\n\t\t}\n\t\tsb.append(')');\n\t\tsb.append(getDesc(m.getReturnType()));\n\t\t\n\t\treturn sb.toString();\n\t}", "ActionParameterTypes getFormalParameterTypes();", "public void testCreateMethodWithParameters() {\n IDOMMethod method = this.domFactory.createMethod();\n method.setName(\"foo\");\n method.setParameters(new String[] { \"String\", \"int\", \"char[]\" }, new String[] { \"name\", \"number\", \"buffer\" });\n assertSourceEquals(\"source code incorrect\", \"public void foo(String name, int number, char[] buffer) {\\n\" + \"}\\n\", method.getContents());\n }", "char[][][] getTypeParameterBounds();", "default List<Parameter<?>> getMethodParameters()\n {\n return Collections.unmodifiableList(Collections.emptyList());\n }", "@Override\n\tpublic Annotation[] getParameterAnnotations() {\n\t\treturn new Annotation[]{};\n\t}", "com.google.protobuf.ByteString getParams();", "java.util.List<? extends org.tensorflow.proto.framework.FullTypeDefOrBuilder> \n getArgsOrBuilderList();", "public interface MethodInfo {\n\t/**\n\t * Returns the class which declared the method.\n\t */\n\tpublic ClassInfo declaringClass();\n\n\t/**\n\t * Returns the index into the constant pool of the name of the method.\n\t */\n\tpublic int nameIndex();\n\n\t/**\n\t * Returns the index into the constant pool of the type of the method.\n\t */\n\tpublic int typeIndex();\n\n\t/**\n\t * Sets the index into the constant pool of the name of the method.\n\t */\n\tpublic void setNameIndex(int index);\n\n\t/**\n\t * Set the index into the constant pool of the type of the method.\n\t * \n\t * @param index\n\t * The index into the constant pool of the type of the method.\n\t */\n\tpublic void setTypeIndex(int index);\n\n\t/**\n\t * Set the modifiers of the method. The values correspond to the constants\n\t * in the Modifiers class.\n\t * \n\t * @param modifiers\n\t * A bit vector of modifier flags for the method.\n\t * @see Modifiers\n\t */\n\tpublic void setModifiers(int modifiers);\n\n\t/**\n\t * Get the modifiers of the method. The values correspond to the constants\n\t * in the Modifiers class.\n\t * \n\t * @return A bit vector of modifier flags for the method.\n\t * @see Modifiers\n\t */\n\tpublic int modifiers();\n\n\t/**\n\t * Get the indices into the constant pool of the types of the exceptions\n\t * thrown by the method.\n\t * \n\t * @return The indices into the constant pool of the types of the exceptions\n\t * thrown by the method.\n\t */\n\tpublic int[] exceptionTypes();\n\n\t/**\n\t * Get the maximum height of the operand stack.\n\t * \n\t * @return The maximum height of the operand stack.\n\t */\n\tpublic int maxStack();\n\n\t/**\n\t * Set the maximum height of the operand stack.\n\t * \n\t * @param maxStack\n\t * The maximum height of the operand stack.\n\t */\n\tpublic void setMaxStack(int maxStack);\n\n\t/**\n\t * Get the maximum number of locals used in the method.\n\t * \n\t * @return The maximum number of locals used in the method.\n\t */\n\tpublic int maxLocals();\n\n\t/**\n\t * Set the maximum number of locals used in the method.\n\t * \n\t * @param maxLocals\n\t * The maximum number of locals used in the method.\n\t */\n\tpublic void setMaxLocals(int maxLocals);\n\n\t/**\n\t * Get the byte code array of the method.\n\t * \n\t * @return The byte code array of the method.\n\t */\n\tpublic byte[] code();\n\n\t/**\n\t * Set the byte code array of the method.\n\t * \n\t * @param code\n\t * The byte code array of the method.\n\t */\n\tpublic void setCode(byte[] code);\n\n\t/**\n\t * Get the line number debug info of the instructions in the method.\n\t * \n\t * @return The line numbers of the instructions in the method. The array\n\t * will be of size 0 if the method has no line number debug info.\n\t */\n\tpublic LineNumberDebugInfo[] lineNumbers();\n\n\t/**\n\t * Set the line number debug info of the instructions in the method.\n\t * \n\t * @param lineNumbers\n\t * The line numbers of the instructions in the method. The array\n\t * will be of size 0 if the method has no line number debug info.\n\t */\n\tpublic void setLineNumbers(LineNumberDebugInfo[] lineNumbers);\n\n\t/**\n\t * Get the local variable debug information for the method.\n\t * \n\t * @return The local variables in the method. The array will be of size 0 if\n\t * the method has no local variable debug info.\n\t */\n\tpublic LocalDebugInfo[] locals();\n\n\t/**\n\t * Set the local variables in the method.\n\t * \n\t * @param locals\n\t * The local variables in the method.\n\t */\n\tpublic void setLocals(LocalDebugInfo[] locals);\n\n\t/**\n\t * Get the exception handlers in the method.\n\t * \n\t * @return The exception handlers in the method.\n\t */\n\tpublic Catch[] exceptionHandlers();\n\n\t/**\n\t * Set the exception handlers in the method.\n\t * \n\t * @param exceptions\n\t * The exception handlers in the method.\n\t */\n\tpublic void setExceptionHandlers(Catch[] exceptions);\n\n\t/**\n\t * Creates a clone of this <tt>MethodInfo</tt> except that its declaring\n\t * class does not know about it.\n\t */\n\tpublic Object clone();\n}", "@Generated(value={\"edu.jhu.cs.bsj.compiler.utils.generator.SourceGenerator\"})\npublic interface TypeParameterNode extends Node, TypeNameBindingNode\n{\n /**\n * Gets the base type name for the parameter.\n * @return The base type name for the parameter.\n * @throws ClassCastException If the value of this property is a special node.\n */\n public IdentifierNode getIdentifier()throws ClassCastException;\n \n /**\n * Gets the union object for the base type name for the parameter.\n * @return A union object representing The base type name for the parameter.\n */\n public NodeUnion<? extends IdentifierNode> getUnionForIdentifier();\n \n /**\n * Changes the base type name for the parameter.\n * @param identifier The base type name for the parameter.\n */\n public void setIdentifier(IdentifierNode identifier);\n \n /**\n * Changes the base type name for the parameter.\n * @param identifier The base type name for the parameter.\n * @throws NullPointerException If the provided value is <code>null</code>.\n * Node union values may have <code>null</code>\n * contents but are never <code>null</code>\n * themselves.\n */\n public void setUnionForIdentifier(NodeUnion<? extends IdentifierNode> identifier) throws NullPointerException;\n \n /**\n * Gets the bounds over the base type.\n * @return The bounds over the base type.\n * @throws ClassCastException If the value of this property is a special node.\n */\n public DeclaredTypeListNode getBounds()throws ClassCastException;\n \n /**\n * Gets the union object for the bounds over the base type.\n * @return A union object representing The bounds over the base type.\n */\n public NodeUnion<? extends DeclaredTypeListNode> getUnionForBounds();\n \n /**\n * Changes the bounds over the base type.\n * @param bounds The bounds over the base type.\n */\n public void setBounds(DeclaredTypeListNode bounds);\n \n /**\n * Changes the bounds over the base type.\n * @param bounds The bounds over the base type.\n * @throws NullPointerException If the provided value is <code>null</code>.\n * Node union values may have <code>null</code>\n * contents but are never <code>null</code>\n * themselves.\n */\n public void setUnionForBounds(NodeUnion<? extends DeclaredTypeListNode> bounds) throws NullPointerException;\n \n /**\n * Generates a deep copy of this node.\n * @param factory The node factory to use to create the deep copy.\n * @return The resulting deep copy node.\n */\n @Override\n public TypeParameterNode deepCopy(BsjNodeFactory factory);\n \n}", "public String getParamDefs() {\r\n return super.getParamDefs() + \", \" + SampledPolicy.paramNameTypes;\r\n }", "public List<TypeArgument> getTypeArguments() {\n return typeArguments;\n }", "private void writeArguments(Method m) {\n Class<?>[] args = m.getParameterTypes();\n int size = args.length;\n for (int i = 0; i < size; i++) {\n writer.print(args[i].getCanonicalName() + \" arg\" + i);\n if (i != size - 1)\n writer.print(\", \");\n }\n }", "@Override\n public String describe() {\n StringBuilder sb = new StringBuilder();\n if (hasName()) {\n sb.append(typeDeclaration.getQualifiedName());\n } else {\n sb.append(\"<anonymous class>\");\n }\n if (!typeParametersMap().isEmpty()) {\n sb.append(\"<\");\n sb.append(String.join(\", \", typeDeclaration.getTypeParameters().stream().map(tp -> typeParametersMap().getValue(tp).describe()).collect(Collectors.toList())));\n sb.append(\">\");\n }\n return sb.toString();\n }", "@jdk.Exported\npublic interface TypeParameterTree extends Tree {\n Name getName();\n List<? extends Tree> getBounds();\n\n /**\n * Return annotations on the type parameter declaration.\n *\n * Annotations need Target meta-annotations of\n * {@link java.lang.annotation.ElementType#TYPE_PARAMETER} or\n * {@link java.lang.annotation.ElementType#TYPE_USE}\n * to appear in this position.\n *\n * @return annotations on the type parameter declaration\n * @since 1.8\n */\n List<? extends AnnotationTree> getAnnotations();\n}", "public Method(String name, Type returnType, Type[] argumentTypes) {\n/* 98 */ this(name, Type.getMethodDescriptor(returnType, argumentTypes));\n/* */ }", "public void visit(MethodDecl n) \n\t{\n\t\tClassSymbolTable cst = (ClassSymbolTable) currentScope;\n\t\n\t\tString returnType = getTypeStr(n.t);\n\t\tString name = n.i.toString();\n\t\tString[] paramNames = new String[n.fl.size()+1];\n\t\tString[] paramTypes = new String[n.fl.size()+1];\n\t\t\n\t\t//Add \"this\" parameter of the class type to the first arg\n\t\tparamNames[0] = \"this\";\n\t\tparamTypes[0] = cst.getName();\n\t\t\n\t\tn.t.accept(this);\n\t\tn.i.accept(this);\n \n\t\t//Check for redef in method arguments\n\t\tHashSet<String> methodArgs = new HashSet<String>();\n\t\n\t\tfor ( int i = 0; i < n.fl.size(); i++ ) \n\t\t{\n\t\t\tif(!methodArgs.add(n.fl.elementAt(i).i.toString()))\n\t\t\t{\n\t\t\t\tredefError(n.fl.elementAt(i).i.toString(), n.fl.elementAt(i).i.lineNum, n.fl.elementAt(i).i.charNum);\n\t\t\t}\n\t\t\tparamNames[n.fl.size()-i] = n.fl.elementAt(i).i.toString();\n\t\t\tparamTypes[n.fl.size()-i] = getTypeStr(n.fl.elementAt(i).t);\n\t\t\tn.fl.elementAt(i).accept(this);\n\t\t}\n\t\t\n\t\tcst.addMethod(name, paramNames, paramTypes, returnType);\n\t\tcurrentScope = cst.enterScope(name);\n\t\t\n\t\tfor ( int i = 0; i < n.vl.size(); i++ ) \n\t\t{\n\t\t\tn.vl.elementAt(i).accept(this);\n\t\t}\n\t\t\n\t\tfor ( int i = 0; i < n.sl.size(); i++ ) \n\t\t{\n\t\t\tn.sl.elementAt(i).accept(this);\n\t\t}\n \n\t\tn.e.accept(this);\n\t\t\n\t\tcurrentScope = currentScope.exitScope();\n\t}", "protected String methodString(Method m) {\n if (m == null) return \"(null)\"; // Catch border-case, prevent NPE\n \n Class[] parameters= m.getParameterTypes();\n StringBuffer buf= new StringBuffer()\n .append(m.getReturnType().getName())\n .append(' ')\n .append(m.getName())\n .append(':')\n .append(parameters.length)\n .append(\"(\");\n \n // Append parameter types\n for (Class c: parameters) {\n buf.append(c.getName()).append(\", \");\n }\n if (parameters.length > 0) { \n buf.delete(buf.length() - 2, buf.length());\n }\n \n return buf.append(')').toString();\n }", "public DataType[] getParameters() {\n return parameters;\n }", "private static String printMethod(Method method) {\n StringBuilder builder = new StringBuilder();\n\n builder.append(method.getName());\n builder.append(\"( \");\n for (Class<?> param : method.getParameterTypes()) {\n builder.append(param.getSimpleName() + \" \");\n }\n builder.append(\")\");\n return builder.toString();\n }", "public interface MethodVisitor\n{\n\n\tpublic abstract void visitInsn(int i);\n\n\tpublic abstract void visitIntInsn(int i, int j);\n\n\tpublic abstract void visitVarInsn(int i, int j);\n\n\tpublic abstract void visitTypeInsn(int i, String s);\n\n\tpublic abstract void visitFieldInsn(int i, String s, String s1, String s2);\n\n\tpublic abstract void visitMethodInsn(int i, String s, String s1, String s2);\n\n\tpublic abstract void visitJumpInsn(int i, Label label);\n\n\tpublic abstract void visitLabel(Label label);\n\n\tpublic abstract void visitLdcInsn(Object obj);\n\n\tpublic abstract void visitIincInsn(int i, int j);\n\n\tpublic abstract void visitMaxs(int i, int j);\n\n\tpublic abstract void visitEnd();\n}", "private static void extractGenericsArguments() throws NoSuchMethodException\r\n {\n Method getInternalListMethod = GenericsClass.class.getMethod( \"getInternalList\" );\r\n\r\n // we get the return type\r\n Type getInternalListMethodGenericReturnType = getInternalListMethod.getGenericReturnType();\r\n\r\n // we can check if the return type is parameterized (using ParameterizedType)\r\n if( getInternalListMethodGenericReturnType instanceof ParameterizedType )\r\n {\r\n ParameterizedType parameterizedType = (ParameterizedType)getInternalListMethodGenericReturnType;\r\n // we get the type of the arguments for the parameterized type\r\n Type[] typeArguments = parameterizedType.getActualTypeArguments();\r\n for( Type typeArgument : typeArguments )\r\n {\r\n // we can work with that now\r\n Class<?> typeClass = (Class<?>)typeArgument;\r\n System.out.println( \"typeArgument = \" + typeArgument );\r\n System.out.println( \"typeClass = \" + typeClass );\r\n }\r\n }\r\n }", "private void computeArgsTaint() {\n\t\tthis.isStatic = (Opcodes.ACC_STATIC & this.getAccess()) != 0;\n\n\t\tType[] args = this.getArgTypes();\n\n\t\t// Compute the index of the last argument\n\t\tthis.argLastIndex = this.isStatic ? 0 : 1;\n\t\tfor (Type t : args) {\n\t\t\tthis.argLastIndex += t.getSize();\n\t\t}\n\n\t\t// Remap method argument position\n\t\tthis.newArgsOffset = 0;\n\t\tthis.args2NewArgsMapping = new int[this.argLastIndex];\n\t\tint argCounter = this.isStatic ? 0 : 1;\n\t\t\n\t\t// newArgsOffset supports only 32-bit taint labels\n\t\tfor (int i = 0; i < args.length; i++) {\n//\t\t\tmaps original to new argument position\n\t\t\tthis.args2NewArgsMapping[argCounter] = argCounter + this.newArgsOffset;\n\t\t\tif (this.args2NewArgsMapping[argCounter] < 0)\t\n\t\t\t\tthis.args2NewArgsMapping[argCounter] = 0;\n\t\t\t\n//\t\t\tmap new argument position to its corresponding taint\n\t\t\tthis.newArgs2TaintMapping.put(this.args2NewArgsMapping[argCounter], this.args2NewArgsMapping[argCounter] + args[i].getSize());\n\t\t\targCounter += args[i].getSize();\n\t\t\t\n\t\t\t// every non-object array has a separated taint-label-array that\n\t\t\t// represents the taint value of each element\n\t\t\tif (args[i].getSort() == Type.ARRAY) {\n\t\t\t\tif (args[i].getElementType().getSort() != Type.OBJECT && args[i].getDimensions() == 1) {\n\t\t\t\t\tthis.newArgsOffset++;\n\t\t\t\t}\n\t\t\t\telse if (args[i].getElementType().getSort() == Type.OBJECT && TaintTrackerConfig.isString(args[i].getElementType())){\n\t\t\t\t\tthis.newArgsOffset++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t// every primitive-typed parameter has an own taint-label\n\t\t\telse if (args[i].getSort() != Type.OBJECT || TaintTrackerConfig.isString(args[i])) {\n\t\t\t\tthis.newArgsOffset++;\n\t\t\t}\n\t\t}\n\t}", "public List<String> totestParametizedTypes()\n {\n return null;\n }", "@Override\n public ASTNode visitMethod(CoolParser.MethodContext ctx) {\n List<FormalNode> parameters = new LinkedList<>();\n for (var formal : ctx.formal()) {\n parameters.add((FormalNode) visitFormal(formal));\n }\n\n return new MethodNode(\n ctx.id,\n new IdNode(ctx.id),\n parameters,\n new TypeNode(ctx.returnType),\n (ExprNode) ctx.expr().accept(this));\n }", "public void toCode(SourceWriter writer) {\n int paramCount = length();\n for (int i = 0; i < paramCount; ++i) {\n if (i != 0) {\n writer.print(\", \");\n }\n parameters[i].toCode(writer);\n }\n }", "@Test\n public void getTypeArguments() {\n List<String> target=new ArrayList<String>() {{\n add(\"thimble\");\n }};\n\n Type[] arguments= TypeDetective.sniffTypeParameters(target.getClass(), ArrayList.class);\n assertEquals(1, arguments.length);\n assertEquals(String.class,arguments[0]);\n }", "Iterable<ActionParameterTypes> getParameterTypeAlternatives();", "public void setTypeParameters(TypeParameterListNode typeParameters);", "@Pure\n\tpublic JvmTypeParameter getJvmTypeParameter() {\n\t\treturn this.parameter;\n\t}", "public class_1293 method_7079(Class param1, String param2) {\r\n // $FF: Couldn't be decompiled\r\n }", "@Deprecated public List<TypeParamDef> getParameters(){\n return build(parameters);\n }", "BParameterTyping createBParameterTyping();", "public String argTypes() {\n return \"I\";//NOI18N\n }", "List method_111(class_922 var1, int var2, int var3, int var4);", "public List method_2245(int param1, int param2, int param3, int param4, int param5, int param6) {\r\n // $FF: Couldn't be decompiled\r\n }", "public final java.security.AlgorithmParameters generateParameters() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: java.security.AlgorithmParameterGenerator.generateParameters():java.security.AlgorithmParameters, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: java.security.AlgorithmParameterGenerator.generateParameters():java.security.AlgorithmParameters\");\n }", "default String getSignature() {\n StringBuilder sb = new StringBuilder();\n sb.append(getName());\n sb.append(\"(\");\n for (int i = 0; i < getNumberOfParams(); i++) {\n if (i != 0) {\n sb.append(\", \");\n }\n sb.append(getParam(i).describeType());\n }\n sb.append(\")\");\n return sb.toString();\n }", "public List<Ref<? extends Type>> typeVariables();", "public Parameters getParameters();", "public ArrayList<JavaScope> getArguments() {\n\t\tArrayList<JavaScope> ret = new ArrayList<JavaScope>();\n\t\tfor (TypeContainer t : this.sig)\n\t\t\tret.add(t.item);\n\t\t\n\t\treturn ret;\n\t}", "Map<ActionParameterTypes, List<InferredStandardParameter>> getInferredParameterTypes();", "private void findParameters(InstructionContext ins)\n\t{\n\t\tif (!(ins.getInstruction() instanceof InvokeInstruction))\n\t\t{\n\t\t\treturn;\n\t\t}\n\n\t\tList<Method> methods = ((InvokeInstruction) ins.getInstruction()).getMethods();\n\t\tif (methods.isEmpty())\n\t\t{\n\t\t\treturn;\n\t\t}\n\n\t\tfindConstantParameter(methods, ins);\n\t}", "public boolean isParameterizedType()\n {\n\n return _typeParams != null && _typeParams.length > 0;\n }", "com.google.protobuf.ByteString\n getReturnTypeBytes();", "IParameterCollection getParameters();", "@Override\n\tpublic Collection<Parameter<?>> getParameters() {\n\t\treturn null;\n\t}", "HxMethod createConstructor(final String... parameterTypes);", "@org.junit.Test(timeout = 10000)\n public void annotatedArgumentOfParameterizedType_cf927() {\n java.lang.String expected = (\"java.util.List<@\" + (com.squareup.javapoet.AmplAnnotatedTypeNameTest.NN)) + \" java.lang.String>\";\n com.squareup.javapoet.TypeName type = com.squareup.javapoet.TypeName.get(java.lang.String.class).annotated(NEVER_NULL);\n com.squareup.javapoet.ClassName list = com.squareup.javapoet.ClassName.get(java.util.List.class);\n java.lang.String actual = com.squareup.javapoet.ParameterizedTypeName.get(list, type).toString();\n // AssertGenerator replace invocation\n boolean o_annotatedArgumentOfParameterizedType_cf927__10 = // StatementAdderMethod cloned existing statement\n type.isBoxedPrimitive();\n // AssertGenerator add assertion\n org.junit.Assert.assertFalse(o_annotatedArgumentOfParameterizedType_cf927__10);\n org.junit.Assert.assertEquals(expected, actual);\n }", "public java.lang.Integer getParameterType() {\r\n return parameterType;\r\n }", "public Map<String, Class<?>> getArgumentTypes() {\n return argumentTypes;\n }", "private String getSuperMethodCallParameters(ExecutableElement sourceMethod) {\n return sourceMethod\n .getParameters()\n .stream()\n .map(parameter -> parameter.getSimpleName().toString())\n .collect(Collectors.joining(\", \"));\n }", "@Override\n\tprotected Collection<ArgumentTypeDescriptor> getArgumentTypeDescriptors() {\n\t\treturn Arrays.asList(new VCFWriterArgumentTypeDescriptor(engine, System.out, bisulfiteArgumentSources), new SAMReaderArgumentTypeDescriptor(engine),\n\t\t\t\tnew SAMFileWriterArgumentTypeDescriptor(engine, System.out), new OutputStreamArgumentTypeDescriptor(engine, System.out));\n\t}", "public static String toJavaParameters( String parameters ) {\n StringBuffer nat = new StringBuffer( 30 );\n switch ( parameters.charAt( 0 ) ) {\n default:\n throw new IllegalArgumentException( \"unknown native type:\" + parameters.charAt( 0 ) );\n case '+':\n nat.append( \"? extends \" ).append( toJavaParameters( parameters.substring( 1 ) ) );\n break;\n case '-':\n nat.append( \"? super \" ).append( toJavaParameters( parameters.substring( 1 ) ) );\n break;\n case '*':\n nat.append( \"*\" );\n if ( parameters.length() > 1 ) {\n nat.append( \", \" ).append( toJavaParameters( parameters.substring( 1 ) ) );\n }\n break;\n case 'B':\n nat.append( \"byte\" );\n break;\n case 'C':\n nat.append( \"char\" );\n break;\n case 'D':\n nat.append( \"double\" );\n break;\n case 'F':\n nat.append( \"float\" );\n break;\n case 'I':\n nat.append( \"int\" );\n break;\n case 'J':\n nat.append( \"long\" );\n break;\n case 'S':\n nat.append( \"short\" );\n break;\n case 'Z':\n nat.append( \"boolean\" );\n break;\n case 'V':\n nat.append( \"void\" );\n break;\n case 'L':\n int len = parameters.indexOf( '<' );\n if ( len >= 0 ) {\n len = Math.min( len, parameters.indexOf( ';' ) );\n }\n break;\n case 'T':\n int index = parameters.indexOf( ';' );\n nat.append( parameters.substring( 1, index ) );\n if ( parameters.length() > index ) {\n nat.append( \", \" );\n nat.append( parameters.substring( index ) );\n }\n break;\n }\n return nat.toString();\n }", "public static byte[] genAllTypes(){\n byte[] types = { DataType.BAG, DataType.BIGCHARARRAY, DataType.BOOLEAN, DataType.BYTE, DataType.BYTEARRAY,\n DataType.CHARARRAY, DataType.DOUBLE, DataType.FLOAT, DataType.DATETIME,\n DataType.GENERIC_WRITABLECOMPARABLE,\n DataType.INTEGER, DataType.INTERNALMAP,\n DataType.LONG, DataType.MAP, DataType.TUPLE, DataType.BIGINTEGER, DataType.BIGDECIMAL};\n return types;\n }", "public abstract Object getTypedParams(Object params);", "public Class<? extends DataType>[] getRequiredArgs();", "public byte[] getSigAlgParams() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: android.security.keystore.DelegatingX509Certificate.getSigAlgParams():byte[], dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.security.keystore.DelegatingX509Certificate.getSigAlgParams():byte[]\");\n }", "@Override\n\tpublic Object visitParamDec(ParamDec paramDec, Object arg) throws Exception {\n\t\tMethodVisitor mv = (MethodVisitor) arg;\n\t\tTypeName typeName = paramDec.getType();\n\t\tswitch (typeName) {\n\t\tcase INTEGER:\n\t\t\tmv.visitVarInsn(ALOAD, 0);\n\t\t\tmv.visitVarInsn(ALOAD, 1);\n\t\t\tmv.visitLdcInsn(paramDec.slotnumber);\n\t\t\tmv.visitInsn(AALOAD);\n\t\t\tmv.visitMethodInsn(INVOKESTATIC, \"java/lang/Integer\", \"parseInt\", \"(Ljava/lang/String;)I\", false);\n\t\t\tmv.visitFieldInsn(PUTFIELD, className, paramDec.getIdent().getText(), \"I\");\n\t\t\tbreak;\n\n\t\tcase BOOLEAN:\n\t\t\tmv.visitVarInsn(ALOAD, 0);\n\t\t\tmv.visitVarInsn(ALOAD, 1);\n\t\t\tmv.visitLdcInsn(paramDec.slotnumber);\n\t\t\tmv.visitInsn(AALOAD);\n\t\t\tmv.visitMethodInsn(INVOKESTATIC, \"java/lang/Boolean\", \"parseBoolean\", \"(Ljava/lang/String;)Z\", false);\n\t\t\tmv.visitFieldInsn(PUTFIELD, className, paramDec.getIdent().getText(), \"Z\");\n\t\t\tbreak;\n\n\t\tcase FILE:\n\t\t\tmv.visitVarInsn(ALOAD, 0);\n\t\t\tmv.visitTypeInsn(NEW, \"java/io/File\");\n\t\t\tmv.visitInsn(DUP);\n\t\t\tmv.visitVarInsn(ALOAD, 1);\n\t\t\tmv.visitLdcInsn(paramDec.slotnumber);\n\t\t\tmv.visitInsn(AALOAD);\n\t\t\tmv.visitMethodInsn(INVOKESPECIAL, \"java/io/File\", \"<init>\", \"(Ljava/lang/String;)V\", false);\n\t\t\tmv.visitFieldInsn(PUTFIELD, className, paramDec.getIdent().getText(), \"Ljava/io/File;\");\n\t\t\tbreak;\n\t\tcase URL:\n\t\t\tmv.visitVarInsn(ALOAD, 0);\n\t\t\tmv.visitVarInsn(ALOAD, 1);\n\t\t\tmv.visitLdcInsn(paramDec.slotnumber);\n\t\t\tmv.visitMethodInsn(INVOKESTATIC, PLPRuntimeImageIO.className, \"getURL\", PLPRuntimeImageIO.getURLSig, false);\n\t\t\tmv.visitFieldInsn(PUTFIELD, className, paramDec.getIdent().getText(), \"Ljava/net/URL;\");\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\treturn null;\n\n\t}", "private void scan() {\n if (classRefs != null)\n return;\n // Store ids rather than names to avoid multiple name building.\n Set classIDs = new HashSet();\n Set methodIDs = new HashSet();\n\n codePaths = 1; // there has to be at least one...\n\n offset = 0;\n int max = codeBytes.length;\n\twhile (offset < max) {\n\t int bcode = at(0);\n\t if (bcode == bc_wide) {\n\t\tbcode = at(1);\n\t\tint arg = shortAt(2);\n\t\tswitch (bcode) {\n\t\t case bc_aload: case bc_astore:\n\t\t case bc_fload: case bc_fstore:\n\t\t case bc_iload: case bc_istore:\n\t\t case bc_lload: case bc_lstore:\n\t\t case bc_dload: case bc_dstore:\n\t\t case bc_ret:\n\t\t\toffset += 4;\n\t\t\tbreak;\n\n\t\t case bc_iinc:\n\t\t\toffset += 6;\n\t\t\tbreak;\n\t\t default:\n\t\t\toffset++;\n\t\t\tbreak;\n\t\t}\n\t } else {\n\t\tswitch (bcode) {\n // These bcodes have CONSTANT_Class arguments\n case bc_instanceof: \n case bc_checkcast: case bc_new:\n {\n\t\t\tint index = shortAt(1);\n classIDs.add(new Integer(index));\n\t\t\toffset += 3;\n\t\t\tbreak;\n\t\t }\n\n\t\t case bc_putstatic: case bc_getstatic:\n case bc_putfield: case bc_getfield: {\n\t\t\tint index = shortAt(1);\n CPFieldInfo fi = (CPFieldInfo)cpool.get(index);\n classIDs.add(new Integer(fi.getClassID()));\n\t\t\toffset += 3;\n\t\t\tbreak;\n }\n\n // These bcodes have CONSTANT_MethodRef_info arguments\n\t\t case bc_invokevirtual: case bc_invokespecial:\n case bc_invokestatic:\n methodIDs.add(new Integer(shortAt(1)));\n messageSends++;\n\t\t\toffset += 3;\n\t\t\tbreak;\n\n\t\t case bc_jsr_w:\n\t\t case bc_invokeinterface:\n methodIDs.add(new Integer(shortAt(1)));\n messageSends++;\n\t\t\toffset += 5;\n\t\t\tbreak;\n\n // Branch instructions\n\t\t case bc_ifeq: case bc_ifge: case bc_ifgt:\n\t\t case bc_ifle: case bc_iflt: case bc_ifne:\n\t\t case bc_if_icmpeq: case bc_if_icmpne: case bc_if_icmpge:\n\t\t case bc_if_icmpgt: case bc_if_icmple: case bc_if_icmplt:\n\t\t case bc_if_acmpeq: case bc_if_acmpne:\n\t\t case bc_ifnull: case bc_ifnonnull:\n\t\t case bc_jsr:\n codePaths++;\n\t\t\toffset += 3;\n\t\t\tbreak;\n\n case bc_lcmp: case bc_fcmpl: case bc_fcmpg:\n case bc_dcmpl: case bc_dcmpg:\n codePaths++;\n\t\t\toffset++;\n break;\n\n\t\t case bc_tableswitch:{\n\t\t\tint tbl = (offset+1+3) & (~3);\t// four byte boundry\n\t\t\tlong low = intAt(tbl, 1);\n\t\t\tlong high = intAt(tbl, 2);\n\t\t\ttbl += 3 << 2; \t\t\t// three int header\n\n // Find number of unique table addresses.\n // The default path is skipped so we find the\n // number of alternative paths here.\n Set set = new HashSet();\n int length = (int)(high - low + 1);\n for (int i = 0; i < length; i++) {\n int jumpAddr = (int)intAt (tbl, i) + offset;\n set.add(new Integer(jumpAddr));\n }\n codePaths += set.size();\n\n\t\t\toffset = tbl + (int)((high - low + 1) << 2);\n\t\t\tbreak;\n\t\t }\n\n\t\t case bc_lookupswitch:{\n\t\t\tint tbl = (offset+1+3) & (~3);\t// four byte boundry\n\t\t\tint npairs = (int)intAt(tbl, 1);\n\t\t\tint nints = npairs * 2;\n\t\t\ttbl += 2 << 2; \t\t\t// two int header\n\n // Find number of unique table addresses\n Set set = new HashSet();\n for (int i = 0; i < nints; i += 2) {\n // use the address half of each pair\n int jumpAddr = (int)intAt (tbl, i + 1) + offset;\n set.add(new Integer(jumpAddr));\n }\n codePaths += set.size();\n \n\t\t\toffset = tbl + (nints << 2);\n\t\t\tbreak;\n\t\t }\n\n // Ignore other bcodes.\n\t\t case bc_anewarray: \n offset += 3;\n break;\n\n\t\t case bc_multianewarray: {\n\t\t\toffset += 4;\n\t\t\tbreak;\n\t\t }\n\n\t\t case bc_aload: case bc_astore:\n\t\t case bc_fload: case bc_fstore:\n\t\t case bc_iload: case bc_istore:\n\t\t case bc_lload: case bc_lstore:\n\t\t case bc_dload: case bc_dstore:\n\t\t case bc_ret: case bc_newarray:\n\t\t case bc_bipush: case bc_ldc:\n\t\t\toffset += 2;\n\t\t\tbreak;\n\t\t \n\t\t case bc_iinc: case bc_sipush:\n\t\t case bc_ldc_w: case bc_ldc2_w:\n\t\t case bc_goto:\n\t\t\toffset += 3;\n\t\t\tbreak;\n\n\t\t case bc_goto_w:\n\t\t\toffset += 5;\n\t\t\tbreak;\n\n\t\t default:\n\t\t\toffset++;\n\t\t\tbreak;\n\t\t}\n\t }\n\t}\n classRefs = expandClassNames(classIDs);\n methodRefs = expandMethodNames(methodIDs);\n }", "public List<String> getReturnTypes() {\n if (returnTypes.isEmpty()) {\n return Lists.newArrayList(\"void\");\n } else {\n return new ArrayList<>(returnTypes);\n }\n }" ]
[ "0.67304033", "0.61536056", "0.6114329", "0.6077135", "0.5975268", "0.58622307", "0.58575565", "0.58449674", "0.58102673", "0.5710492", "0.56467164", "0.56256706", "0.55907905", "0.5551291", "0.55234116", "0.551843", "0.550314", "0.5493882", "0.54518014", "0.5431802", "0.5408786", "0.5327009", "0.531784", "0.5280542", "0.52607626", "0.5213041", "0.5185456", "0.51796305", "0.5123513", "0.51042503", "0.51015", "0.50961804", "0.50881946", "0.5074278", "0.50662094", "0.50414", "0.5039845", "0.49844274", "0.49818513", "0.49719703", "0.4970088", "0.49595135", "0.49473548", "0.49317834", "0.4891834", "0.4885856", "0.4856694", "0.48505855", "0.4844207", "0.48203778", "0.48160514", "0.4801385", "0.48001206", "0.47923255", "0.4786527", "0.47845504", "0.47777957", "0.47763276", "0.4774285", "0.47742355", "0.47722077", "0.47711107", "0.47657472", "0.47650173", "0.47599146", "0.47581482", "0.47539687", "0.47484004", "0.47385755", "0.47282034", "0.47277403", "0.472471", "0.47240618", "0.47213548", "0.4718351", "0.4709529", "0.47087526", "0.47075468", "0.4703929", "0.4702803", "0.4696457", "0.46955383", "0.4692577", "0.46922946", "0.46912196", "0.46889654", "0.46876627", "0.46671796", "0.46607855", "0.46585214", "0.4656627", "0.46536413", "0.4649957", "0.46477038", "0.46410877", "0.46372938", "0.46366444", "0.46303946", "0.46296173", "0.4629547" ]
0.55427194
14
Set the parameter types of this method.
public void setParams(String[] names) { if (names == null) names = new String[0]; setDescriptor(getProject().getNameCache().getDescriptor(getReturnName(), names)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setParams(Class[] types) {\n if (types == null)\n setParams((String[]) null);\n else {\n String[] names = new String[types.length];\n for (int i = 0; i < types.length; i++)\n names[i] = types[i].getName();\n setParams(names);\n }\n }", "public void setParams(BCClass[] types) {\n if (types == null)\n setParams((String[]) null);\n else {\n String[] names = new String[types.length];\n for (int i = 0; i < types.length; i++)\n names[i] = types[i].getName();\n setParams(names);\n }\n }", "public void setTypeParameters(TypeParameterListNode typeParameters);", "Setter buildParameterSetter(Type[] types, String path);", "@Override\n public void setParameters(Map<Enum<?>, Object> parameters) {\n }", "public void setType(int paramtype)\r\n\t{\r\n\t\ttype = paramtype;\r\n\t}", "@Override\n\t\tpublic void setParameters(Object[] parameters) {\n\t\t\t\n\t\t}", "void setParameters(IParameterCollection parameters);", "void addConstructorParametersTypes(final List<Class<?>> parametersTypes) {\r\n\t\tconstructorParametersTypes.add(parametersTypes);\r\n\t}", "@Override\n\tprotected void setParameterValues() {\n\t}", "public void setParameters(String parameters);", "public void setParameterType(java.lang.Integer parameterType) {\r\n this.parameterType = parameterType;\r\n }", "void setParameters() {\n\t\t\n\t}", "@Override\n\tpublic Class[] getMethodParameterTypes() {\n\t\treturn new Class[]{byte[].class, int.class,byte[].class,\n\t\t byte[].class, int.class, byte[].class,\n\t\t int.class, byte[].class, byte[].class};\n\t}", "protected static void setStatementParameters(Object[] values, PreparedStatement ps, int[] columnTypes)\r\n/* 30: */ throws SQLException\r\n/* 31: */ {\r\n/* 32:48 */ int colIndex = 0;\r\n/* 33:49 */ Object[] arrayOfObject = values;int j = values.length;\r\n/* 34:49 */ for (int i = 0; i < j; i++)\r\n/* 35: */ {\r\n/* 36:49 */ Object value = arrayOfObject[i];\r\n/* 37:50 */ colIndex++;\r\n/* 38:51 */ if ((value instanceof SqlParameterValue))\r\n/* 39: */ {\r\n/* 40:52 */ SqlParameterValue paramValue = (SqlParameterValue)value;\r\n/* 41:53 */ StatementCreatorUtils.setParameterValue(ps, colIndex, paramValue, paramValue.getValue());\r\n/* 42: */ }\r\n/* 43: */ else\r\n/* 44: */ {\r\n/* 45: */ int colType;\r\n/* 46: */ int colType;\r\n/* 47:57 */ if ((columnTypes == null) || (columnTypes.length < colIndex)) {\r\n/* 48:58 */ colType = -2147483648;\r\n/* 49: */ } else {\r\n/* 50:61 */ colType = columnTypes[(colIndex - 1)];\r\n/* 51: */ }\r\n/* 52:63 */ StatementCreatorUtils.setParameterValue(ps, colIndex, colType, value);\r\n/* 53: */ }\r\n/* 54: */ }\r\n/* 55: */ }", "Type getMethodParameterType() throws IllegalArgumentException;", "public void SetInputParameters(AbstractParameterDictionary params) throws Exception {\n\t\t//String paramsClass = params.getClass().getSimpleName();\n\t\t\n\t\tthis.inputParameters = params;\n\t}", "@Override\n public Class<?>[] getParameterTypes() {\n return null;\n }", "public void setParamValues(Object[] values);", "public void setParamType(String paramType) {\n this.paramType = paramType;\n }", "public final void setTypes(AutocompleteType... types) {\n if (types == null) {\n return;\n }\n String[] stypes = new String[types.length]; \n for (int i=0; i < types.length; i++) {\n stypes[i] = types[i].value();\n }\n JsArrayString a = ArrayHelper.toJsArrayString(stypes);\n setTypesImpl(a);\n }", "public void argumentTypes (final A_Type... argTypes)\n\t{\n\t\tassert localTypes.size() == 0\n\t\t\t: \"Must declare argument types before allocating locals\";\n\t\tCollections.addAll(argumentTypes, argTypes);\n\t}", "@Override\r\n public void setParameter(String parameters) {\r\n // dummy\r\n }", "public void setTypes(ResultFormat[] types) {\n\n this.types = types != null ? types.clone() : null;;\n }", "@Override\n\tpublic void setParams(String[] params) {\n\t}", "@Override\n\tpublic void setParams(String[] params) {\n\t}", "void setAxisTypes(AxisType... axisTypes);", "List<Type> getTypeParameters();", "public void changeParameterList(String className, String methodName, List<String> paramNames, List<String> paramTypes)\n\t{\n\t\tstoreViewState();\n\t\tproject.changeParameterList(className, methodName, paramNames, paramTypes);\n\t\tcheckStatus();\n\t}", "@Override\n public void setParams(Object[] params) {\n if (params.length != 1) {\n throw new IllegalArgumentException(\"expected one parameter\");\n }\n setParams((Number) params[0]);\n }", "public void addTargetParameterType(Class<?> type) {\n this.targetParameterTypes.add(type);\n }", "Collection<Parameter> getTypedParameters();", "private void initParameters() {\n Annotation[][] paramsAnnotations = method.getParameterAnnotations();\n for (int i = 0; i < paramsAnnotations.length; i++) {\n if (paramsAnnotations[i].length == 0) {\n contentBuilder.addUnnamedParam(i);\n } else {\n for (Annotation annotation : paramsAnnotations[i]) {\n Class<?> annotationType = annotation.annotationType();\n if (annotationType.equals(PathParam.class)\n && pathBuilder != null) {\n PathParam param = (PathParam) annotation;\n pathBuilder.addParam(param.value(), i);\n } else if (annotationType.equals(QueryParam.class)) {\n QueryParam param = (QueryParam) annotation;\n queryBuilder.addParam(param.value(), i);\n } else if (annotationType.equals(HeaderParam.class)) {\n HeaderParam param = (HeaderParam) annotation;\n headerBuilder.addParam(param.value(), i);\n } else if (annotationType.equals(NamedParam.class)) {\n NamedParam param = (NamedParam) annotation;\n contentBuilder.addNamedParam(param.value(), i);\n } else {\n contentBuilder.addUnnamedParam(i);\n }\n }\n }\n }\n }", "private void addParams(List<Scope.Type> types, List<String> names) {\n\t for (int i = types.size() - 1; i >= 0; --i) {\n\t st.addArgument(types.get(i), names.get(i));\n\t }\n\t }", "void setParameter(String name, String[] values);", "public void addParam(Class type) {\n addParam(type.getName());\n }", "public void setParam(int pos, Class type) {\n setParam(pos, type.getName());\n }", "@Override\n public void setTemplateArgumentTypes(List<Type> argsTypes) {\n // System.out.println(\"ARRIVED AT TEMPLATE ARGS\");\n // System.out.println(\n // \"SETTING TYPES:\" + argsTypes.stream().map(Type::getCode).collect(Collectors.joining(\"\\n\")));\n // System.out.println(\"ARGS BEFORE:\" + getTemplateArgumentStrings(null));\n setInPlace(TEMPLATE_ARGUMENTS, argsTypes.stream()\n .map(TemplateArgumentType::new)\n .collect(Collectors.toList()));\n // System.out.println(\"ARGS AFTER:\" + getTemplateArgumentStrings(null));\n // setTemplateArgumentTypes(argsTypes, true);\n\n hasUpdatedArgumentTypes = true;\n }", "public void setParameters(Parameters params) {\n Log.e(TAG, \"setParameters()\");\n //params.dump();\n native_setParameters(params.flatten());\n }", "public void setParameters(ArrayList<ParameterEntry<String, String>> params) {\n parameters = params;\n }", "@Override\n public void setParameters(Object[] params) {\n this.parameters = params != null ? params : new Object[0];\n }", "public void setParameters(Properties props) {\n\n\t}", "public void setTypes(ArrayList<String> types){\n this.types = types;\n }", "public void setParamType(String paramType) {\n this.paramType = paramType == null ? null : paramType.trim();\n }", "private synchronized final void setParams(Vector poParams, final int piModuleType) {\n if (poParams == null) {\n throw new IllegalArgumentException(\"Parameters vector cannot be null.\");\n }\n\n switch (piModuleType) {\n case PREPROCESSING:\n this.oPreprocessingParams = poParams;\n break;\n\n case FEATURE_EXTRACTION:\n this.oFeatureExtractionParams = poParams;\n break;\n\n case CLASSIFICATION:\n this.oClassificationParams = poParams;\n break;\n\n default:\n throw new IllegalArgumentException(\"Unknown module type: \" + piModuleType + \".\");\n }\n }", "public TypeParameterListNode getTypeParameters()throws ClassCastException;", "public String getParameterType() { return parameterType; }", "public DataTypeDescriptor[] getParameterTypes() {\r\n return parameterTypes;\r\n }", "protected void setParameters(double[] parameters) {\n\tthis.parameters = parameters;\n }", "public ActionParameterTypes getParametersTypes() {\n\t\treturn this.signature;\n\t}", "void clearTypedParameters();", "public void buildTypeParamInfo() {\n\t\twriter.writeTypeParamInfo();\n\t}", "public void setTypeParameter(String typeParameter) {\n\t\tthis.typeParameter = typeParameter;\n\t}", "public void setIndependentParameters(ParameterList list);", "public String[] getParamTypeNames()\n/* */ {\n/* 353 */ return this.parameterTypeNames;\n/* */ }", "public void setParam(int pos, String type) {\n String[] origParams = getParamNames();\n if ((pos < 0) || (pos >= origParams.length))\n throw new IndexOutOfBoundsException(\"pos = \" + pos);\n\n String[] params = new String[origParams.length];\n for (int i = 0; i < params.length; i++) {\n if (i == pos)\n params[i] = type;\n else\n params[i] = origParams[i];\n }\n setParams(params);\n }", "private void fillParameters(Pconfig report) {\r\n\t\tList<? extends Parameter<?>> parameters = report.getParameters();\r\n\t\tfor (Parameter<?> param : parameters) {\r\n\t\t\tif (param instanceof StringParameter){\r\n\t\t\t\t((StringParameter) param).setValue(\"test string\");\r\n\t\t\t} else if (param instanceof IntegerParameter){\r\n\t\t\t\t((IntegerParameter) param).setValue(13);\r\n\t\t\t} else if (param instanceof DateParameter){\r\n\t\t\t\t((DateParameter) param).setValue(new Date());\r\n\t\t\t} else if (param instanceof BooleanParameter){\r\n\t\t\t\t((BooleanParameter) param).setValue(true);\r\n\t\t\t} else if (param instanceof EntityParameter){\r\n\t\t\t\tEntityParameter eparam = (EntityParameter) param;\r\n\t\t\t\tString type = eparam.getValueType();\r\n\t\t\t\tif (Integer.class.getSimpleName().equals(type)){\r\n\t\t\t\t\teparam.setValue(\"21\");\r\n\t\t\t\t} else if (Long.class.getSimpleName().equals(type)){\r\n\t\t\t\t\teparam.setValue(\"42\");\r\n\t\t\t\t}if (Double.class.getSimpleName().equals(type)){\r\n\t\t\t\t\teparam.setValue(\"9.4\");\r\n\t\t\t\t}if (Boolean.class.getSimpleName().equals(type)){\r\n\t\t\t\t\teparam.setValue(\"false\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void setParam(int pos, BCClass type) {\n setParam(pos, type.getName());\n }", "public ITypeInfo[] getParameters();", "Iterable<ActionParameterTypes> getParameterTypeAlternatives();", "TypeInfo[] typeParams();", "@ReactMethod\n public void setReportTypes(final ReadableArray types) {\n MainThreadHandler.runOnMainThread(new Runnable() {\n @SuppressLint(\"WrongConstant\")\n @Override\n public void run() {\n try {\n final ArrayList<String> keys = ArrayUtil.parseReadableArrayOfStrings(types);\n final ArrayList<Integer> types = ArgsRegistry.reportTypes.getAll(keys);\n\n final int[] typesInts = new int[types.size()];\n for (int i = 0; i < types.size(); i++) {\n typesInts[i] = types.get(i);\n }\n\n BugReporting.setReportTypes(typesInts);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n });\n }", "Statement setParameters(Object... params);", "public abstract void setPaymentTypes(java.util.Set paymentTypes);", "public MethodSignature(Klass returnType, Klass[] parameterTypes) {\n this.returnType = returnType;\n this.parameterTypes = parameterTypes;\n }", "public String getParamDefs() {\n return super.getParamDefs() + \", \" + PlainValueFunction.paramNameTypes;\n }", "public void setAdjustableParams(ParameterList paramList);", "public setType_args(setType_args other) {\n __isset_bitfield = other.__isset_bitfield;\n this.type = other.type;\n }", "public void setParameters(ArrayList parameters) {\n this.parameters = parameters;\n }", "public void addParam(BCClass type) {\n addParam(type.getName());\n }", "void setParameter(String name, Object value);", "public void addParam(String type) {\n String[] origParams = getParamNames();\n String[] params = new String[origParams.length + 1];\n for (int i = 0; i < origParams.length; i++)\n params[i] = origParams[i];\n params[origParams.length] = type;\n setParams(params);\n }", "public Setparam() {\r\n super();\r\n }", "public void addSourceParameterType(Class<?> type) {\n parameterTypes.add(type);\n }", "public void setParameters(String parameters){\n this.parameters=parameters;\n }", "public void setTypes(Object... interfaceTypeAndRemotes) throws AException\n {\n if (interfaceTypeAndRemotes == null || interfaceTypeAndRemotes.length % 2 == 1)\n {\n throw new AException(AException.ERR_SERVER, \"invalid parameter\");\n }\n \n Map<Class<?>, String> mapTypes = new HashMap<Class<?>, String>();\n for (int i = 0; i < interfaceTypeAndRemotes.length; i += 2)\n {\n Class<?> type = null;\n String remote = null;\n for (int j = i; j <= i + 1; j++)\n {\n Object objGot = interfaceTypeAndRemotes[j];\n if (objGot instanceof Class<?>)\n {\n type = (Class<?>) objGot;\n }\n \n if (objGot instanceof String)\n {\n remote = (String) objGot;\n }\n }\n \n if (Check.IfOneEmpty(type, remote))\n {\n throw new AException(AException.ERR_SERVER, \"invalid parameter\");\n }\n \n mapTypes.put(type, remote);\n }\n \n setTypes(mapTypes);\n }", "public ParameterType getType();", "protected void setFormalParameters(List params) {\n this._formalParameters = params;\n }", "void setDataType(int type );", "public void setPreparedStatementType(Class<? extends PreparedStatement> preparedStatementType)\r\n/* 30: */ {\r\n/* 31: 78 */ this.preparedStatementType = preparedStatementType;\r\n/* 32: */ }", "public void setParameters(GeoNumeric[] parameters) {\n\t\tthis.parameters = parameters;\n\t\tsettingChanged();\n\t}", "@Test\n public void testParameterType() throws Exception {\n ArrayList<Type> typeList = Lists.newArrayList();\n typeList.add(String.class);\n typeList.addAll(getBothParameters(ParamToListParam.class));\n typeList.add(getFirstTypeParameter(StringListSink.class));\n PipelineRegisterer.validateTypes(typeList);\n }", "void addTypedParameter(Parameter typedParameter);", "public void setParameterList(String parName,\n Collection<?> parVal) throws HibException ;", "void setType(Type type)\n {\n this.type = type;\n }", "ActionParameterTypes getFormalParameterTypes();", "@Override\r\n\tpublic void setParameters(Map<String, String[]> parameters){\n\t\tthis.parameters=parameters;\r\n\t}", "@Override\n\tpublic void setParameter(PreparedStatement ps, int i, String parameter,\n\t\t\tJdbcType jdbcType) throws SQLException {\n\t\t\n\t}", "private void setParameter(PreparedStatement stm, Object[] parameters) {\n\t\ttry {\n\t\t\tfor (int i = 0; i < parameters.length; i++) {\n\t\t\t\tObject parameter = parameters[i];\n\t\t\t\tint index = i + 1;\n\t\t\t\tif (parameter instanceof Long) {\n\t\t\t\t\tstm.setLong(index, (long) parameter);\n\t\t\t\t} else if (parameter instanceof String) {\n\t\t\t\t\tstm.setString(index, (String) parameter);\n\t\t\t\t} else if (parameter instanceof Integer) {\n\t\t\t\t\tstm.setInt(index, (int) parameter);\n\t\t\t\t} else if (parameter instanceof Float) {\n\t\t\t\t\tstm.setFloat(index, (float) parameter);\n\t\t\t\t} else if (parameter instanceof Boolean) {\n\t\t\t\t\tstm.setBoolean(index, (boolean) parameter);\n\t\t\t\t} else if (parameter instanceof Double) {\n\t\t\t\t\tstm.setDouble(index, (double) parameter);\n\t\t\t\t} else if (parameter instanceof Byte) {\n\t\t\t\t\tstm.setByte(index, (byte) parameter);\n\t\t\t\t} else if (parameter instanceof Short) {\n\t\t\t\t\tstm.setShort(index, (short) parameter);\n\t\t\t\t} else if (parameter instanceof Timestamp) {\n\t\t\t\t\tstm.setTimestamp(index, (Timestamp) parameter);\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\t// TODO: handle exception\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "@Override\r\n\tpublic void setParameter(PreparedStatement ps, int i, String parameter,\r\n\t\t\tJdbcType jdbcType) throws SQLException {\n\t\t\r\n\t}", "public void setArguments(Object[] method)\n {\n __m_Arguments = method;\n }", "@TestMethod(value=\"testSetParameters_arrayObject\")\n public void setParameters(Object[] params) throws CDKException {\n if (params.length > 3) \n throw new CDKException(\"PartialPiChargeDescriptor only expects three parameter\");\n \n if (!(params[0] instanceof Integer) )\n throw new CDKException(\"The parameter must be of type Integer\");\n\t maxIterations = (Integer) params[0];\n\t \n\t if(params.length > 1 && params[1] != null){\n \tif (!(params[1] instanceof Boolean) )\n throw new CDKException(\"The parameter must be of type Boolean\");\n \tlpeChecker = (Boolean) params[1];\n }\n\t \n\t if(params.length > 2 && params[2] != null){\n \tif (!(params[2] instanceof Integer) )\n throw new CDKException(\"The parameter must be of type Integer\");\n \tmaxResonStruc = (Integer) params[2];\n }\n }", "public List<Class<?>> getSourceParameterTypes() {\n return parameterTypes;\n }", "@Override\n\tpublic Annotation[] getParameterAnnotations() {\n\t\treturn new Annotation[]{};\n\t}", "void setParameters(Map<String, String[]> parameters);", "protected boolean onlyUsesTheseParameters(Set<TypeParameter> parameters) {\n if (isParameterized()) {\n if (isFullyInstantiated()) return true;\n\n for (ModifiedType modifiedType : getTypeParameters()) {\n Type parameter = modifiedType.getType();\n if (parameter instanceof TypeParameter typeParameter) {\n if (!parameters.contains(typeParameter)) return false;\n } else if (!parameter.onlyUsesTheseParameters(parameters)) return false;\n }\n }\n\n return true;\n }", "public void setParameterNameValuePairs(entity.LoadParameter[] value);", "void setSignatureType(int signatureType);", "private void checkForPrimitiveParameters(Method execMethod, Logger logger) {\n final Class<?>[] paramTypes = execMethod.getParameterTypes();\n for (final Class<?> paramType : paramTypes) {\n if (paramType.isPrimitive()) {\n logger.config(\"The method \" + execMethod\n + \" contains a primitive parameter \" + paramType + \".\");\n logger\n .config(\"It is recommended to use it's wrapper class. If no value could be read from the request, now you would got the default value. If you use the wrapper class, you would get null.\");\n break;\n }\n }\n }", "@Override\n protected PacketArgs.ArgumentType[] getArgumentTypes() {\n return new PacketArgs.ArgumentType[] { PacketArgs.ArgumentType.String };\n }", "public void setType(String type);" ]
[ "0.7083143", "0.67132866", "0.66891664", "0.6488886", "0.6375148", "0.63389224", "0.6288558", "0.61555326", "0.6102848", "0.6078399", "0.60514104", "0.6050634", "0.6037454", "0.59405303", "0.59242874", "0.5905266", "0.59023005", "0.5901249", "0.5895398", "0.58951914", "0.57725406", "0.5766603", "0.574709", "0.5741133", "0.5717736", "0.5717736", "0.5713632", "0.5711981", "0.5694051", "0.5691389", "0.5647898", "0.564335", "0.56289893", "0.56109923", "0.55831695", "0.558301", "0.5579903", "0.5570702", "0.5561853", "0.55563587", "0.554465", "0.5542814", "0.5530256", "0.5528072", "0.5514915", "0.5485711", "0.54792416", "0.5459173", "0.5454449", "0.54514056", "0.5450932", "0.5440495", "0.5424089", "0.54226077", "0.5421396", "0.54153484", "0.5405251", "0.5400507", "0.53933656", "0.53903264", "0.53609025", "0.53484064", "0.5347297", "0.5334795", "0.5322225", "0.5321416", "0.53042144", "0.5302121", "0.5288985", "0.52763295", "0.5272839", "0.5272459", "0.5262402", "0.52603245", "0.5255979", "0.5228791", "0.52158827", "0.5214434", "0.5214381", "0.5202427", "0.5192911", "0.5191762", "0.5191704", "0.5190213", "0.51840323", "0.5179928", "0.5178633", "0.5176442", "0.5171565", "0.5168426", "0.51637006", "0.5151741", "0.5149227", "0.5148734", "0.51451516", "0.5141652", "0.51375324", "0.51357913", "0.51311284", "0.51303387", "0.5116774" ]
0.0
-1
Set the parameter type of this method.
public void setParams(Class[] types) { if (types == null) setParams((String[]) null); else { String[] names = new String[types.length]; for (int i = 0; i < types.length; i++) names[i] = types[i].getName(); setParams(names); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setParameterType(java.lang.Integer parameterType) {\r\n this.parameterType = parameterType;\r\n }", "public void setType(int paramtype)\r\n\t{\r\n\t\ttype = paramtype;\r\n\t}", "public void setParamType(String paramType) {\n this.paramType = paramType;\n }", "public void setTypeParameter(String typeParameter) {\n\t\tthis.typeParameter = typeParameter;\n\t}", "public String getParameterType() { return parameterType; }", "public void setParamType(String paramType) {\n this.paramType = paramType == null ? null : paramType.trim();\n }", "public void setParam(int pos, Class type) {\n setParam(pos, type.getName());\n }", "public void addParam(Class type) {\n addParam(type.getName());\n }", "public ParameterType getType();", "void setType(Type type)\n {\n this.type = type;\n }", "public void setParam(int pos, BCClass type) {\n setParam(pos, type.getName());\n }", "public void setTypeParameters(TypeParameterListNode typeParameters);", "Type getMethodParameterType() throws IllegalArgumentException;", "public void addParam(BCClass type) {\n addParam(type.getName());\n }", "public void setType(Object type)\r\n {\r\n\tthis.type = type;\r\n }", "public void addParam(String type) {\n String[] origParams = getParamNames();\n String[] params = new String[origParams.length + 1];\n for (int i = 0; i < origParams.length; i++)\n params[i] = origParams[i];\n params[origParams.length] = type;\n setParams(params);\n }", "public java.lang.Integer getParameterType() {\r\n return parameterType;\r\n }", "public String getParamType() {\n return paramType;\n }", "public String getParamType() {\n return paramType;\n }", "void setType(String type) {\n this.type = type;\n }", "public void setType(String type);", "public void setType(String type);", "public void setType(String type);", "public void setType(Type t) {\n type = t;\n }", "public void setParam(int pos, String type) {\n String[] origParams = getParamNames();\n if ((pos < 0) || (pos >= origParams.length))\n throw new IndexOutOfBoundsException(\"pos = \" + pos);\n\n String[] params = new String[origParams.length];\n for (int i = 0; i < params.length; i++) {\n if (i == pos)\n params[i] = type;\n else\n params[i] = origParams[i];\n }\n setParams(params);\n }", "void setType(java.lang.String type);", "public void setType(Type type){\n\t\tthis.type = type;\n\t}", "public void setType( Type type ) {\n assert type != null;\n this.type = type;\n }", "void setParameter(String name, Object value);", "public static ParameterExpression parameter(Class type) { throw Extensions.todo(); }", "public void setType(String inType)\n {\n\ttype = inType;\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 }", "@Override\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 \tthis.type = type;\n }", "public void setType(int type) {\n type_ = type;\n }", "public void setType(type type) {\r\n\t\tthis.Type = type;\r\n\t}", "public void set_type(String t)\n {\n type =t;\n }", "public MethodBuilder type(String type) {\n\t\tthis.type = type;\n\t\treturn this;\n\t}", "private void setType(String type) {\n mType = type;\n }", "public void setType(String type) \n {\n this.type = type;\n }", "@Override\n\tpublic void setType(String type) {\n\t}", "public final void setType(String type){\n\t\tthis.type = type;\t\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(int t){\n this.type = t;\n }", "public void setParameterType2(java.lang.Integer parameterType2) {\r\n this.parameterType2 = parameterType2;\r\n }", "public void setType(Type t) {\n\t\ttype = t;\n\t}", "public void setType (String typ) {\n type = typ;\n }", "public void setType(String type){\n this.type = type;\n }", "public void addSourceParameterType(Class<?> type) {\n parameterTypes.add(type);\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 }", "public void setType( int type ) {\r\n typ = type;\r\n }", "public void setType(String type) {\r\n this.type = type;\r\n }", "public void addTargetParameterType(Class<?> type) {\n this.targetParameterTypes.add(type);\n }", "protected void setType(String requiredType){\r\n type = requiredType;\r\n }", "public final native void setType(String type) /*-{\n this.setType(type);\n }-*/;", "public void setType( String type )\n {\n this.type = type;\n }", "void addTypedParameter(Parameter typedParameter);", "public static ParameterExpression parameter(Class type, String name) { throw Extensions.todo(); }", "void setDataType(int type );", "public void setType(int type) {\n this.type = type;\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 }", "void setClassType(String classType);", "public void setPreparedStatementType(Class<? extends PreparedStatement> preparedStatementType)\r\n/* 30: */ {\r\n/* 31: 78 */ this.preparedStatementType = preparedStatementType;\r\n/* 32: */ }", "public void setType( String type ) {\n this.type = type;\n }", "public void setType(Class type) {\n\t this.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 }", "public void setType(String aType) {\n iType = aType;\n }", "public void setType(String type) {\n this.type = type;\n }", "public void setType(String type) {\n this.type = type;\n }", "public abstract void setType();", "public void setType(Integer type) {\n this.type = type;\n }", "public void setType(Integer type) {\n this.type = type;\n }", "public void setType(Integer type) {\n this.type = type;\n }", "public void setType(Integer type) {\n this.type = type;\n }", "public void setType(Integer type) {\n this.type = type;\n }", "public void setType(Integer type) {\n this.type = type;\n }", "public void setType(Integer type) {\n this.type = type;\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(Integer type) {\r\n\t\tthis.type = type;\r\n\t}", "public void addParam(int pos, Class type) {\n addParam(pos, type.getName());\n }", "public void setType(int t) {\r\n\t\ttype = t;\r\n\t}", "public void setType(int atype)\n {\n type = atype;\n }", "@Override\n\tpublic void setType(String type) {\n\t\tthis.type = type;\n\t}", "void setParameter(String name, String value);", "public void setType(String type){\n\t\tthis.type = type;\n\t}", "public NumberedParameter(ParameterType type, int number) {\n this.type = type;\n this.number = number;\n }", "public void setType(String type) {\r\r\n\t\tthis.type = type;\r\r\n\t}", "public void setType(final Type type) {\n this.type = type;\n }" ]
[ "0.77794677", "0.7762594", "0.7500376", "0.7459485", "0.7226476", "0.7082893", "0.6764359", "0.67297643", "0.66649234", "0.6621631", "0.6581211", "0.65389514", "0.647611", "0.6433272", "0.63848823", "0.6382302", "0.6338869", "0.6327047", "0.6327047", "0.63140875", "0.63016504", "0.63016504", "0.63016504", "0.6269993", "0.6247964", "0.6204116", "0.619824", "0.61974734", "0.6195829", "0.61885107", "0.61836195", "0.6171783", "0.6171783", "0.6171783", "0.61642635", "0.6163709", "0.61631507", "0.61559886", "0.6155267", "0.61412984", "0.6139919", "0.61355436", "0.61282146", "0.61232156", "0.6105764", "0.61020434", "0.6093076", "0.60911214", "0.60877156", "0.60796607", "0.60774875", "0.6061956", "0.6060036", "0.6060036", "0.6036066", "0.6036066", "0.60357463", "0.60310805", "0.6028727", "0.6026918", "0.6020876", "0.6014115", "0.6013984", "0.601231", "0.6010426", "0.598532", "0.5983401", "0.5983401", "0.5983401", "0.5983401", "0.59811246", "0.5978265", "0.5964842", "0.5958822", "0.59520113", "0.59520113", "0.59520113", "0.5946768", "0.59466213", "0.59466213", "0.5944961", "0.59408516", "0.59408516", "0.59408516", "0.59408516", "0.59408516", "0.59408516", "0.59408516", "0.5938526", "0.5934768", "0.5934768", "0.5932307", "0.59293616", "0.592305", "0.59173405", "0.5915013", "0.5907214", "0.5905703", "0.5900681", "0.58974093", "0.5894659" ]
0.0
-1
Set the parameter type of this method.
public void setParams(BCClass[] types) { if (types == null) setParams((String[]) null); else { String[] names = new String[types.length]; for (int i = 0; i < types.length; i++) names[i] = types[i].getName(); setParams(names); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setParameterType(java.lang.Integer parameterType) {\r\n this.parameterType = parameterType;\r\n }", "public void setType(int paramtype)\r\n\t{\r\n\t\ttype = paramtype;\r\n\t}", "public void setParamType(String paramType) {\n this.paramType = paramType;\n }", "public void setTypeParameter(String typeParameter) {\n\t\tthis.typeParameter = typeParameter;\n\t}", "public String getParameterType() { return parameterType; }", "public void setParamType(String paramType) {\n this.paramType = paramType == null ? null : paramType.trim();\n }", "public void setParam(int pos, Class type) {\n setParam(pos, type.getName());\n }", "public void addParam(Class type) {\n addParam(type.getName());\n }", "public ParameterType getType();", "void setType(Type type)\n {\n this.type = type;\n }", "public void setParam(int pos, BCClass type) {\n setParam(pos, type.getName());\n }", "public void setTypeParameters(TypeParameterListNode typeParameters);", "Type getMethodParameterType() throws IllegalArgumentException;", "public void addParam(BCClass type) {\n addParam(type.getName());\n }", "public void setType(Object type)\r\n {\r\n\tthis.type = type;\r\n }", "public void addParam(String type) {\n String[] origParams = getParamNames();\n String[] params = new String[origParams.length + 1];\n for (int i = 0; i < origParams.length; i++)\n params[i] = origParams[i];\n params[origParams.length] = type;\n setParams(params);\n }", "public java.lang.Integer getParameterType() {\r\n return parameterType;\r\n }", "public String getParamType() {\n return paramType;\n }", "public String getParamType() {\n return paramType;\n }", "void setType(String type) {\n this.type = type;\n }", "public void setType(String type);", "public void setType(String type);", "public void setType(String type);", "public void setType(Type t) {\n type = t;\n }", "public void setParam(int pos, String type) {\n String[] origParams = getParamNames();\n if ((pos < 0) || (pos >= origParams.length))\n throw new IndexOutOfBoundsException(\"pos = \" + pos);\n\n String[] params = new String[origParams.length];\n for (int i = 0; i < params.length; i++) {\n if (i == pos)\n params[i] = type;\n else\n params[i] = origParams[i];\n }\n setParams(params);\n }", "void setType(java.lang.String type);", "public void setType(Type type){\n\t\tthis.type = type;\n\t}", "public void setType( Type type ) {\n assert type != null;\n this.type = type;\n }", "void setParameter(String name, Object value);", "public static ParameterExpression parameter(Class type) { throw Extensions.todo(); }", "public void setType(String inType)\n {\n\ttype = inType;\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 }", "@Override\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 \tthis.type = type;\n }", "public void setType(int type) {\n type_ = type;\n }", "public void setType(type type) {\r\n\t\tthis.Type = type;\r\n\t}", "public void set_type(String t)\n {\n type =t;\n }", "public MethodBuilder type(String type) {\n\t\tthis.type = type;\n\t\treturn this;\n\t}", "private void setType(String type) {\n mType = type;\n }", "public void setType(String type) \n {\n this.type = type;\n }", "@Override\n\tpublic void setType(String type) {\n\t}", "public final void setType(String type){\n\t\tthis.type = type;\t\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(int t){\n this.type = t;\n }", "public void setParameterType2(java.lang.Integer parameterType2) {\r\n this.parameterType2 = parameterType2;\r\n }", "public void setType(Type t) {\n\t\ttype = t;\n\t}", "public void setType (String typ) {\n type = typ;\n }", "public void setType(String type){\n this.type = type;\n }", "public void addSourceParameterType(Class<?> type) {\n parameterTypes.add(type);\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 }", "public void setType( int type ) {\r\n typ = type;\r\n }", "public void setType(String type) {\r\n this.type = type;\r\n }", "public void addTargetParameterType(Class<?> type) {\n this.targetParameterTypes.add(type);\n }", "protected void setType(String requiredType){\r\n type = requiredType;\r\n }", "public final native void setType(String type) /*-{\n this.setType(type);\n }-*/;", "public void setType( String type )\n {\n this.type = type;\n }", "void addTypedParameter(Parameter typedParameter);", "public static ParameterExpression parameter(Class type, String name) { throw Extensions.todo(); }", "void setDataType(int type );", "public void setType(int type) {\n this.type = type;\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 }", "void setClassType(String classType);", "public void setPreparedStatementType(Class<? extends PreparedStatement> preparedStatementType)\r\n/* 30: */ {\r\n/* 31: 78 */ this.preparedStatementType = preparedStatementType;\r\n/* 32: */ }", "public void setType( String type ) {\n this.type = type;\n }", "public void setType(Class type) {\n\t this.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 }", "public void setType(String aType) {\n iType = aType;\n }", "public void setType(String type) {\n this.type = type;\n }", "public void setType(String type) {\n this.type = type;\n }", "public abstract void setType();", "public void setType(Integer type) {\n this.type = type;\n }", "public void setType(Integer type) {\n this.type = type;\n }", "public void setType(Integer type) {\n this.type = type;\n }", "public void setType(Integer type) {\n this.type = type;\n }", "public void setType(Integer type) {\n this.type = type;\n }", "public void setType(Integer type) {\n this.type = type;\n }", "public void setType(Integer type) {\n this.type = type;\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(Integer type) {\r\n\t\tthis.type = type;\r\n\t}", "public void addParam(int pos, Class type) {\n addParam(pos, type.getName());\n }", "public void setType(int t) {\r\n\t\ttype = t;\r\n\t}", "public void setType(int atype)\n {\n type = atype;\n }", "@Override\n\tpublic void setType(String type) {\n\t\tthis.type = type;\n\t}", "void setParameter(String name, String value);", "public void setType(String type){\n\t\tthis.type = type;\n\t}", "public NumberedParameter(ParameterType type, int number) {\n this.type = type;\n this.number = number;\n }", "public void setType(String type) {\r\r\n\t\tthis.type = type;\r\r\n\t}", "public void setType(final Type type) {\n this.type = type;\n }" ]
[ "0.77794677", "0.7762594", "0.7500376", "0.7459485", "0.7226476", "0.7082893", "0.6764359", "0.67297643", "0.66649234", "0.6621631", "0.6581211", "0.65389514", "0.647611", "0.6433272", "0.63848823", "0.6382302", "0.6338869", "0.6327047", "0.6327047", "0.63140875", "0.63016504", "0.63016504", "0.63016504", "0.6269993", "0.6247964", "0.6204116", "0.619824", "0.61974734", "0.6195829", "0.61885107", "0.61836195", "0.6171783", "0.6171783", "0.6171783", "0.61642635", "0.6163709", "0.61631507", "0.61559886", "0.6155267", "0.61412984", "0.6139919", "0.61355436", "0.61282146", "0.61232156", "0.6105764", "0.61020434", "0.6093076", "0.60911214", "0.60877156", "0.60796607", "0.60774875", "0.6061956", "0.6060036", "0.6060036", "0.6036066", "0.6036066", "0.60357463", "0.60310805", "0.6028727", "0.6026918", "0.6020876", "0.6014115", "0.6013984", "0.601231", "0.6010426", "0.598532", "0.5983401", "0.5983401", "0.5983401", "0.5983401", "0.59811246", "0.5978265", "0.5964842", "0.5958822", "0.59520113", "0.59520113", "0.59520113", "0.5946768", "0.59466213", "0.59466213", "0.5944961", "0.59408516", "0.59408516", "0.59408516", "0.59408516", "0.59408516", "0.59408516", "0.59408516", "0.5938526", "0.5934768", "0.5934768", "0.5932307", "0.59293616", "0.592305", "0.59173405", "0.5915013", "0.5907214", "0.5905703", "0.5900681", "0.58974093", "0.5894659" ]
0.0
-1
Add a parameter type to this method.
public void addParam(String type) { String[] origParams = getParamNames(); String[] params = new String[origParams.length + 1]; for (int i = 0; i < origParams.length; i++) params[i] = origParams[i]; params[origParams.length] = type; setParams(params); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void addTypedParameter(Parameter typedParameter);", "public void addParam(Class type) {\n addParam(type.getName());\n }", "public void addParam(BCClass type) {\n addParam(type.getName());\n }", "public void addParam(int pos, Class type) {\n addParam(pos, type.getName());\n }", "public void addSourceParameterType(Class<?> type) {\n parameterTypes.add(type);\n }", "public void addParameter(VariableType _type, String _name) {\n\t\tparameterType.add(_type);\n\t\tVariableItem _variableItem=new VariableItem(_type,_name);\t\t\n\t\tvariableItem.add(_variableItem);\n\t}", "public JVar addParameter(JType type, String name) {\n if(intf!=null)\n intfMethod.param(type,name);\n return implMethod.param(type,name);\n }", "public void addParam(int pos, BCClass type) {\n addParam(pos, type.getName());\n }", "public void addTargetParameterType(Class<?> type) {\n this.targetParameterTypes.add(type);\n }", "public void setParamType(String paramType) {\n this.paramType = paramType;\n }", "public void addParameter(ParmInfoEntry p){\n\t}", "public void setParameterType(java.lang.Integer parameterType) {\r\n this.parameterType = parameterType;\r\n }", "public String getParameterType() { return parameterType; }", "public void setTypeParameter(String typeParameter) {\n\t\tthis.typeParameter = typeParameter;\n\t}", "public void setTypeParameters(TypeParameterListNode typeParameters);", "public void addParam(int pos, String type) {\n String[] origParams = getParamNames();\n if ((pos < 0) || (pos >= origParams.length))\n throw new IndexOutOfBoundsException(\"pos = \" + pos);\n\n String[] params = new String[origParams.length + 1];\n for (int i = 0, index = 0; i < params.length; i++) {\n if (i == pos)\n params[i] = type;\n else\n params[i] = origParams[index++];\n }\n setParams(params);\n }", "public static ParameterExpression parameter(Class type) { throw Extensions.todo(); }", "public ParameterType getType();", "protected final void addParameter(final ParameterDef parameter) {\n parameters.add(parameter);\n }", "public static ParameterExpression parameter(Class type, String name) { throw Extensions.todo(); }", "Type getMethodParameterType() throws IllegalArgumentException;", "private synchronized final void addParam(Object oParam, final int piModuleType) {\n switch (piModuleType) {\n case PREPROCESSING:\n this.oPreprocessingParams.add(oParam);\n break;\n\n case FEATURE_EXTRACTION:\n this.oFeatureExtractionParams.add(oParam);\n break;\n\n case CLASSIFICATION:\n this.oClassificationParams.add(oParam);\n break;\n\n default:\n throw new IllegalArgumentException(\"Unknown module type: \" + piModuleType + \".\");\n }\n }", "Report addParameter(String parameter, Object value);", "public void setType(int paramtype)\r\n\t{\r\n\t\ttype = paramtype;\r\n\t}", "private void addParameter(int param) {\r\n command_parameters.addInt(param);\r\n }", "public void addParameter(ParameterExtendedImpl param) {\n \tParameterExtendedImpl paramExt = parameters.getParameter(param.getIndex());\n \tif(paramExt != null)\n \t\tparamExt = new ParameterExtendedImpl(param);\n \t\n \tparamExt = parameters.getParameter(param.getIndex(), param.getDirection());\n \tif(paramExt != null){\n \t\tparamExt = new ParameterExtendedImpl(param);\n \t\treturn;\n \t}\n \t\n \taddToParameters(param);\n }", "public abstract void addParameter(String key, Object value);", "private void addParameter( String classname ){\n if(DEBUG) System.out.print(classname+\" \");\n\n // get the class\n Class klass=null;\n try{\n klass=Class.forName(classname);\n }catch(NoClassDefFoundError e){\n if(DEBUG) System.out.println(\"(NoClassDefError) NO\");\n return;\n }catch(ClassNotFoundException e){\n if(DEBUG) System.out.println(\"(ClassNotFoundException) NO\");\n return;\n }catch(ClassFormatError e){\n if(DEBUG) System.out.println(\"(ClassFormatError) NO\");\n return;\n }\n\n // confirm this isn't null\n if(klass==null){\n if(DEBUG) System.out.println(\"(Null Class) NO\");\n return;\n }\n\n // check that this is not an interface or abstract\n int modifier=klass.getModifiers();\n if(Modifier.isInterface(modifier)){\n if(DEBUG) System.out.println(\"(Interface) NO\");\n return;\n }\n if(Modifier.isAbstract(modifier)){\n if(DEBUG) System.out.println(\"(Abstract) NO\");\n return;\n }\n\n // check that this is a parameter\n if(! (IParameter.class.isAssignableFrom(klass)) ){\n if(DEBUG) System.out.println(\"(Not a IParameter) NO\");\n return;\n }\n\n // get the instance\n IParameter param= null;\n try{\n param = getInstance(klass,DEBUG);\n }catch( Exception ss){\n \n }\n\n if( param == null ){\n return;\n }\n\n // get the type which will be the key in the hashtable\n String type=param.getType();\n\n if(type == null) {\n System.err.println(\"Type not defined for \" + param.getClass());\n return;\n }\n if(type.equals(\"UNKNOWN\")){\n if(DEBUG) System.out.println(\"(Type Unknown) NO\");\n return;\n }else{\n if(DEBUG) System.out.print(\"[type=\"+type+\"] \");\n }\n\n // add it to the hashtable\n paramList.put(type,klass);\n \n // final debug print\n if(DEBUG) System.out.println(\"OK\");\n }", "public void addArgumentTypeSerialization(String functionName, String argumentName, TensorType type) {\n wrappedSerializationContext.addArgumentTypeSerialization(functionName, argumentName, type);\n }", "public void addParameter(ConstraintParameter param) {\n\t\tif (m_parameters == null) {\n\t\t\tm_parameters = new ArrayList<ConstraintParameter>();\n\t\t\tm_parameterString = \"\";\n\t\t}\n\t\t\n\t\t// add this parameter info to the end of the list\n\t\tm_parameters.add(param);\n\t\tm_parameterString += \" :\" + param.toString();\n\t}", "public void addParameter( ParameterClass parameter )\n\t{\n\t\tnotLocked();\n\t\t\n\t\t// make sure we don't already have one by this name\n\t\tif( parameters.containsKey(parameter.getName()) )\n\t\t{\n\t\t\tthrow new DiscoException( \"Add Parameter Failed: Class [%s] already has parameter with name [%s]\",\n\t\t\t name, parameter.getName() );\n\t\t}\n\t\t\n\t\t// store the parameter\n\t\tparameter.setParent( this );\n\t\tparameters.put( parameter.getName(), parameter );\n\t}", "public void addIndependentParameter(ParameterAPI parameter)\n throws ParameterException;", "public MethodBuilder parameter(String parameter) {\n\t\tparameters.add(parameter);\n\t\treturn this;\n\t}", "public void setParamType(String paramType) {\n this.paramType = paramType == null ? null : paramType.trim();\n }", "public void add(Type t);", "public void addParameter(String name, Object value) {\r\n\t\tparameters.put(name, value);\r\n\t}", "public void addParameter(String name, Object value) {\n t.setParameter(name, value);\n }", "public static boolean typeParameter(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"typeParameter\")) return false;\n boolean r;\n Marker m = enter_section_(b, l, _NONE_, TYPE_PARAMETER, \"<type parameter>\");\n r = typeParameter_0(b, l + 1);\n r = r && componentName(b, l + 1);\n r = r && typeParameter_2(b, l + 1);\n exit_section_(b, l, m, r, false, DartParser::type_parameter_recover);\n return r;\n }", "private void handleParameters(Node node, ParamType paramType) {\n\n Parameters parameters = new Parameters();\n parameters.setName(node.attributes().get(\"name\").toString());\n Map<String, Object> parameter = new HashMap<String, Object>();\n\n Iterator<Node> itr = node.childNodes();\n while (itr.hasNext()) {\n Node childNode = itr.next();\n String key = childNode.attributes().get(\"name\").toString();\n String value = childNode.attributes().get(\"value\").toString();\n parameter.put(key, value);\n }\n parameters.setParameter(parameter);\n switch (paramType) {\n\n case TESTSUITE:\n testSuite.addParameters(parameters);\n break;\n case TESTCASE:\n currentTestCase.addParameters(parameters);\n break;\n case TESTSTEP:\n currentTestStep.addParameters(parameters);\n break;\n case PERMUTATION:\n currentPermutation.addParameters(parameters);\n break;\n }\n\n }", "public TypeParameterListNode getTypeParameters()throws ClassCastException;", "@Override\n public String kind() {\n return \"@param\";\n }", "Builder addAdditionalType(String value);", "public void addInputParameter(Parameter parameter) {\n\t\tif (!validParameter(parameter.getName(), parameter.getValue())) {\n\t\t\tthrow new IllegalArgumentException(\"Invalid input parameter!\");\n\t\t}\n\t\tparameters.add(parameter);\n\n\t\tupdateStructureHash();\n\t}", "public void addType(TypeData type) { types.add(type); }", "public void setParam(int pos, Class type) {\n setParam(pos, type.getName());\n }", "default HxParameter createParameter(final HxType parameterType) {\n return createParameter(parameterType.getName());\n }", "public void addParam(JParameter x) {\n params = Lists.add(params, x);\n }", "public void buildTypeParamInfo() {\n\t\twriter.writeTypeParamInfo();\n\t}", "public String getParamType() {\n return paramType;\n }", "public String getParamType() {\n return paramType;\n }", "private final void addParam(Object oParam, final int piModule)\n\t{\n\t\tswitch(piModule)\n\t\t{\n\t\t\tcase PREPROCESSING:\n\t\t\t\tthis.oPreprocessingParams.add(oParam);\n\t\t\t\tbreak;\n\n\t\t\tcase FEATURE_EXTRACTION:\n\t\t\t\tthis.oFeatureExtraction.add(oParam);\n\t\t\t\tbreak;\n\n\t\t\tcase CLASSIFICATION:\n\t\t\t\tthis.oClassification.add(oParam);\n\t\t\t\tbreak;\n\n\t\t\tdefault:\n\t\t\t\tMARF.debug(\"ModuleParams.addParam() - Unknown module type: \" + piModule);\n\t\t}\n\t}", "public AnnotatedTypeBuilder<X> overrideParameterType(AnnotatedParameter<? super X> parameter, Type type) {\n\t\tif (parameter.getDeclaringCallable().getJavaMember() instanceof Method) {\n\t\t\tMethod method = (Method) parameter.getDeclaringCallable().getJavaMember();\n\t\t\treturn overrideMethodParameterType(method, parameter.getPosition(), type);\n\t\t}\n\t\tif (parameter.getDeclaringCallable().getJavaMember() instanceof Constructor<?>) {\n\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\tConstructor<X> constructor = (Constructor<X>) parameter.getDeclaringCallable().getJavaMember();\n\t\t\treturn overrideConstructorParameterType(constructor, parameter.getPosition(), type);\n\t\t} else {\n\t\t\tthrow new IllegalArgumentException(\"Cannot remove from parameter \" + parameter\n\t\t\t\t\t+ \" - cannot operate on member \" + parameter.getDeclaringCallable().getJavaMember());\n\t\t}\n\t}", "void addParameter(String name, String value) throws CheckerException;", "@Override\n public void addParam(String param, Object value) {\n request.addProperty(param, value);\n }", "protected String addParams(IntrospectedTable introspectedTable, Method method, int type1) {\n switch (type1) {\n case 1:\n method.addParameter(new Parameter(pojoType, \"record\"));\n return \"record\";\n case 2:\n if (introspectedTable.getRules().generatePrimaryKeyClass()) {\n FullyQualifiedJavaType type = new FullyQualifiedJavaType(introspectedTable.getPrimaryKeyType());\n method.addParameter(new Parameter(type, \"key\"));\n } else {\n for (IntrospectedColumn introspectedColumn : introspectedTable.getPrimaryKeyColumns()) {\n FullyQualifiedJavaType type = introspectedColumn.getFullyQualifiedJavaType();\n method.addParameter(new Parameter(type, introspectedColumn.getJavaProperty()));\n }\n }\n StringBuffer sb = new StringBuffer();\n for (IntrospectedColumn introspectedColumn : introspectedTable.getPrimaryKeyColumns()) {\n sb.append(introspectedColumn.getJavaProperty());\n sb.append(\",\");\n }\n sb.setLength(sb.length() - 1);\n return sb.toString();\n case 3:\n method.addParameter(new Parameter(pojoExampleType, \"example\"));\n return \"example\";\n case 4:\n method.addParameter(0, new Parameter(pojoType, \"record\"));\n method.addParameter(1, new Parameter(pojoExampleType, \"example\"));\n return \"record, example\";\n default:\n break;\n }\n return null;\n }", "public void addParameter(ParameterDefinition parameterDefinition) {\r\n if (parameterDefinition == null) {\r\n return;\r\n }\r\n parameterDefinitions.add(parameterDefinition);\r\n shortNamesMap.put(parameterDefinition.getShortName(), parameterDefinition);\r\n longNamesMap.put(parameterDefinition.getLongName(), parameterDefinition);\r\n }", "@Generated(value={\"edu.jhu.cs.bsj.compiler.utils.generator.SourceGenerator\"})\npublic interface TypeParameterNode extends Node, TypeNameBindingNode\n{\n /**\n * Gets the base type name for the parameter.\n * @return The base type name for the parameter.\n * @throws ClassCastException If the value of this property is a special node.\n */\n public IdentifierNode getIdentifier()throws ClassCastException;\n \n /**\n * Gets the union object for the base type name for the parameter.\n * @return A union object representing The base type name for the parameter.\n */\n public NodeUnion<? extends IdentifierNode> getUnionForIdentifier();\n \n /**\n * Changes the base type name for the parameter.\n * @param identifier The base type name for the parameter.\n */\n public void setIdentifier(IdentifierNode identifier);\n \n /**\n * Changes the base type name for the parameter.\n * @param identifier The base type name for the parameter.\n * @throws NullPointerException If the provided value is <code>null</code>.\n * Node union values may have <code>null</code>\n * contents but are never <code>null</code>\n * themselves.\n */\n public void setUnionForIdentifier(NodeUnion<? extends IdentifierNode> identifier) throws NullPointerException;\n \n /**\n * Gets the bounds over the base type.\n * @return The bounds over the base type.\n * @throws ClassCastException If the value of this property is a special node.\n */\n public DeclaredTypeListNode getBounds()throws ClassCastException;\n \n /**\n * Gets the union object for the bounds over the base type.\n * @return A union object representing The bounds over the base type.\n */\n public NodeUnion<? extends DeclaredTypeListNode> getUnionForBounds();\n \n /**\n * Changes the bounds over the base type.\n * @param bounds The bounds over the base type.\n */\n public void setBounds(DeclaredTypeListNode bounds);\n \n /**\n * Changes the bounds over the base type.\n * @param bounds The bounds over the base type.\n * @throws NullPointerException If the provided value is <code>null</code>.\n * Node union values may have <code>null</code>\n * contents but are never <code>null</code>\n * themselves.\n */\n public void setUnionForBounds(NodeUnion<? extends DeclaredTypeListNode> bounds) throws NullPointerException;\n \n /**\n * Generates a deep copy of this node.\n * @param factory The node factory to use to create the deep copy.\n * @return The resulting deep copy node.\n */\n @Override\n public TypeParameterNode deepCopy(BsjNodeFactory factory);\n \n}", "public void addType(ValueType type) {\n\t\ttypes.add(type);\n\t}", "private synchronized final void addParams(Vector poParams, final int piModuleType) {\n switch (piModuleType) {\n case PREPROCESSING:\n this.oPreprocessingParams.addAll(poParams);\n break;\n\n case FEATURE_EXTRACTION:\n this.oFeatureExtractionParams.addAll(poParams);\n break;\n\n case CLASSIFICATION:\n this.oClassificationParams.addAll(poParams);\n break;\n\n default:\n throw new IllegalArgumentException(\"Unknown module type: \" + piModuleType + \".\");\n }\n }", "public void addParam(Property p) {\r\n params.addElement(p);\r\n }", "public Animator addParameter(String name) {\n parameters.put(name, new Parameter());\n return this;\n }", "public void setParam(int pos, BCClass type) {\n setParam(pos, type.getName());\n }", "public <P extends Parameter> P parameter(Class<P> kind, int index);", "private void addParameter(MethodConfig argMethodConfig,\r\n\t\t\tString argMethodName, String argMethodReturnType,\r\n\t\t\tDOConfig argDoConfig) {\r\n\t\tsetDefaulMethodInfo(argMethodConfig, argMethodName, argMethodReturnType);\r\n\t\taddDefaultParameterInfo(argMethodConfig, argDoConfig.getName(),\r\n\t\t\t\targDoConfig.getClassName());\r\n\t}", "public void addParameter(Document doc, Namespace ns, String parameterName,\n String parameterDataType) {\n\n // get parameter element\n Element parameterElement = (Element) doc.getRootElement()\n .getChild(\"parameter\", ns).clone();\n\n // set parameter attributes \"name\" and \"class\"\n parameterElement.setAttribute(\"name\", parameterName);\n parameterElement.setAttribute(\"class\", parameterDataType);\n\n // add element to document\n @SuppressWarnings(\"unchecked\")\n List<Element> children = doc.getRootElement().getChildren();\n\n int index = 0;\n\n for (Element element : children) {\n String thisChildName = element.getName();\n\n // get element over \"title\"-element\n if (thisChildName == \"title\") {\n index = doc.getRootElement().indexOf(element) - 1;\n\n }\n\n }\n\n doc.getRootElement().addContent(index, parameterElement);\n\n parameterCounter++;\n\n }", "public NumberedParameter(ParameterType type, int number) {\n this.type = type;\n this.number = number;\n }", "public LnwRestrictionFunction addParam( Object param ) {\n\t\tvalues.add( LnwSqlParameter.adaptData(param) );\n\t\treturn this;\n\t}", "public interface MetaParameter<T> extends MetaElement {\n\n /**\n * Parameter type class object\n */\n Class<T> getType();\n\n @Override\n default Kind getKind() {\n return Kind.PARAMETER;\n }\n}", "@jdk.Exported\npublic interface TypeParameterTree extends Tree {\n Name getName();\n List<? extends Tree> getBounds();\n\n /**\n * Return annotations on the type parameter declaration.\n *\n * Annotations need Target meta-annotations of\n * {@link java.lang.annotation.ElementType#TYPE_PARAMETER} or\n * {@link java.lang.annotation.ElementType#TYPE_USE}\n * to appear in this position.\n *\n * @return annotations on the type parameter declaration\n * @since 1.8\n */\n List<? extends AnnotationTree> getAnnotations();\n}", "public void addType(TypeDeclaration type) {\n m_classBuilder.addType(type);\n }", "public MethodBuilder type(String type) {\n\t\tthis.type = type;\n\t\treturn this;\n\t}", "public void addParam(String key, Object value) {\n getParams().put(key, value);\n }", "int getParamType(String type);", "public DoubleParameter addParameter(DoubleParameter p)\n {\n params.add(p);\n return p;\n }", "Parameter createParameter();", "public void addType(String name, Type type) {\n addTypeImpl(name, type, false);\n }", "public final void entryRuleAstTypeParam() throws RecognitionException {\n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:2229:1: ( ruleAstTypeParam EOF )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:2230:1: ruleAstTypeParam EOF\n {\n before(grammarAccess.getAstTypeParamRule()); \n pushFollow(FOLLOW_ruleAstTypeParam_in_entryRuleAstTypeParam4694);\n ruleAstTypeParam();\n\n state._fsp--;\n\n after(grammarAccess.getAstTypeParamRule()); \n match(input,EOF,FOLLOW_EOF_in_entryRuleAstTypeParam4701); \n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }", "public void setParameterType2(java.lang.Integer parameterType2) {\r\n this.parameterType2 = parameterType2;\r\n }", "void addParam(OpCode opcode, String param) {\n\t\t// We need to add 'param' to pool of constants and add a reference to it\n\t\tint idx = parseParam(opcode, param);\n\t\tcode.add(idx);\n\t}", "public void addParam(String name, String value) {\n\t\tparams.put(name, value);\n\t}", "public java.lang.Integer getParameterType() {\r\n return parameterType;\r\n }", "public abstract void addValue(String str, Type type);", "List<Type> getTypeParameters();", "gov.nih.nlm.ncbi.www.MedlineSiDocument.MedlineSi.Type addNewType();", "public void addParam(String name, String value) {\r\n if (params == null) {\r\n params = new ArrayList();\r\n }\r\n Param param = new Param(name, value);\r\n params.add(param);\r\n }", "public void addParameter(String key, String value) {\n parameters.add(new ParameterEntry<String, String>(key, value));\n }", "@Test\n public void testParameterType() throws Exception {\n ArrayList<Type> typeList = Lists.newArrayList();\n typeList.add(String.class);\n typeList.addAll(getBothParameters(ParamToListParam.class));\n typeList.add(getFirstTypeParameter(StringListSink.class));\n PipelineRegisterer.validateTypes(typeList);\n }", "protected void addParam(ParamRanking pr){\r\n\t\tranking.add(pr);\r\n\t\tCollections.sort(ranking);\r\n\t}", "public boolean addType(Accessibility pPAccess, String pTName, TypeSpec TS, Location pLocation);", "public void eInit(EObject context, String name, IJvmTypeProvider typeContext) {\n\t\tsetTypeResolutionContext(typeContext);\n\t\tthis.context = context;\n\t\tthis.parameter = this.jvmTypesFactory.createJvmTypeParameter();\n\t\tthis.parameter.setName(name);\n\n\t}", "public void addParameter(String key, Object value) {\n params.put(key, value.toString());\n }", "private void addParameter(String p_str)\n {\n if (p_str == null || p_str.length() > 0)\n {\n incrementIndent();\n addIndent();\n openStartTag(ACQ_PARM);\n closeTag(false);\n addString(p_str);\n openEndTag(ACQ_PARM);\n closeTag();\n decrementIndent();\n }\n }", "public Href addParameter(String name, Object value)\r\n {\r\n this.parameters.put(name, ObjectUtils.toString(value, null));\r\n return this;\r\n }", "public final void addTrigger (Type type)\n {\n int savedRefCount = _refCount;\n for (Iterator i=type.value().getParameters().iterator(); i.hasNext();)\n if (((TypeParameter)i.next()).addResiduation(this,savedRefCount))\n _refCount++;\n }", "@Override\r\n\t\tprotected boolean visit(final Type type) {\r\n\t\t\tChecker.notNull(\"parameter:type\", type);\r\n\r\n\t\t\tfinal Method method = type.findMethod(this.getMethodName(), this.getParameterTypes());\r\n\t\t\tfinal boolean skipRemaining = method != null;\r\n\t\t\tif (skipRemaining) {\r\n\t\t\t\tthis.setFound(method);\r\n\t\t\t}\r\n\t\t\treturn skipRemaining;\r\n\t\t}", "public static ParameterExpression variable(Class type) { throw Extensions.todo(); }", "@Override\r\n\tpublic void addParamInfo(ParamInfo info) {\n\t\tpm.insert(info);\r\n\t\t\r\n\t}", "public static ParameterExpression variable(Class type, String name) { throw Extensions.todo(); }", "void addConstructorParametersTypes(final List<Class<?>> parametersTypes) {\r\n\t\tconstructorParametersTypes.add(parametersTypes);\r\n\t}", "public final void rule__AstTypeParameterList__ParamsAssignment_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:25960:1: ( ( ruleAstTypeParam ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:25961:1: ( ruleAstTypeParam )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:25961:1: ( ruleAstTypeParam )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:25962:1: ruleAstTypeParam\n {\n before(grammarAccess.getAstTypeParameterListAccess().getParamsAstTypeParamParserRuleCall_1_0()); \n pushFollow(FOLLOW_ruleAstTypeParam_in_rule__AstTypeParameterList__ParamsAssignment_152187);\n ruleAstTypeParam();\n\n state._fsp--;\n\n after(grammarAccess.getAstTypeParameterListAccess().getParamsAstTypeParamParserRuleCall_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 }" ]
[ "0.7788107", "0.77232647", "0.7363096", "0.7113688", "0.70800227", "0.69979733", "0.69428706", "0.69139814", "0.6863046", "0.6708176", "0.659734", "0.65890425", "0.6585802", "0.65348107", "0.6532608", "0.6465598", "0.64033055", "0.6393447", "0.6384616", "0.6383532", "0.6379586", "0.6352888", "0.62686694", "0.616988", "0.61583406", "0.61502355", "0.6072371", "0.6055147", "0.60518366", "0.6034521", "0.6012366", "0.6004802", "0.59972847", "0.59870106", "0.5930531", "0.5906245", "0.58336526", "0.58124596", "0.58106613", "0.57776666", "0.5774605", "0.57709295", "0.57708836", "0.5759352", "0.57545584", "0.57334703", "0.57286614", "0.5684776", "0.56800103", "0.56800103", "0.56555706", "0.5640642", "0.56310034", "0.56250477", "0.56194204", "0.5613932", "0.5585967", "0.5547092", "0.55466473", "0.55185634", "0.55067337", "0.5489392", "0.54889953", "0.54881775", "0.5468711", "0.54651695", "0.5461782", "0.5457382", "0.54545146", "0.5448673", "0.5437387", "0.5430302", "0.5425216", "0.54172176", "0.5416319", "0.54155856", "0.5409693", "0.54089975", "0.5401611", "0.53991216", "0.53939307", "0.5392158", "0.5390491", "0.53837657", "0.53831863", "0.5371545", "0.5345617", "0.53399444", "0.5332799", "0.5330138", "0.53298366", "0.53158087", "0.5302734", "0.5291543", "0.52891487", "0.5287325", "0.527833", "0.52757794", "0.5264472", "0.52608705" ]
0.7459104
2
Add a parameter type to this method.
public void addParam(Class type) { addParam(type.getName()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void addTypedParameter(Parameter typedParameter);", "public void addParam(String type) {\n String[] origParams = getParamNames();\n String[] params = new String[origParams.length + 1];\n for (int i = 0; i < origParams.length; i++)\n params[i] = origParams[i];\n params[origParams.length] = type;\n setParams(params);\n }", "public void addParam(BCClass type) {\n addParam(type.getName());\n }", "public void addParam(int pos, Class type) {\n addParam(pos, type.getName());\n }", "public void addSourceParameterType(Class<?> type) {\n parameterTypes.add(type);\n }", "public void addParameter(VariableType _type, String _name) {\n\t\tparameterType.add(_type);\n\t\tVariableItem _variableItem=new VariableItem(_type,_name);\t\t\n\t\tvariableItem.add(_variableItem);\n\t}", "public JVar addParameter(JType type, String name) {\n if(intf!=null)\n intfMethod.param(type,name);\n return implMethod.param(type,name);\n }", "public void addParam(int pos, BCClass type) {\n addParam(pos, type.getName());\n }", "public void addTargetParameterType(Class<?> type) {\n this.targetParameterTypes.add(type);\n }", "public void setParamType(String paramType) {\n this.paramType = paramType;\n }", "public void addParameter(ParmInfoEntry p){\n\t}", "public void setParameterType(java.lang.Integer parameterType) {\r\n this.parameterType = parameterType;\r\n }", "public String getParameterType() { return parameterType; }", "public void setTypeParameter(String typeParameter) {\n\t\tthis.typeParameter = typeParameter;\n\t}", "public void setTypeParameters(TypeParameterListNode typeParameters);", "public void addParam(int pos, String type) {\n String[] origParams = getParamNames();\n if ((pos < 0) || (pos >= origParams.length))\n throw new IndexOutOfBoundsException(\"pos = \" + pos);\n\n String[] params = new String[origParams.length + 1];\n for (int i = 0, index = 0; i < params.length; i++) {\n if (i == pos)\n params[i] = type;\n else\n params[i] = origParams[index++];\n }\n setParams(params);\n }", "public static ParameterExpression parameter(Class type) { throw Extensions.todo(); }", "public ParameterType getType();", "protected final void addParameter(final ParameterDef parameter) {\n parameters.add(parameter);\n }", "public static ParameterExpression parameter(Class type, String name) { throw Extensions.todo(); }", "Type getMethodParameterType() throws IllegalArgumentException;", "private synchronized final void addParam(Object oParam, final int piModuleType) {\n switch (piModuleType) {\n case PREPROCESSING:\n this.oPreprocessingParams.add(oParam);\n break;\n\n case FEATURE_EXTRACTION:\n this.oFeatureExtractionParams.add(oParam);\n break;\n\n case CLASSIFICATION:\n this.oClassificationParams.add(oParam);\n break;\n\n default:\n throw new IllegalArgumentException(\"Unknown module type: \" + piModuleType + \".\");\n }\n }", "Report addParameter(String parameter, Object value);", "public void setType(int paramtype)\r\n\t{\r\n\t\ttype = paramtype;\r\n\t}", "private void addParameter(int param) {\r\n command_parameters.addInt(param);\r\n }", "public void addParameter(ParameterExtendedImpl param) {\n \tParameterExtendedImpl paramExt = parameters.getParameter(param.getIndex());\n \tif(paramExt != null)\n \t\tparamExt = new ParameterExtendedImpl(param);\n \t\n \tparamExt = parameters.getParameter(param.getIndex(), param.getDirection());\n \tif(paramExt != null){\n \t\tparamExt = new ParameterExtendedImpl(param);\n \t\treturn;\n \t}\n \t\n \taddToParameters(param);\n }", "public abstract void addParameter(String key, Object value);", "private void addParameter( String classname ){\n if(DEBUG) System.out.print(classname+\" \");\n\n // get the class\n Class klass=null;\n try{\n klass=Class.forName(classname);\n }catch(NoClassDefFoundError e){\n if(DEBUG) System.out.println(\"(NoClassDefError) NO\");\n return;\n }catch(ClassNotFoundException e){\n if(DEBUG) System.out.println(\"(ClassNotFoundException) NO\");\n return;\n }catch(ClassFormatError e){\n if(DEBUG) System.out.println(\"(ClassFormatError) NO\");\n return;\n }\n\n // confirm this isn't null\n if(klass==null){\n if(DEBUG) System.out.println(\"(Null Class) NO\");\n return;\n }\n\n // check that this is not an interface or abstract\n int modifier=klass.getModifiers();\n if(Modifier.isInterface(modifier)){\n if(DEBUG) System.out.println(\"(Interface) NO\");\n return;\n }\n if(Modifier.isAbstract(modifier)){\n if(DEBUG) System.out.println(\"(Abstract) NO\");\n return;\n }\n\n // check that this is a parameter\n if(! (IParameter.class.isAssignableFrom(klass)) ){\n if(DEBUG) System.out.println(\"(Not a IParameter) NO\");\n return;\n }\n\n // get the instance\n IParameter param= null;\n try{\n param = getInstance(klass,DEBUG);\n }catch( Exception ss){\n \n }\n\n if( param == null ){\n return;\n }\n\n // get the type which will be the key in the hashtable\n String type=param.getType();\n\n if(type == null) {\n System.err.println(\"Type not defined for \" + param.getClass());\n return;\n }\n if(type.equals(\"UNKNOWN\")){\n if(DEBUG) System.out.println(\"(Type Unknown) NO\");\n return;\n }else{\n if(DEBUG) System.out.print(\"[type=\"+type+\"] \");\n }\n\n // add it to the hashtable\n paramList.put(type,klass);\n \n // final debug print\n if(DEBUG) System.out.println(\"OK\");\n }", "public void addArgumentTypeSerialization(String functionName, String argumentName, TensorType type) {\n wrappedSerializationContext.addArgumentTypeSerialization(functionName, argumentName, type);\n }", "public void addParameter(ConstraintParameter param) {\n\t\tif (m_parameters == null) {\n\t\t\tm_parameters = new ArrayList<ConstraintParameter>();\n\t\t\tm_parameterString = \"\";\n\t\t}\n\t\t\n\t\t// add this parameter info to the end of the list\n\t\tm_parameters.add(param);\n\t\tm_parameterString += \" :\" + param.toString();\n\t}", "public void addParameter( ParameterClass parameter )\n\t{\n\t\tnotLocked();\n\t\t\n\t\t// make sure we don't already have one by this name\n\t\tif( parameters.containsKey(parameter.getName()) )\n\t\t{\n\t\t\tthrow new DiscoException( \"Add Parameter Failed: Class [%s] already has parameter with name [%s]\",\n\t\t\t name, parameter.getName() );\n\t\t}\n\t\t\n\t\t// store the parameter\n\t\tparameter.setParent( this );\n\t\tparameters.put( parameter.getName(), parameter );\n\t}", "public void addIndependentParameter(ParameterAPI parameter)\n throws ParameterException;", "public MethodBuilder parameter(String parameter) {\n\t\tparameters.add(parameter);\n\t\treturn this;\n\t}", "public void setParamType(String paramType) {\n this.paramType = paramType == null ? null : paramType.trim();\n }", "public void add(Type t);", "public void addParameter(String name, Object value) {\r\n\t\tparameters.put(name, value);\r\n\t}", "public void addParameter(String name, Object value) {\n t.setParameter(name, value);\n }", "public static boolean typeParameter(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"typeParameter\")) return false;\n boolean r;\n Marker m = enter_section_(b, l, _NONE_, TYPE_PARAMETER, \"<type parameter>\");\n r = typeParameter_0(b, l + 1);\n r = r && componentName(b, l + 1);\n r = r && typeParameter_2(b, l + 1);\n exit_section_(b, l, m, r, false, DartParser::type_parameter_recover);\n return r;\n }", "private void handleParameters(Node node, ParamType paramType) {\n\n Parameters parameters = new Parameters();\n parameters.setName(node.attributes().get(\"name\").toString());\n Map<String, Object> parameter = new HashMap<String, Object>();\n\n Iterator<Node> itr = node.childNodes();\n while (itr.hasNext()) {\n Node childNode = itr.next();\n String key = childNode.attributes().get(\"name\").toString();\n String value = childNode.attributes().get(\"value\").toString();\n parameter.put(key, value);\n }\n parameters.setParameter(parameter);\n switch (paramType) {\n\n case TESTSUITE:\n testSuite.addParameters(parameters);\n break;\n case TESTCASE:\n currentTestCase.addParameters(parameters);\n break;\n case TESTSTEP:\n currentTestStep.addParameters(parameters);\n break;\n case PERMUTATION:\n currentPermutation.addParameters(parameters);\n break;\n }\n\n }", "public TypeParameterListNode getTypeParameters()throws ClassCastException;", "@Override\n public String kind() {\n return \"@param\";\n }", "Builder addAdditionalType(String value);", "public void addInputParameter(Parameter parameter) {\n\t\tif (!validParameter(parameter.getName(), parameter.getValue())) {\n\t\t\tthrow new IllegalArgumentException(\"Invalid input parameter!\");\n\t\t}\n\t\tparameters.add(parameter);\n\n\t\tupdateStructureHash();\n\t}", "public void addType(TypeData type) { types.add(type); }", "public void setParam(int pos, Class type) {\n setParam(pos, type.getName());\n }", "default HxParameter createParameter(final HxType parameterType) {\n return createParameter(parameterType.getName());\n }", "public void addParam(JParameter x) {\n params = Lists.add(params, x);\n }", "public void buildTypeParamInfo() {\n\t\twriter.writeTypeParamInfo();\n\t}", "public String getParamType() {\n return paramType;\n }", "public String getParamType() {\n return paramType;\n }", "private final void addParam(Object oParam, final int piModule)\n\t{\n\t\tswitch(piModule)\n\t\t{\n\t\t\tcase PREPROCESSING:\n\t\t\t\tthis.oPreprocessingParams.add(oParam);\n\t\t\t\tbreak;\n\n\t\t\tcase FEATURE_EXTRACTION:\n\t\t\t\tthis.oFeatureExtraction.add(oParam);\n\t\t\t\tbreak;\n\n\t\t\tcase CLASSIFICATION:\n\t\t\t\tthis.oClassification.add(oParam);\n\t\t\t\tbreak;\n\n\t\t\tdefault:\n\t\t\t\tMARF.debug(\"ModuleParams.addParam() - Unknown module type: \" + piModule);\n\t\t}\n\t}", "public AnnotatedTypeBuilder<X> overrideParameterType(AnnotatedParameter<? super X> parameter, Type type) {\n\t\tif (parameter.getDeclaringCallable().getJavaMember() instanceof Method) {\n\t\t\tMethod method = (Method) parameter.getDeclaringCallable().getJavaMember();\n\t\t\treturn overrideMethodParameterType(method, parameter.getPosition(), type);\n\t\t}\n\t\tif (parameter.getDeclaringCallable().getJavaMember() instanceof Constructor<?>) {\n\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\tConstructor<X> constructor = (Constructor<X>) parameter.getDeclaringCallable().getJavaMember();\n\t\t\treturn overrideConstructorParameterType(constructor, parameter.getPosition(), type);\n\t\t} else {\n\t\t\tthrow new IllegalArgumentException(\"Cannot remove from parameter \" + parameter\n\t\t\t\t\t+ \" - cannot operate on member \" + parameter.getDeclaringCallable().getJavaMember());\n\t\t}\n\t}", "void addParameter(String name, String value) throws CheckerException;", "@Override\n public void addParam(String param, Object value) {\n request.addProperty(param, value);\n }", "protected String addParams(IntrospectedTable introspectedTable, Method method, int type1) {\n switch (type1) {\n case 1:\n method.addParameter(new Parameter(pojoType, \"record\"));\n return \"record\";\n case 2:\n if (introspectedTable.getRules().generatePrimaryKeyClass()) {\n FullyQualifiedJavaType type = new FullyQualifiedJavaType(introspectedTable.getPrimaryKeyType());\n method.addParameter(new Parameter(type, \"key\"));\n } else {\n for (IntrospectedColumn introspectedColumn : introspectedTable.getPrimaryKeyColumns()) {\n FullyQualifiedJavaType type = introspectedColumn.getFullyQualifiedJavaType();\n method.addParameter(new Parameter(type, introspectedColumn.getJavaProperty()));\n }\n }\n StringBuffer sb = new StringBuffer();\n for (IntrospectedColumn introspectedColumn : introspectedTable.getPrimaryKeyColumns()) {\n sb.append(introspectedColumn.getJavaProperty());\n sb.append(\",\");\n }\n sb.setLength(sb.length() - 1);\n return sb.toString();\n case 3:\n method.addParameter(new Parameter(pojoExampleType, \"example\"));\n return \"example\";\n case 4:\n method.addParameter(0, new Parameter(pojoType, \"record\"));\n method.addParameter(1, new Parameter(pojoExampleType, \"example\"));\n return \"record, example\";\n default:\n break;\n }\n return null;\n }", "public void addParameter(ParameterDefinition parameterDefinition) {\r\n if (parameterDefinition == null) {\r\n return;\r\n }\r\n parameterDefinitions.add(parameterDefinition);\r\n shortNamesMap.put(parameterDefinition.getShortName(), parameterDefinition);\r\n longNamesMap.put(parameterDefinition.getLongName(), parameterDefinition);\r\n }", "@Generated(value={\"edu.jhu.cs.bsj.compiler.utils.generator.SourceGenerator\"})\npublic interface TypeParameterNode extends Node, TypeNameBindingNode\n{\n /**\n * Gets the base type name for the parameter.\n * @return The base type name for the parameter.\n * @throws ClassCastException If the value of this property is a special node.\n */\n public IdentifierNode getIdentifier()throws ClassCastException;\n \n /**\n * Gets the union object for the base type name for the parameter.\n * @return A union object representing The base type name for the parameter.\n */\n public NodeUnion<? extends IdentifierNode> getUnionForIdentifier();\n \n /**\n * Changes the base type name for the parameter.\n * @param identifier The base type name for the parameter.\n */\n public void setIdentifier(IdentifierNode identifier);\n \n /**\n * Changes the base type name for the parameter.\n * @param identifier The base type name for the parameter.\n * @throws NullPointerException If the provided value is <code>null</code>.\n * Node union values may have <code>null</code>\n * contents but are never <code>null</code>\n * themselves.\n */\n public void setUnionForIdentifier(NodeUnion<? extends IdentifierNode> identifier) throws NullPointerException;\n \n /**\n * Gets the bounds over the base type.\n * @return The bounds over the base type.\n * @throws ClassCastException If the value of this property is a special node.\n */\n public DeclaredTypeListNode getBounds()throws ClassCastException;\n \n /**\n * Gets the union object for the bounds over the base type.\n * @return A union object representing The bounds over the base type.\n */\n public NodeUnion<? extends DeclaredTypeListNode> getUnionForBounds();\n \n /**\n * Changes the bounds over the base type.\n * @param bounds The bounds over the base type.\n */\n public void setBounds(DeclaredTypeListNode bounds);\n \n /**\n * Changes the bounds over the base type.\n * @param bounds The bounds over the base type.\n * @throws NullPointerException If the provided value is <code>null</code>.\n * Node union values may have <code>null</code>\n * contents but are never <code>null</code>\n * themselves.\n */\n public void setUnionForBounds(NodeUnion<? extends DeclaredTypeListNode> bounds) throws NullPointerException;\n \n /**\n * Generates a deep copy of this node.\n * @param factory The node factory to use to create the deep copy.\n * @return The resulting deep copy node.\n */\n @Override\n public TypeParameterNode deepCopy(BsjNodeFactory factory);\n \n}", "public void addType(ValueType type) {\n\t\ttypes.add(type);\n\t}", "private synchronized final void addParams(Vector poParams, final int piModuleType) {\n switch (piModuleType) {\n case PREPROCESSING:\n this.oPreprocessingParams.addAll(poParams);\n break;\n\n case FEATURE_EXTRACTION:\n this.oFeatureExtractionParams.addAll(poParams);\n break;\n\n case CLASSIFICATION:\n this.oClassificationParams.addAll(poParams);\n break;\n\n default:\n throw new IllegalArgumentException(\"Unknown module type: \" + piModuleType + \".\");\n }\n }", "public void addParam(Property p) {\r\n params.addElement(p);\r\n }", "public Animator addParameter(String name) {\n parameters.put(name, new Parameter());\n return this;\n }", "public void setParam(int pos, BCClass type) {\n setParam(pos, type.getName());\n }", "public <P extends Parameter> P parameter(Class<P> kind, int index);", "private void addParameter(MethodConfig argMethodConfig,\r\n\t\t\tString argMethodName, String argMethodReturnType,\r\n\t\t\tDOConfig argDoConfig) {\r\n\t\tsetDefaulMethodInfo(argMethodConfig, argMethodName, argMethodReturnType);\r\n\t\taddDefaultParameterInfo(argMethodConfig, argDoConfig.getName(),\r\n\t\t\t\targDoConfig.getClassName());\r\n\t}", "public void addParameter(Document doc, Namespace ns, String parameterName,\n String parameterDataType) {\n\n // get parameter element\n Element parameterElement = (Element) doc.getRootElement()\n .getChild(\"parameter\", ns).clone();\n\n // set parameter attributes \"name\" and \"class\"\n parameterElement.setAttribute(\"name\", parameterName);\n parameterElement.setAttribute(\"class\", parameterDataType);\n\n // add element to document\n @SuppressWarnings(\"unchecked\")\n List<Element> children = doc.getRootElement().getChildren();\n\n int index = 0;\n\n for (Element element : children) {\n String thisChildName = element.getName();\n\n // get element over \"title\"-element\n if (thisChildName == \"title\") {\n index = doc.getRootElement().indexOf(element) - 1;\n\n }\n\n }\n\n doc.getRootElement().addContent(index, parameterElement);\n\n parameterCounter++;\n\n }", "public NumberedParameter(ParameterType type, int number) {\n this.type = type;\n this.number = number;\n }", "public LnwRestrictionFunction addParam( Object param ) {\n\t\tvalues.add( LnwSqlParameter.adaptData(param) );\n\t\treturn this;\n\t}", "public interface MetaParameter<T> extends MetaElement {\n\n /**\n * Parameter type class object\n */\n Class<T> getType();\n\n @Override\n default Kind getKind() {\n return Kind.PARAMETER;\n }\n}", "@jdk.Exported\npublic interface TypeParameterTree extends Tree {\n Name getName();\n List<? extends Tree> getBounds();\n\n /**\n * Return annotations on the type parameter declaration.\n *\n * Annotations need Target meta-annotations of\n * {@link java.lang.annotation.ElementType#TYPE_PARAMETER} or\n * {@link java.lang.annotation.ElementType#TYPE_USE}\n * to appear in this position.\n *\n * @return annotations on the type parameter declaration\n * @since 1.8\n */\n List<? extends AnnotationTree> getAnnotations();\n}", "public void addType(TypeDeclaration type) {\n m_classBuilder.addType(type);\n }", "public MethodBuilder type(String type) {\n\t\tthis.type = type;\n\t\treturn this;\n\t}", "public void addParam(String key, Object value) {\n getParams().put(key, value);\n }", "int getParamType(String type);", "public DoubleParameter addParameter(DoubleParameter p)\n {\n params.add(p);\n return p;\n }", "Parameter createParameter();", "public void addType(String name, Type type) {\n addTypeImpl(name, type, false);\n }", "public final void entryRuleAstTypeParam() throws RecognitionException {\n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:2229:1: ( ruleAstTypeParam EOF )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:2230:1: ruleAstTypeParam EOF\n {\n before(grammarAccess.getAstTypeParamRule()); \n pushFollow(FOLLOW_ruleAstTypeParam_in_entryRuleAstTypeParam4694);\n ruleAstTypeParam();\n\n state._fsp--;\n\n after(grammarAccess.getAstTypeParamRule()); \n match(input,EOF,FOLLOW_EOF_in_entryRuleAstTypeParam4701); \n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }", "public void setParameterType2(java.lang.Integer parameterType2) {\r\n this.parameterType2 = parameterType2;\r\n }", "void addParam(OpCode opcode, String param) {\n\t\t// We need to add 'param' to pool of constants and add a reference to it\n\t\tint idx = parseParam(opcode, param);\n\t\tcode.add(idx);\n\t}", "public void addParam(String name, String value) {\n\t\tparams.put(name, value);\n\t}", "public java.lang.Integer getParameterType() {\r\n return parameterType;\r\n }", "public abstract void addValue(String str, Type type);", "List<Type> getTypeParameters();", "gov.nih.nlm.ncbi.www.MedlineSiDocument.MedlineSi.Type addNewType();", "public void addParam(String name, String value) {\r\n if (params == null) {\r\n params = new ArrayList();\r\n }\r\n Param param = new Param(name, value);\r\n params.add(param);\r\n }", "public void addParameter(String key, String value) {\n parameters.add(new ParameterEntry<String, String>(key, value));\n }", "@Test\n public void testParameterType() throws Exception {\n ArrayList<Type> typeList = Lists.newArrayList();\n typeList.add(String.class);\n typeList.addAll(getBothParameters(ParamToListParam.class));\n typeList.add(getFirstTypeParameter(StringListSink.class));\n PipelineRegisterer.validateTypes(typeList);\n }", "protected void addParam(ParamRanking pr){\r\n\t\tranking.add(pr);\r\n\t\tCollections.sort(ranking);\r\n\t}", "public boolean addType(Accessibility pPAccess, String pTName, TypeSpec TS, Location pLocation);", "public void eInit(EObject context, String name, IJvmTypeProvider typeContext) {\n\t\tsetTypeResolutionContext(typeContext);\n\t\tthis.context = context;\n\t\tthis.parameter = this.jvmTypesFactory.createJvmTypeParameter();\n\t\tthis.parameter.setName(name);\n\n\t}", "public void addParameter(String key, Object value) {\n params.put(key, value.toString());\n }", "private void addParameter(String p_str)\n {\n if (p_str == null || p_str.length() > 0)\n {\n incrementIndent();\n addIndent();\n openStartTag(ACQ_PARM);\n closeTag(false);\n addString(p_str);\n openEndTag(ACQ_PARM);\n closeTag();\n decrementIndent();\n }\n }", "public Href addParameter(String name, Object value)\r\n {\r\n this.parameters.put(name, ObjectUtils.toString(value, null));\r\n return this;\r\n }", "public final void addTrigger (Type type)\n {\n int savedRefCount = _refCount;\n for (Iterator i=type.value().getParameters().iterator(); i.hasNext();)\n if (((TypeParameter)i.next()).addResiduation(this,savedRefCount))\n _refCount++;\n }", "@Override\r\n\t\tprotected boolean visit(final Type type) {\r\n\t\t\tChecker.notNull(\"parameter:type\", type);\r\n\r\n\t\t\tfinal Method method = type.findMethod(this.getMethodName(), this.getParameterTypes());\r\n\t\t\tfinal boolean skipRemaining = method != null;\r\n\t\t\tif (skipRemaining) {\r\n\t\t\t\tthis.setFound(method);\r\n\t\t\t}\r\n\t\t\treturn skipRemaining;\r\n\t\t}", "public static ParameterExpression variable(Class type) { throw Extensions.todo(); }", "@Override\r\n\tpublic void addParamInfo(ParamInfo info) {\n\t\tpm.insert(info);\r\n\t\t\r\n\t}", "public static ParameterExpression variable(Class type, String name) { throw Extensions.todo(); }", "void addConstructorParametersTypes(final List<Class<?>> parametersTypes) {\r\n\t\tconstructorParametersTypes.add(parametersTypes);\r\n\t}", "public final void rule__AstTypeParameterList__ParamsAssignment_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:25960:1: ( ( ruleAstTypeParam ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:25961:1: ( ruleAstTypeParam )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:25961:1: ( ruleAstTypeParam )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:25962:1: ruleAstTypeParam\n {\n before(grammarAccess.getAstTypeParameterListAccess().getParamsAstTypeParamParserRuleCall_1_0()); \n pushFollow(FOLLOW_ruleAstTypeParam_in_rule__AstTypeParameterList__ParamsAssignment_152187);\n ruleAstTypeParam();\n\n state._fsp--;\n\n after(grammarAccess.getAstTypeParameterListAccess().getParamsAstTypeParamParserRuleCall_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 }" ]
[ "0.7788107", "0.7459104", "0.7363096", "0.7113688", "0.70800227", "0.69979733", "0.69428706", "0.69139814", "0.6863046", "0.6708176", "0.659734", "0.65890425", "0.6585802", "0.65348107", "0.6532608", "0.6465598", "0.64033055", "0.6393447", "0.6384616", "0.6383532", "0.6379586", "0.6352888", "0.62686694", "0.616988", "0.61583406", "0.61502355", "0.6072371", "0.6055147", "0.60518366", "0.6034521", "0.6012366", "0.6004802", "0.59972847", "0.59870106", "0.5930531", "0.5906245", "0.58336526", "0.58124596", "0.58106613", "0.57776666", "0.5774605", "0.57709295", "0.57708836", "0.5759352", "0.57545584", "0.57334703", "0.57286614", "0.5684776", "0.56800103", "0.56800103", "0.56555706", "0.5640642", "0.56310034", "0.56250477", "0.56194204", "0.5613932", "0.5585967", "0.5547092", "0.55466473", "0.55185634", "0.55067337", "0.5489392", "0.54889953", "0.54881775", "0.5468711", "0.54651695", "0.5461782", "0.5457382", "0.54545146", "0.5448673", "0.5437387", "0.5430302", "0.5425216", "0.54172176", "0.5416319", "0.54155856", "0.5409693", "0.54089975", "0.5401611", "0.53991216", "0.53939307", "0.5392158", "0.5390491", "0.53837657", "0.53831863", "0.5371545", "0.5345617", "0.53399444", "0.5332799", "0.5330138", "0.53298366", "0.53158087", "0.5302734", "0.5291543", "0.52891487", "0.5287325", "0.527833", "0.52757794", "0.5264472", "0.52608705" ]
0.77232647
1
Add a parameter type to this method.
public void addParam(BCClass type) { addParam(type.getName()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void addTypedParameter(Parameter typedParameter);", "public void addParam(Class type) {\n addParam(type.getName());\n }", "public void addParam(String type) {\n String[] origParams = getParamNames();\n String[] params = new String[origParams.length + 1];\n for (int i = 0; i < origParams.length; i++)\n params[i] = origParams[i];\n params[origParams.length] = type;\n setParams(params);\n }", "public void addParam(int pos, Class type) {\n addParam(pos, type.getName());\n }", "public void addSourceParameterType(Class<?> type) {\n parameterTypes.add(type);\n }", "public void addParameter(VariableType _type, String _name) {\n\t\tparameterType.add(_type);\n\t\tVariableItem _variableItem=new VariableItem(_type,_name);\t\t\n\t\tvariableItem.add(_variableItem);\n\t}", "public JVar addParameter(JType type, String name) {\n if(intf!=null)\n intfMethod.param(type,name);\n return implMethod.param(type,name);\n }", "public void addParam(int pos, BCClass type) {\n addParam(pos, type.getName());\n }", "public void addTargetParameterType(Class<?> type) {\n this.targetParameterTypes.add(type);\n }", "public void setParamType(String paramType) {\n this.paramType = paramType;\n }", "public void addParameter(ParmInfoEntry p){\n\t}", "public void setParameterType(java.lang.Integer parameterType) {\r\n this.parameterType = parameterType;\r\n }", "public String getParameterType() { return parameterType; }", "public void setTypeParameter(String typeParameter) {\n\t\tthis.typeParameter = typeParameter;\n\t}", "public void setTypeParameters(TypeParameterListNode typeParameters);", "public void addParam(int pos, String type) {\n String[] origParams = getParamNames();\n if ((pos < 0) || (pos >= origParams.length))\n throw new IndexOutOfBoundsException(\"pos = \" + pos);\n\n String[] params = new String[origParams.length + 1];\n for (int i = 0, index = 0; i < params.length; i++) {\n if (i == pos)\n params[i] = type;\n else\n params[i] = origParams[index++];\n }\n setParams(params);\n }", "public static ParameterExpression parameter(Class type) { throw Extensions.todo(); }", "public ParameterType getType();", "protected final void addParameter(final ParameterDef parameter) {\n parameters.add(parameter);\n }", "public static ParameterExpression parameter(Class type, String name) { throw Extensions.todo(); }", "Type getMethodParameterType() throws IllegalArgumentException;", "private synchronized final void addParam(Object oParam, final int piModuleType) {\n switch (piModuleType) {\n case PREPROCESSING:\n this.oPreprocessingParams.add(oParam);\n break;\n\n case FEATURE_EXTRACTION:\n this.oFeatureExtractionParams.add(oParam);\n break;\n\n case CLASSIFICATION:\n this.oClassificationParams.add(oParam);\n break;\n\n default:\n throw new IllegalArgumentException(\"Unknown module type: \" + piModuleType + \".\");\n }\n }", "Report addParameter(String parameter, Object value);", "public void setType(int paramtype)\r\n\t{\r\n\t\ttype = paramtype;\r\n\t}", "private void addParameter(int param) {\r\n command_parameters.addInt(param);\r\n }", "public void addParameter(ParameterExtendedImpl param) {\n \tParameterExtendedImpl paramExt = parameters.getParameter(param.getIndex());\n \tif(paramExt != null)\n \t\tparamExt = new ParameterExtendedImpl(param);\n \t\n \tparamExt = parameters.getParameter(param.getIndex(), param.getDirection());\n \tif(paramExt != null){\n \t\tparamExt = new ParameterExtendedImpl(param);\n \t\treturn;\n \t}\n \t\n \taddToParameters(param);\n }", "public abstract void addParameter(String key, Object value);", "private void addParameter( String classname ){\n if(DEBUG) System.out.print(classname+\" \");\n\n // get the class\n Class klass=null;\n try{\n klass=Class.forName(classname);\n }catch(NoClassDefFoundError e){\n if(DEBUG) System.out.println(\"(NoClassDefError) NO\");\n return;\n }catch(ClassNotFoundException e){\n if(DEBUG) System.out.println(\"(ClassNotFoundException) NO\");\n return;\n }catch(ClassFormatError e){\n if(DEBUG) System.out.println(\"(ClassFormatError) NO\");\n return;\n }\n\n // confirm this isn't null\n if(klass==null){\n if(DEBUG) System.out.println(\"(Null Class) NO\");\n return;\n }\n\n // check that this is not an interface or abstract\n int modifier=klass.getModifiers();\n if(Modifier.isInterface(modifier)){\n if(DEBUG) System.out.println(\"(Interface) NO\");\n return;\n }\n if(Modifier.isAbstract(modifier)){\n if(DEBUG) System.out.println(\"(Abstract) NO\");\n return;\n }\n\n // check that this is a parameter\n if(! (IParameter.class.isAssignableFrom(klass)) ){\n if(DEBUG) System.out.println(\"(Not a IParameter) NO\");\n return;\n }\n\n // get the instance\n IParameter param= null;\n try{\n param = getInstance(klass,DEBUG);\n }catch( Exception ss){\n \n }\n\n if( param == null ){\n return;\n }\n\n // get the type which will be the key in the hashtable\n String type=param.getType();\n\n if(type == null) {\n System.err.println(\"Type not defined for \" + param.getClass());\n return;\n }\n if(type.equals(\"UNKNOWN\")){\n if(DEBUG) System.out.println(\"(Type Unknown) NO\");\n return;\n }else{\n if(DEBUG) System.out.print(\"[type=\"+type+\"] \");\n }\n\n // add it to the hashtable\n paramList.put(type,klass);\n \n // final debug print\n if(DEBUG) System.out.println(\"OK\");\n }", "public void addArgumentTypeSerialization(String functionName, String argumentName, TensorType type) {\n wrappedSerializationContext.addArgumentTypeSerialization(functionName, argumentName, type);\n }", "public void addParameter(ConstraintParameter param) {\n\t\tif (m_parameters == null) {\n\t\t\tm_parameters = new ArrayList<ConstraintParameter>();\n\t\t\tm_parameterString = \"\";\n\t\t}\n\t\t\n\t\t// add this parameter info to the end of the list\n\t\tm_parameters.add(param);\n\t\tm_parameterString += \" :\" + param.toString();\n\t}", "public void addParameter( ParameterClass parameter )\n\t{\n\t\tnotLocked();\n\t\t\n\t\t// make sure we don't already have one by this name\n\t\tif( parameters.containsKey(parameter.getName()) )\n\t\t{\n\t\t\tthrow new DiscoException( \"Add Parameter Failed: Class [%s] already has parameter with name [%s]\",\n\t\t\t name, parameter.getName() );\n\t\t}\n\t\t\n\t\t// store the parameter\n\t\tparameter.setParent( this );\n\t\tparameters.put( parameter.getName(), parameter );\n\t}", "public void addIndependentParameter(ParameterAPI parameter)\n throws ParameterException;", "public MethodBuilder parameter(String parameter) {\n\t\tparameters.add(parameter);\n\t\treturn this;\n\t}", "public void setParamType(String paramType) {\n this.paramType = paramType == null ? null : paramType.trim();\n }", "public void add(Type t);", "public void addParameter(String name, Object value) {\r\n\t\tparameters.put(name, value);\r\n\t}", "public void addParameter(String name, Object value) {\n t.setParameter(name, value);\n }", "public static boolean typeParameter(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"typeParameter\")) return false;\n boolean r;\n Marker m = enter_section_(b, l, _NONE_, TYPE_PARAMETER, \"<type parameter>\");\n r = typeParameter_0(b, l + 1);\n r = r && componentName(b, l + 1);\n r = r && typeParameter_2(b, l + 1);\n exit_section_(b, l, m, r, false, DartParser::type_parameter_recover);\n return r;\n }", "private void handleParameters(Node node, ParamType paramType) {\n\n Parameters parameters = new Parameters();\n parameters.setName(node.attributes().get(\"name\").toString());\n Map<String, Object> parameter = new HashMap<String, Object>();\n\n Iterator<Node> itr = node.childNodes();\n while (itr.hasNext()) {\n Node childNode = itr.next();\n String key = childNode.attributes().get(\"name\").toString();\n String value = childNode.attributes().get(\"value\").toString();\n parameter.put(key, value);\n }\n parameters.setParameter(parameter);\n switch (paramType) {\n\n case TESTSUITE:\n testSuite.addParameters(parameters);\n break;\n case TESTCASE:\n currentTestCase.addParameters(parameters);\n break;\n case TESTSTEP:\n currentTestStep.addParameters(parameters);\n break;\n case PERMUTATION:\n currentPermutation.addParameters(parameters);\n break;\n }\n\n }", "public TypeParameterListNode getTypeParameters()throws ClassCastException;", "@Override\n public String kind() {\n return \"@param\";\n }", "Builder addAdditionalType(String value);", "public void addInputParameter(Parameter parameter) {\n\t\tif (!validParameter(parameter.getName(), parameter.getValue())) {\n\t\t\tthrow new IllegalArgumentException(\"Invalid input parameter!\");\n\t\t}\n\t\tparameters.add(parameter);\n\n\t\tupdateStructureHash();\n\t}", "public void addType(TypeData type) { types.add(type); }", "public void setParam(int pos, Class type) {\n setParam(pos, type.getName());\n }", "default HxParameter createParameter(final HxType parameterType) {\n return createParameter(parameterType.getName());\n }", "public void addParam(JParameter x) {\n params = Lists.add(params, x);\n }", "public void buildTypeParamInfo() {\n\t\twriter.writeTypeParamInfo();\n\t}", "public String getParamType() {\n return paramType;\n }", "public String getParamType() {\n return paramType;\n }", "private final void addParam(Object oParam, final int piModule)\n\t{\n\t\tswitch(piModule)\n\t\t{\n\t\t\tcase PREPROCESSING:\n\t\t\t\tthis.oPreprocessingParams.add(oParam);\n\t\t\t\tbreak;\n\n\t\t\tcase FEATURE_EXTRACTION:\n\t\t\t\tthis.oFeatureExtraction.add(oParam);\n\t\t\t\tbreak;\n\n\t\t\tcase CLASSIFICATION:\n\t\t\t\tthis.oClassification.add(oParam);\n\t\t\t\tbreak;\n\n\t\t\tdefault:\n\t\t\t\tMARF.debug(\"ModuleParams.addParam() - Unknown module type: \" + piModule);\n\t\t}\n\t}", "public AnnotatedTypeBuilder<X> overrideParameterType(AnnotatedParameter<? super X> parameter, Type type) {\n\t\tif (parameter.getDeclaringCallable().getJavaMember() instanceof Method) {\n\t\t\tMethod method = (Method) parameter.getDeclaringCallable().getJavaMember();\n\t\t\treturn overrideMethodParameterType(method, parameter.getPosition(), type);\n\t\t}\n\t\tif (parameter.getDeclaringCallable().getJavaMember() instanceof Constructor<?>) {\n\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\tConstructor<X> constructor = (Constructor<X>) parameter.getDeclaringCallable().getJavaMember();\n\t\t\treturn overrideConstructorParameterType(constructor, parameter.getPosition(), type);\n\t\t} else {\n\t\t\tthrow new IllegalArgumentException(\"Cannot remove from parameter \" + parameter\n\t\t\t\t\t+ \" - cannot operate on member \" + parameter.getDeclaringCallable().getJavaMember());\n\t\t}\n\t}", "void addParameter(String name, String value) throws CheckerException;", "@Override\n public void addParam(String param, Object value) {\n request.addProperty(param, value);\n }", "protected String addParams(IntrospectedTable introspectedTable, Method method, int type1) {\n switch (type1) {\n case 1:\n method.addParameter(new Parameter(pojoType, \"record\"));\n return \"record\";\n case 2:\n if (introspectedTable.getRules().generatePrimaryKeyClass()) {\n FullyQualifiedJavaType type = new FullyQualifiedJavaType(introspectedTable.getPrimaryKeyType());\n method.addParameter(new Parameter(type, \"key\"));\n } else {\n for (IntrospectedColumn introspectedColumn : introspectedTable.getPrimaryKeyColumns()) {\n FullyQualifiedJavaType type = introspectedColumn.getFullyQualifiedJavaType();\n method.addParameter(new Parameter(type, introspectedColumn.getJavaProperty()));\n }\n }\n StringBuffer sb = new StringBuffer();\n for (IntrospectedColumn introspectedColumn : introspectedTable.getPrimaryKeyColumns()) {\n sb.append(introspectedColumn.getJavaProperty());\n sb.append(\",\");\n }\n sb.setLength(sb.length() - 1);\n return sb.toString();\n case 3:\n method.addParameter(new Parameter(pojoExampleType, \"example\"));\n return \"example\";\n case 4:\n method.addParameter(0, new Parameter(pojoType, \"record\"));\n method.addParameter(1, new Parameter(pojoExampleType, \"example\"));\n return \"record, example\";\n default:\n break;\n }\n return null;\n }", "public void addParameter(ParameterDefinition parameterDefinition) {\r\n if (parameterDefinition == null) {\r\n return;\r\n }\r\n parameterDefinitions.add(parameterDefinition);\r\n shortNamesMap.put(parameterDefinition.getShortName(), parameterDefinition);\r\n longNamesMap.put(parameterDefinition.getLongName(), parameterDefinition);\r\n }", "@Generated(value={\"edu.jhu.cs.bsj.compiler.utils.generator.SourceGenerator\"})\npublic interface TypeParameterNode extends Node, TypeNameBindingNode\n{\n /**\n * Gets the base type name for the parameter.\n * @return The base type name for the parameter.\n * @throws ClassCastException If the value of this property is a special node.\n */\n public IdentifierNode getIdentifier()throws ClassCastException;\n \n /**\n * Gets the union object for the base type name for the parameter.\n * @return A union object representing The base type name for the parameter.\n */\n public NodeUnion<? extends IdentifierNode> getUnionForIdentifier();\n \n /**\n * Changes the base type name for the parameter.\n * @param identifier The base type name for the parameter.\n */\n public void setIdentifier(IdentifierNode identifier);\n \n /**\n * Changes the base type name for the parameter.\n * @param identifier The base type name for the parameter.\n * @throws NullPointerException If the provided value is <code>null</code>.\n * Node union values may have <code>null</code>\n * contents but are never <code>null</code>\n * themselves.\n */\n public void setUnionForIdentifier(NodeUnion<? extends IdentifierNode> identifier) throws NullPointerException;\n \n /**\n * Gets the bounds over the base type.\n * @return The bounds over the base type.\n * @throws ClassCastException If the value of this property is a special node.\n */\n public DeclaredTypeListNode getBounds()throws ClassCastException;\n \n /**\n * Gets the union object for the bounds over the base type.\n * @return A union object representing The bounds over the base type.\n */\n public NodeUnion<? extends DeclaredTypeListNode> getUnionForBounds();\n \n /**\n * Changes the bounds over the base type.\n * @param bounds The bounds over the base type.\n */\n public void setBounds(DeclaredTypeListNode bounds);\n \n /**\n * Changes the bounds over the base type.\n * @param bounds The bounds over the base type.\n * @throws NullPointerException If the provided value is <code>null</code>.\n * Node union values may have <code>null</code>\n * contents but are never <code>null</code>\n * themselves.\n */\n public void setUnionForBounds(NodeUnion<? extends DeclaredTypeListNode> bounds) throws NullPointerException;\n \n /**\n * Generates a deep copy of this node.\n * @param factory The node factory to use to create the deep copy.\n * @return The resulting deep copy node.\n */\n @Override\n public TypeParameterNode deepCopy(BsjNodeFactory factory);\n \n}", "public void addType(ValueType type) {\n\t\ttypes.add(type);\n\t}", "private synchronized final void addParams(Vector poParams, final int piModuleType) {\n switch (piModuleType) {\n case PREPROCESSING:\n this.oPreprocessingParams.addAll(poParams);\n break;\n\n case FEATURE_EXTRACTION:\n this.oFeatureExtractionParams.addAll(poParams);\n break;\n\n case CLASSIFICATION:\n this.oClassificationParams.addAll(poParams);\n break;\n\n default:\n throw new IllegalArgumentException(\"Unknown module type: \" + piModuleType + \".\");\n }\n }", "public void addParam(Property p) {\r\n params.addElement(p);\r\n }", "public Animator addParameter(String name) {\n parameters.put(name, new Parameter());\n return this;\n }", "public void setParam(int pos, BCClass type) {\n setParam(pos, type.getName());\n }", "public <P extends Parameter> P parameter(Class<P> kind, int index);", "private void addParameter(MethodConfig argMethodConfig,\r\n\t\t\tString argMethodName, String argMethodReturnType,\r\n\t\t\tDOConfig argDoConfig) {\r\n\t\tsetDefaulMethodInfo(argMethodConfig, argMethodName, argMethodReturnType);\r\n\t\taddDefaultParameterInfo(argMethodConfig, argDoConfig.getName(),\r\n\t\t\t\targDoConfig.getClassName());\r\n\t}", "public void addParameter(Document doc, Namespace ns, String parameterName,\n String parameterDataType) {\n\n // get parameter element\n Element parameterElement = (Element) doc.getRootElement()\n .getChild(\"parameter\", ns).clone();\n\n // set parameter attributes \"name\" and \"class\"\n parameterElement.setAttribute(\"name\", parameterName);\n parameterElement.setAttribute(\"class\", parameterDataType);\n\n // add element to document\n @SuppressWarnings(\"unchecked\")\n List<Element> children = doc.getRootElement().getChildren();\n\n int index = 0;\n\n for (Element element : children) {\n String thisChildName = element.getName();\n\n // get element over \"title\"-element\n if (thisChildName == \"title\") {\n index = doc.getRootElement().indexOf(element) - 1;\n\n }\n\n }\n\n doc.getRootElement().addContent(index, parameterElement);\n\n parameterCounter++;\n\n }", "public NumberedParameter(ParameterType type, int number) {\n this.type = type;\n this.number = number;\n }", "public LnwRestrictionFunction addParam( Object param ) {\n\t\tvalues.add( LnwSqlParameter.adaptData(param) );\n\t\treturn this;\n\t}", "public interface MetaParameter<T> extends MetaElement {\n\n /**\n * Parameter type class object\n */\n Class<T> getType();\n\n @Override\n default Kind getKind() {\n return Kind.PARAMETER;\n }\n}", "@jdk.Exported\npublic interface TypeParameterTree extends Tree {\n Name getName();\n List<? extends Tree> getBounds();\n\n /**\n * Return annotations on the type parameter declaration.\n *\n * Annotations need Target meta-annotations of\n * {@link java.lang.annotation.ElementType#TYPE_PARAMETER} or\n * {@link java.lang.annotation.ElementType#TYPE_USE}\n * to appear in this position.\n *\n * @return annotations on the type parameter declaration\n * @since 1.8\n */\n List<? extends AnnotationTree> getAnnotations();\n}", "public void addType(TypeDeclaration type) {\n m_classBuilder.addType(type);\n }", "public MethodBuilder type(String type) {\n\t\tthis.type = type;\n\t\treturn this;\n\t}", "public void addParam(String key, Object value) {\n getParams().put(key, value);\n }", "int getParamType(String type);", "public DoubleParameter addParameter(DoubleParameter p)\n {\n params.add(p);\n return p;\n }", "Parameter createParameter();", "public void addType(String name, Type type) {\n addTypeImpl(name, type, false);\n }", "public final void entryRuleAstTypeParam() throws RecognitionException {\n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:2229:1: ( ruleAstTypeParam EOF )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:2230:1: ruleAstTypeParam EOF\n {\n before(grammarAccess.getAstTypeParamRule()); \n pushFollow(FOLLOW_ruleAstTypeParam_in_entryRuleAstTypeParam4694);\n ruleAstTypeParam();\n\n state._fsp--;\n\n after(grammarAccess.getAstTypeParamRule()); \n match(input,EOF,FOLLOW_EOF_in_entryRuleAstTypeParam4701); \n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }", "public void setParameterType2(java.lang.Integer parameterType2) {\r\n this.parameterType2 = parameterType2;\r\n }", "void addParam(OpCode opcode, String param) {\n\t\t// We need to add 'param' to pool of constants and add a reference to it\n\t\tint idx = parseParam(opcode, param);\n\t\tcode.add(idx);\n\t}", "public void addParam(String name, String value) {\n\t\tparams.put(name, value);\n\t}", "public java.lang.Integer getParameterType() {\r\n return parameterType;\r\n }", "public abstract void addValue(String str, Type type);", "List<Type> getTypeParameters();", "gov.nih.nlm.ncbi.www.MedlineSiDocument.MedlineSi.Type addNewType();", "public void addParam(String name, String value) {\r\n if (params == null) {\r\n params = new ArrayList();\r\n }\r\n Param param = new Param(name, value);\r\n params.add(param);\r\n }", "public void addParameter(String key, String value) {\n parameters.add(new ParameterEntry<String, String>(key, value));\n }", "@Test\n public void testParameterType() throws Exception {\n ArrayList<Type> typeList = Lists.newArrayList();\n typeList.add(String.class);\n typeList.addAll(getBothParameters(ParamToListParam.class));\n typeList.add(getFirstTypeParameter(StringListSink.class));\n PipelineRegisterer.validateTypes(typeList);\n }", "protected void addParam(ParamRanking pr){\r\n\t\tranking.add(pr);\r\n\t\tCollections.sort(ranking);\r\n\t}", "public boolean addType(Accessibility pPAccess, String pTName, TypeSpec TS, Location pLocation);", "public void eInit(EObject context, String name, IJvmTypeProvider typeContext) {\n\t\tsetTypeResolutionContext(typeContext);\n\t\tthis.context = context;\n\t\tthis.parameter = this.jvmTypesFactory.createJvmTypeParameter();\n\t\tthis.parameter.setName(name);\n\n\t}", "public void addParameter(String key, Object value) {\n params.put(key, value.toString());\n }", "private void addParameter(String p_str)\n {\n if (p_str == null || p_str.length() > 0)\n {\n incrementIndent();\n addIndent();\n openStartTag(ACQ_PARM);\n closeTag(false);\n addString(p_str);\n openEndTag(ACQ_PARM);\n closeTag();\n decrementIndent();\n }\n }", "public Href addParameter(String name, Object value)\r\n {\r\n this.parameters.put(name, ObjectUtils.toString(value, null));\r\n return this;\r\n }", "public final void addTrigger (Type type)\n {\n int savedRefCount = _refCount;\n for (Iterator i=type.value().getParameters().iterator(); i.hasNext();)\n if (((TypeParameter)i.next()).addResiduation(this,savedRefCount))\n _refCount++;\n }", "@Override\r\n\t\tprotected boolean visit(final Type type) {\r\n\t\t\tChecker.notNull(\"parameter:type\", type);\r\n\r\n\t\t\tfinal Method method = type.findMethod(this.getMethodName(), this.getParameterTypes());\r\n\t\t\tfinal boolean skipRemaining = method != null;\r\n\t\t\tif (skipRemaining) {\r\n\t\t\t\tthis.setFound(method);\r\n\t\t\t}\r\n\t\t\treturn skipRemaining;\r\n\t\t}", "public static ParameterExpression variable(Class type) { throw Extensions.todo(); }", "@Override\r\n\tpublic void addParamInfo(ParamInfo info) {\n\t\tpm.insert(info);\r\n\t\t\r\n\t}", "public static ParameterExpression variable(Class type, String name) { throw Extensions.todo(); }", "void addConstructorParametersTypes(final List<Class<?>> parametersTypes) {\r\n\t\tconstructorParametersTypes.add(parametersTypes);\r\n\t}", "public final void rule__AstTypeParameterList__ParamsAssignment_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:25960:1: ( ( ruleAstTypeParam ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:25961:1: ( ruleAstTypeParam )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:25961:1: ( ruleAstTypeParam )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:25962:1: ruleAstTypeParam\n {\n before(grammarAccess.getAstTypeParameterListAccess().getParamsAstTypeParamParserRuleCall_1_0()); \n pushFollow(FOLLOW_ruleAstTypeParam_in_rule__AstTypeParameterList__ParamsAssignment_152187);\n ruleAstTypeParam();\n\n state._fsp--;\n\n after(grammarAccess.getAstTypeParameterListAccess().getParamsAstTypeParamParserRuleCall_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 }" ]
[ "0.7788107", "0.77232647", "0.7459104", "0.7113688", "0.70800227", "0.69979733", "0.69428706", "0.69139814", "0.6863046", "0.6708176", "0.659734", "0.65890425", "0.6585802", "0.65348107", "0.6532608", "0.6465598", "0.64033055", "0.6393447", "0.6384616", "0.6383532", "0.6379586", "0.6352888", "0.62686694", "0.616988", "0.61583406", "0.61502355", "0.6072371", "0.6055147", "0.60518366", "0.6034521", "0.6012366", "0.6004802", "0.59972847", "0.59870106", "0.5930531", "0.5906245", "0.58336526", "0.58124596", "0.58106613", "0.57776666", "0.5774605", "0.57709295", "0.57708836", "0.5759352", "0.57545584", "0.57334703", "0.57286614", "0.5684776", "0.56800103", "0.56800103", "0.56555706", "0.5640642", "0.56310034", "0.56250477", "0.56194204", "0.5613932", "0.5585967", "0.5547092", "0.55466473", "0.55185634", "0.55067337", "0.5489392", "0.54889953", "0.54881775", "0.5468711", "0.54651695", "0.5461782", "0.5457382", "0.54545146", "0.5448673", "0.5437387", "0.5430302", "0.5425216", "0.54172176", "0.5416319", "0.54155856", "0.5409693", "0.54089975", "0.5401611", "0.53991216", "0.53939307", "0.5392158", "0.5390491", "0.53837657", "0.53831863", "0.5371545", "0.5345617", "0.53399444", "0.5332799", "0.5330138", "0.53298366", "0.53158087", "0.5302734", "0.5291543", "0.52891487", "0.5287325", "0.527833", "0.52757794", "0.5264472", "0.52608705" ]
0.7363096
3
Add a parameter type to this method.
public void addParam(int pos, String type) { String[] origParams = getParamNames(); if ((pos < 0) || (pos >= origParams.length)) throw new IndexOutOfBoundsException("pos = " + pos); String[] params = new String[origParams.length + 1]; for (int i = 0, index = 0; i < params.length; i++) { if (i == pos) params[i] = type; else params[i] = origParams[index++]; } setParams(params); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void addTypedParameter(Parameter typedParameter);", "public void addParam(Class type) {\n addParam(type.getName());\n }", "public void addParam(String type) {\n String[] origParams = getParamNames();\n String[] params = new String[origParams.length + 1];\n for (int i = 0; i < origParams.length; i++)\n params[i] = origParams[i];\n params[origParams.length] = type;\n setParams(params);\n }", "public void addParam(BCClass type) {\n addParam(type.getName());\n }", "public void addParam(int pos, Class type) {\n addParam(pos, type.getName());\n }", "public void addSourceParameterType(Class<?> type) {\n parameterTypes.add(type);\n }", "public void addParameter(VariableType _type, String _name) {\n\t\tparameterType.add(_type);\n\t\tVariableItem _variableItem=new VariableItem(_type,_name);\t\t\n\t\tvariableItem.add(_variableItem);\n\t}", "public JVar addParameter(JType type, String name) {\n if(intf!=null)\n intfMethod.param(type,name);\n return implMethod.param(type,name);\n }", "public void addParam(int pos, BCClass type) {\n addParam(pos, type.getName());\n }", "public void addTargetParameterType(Class<?> type) {\n this.targetParameterTypes.add(type);\n }", "public void setParamType(String paramType) {\n this.paramType = paramType;\n }", "public void addParameter(ParmInfoEntry p){\n\t}", "public void setParameterType(java.lang.Integer parameterType) {\r\n this.parameterType = parameterType;\r\n }", "public String getParameterType() { return parameterType; }", "public void setTypeParameter(String typeParameter) {\n\t\tthis.typeParameter = typeParameter;\n\t}", "public void setTypeParameters(TypeParameterListNode typeParameters);", "public static ParameterExpression parameter(Class type) { throw Extensions.todo(); }", "public ParameterType getType();", "protected final void addParameter(final ParameterDef parameter) {\n parameters.add(parameter);\n }", "public static ParameterExpression parameter(Class type, String name) { throw Extensions.todo(); }", "Type getMethodParameterType() throws IllegalArgumentException;", "private synchronized final void addParam(Object oParam, final int piModuleType) {\n switch (piModuleType) {\n case PREPROCESSING:\n this.oPreprocessingParams.add(oParam);\n break;\n\n case FEATURE_EXTRACTION:\n this.oFeatureExtractionParams.add(oParam);\n break;\n\n case CLASSIFICATION:\n this.oClassificationParams.add(oParam);\n break;\n\n default:\n throw new IllegalArgumentException(\"Unknown module type: \" + piModuleType + \".\");\n }\n }", "Report addParameter(String parameter, Object value);", "public void setType(int paramtype)\r\n\t{\r\n\t\ttype = paramtype;\r\n\t}", "private void addParameter(int param) {\r\n command_parameters.addInt(param);\r\n }", "public void addParameter(ParameterExtendedImpl param) {\n \tParameterExtendedImpl paramExt = parameters.getParameter(param.getIndex());\n \tif(paramExt != null)\n \t\tparamExt = new ParameterExtendedImpl(param);\n \t\n \tparamExt = parameters.getParameter(param.getIndex(), param.getDirection());\n \tif(paramExt != null){\n \t\tparamExt = new ParameterExtendedImpl(param);\n \t\treturn;\n \t}\n \t\n \taddToParameters(param);\n }", "public abstract void addParameter(String key, Object value);", "private void addParameter( String classname ){\n if(DEBUG) System.out.print(classname+\" \");\n\n // get the class\n Class klass=null;\n try{\n klass=Class.forName(classname);\n }catch(NoClassDefFoundError e){\n if(DEBUG) System.out.println(\"(NoClassDefError) NO\");\n return;\n }catch(ClassNotFoundException e){\n if(DEBUG) System.out.println(\"(ClassNotFoundException) NO\");\n return;\n }catch(ClassFormatError e){\n if(DEBUG) System.out.println(\"(ClassFormatError) NO\");\n return;\n }\n\n // confirm this isn't null\n if(klass==null){\n if(DEBUG) System.out.println(\"(Null Class) NO\");\n return;\n }\n\n // check that this is not an interface or abstract\n int modifier=klass.getModifiers();\n if(Modifier.isInterface(modifier)){\n if(DEBUG) System.out.println(\"(Interface) NO\");\n return;\n }\n if(Modifier.isAbstract(modifier)){\n if(DEBUG) System.out.println(\"(Abstract) NO\");\n return;\n }\n\n // check that this is a parameter\n if(! (IParameter.class.isAssignableFrom(klass)) ){\n if(DEBUG) System.out.println(\"(Not a IParameter) NO\");\n return;\n }\n\n // get the instance\n IParameter param= null;\n try{\n param = getInstance(klass,DEBUG);\n }catch( Exception ss){\n \n }\n\n if( param == null ){\n return;\n }\n\n // get the type which will be the key in the hashtable\n String type=param.getType();\n\n if(type == null) {\n System.err.println(\"Type not defined for \" + param.getClass());\n return;\n }\n if(type.equals(\"UNKNOWN\")){\n if(DEBUG) System.out.println(\"(Type Unknown) NO\");\n return;\n }else{\n if(DEBUG) System.out.print(\"[type=\"+type+\"] \");\n }\n\n // add it to the hashtable\n paramList.put(type,klass);\n \n // final debug print\n if(DEBUG) System.out.println(\"OK\");\n }", "public void addArgumentTypeSerialization(String functionName, String argumentName, TensorType type) {\n wrappedSerializationContext.addArgumentTypeSerialization(functionName, argumentName, type);\n }", "public void addParameter(ConstraintParameter param) {\n\t\tif (m_parameters == null) {\n\t\t\tm_parameters = new ArrayList<ConstraintParameter>();\n\t\t\tm_parameterString = \"\";\n\t\t}\n\t\t\n\t\t// add this parameter info to the end of the list\n\t\tm_parameters.add(param);\n\t\tm_parameterString += \" :\" + param.toString();\n\t}", "public void addParameter( ParameterClass parameter )\n\t{\n\t\tnotLocked();\n\t\t\n\t\t// make sure we don't already have one by this name\n\t\tif( parameters.containsKey(parameter.getName()) )\n\t\t{\n\t\t\tthrow new DiscoException( \"Add Parameter Failed: Class [%s] already has parameter with name [%s]\",\n\t\t\t name, parameter.getName() );\n\t\t}\n\t\t\n\t\t// store the parameter\n\t\tparameter.setParent( this );\n\t\tparameters.put( parameter.getName(), parameter );\n\t}", "public void addIndependentParameter(ParameterAPI parameter)\n throws ParameterException;", "public MethodBuilder parameter(String parameter) {\n\t\tparameters.add(parameter);\n\t\treturn this;\n\t}", "public void setParamType(String paramType) {\n this.paramType = paramType == null ? null : paramType.trim();\n }", "public void add(Type t);", "public void addParameter(String name, Object value) {\r\n\t\tparameters.put(name, value);\r\n\t}", "public void addParameter(String name, Object value) {\n t.setParameter(name, value);\n }", "public static boolean typeParameter(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"typeParameter\")) return false;\n boolean r;\n Marker m = enter_section_(b, l, _NONE_, TYPE_PARAMETER, \"<type parameter>\");\n r = typeParameter_0(b, l + 1);\n r = r && componentName(b, l + 1);\n r = r && typeParameter_2(b, l + 1);\n exit_section_(b, l, m, r, false, DartParser::type_parameter_recover);\n return r;\n }", "private void handleParameters(Node node, ParamType paramType) {\n\n Parameters parameters = new Parameters();\n parameters.setName(node.attributes().get(\"name\").toString());\n Map<String, Object> parameter = new HashMap<String, Object>();\n\n Iterator<Node> itr = node.childNodes();\n while (itr.hasNext()) {\n Node childNode = itr.next();\n String key = childNode.attributes().get(\"name\").toString();\n String value = childNode.attributes().get(\"value\").toString();\n parameter.put(key, value);\n }\n parameters.setParameter(parameter);\n switch (paramType) {\n\n case TESTSUITE:\n testSuite.addParameters(parameters);\n break;\n case TESTCASE:\n currentTestCase.addParameters(parameters);\n break;\n case TESTSTEP:\n currentTestStep.addParameters(parameters);\n break;\n case PERMUTATION:\n currentPermutation.addParameters(parameters);\n break;\n }\n\n }", "public TypeParameterListNode getTypeParameters()throws ClassCastException;", "@Override\n public String kind() {\n return \"@param\";\n }", "Builder addAdditionalType(String value);", "public void addInputParameter(Parameter parameter) {\n\t\tif (!validParameter(parameter.getName(), parameter.getValue())) {\n\t\t\tthrow new IllegalArgumentException(\"Invalid input parameter!\");\n\t\t}\n\t\tparameters.add(parameter);\n\n\t\tupdateStructureHash();\n\t}", "public void addType(TypeData type) { types.add(type); }", "public void setParam(int pos, Class type) {\n setParam(pos, type.getName());\n }", "default HxParameter createParameter(final HxType parameterType) {\n return createParameter(parameterType.getName());\n }", "public void addParam(JParameter x) {\n params = Lists.add(params, x);\n }", "public void buildTypeParamInfo() {\n\t\twriter.writeTypeParamInfo();\n\t}", "public String getParamType() {\n return paramType;\n }", "public String getParamType() {\n return paramType;\n }", "private final void addParam(Object oParam, final int piModule)\n\t{\n\t\tswitch(piModule)\n\t\t{\n\t\t\tcase PREPROCESSING:\n\t\t\t\tthis.oPreprocessingParams.add(oParam);\n\t\t\t\tbreak;\n\n\t\t\tcase FEATURE_EXTRACTION:\n\t\t\t\tthis.oFeatureExtraction.add(oParam);\n\t\t\t\tbreak;\n\n\t\t\tcase CLASSIFICATION:\n\t\t\t\tthis.oClassification.add(oParam);\n\t\t\t\tbreak;\n\n\t\t\tdefault:\n\t\t\t\tMARF.debug(\"ModuleParams.addParam() - Unknown module type: \" + piModule);\n\t\t}\n\t}", "public AnnotatedTypeBuilder<X> overrideParameterType(AnnotatedParameter<? super X> parameter, Type type) {\n\t\tif (parameter.getDeclaringCallable().getJavaMember() instanceof Method) {\n\t\t\tMethod method = (Method) parameter.getDeclaringCallable().getJavaMember();\n\t\t\treturn overrideMethodParameterType(method, parameter.getPosition(), type);\n\t\t}\n\t\tif (parameter.getDeclaringCallable().getJavaMember() instanceof Constructor<?>) {\n\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\tConstructor<X> constructor = (Constructor<X>) parameter.getDeclaringCallable().getJavaMember();\n\t\t\treturn overrideConstructorParameterType(constructor, parameter.getPosition(), type);\n\t\t} else {\n\t\t\tthrow new IllegalArgumentException(\"Cannot remove from parameter \" + parameter\n\t\t\t\t\t+ \" - cannot operate on member \" + parameter.getDeclaringCallable().getJavaMember());\n\t\t}\n\t}", "void addParameter(String name, String value) throws CheckerException;", "@Override\n public void addParam(String param, Object value) {\n request.addProperty(param, value);\n }", "protected String addParams(IntrospectedTable introspectedTable, Method method, int type1) {\n switch (type1) {\n case 1:\n method.addParameter(new Parameter(pojoType, \"record\"));\n return \"record\";\n case 2:\n if (introspectedTable.getRules().generatePrimaryKeyClass()) {\n FullyQualifiedJavaType type = new FullyQualifiedJavaType(introspectedTable.getPrimaryKeyType());\n method.addParameter(new Parameter(type, \"key\"));\n } else {\n for (IntrospectedColumn introspectedColumn : introspectedTable.getPrimaryKeyColumns()) {\n FullyQualifiedJavaType type = introspectedColumn.getFullyQualifiedJavaType();\n method.addParameter(new Parameter(type, introspectedColumn.getJavaProperty()));\n }\n }\n StringBuffer sb = new StringBuffer();\n for (IntrospectedColumn introspectedColumn : introspectedTable.getPrimaryKeyColumns()) {\n sb.append(introspectedColumn.getJavaProperty());\n sb.append(\",\");\n }\n sb.setLength(sb.length() - 1);\n return sb.toString();\n case 3:\n method.addParameter(new Parameter(pojoExampleType, \"example\"));\n return \"example\";\n case 4:\n method.addParameter(0, new Parameter(pojoType, \"record\"));\n method.addParameter(1, new Parameter(pojoExampleType, \"example\"));\n return \"record, example\";\n default:\n break;\n }\n return null;\n }", "public void addParameter(ParameterDefinition parameterDefinition) {\r\n if (parameterDefinition == null) {\r\n return;\r\n }\r\n parameterDefinitions.add(parameterDefinition);\r\n shortNamesMap.put(parameterDefinition.getShortName(), parameterDefinition);\r\n longNamesMap.put(parameterDefinition.getLongName(), parameterDefinition);\r\n }", "@Generated(value={\"edu.jhu.cs.bsj.compiler.utils.generator.SourceGenerator\"})\npublic interface TypeParameterNode extends Node, TypeNameBindingNode\n{\n /**\n * Gets the base type name for the parameter.\n * @return The base type name for the parameter.\n * @throws ClassCastException If the value of this property is a special node.\n */\n public IdentifierNode getIdentifier()throws ClassCastException;\n \n /**\n * Gets the union object for the base type name for the parameter.\n * @return A union object representing The base type name for the parameter.\n */\n public NodeUnion<? extends IdentifierNode> getUnionForIdentifier();\n \n /**\n * Changes the base type name for the parameter.\n * @param identifier The base type name for the parameter.\n */\n public void setIdentifier(IdentifierNode identifier);\n \n /**\n * Changes the base type name for the parameter.\n * @param identifier The base type name for the parameter.\n * @throws NullPointerException If the provided value is <code>null</code>.\n * Node union values may have <code>null</code>\n * contents but are never <code>null</code>\n * themselves.\n */\n public void setUnionForIdentifier(NodeUnion<? extends IdentifierNode> identifier) throws NullPointerException;\n \n /**\n * Gets the bounds over the base type.\n * @return The bounds over the base type.\n * @throws ClassCastException If the value of this property is a special node.\n */\n public DeclaredTypeListNode getBounds()throws ClassCastException;\n \n /**\n * Gets the union object for the bounds over the base type.\n * @return A union object representing The bounds over the base type.\n */\n public NodeUnion<? extends DeclaredTypeListNode> getUnionForBounds();\n \n /**\n * Changes the bounds over the base type.\n * @param bounds The bounds over the base type.\n */\n public void setBounds(DeclaredTypeListNode bounds);\n \n /**\n * Changes the bounds over the base type.\n * @param bounds The bounds over the base type.\n * @throws NullPointerException If the provided value is <code>null</code>.\n * Node union values may have <code>null</code>\n * contents but are never <code>null</code>\n * themselves.\n */\n public void setUnionForBounds(NodeUnion<? extends DeclaredTypeListNode> bounds) throws NullPointerException;\n \n /**\n * Generates a deep copy of this node.\n * @param factory The node factory to use to create the deep copy.\n * @return The resulting deep copy node.\n */\n @Override\n public TypeParameterNode deepCopy(BsjNodeFactory factory);\n \n}", "public void addType(ValueType type) {\n\t\ttypes.add(type);\n\t}", "private synchronized final void addParams(Vector poParams, final int piModuleType) {\n switch (piModuleType) {\n case PREPROCESSING:\n this.oPreprocessingParams.addAll(poParams);\n break;\n\n case FEATURE_EXTRACTION:\n this.oFeatureExtractionParams.addAll(poParams);\n break;\n\n case CLASSIFICATION:\n this.oClassificationParams.addAll(poParams);\n break;\n\n default:\n throw new IllegalArgumentException(\"Unknown module type: \" + piModuleType + \".\");\n }\n }", "public void addParam(Property p) {\r\n params.addElement(p);\r\n }", "public Animator addParameter(String name) {\n parameters.put(name, new Parameter());\n return this;\n }", "public void setParam(int pos, BCClass type) {\n setParam(pos, type.getName());\n }", "public <P extends Parameter> P parameter(Class<P> kind, int index);", "private void addParameter(MethodConfig argMethodConfig,\r\n\t\t\tString argMethodName, String argMethodReturnType,\r\n\t\t\tDOConfig argDoConfig) {\r\n\t\tsetDefaulMethodInfo(argMethodConfig, argMethodName, argMethodReturnType);\r\n\t\taddDefaultParameterInfo(argMethodConfig, argDoConfig.getName(),\r\n\t\t\t\targDoConfig.getClassName());\r\n\t}", "public void addParameter(Document doc, Namespace ns, String parameterName,\n String parameterDataType) {\n\n // get parameter element\n Element parameterElement = (Element) doc.getRootElement()\n .getChild(\"parameter\", ns).clone();\n\n // set parameter attributes \"name\" and \"class\"\n parameterElement.setAttribute(\"name\", parameterName);\n parameterElement.setAttribute(\"class\", parameterDataType);\n\n // add element to document\n @SuppressWarnings(\"unchecked\")\n List<Element> children = doc.getRootElement().getChildren();\n\n int index = 0;\n\n for (Element element : children) {\n String thisChildName = element.getName();\n\n // get element over \"title\"-element\n if (thisChildName == \"title\") {\n index = doc.getRootElement().indexOf(element) - 1;\n\n }\n\n }\n\n doc.getRootElement().addContent(index, parameterElement);\n\n parameterCounter++;\n\n }", "public NumberedParameter(ParameterType type, int number) {\n this.type = type;\n this.number = number;\n }", "public LnwRestrictionFunction addParam( Object param ) {\n\t\tvalues.add( LnwSqlParameter.adaptData(param) );\n\t\treturn this;\n\t}", "public interface MetaParameter<T> extends MetaElement {\n\n /**\n * Parameter type class object\n */\n Class<T> getType();\n\n @Override\n default Kind getKind() {\n return Kind.PARAMETER;\n }\n}", "@jdk.Exported\npublic interface TypeParameterTree extends Tree {\n Name getName();\n List<? extends Tree> getBounds();\n\n /**\n * Return annotations on the type parameter declaration.\n *\n * Annotations need Target meta-annotations of\n * {@link java.lang.annotation.ElementType#TYPE_PARAMETER} or\n * {@link java.lang.annotation.ElementType#TYPE_USE}\n * to appear in this position.\n *\n * @return annotations on the type parameter declaration\n * @since 1.8\n */\n List<? extends AnnotationTree> getAnnotations();\n}", "public void addType(TypeDeclaration type) {\n m_classBuilder.addType(type);\n }", "public MethodBuilder type(String type) {\n\t\tthis.type = type;\n\t\treturn this;\n\t}", "public void addParam(String key, Object value) {\n getParams().put(key, value);\n }", "int getParamType(String type);", "public DoubleParameter addParameter(DoubleParameter p)\n {\n params.add(p);\n return p;\n }", "Parameter createParameter();", "public void addType(String name, Type type) {\n addTypeImpl(name, type, false);\n }", "public final void entryRuleAstTypeParam() throws RecognitionException {\n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:2229:1: ( ruleAstTypeParam EOF )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:2230:1: ruleAstTypeParam EOF\n {\n before(grammarAccess.getAstTypeParamRule()); \n pushFollow(FOLLOW_ruleAstTypeParam_in_entryRuleAstTypeParam4694);\n ruleAstTypeParam();\n\n state._fsp--;\n\n after(grammarAccess.getAstTypeParamRule()); \n match(input,EOF,FOLLOW_EOF_in_entryRuleAstTypeParam4701); \n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }", "public void setParameterType2(java.lang.Integer parameterType2) {\r\n this.parameterType2 = parameterType2;\r\n }", "void addParam(OpCode opcode, String param) {\n\t\t// We need to add 'param' to pool of constants and add a reference to it\n\t\tint idx = parseParam(opcode, param);\n\t\tcode.add(idx);\n\t}", "public void addParam(String name, String value) {\n\t\tparams.put(name, value);\n\t}", "public java.lang.Integer getParameterType() {\r\n return parameterType;\r\n }", "public abstract void addValue(String str, Type type);", "List<Type> getTypeParameters();", "gov.nih.nlm.ncbi.www.MedlineSiDocument.MedlineSi.Type addNewType();", "public void addParam(String name, String value) {\r\n if (params == null) {\r\n params = new ArrayList();\r\n }\r\n Param param = new Param(name, value);\r\n params.add(param);\r\n }", "public void addParameter(String key, String value) {\n parameters.add(new ParameterEntry<String, String>(key, value));\n }", "@Test\n public void testParameterType() throws Exception {\n ArrayList<Type> typeList = Lists.newArrayList();\n typeList.add(String.class);\n typeList.addAll(getBothParameters(ParamToListParam.class));\n typeList.add(getFirstTypeParameter(StringListSink.class));\n PipelineRegisterer.validateTypes(typeList);\n }", "protected void addParam(ParamRanking pr){\r\n\t\tranking.add(pr);\r\n\t\tCollections.sort(ranking);\r\n\t}", "public boolean addType(Accessibility pPAccess, String pTName, TypeSpec TS, Location pLocation);", "public void eInit(EObject context, String name, IJvmTypeProvider typeContext) {\n\t\tsetTypeResolutionContext(typeContext);\n\t\tthis.context = context;\n\t\tthis.parameter = this.jvmTypesFactory.createJvmTypeParameter();\n\t\tthis.parameter.setName(name);\n\n\t}", "public void addParameter(String key, Object value) {\n params.put(key, value.toString());\n }", "private void addParameter(String p_str)\n {\n if (p_str == null || p_str.length() > 0)\n {\n incrementIndent();\n addIndent();\n openStartTag(ACQ_PARM);\n closeTag(false);\n addString(p_str);\n openEndTag(ACQ_PARM);\n closeTag();\n decrementIndent();\n }\n }", "public Href addParameter(String name, Object value)\r\n {\r\n this.parameters.put(name, ObjectUtils.toString(value, null));\r\n return this;\r\n }", "public final void addTrigger (Type type)\n {\n int savedRefCount = _refCount;\n for (Iterator i=type.value().getParameters().iterator(); i.hasNext();)\n if (((TypeParameter)i.next()).addResiduation(this,savedRefCount))\n _refCount++;\n }", "@Override\r\n\t\tprotected boolean visit(final Type type) {\r\n\t\t\tChecker.notNull(\"parameter:type\", type);\r\n\r\n\t\t\tfinal Method method = type.findMethod(this.getMethodName(), this.getParameterTypes());\r\n\t\t\tfinal boolean skipRemaining = method != null;\r\n\t\t\tif (skipRemaining) {\r\n\t\t\t\tthis.setFound(method);\r\n\t\t\t}\r\n\t\t\treturn skipRemaining;\r\n\t\t}", "public static ParameterExpression variable(Class type) { throw Extensions.todo(); }", "@Override\r\n\tpublic void addParamInfo(ParamInfo info) {\n\t\tpm.insert(info);\r\n\t\t\r\n\t}", "public static ParameterExpression variable(Class type, String name) { throw Extensions.todo(); }", "void addConstructorParametersTypes(final List<Class<?>> parametersTypes) {\r\n\t\tconstructorParametersTypes.add(parametersTypes);\r\n\t}", "public final void rule__AstTypeParameterList__ParamsAssignment_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:25960:1: ( ( ruleAstTypeParam ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:25961:1: ( ruleAstTypeParam )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:25961:1: ( ruleAstTypeParam )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:25962:1: ruleAstTypeParam\n {\n before(grammarAccess.getAstTypeParameterListAccess().getParamsAstTypeParamParserRuleCall_1_0()); \n pushFollow(FOLLOW_ruleAstTypeParam_in_rule__AstTypeParameterList__ParamsAssignment_152187);\n ruleAstTypeParam();\n\n state._fsp--;\n\n after(grammarAccess.getAstTypeParameterListAccess().getParamsAstTypeParamParserRuleCall_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 }" ]
[ "0.7788107", "0.77232647", "0.7459104", "0.7363096", "0.7113688", "0.70800227", "0.69979733", "0.69428706", "0.69139814", "0.6863046", "0.6708176", "0.659734", "0.65890425", "0.6585802", "0.65348107", "0.6532608", "0.64033055", "0.6393447", "0.6384616", "0.6383532", "0.6379586", "0.6352888", "0.62686694", "0.616988", "0.61583406", "0.61502355", "0.6072371", "0.6055147", "0.60518366", "0.6034521", "0.6012366", "0.6004802", "0.59972847", "0.59870106", "0.5930531", "0.5906245", "0.58336526", "0.58124596", "0.58106613", "0.57776666", "0.5774605", "0.57709295", "0.57708836", "0.5759352", "0.57545584", "0.57334703", "0.57286614", "0.5684776", "0.56800103", "0.56800103", "0.56555706", "0.5640642", "0.56310034", "0.56250477", "0.56194204", "0.5613932", "0.5585967", "0.5547092", "0.55466473", "0.55185634", "0.55067337", "0.5489392", "0.54889953", "0.54881775", "0.5468711", "0.54651695", "0.5461782", "0.5457382", "0.54545146", "0.5448673", "0.5437387", "0.5430302", "0.5425216", "0.54172176", "0.5416319", "0.54155856", "0.5409693", "0.54089975", "0.5401611", "0.53991216", "0.53939307", "0.5392158", "0.5390491", "0.53837657", "0.53831863", "0.5371545", "0.5345617", "0.53399444", "0.5332799", "0.5330138", "0.53298366", "0.53158087", "0.5302734", "0.5291543", "0.52891487", "0.5287325", "0.527833", "0.52757794", "0.5264472", "0.52608705" ]
0.6465598
16
Add a parameter type to this method.
public void addParam(int pos, Class type) { addParam(pos, type.getName()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void addTypedParameter(Parameter typedParameter);", "public void addParam(Class type) {\n addParam(type.getName());\n }", "public void addParam(String type) {\n String[] origParams = getParamNames();\n String[] params = new String[origParams.length + 1];\n for (int i = 0; i < origParams.length; i++)\n params[i] = origParams[i];\n params[origParams.length] = type;\n setParams(params);\n }", "public void addParam(BCClass type) {\n addParam(type.getName());\n }", "public void addSourceParameterType(Class<?> type) {\n parameterTypes.add(type);\n }", "public void addParameter(VariableType _type, String _name) {\n\t\tparameterType.add(_type);\n\t\tVariableItem _variableItem=new VariableItem(_type,_name);\t\t\n\t\tvariableItem.add(_variableItem);\n\t}", "public JVar addParameter(JType type, String name) {\n if(intf!=null)\n intfMethod.param(type,name);\n return implMethod.param(type,name);\n }", "public void addParam(int pos, BCClass type) {\n addParam(pos, type.getName());\n }", "public void addTargetParameterType(Class<?> type) {\n this.targetParameterTypes.add(type);\n }", "public void setParamType(String paramType) {\n this.paramType = paramType;\n }", "public void addParameter(ParmInfoEntry p){\n\t}", "public void setParameterType(java.lang.Integer parameterType) {\r\n this.parameterType = parameterType;\r\n }", "public String getParameterType() { return parameterType; }", "public void setTypeParameter(String typeParameter) {\n\t\tthis.typeParameter = typeParameter;\n\t}", "public void setTypeParameters(TypeParameterListNode typeParameters);", "public void addParam(int pos, String type) {\n String[] origParams = getParamNames();\n if ((pos < 0) || (pos >= origParams.length))\n throw new IndexOutOfBoundsException(\"pos = \" + pos);\n\n String[] params = new String[origParams.length + 1];\n for (int i = 0, index = 0; i < params.length; i++) {\n if (i == pos)\n params[i] = type;\n else\n params[i] = origParams[index++];\n }\n setParams(params);\n }", "public static ParameterExpression parameter(Class type) { throw Extensions.todo(); }", "public ParameterType getType();", "protected final void addParameter(final ParameterDef parameter) {\n parameters.add(parameter);\n }", "public static ParameterExpression parameter(Class type, String name) { throw Extensions.todo(); }", "Type getMethodParameterType() throws IllegalArgumentException;", "private synchronized final void addParam(Object oParam, final int piModuleType) {\n switch (piModuleType) {\n case PREPROCESSING:\n this.oPreprocessingParams.add(oParam);\n break;\n\n case FEATURE_EXTRACTION:\n this.oFeatureExtractionParams.add(oParam);\n break;\n\n case CLASSIFICATION:\n this.oClassificationParams.add(oParam);\n break;\n\n default:\n throw new IllegalArgumentException(\"Unknown module type: \" + piModuleType + \".\");\n }\n }", "Report addParameter(String parameter, Object value);", "public void setType(int paramtype)\r\n\t{\r\n\t\ttype = paramtype;\r\n\t}", "private void addParameter(int param) {\r\n command_parameters.addInt(param);\r\n }", "public void addParameter(ParameterExtendedImpl param) {\n \tParameterExtendedImpl paramExt = parameters.getParameter(param.getIndex());\n \tif(paramExt != null)\n \t\tparamExt = new ParameterExtendedImpl(param);\n \t\n \tparamExt = parameters.getParameter(param.getIndex(), param.getDirection());\n \tif(paramExt != null){\n \t\tparamExt = new ParameterExtendedImpl(param);\n \t\treturn;\n \t}\n \t\n \taddToParameters(param);\n }", "public abstract void addParameter(String key, Object value);", "private void addParameter( String classname ){\n if(DEBUG) System.out.print(classname+\" \");\n\n // get the class\n Class klass=null;\n try{\n klass=Class.forName(classname);\n }catch(NoClassDefFoundError e){\n if(DEBUG) System.out.println(\"(NoClassDefError) NO\");\n return;\n }catch(ClassNotFoundException e){\n if(DEBUG) System.out.println(\"(ClassNotFoundException) NO\");\n return;\n }catch(ClassFormatError e){\n if(DEBUG) System.out.println(\"(ClassFormatError) NO\");\n return;\n }\n\n // confirm this isn't null\n if(klass==null){\n if(DEBUG) System.out.println(\"(Null Class) NO\");\n return;\n }\n\n // check that this is not an interface or abstract\n int modifier=klass.getModifiers();\n if(Modifier.isInterface(modifier)){\n if(DEBUG) System.out.println(\"(Interface) NO\");\n return;\n }\n if(Modifier.isAbstract(modifier)){\n if(DEBUG) System.out.println(\"(Abstract) NO\");\n return;\n }\n\n // check that this is a parameter\n if(! (IParameter.class.isAssignableFrom(klass)) ){\n if(DEBUG) System.out.println(\"(Not a IParameter) NO\");\n return;\n }\n\n // get the instance\n IParameter param= null;\n try{\n param = getInstance(klass,DEBUG);\n }catch( Exception ss){\n \n }\n\n if( param == null ){\n return;\n }\n\n // get the type which will be the key in the hashtable\n String type=param.getType();\n\n if(type == null) {\n System.err.println(\"Type not defined for \" + param.getClass());\n return;\n }\n if(type.equals(\"UNKNOWN\")){\n if(DEBUG) System.out.println(\"(Type Unknown) NO\");\n return;\n }else{\n if(DEBUG) System.out.print(\"[type=\"+type+\"] \");\n }\n\n // add it to the hashtable\n paramList.put(type,klass);\n \n // final debug print\n if(DEBUG) System.out.println(\"OK\");\n }", "public void addArgumentTypeSerialization(String functionName, String argumentName, TensorType type) {\n wrappedSerializationContext.addArgumentTypeSerialization(functionName, argumentName, type);\n }", "public void addParameter(ConstraintParameter param) {\n\t\tif (m_parameters == null) {\n\t\t\tm_parameters = new ArrayList<ConstraintParameter>();\n\t\t\tm_parameterString = \"\";\n\t\t}\n\t\t\n\t\t// add this parameter info to the end of the list\n\t\tm_parameters.add(param);\n\t\tm_parameterString += \" :\" + param.toString();\n\t}", "public void addParameter( ParameterClass parameter )\n\t{\n\t\tnotLocked();\n\t\t\n\t\t// make sure we don't already have one by this name\n\t\tif( parameters.containsKey(parameter.getName()) )\n\t\t{\n\t\t\tthrow new DiscoException( \"Add Parameter Failed: Class [%s] already has parameter with name [%s]\",\n\t\t\t name, parameter.getName() );\n\t\t}\n\t\t\n\t\t// store the parameter\n\t\tparameter.setParent( this );\n\t\tparameters.put( parameter.getName(), parameter );\n\t}", "public void addIndependentParameter(ParameterAPI parameter)\n throws ParameterException;", "public MethodBuilder parameter(String parameter) {\n\t\tparameters.add(parameter);\n\t\treturn this;\n\t}", "public void setParamType(String paramType) {\n this.paramType = paramType == null ? null : paramType.trim();\n }", "public void add(Type t);", "public void addParameter(String name, Object value) {\r\n\t\tparameters.put(name, value);\r\n\t}", "public void addParameter(String name, Object value) {\n t.setParameter(name, value);\n }", "public static boolean typeParameter(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"typeParameter\")) return false;\n boolean r;\n Marker m = enter_section_(b, l, _NONE_, TYPE_PARAMETER, \"<type parameter>\");\n r = typeParameter_0(b, l + 1);\n r = r && componentName(b, l + 1);\n r = r && typeParameter_2(b, l + 1);\n exit_section_(b, l, m, r, false, DartParser::type_parameter_recover);\n return r;\n }", "private void handleParameters(Node node, ParamType paramType) {\n\n Parameters parameters = new Parameters();\n parameters.setName(node.attributes().get(\"name\").toString());\n Map<String, Object> parameter = new HashMap<String, Object>();\n\n Iterator<Node> itr = node.childNodes();\n while (itr.hasNext()) {\n Node childNode = itr.next();\n String key = childNode.attributes().get(\"name\").toString();\n String value = childNode.attributes().get(\"value\").toString();\n parameter.put(key, value);\n }\n parameters.setParameter(parameter);\n switch (paramType) {\n\n case TESTSUITE:\n testSuite.addParameters(parameters);\n break;\n case TESTCASE:\n currentTestCase.addParameters(parameters);\n break;\n case TESTSTEP:\n currentTestStep.addParameters(parameters);\n break;\n case PERMUTATION:\n currentPermutation.addParameters(parameters);\n break;\n }\n\n }", "public TypeParameterListNode getTypeParameters()throws ClassCastException;", "@Override\n public String kind() {\n return \"@param\";\n }", "Builder addAdditionalType(String value);", "public void addInputParameter(Parameter parameter) {\n\t\tif (!validParameter(parameter.getName(), parameter.getValue())) {\n\t\t\tthrow new IllegalArgumentException(\"Invalid input parameter!\");\n\t\t}\n\t\tparameters.add(parameter);\n\n\t\tupdateStructureHash();\n\t}", "public void addType(TypeData type) { types.add(type); }", "public void setParam(int pos, Class type) {\n setParam(pos, type.getName());\n }", "default HxParameter createParameter(final HxType parameterType) {\n return createParameter(parameterType.getName());\n }", "public void addParam(JParameter x) {\n params = Lists.add(params, x);\n }", "public void buildTypeParamInfo() {\n\t\twriter.writeTypeParamInfo();\n\t}", "public String getParamType() {\n return paramType;\n }", "public String getParamType() {\n return paramType;\n }", "private final void addParam(Object oParam, final int piModule)\n\t{\n\t\tswitch(piModule)\n\t\t{\n\t\t\tcase PREPROCESSING:\n\t\t\t\tthis.oPreprocessingParams.add(oParam);\n\t\t\t\tbreak;\n\n\t\t\tcase FEATURE_EXTRACTION:\n\t\t\t\tthis.oFeatureExtraction.add(oParam);\n\t\t\t\tbreak;\n\n\t\t\tcase CLASSIFICATION:\n\t\t\t\tthis.oClassification.add(oParam);\n\t\t\t\tbreak;\n\n\t\t\tdefault:\n\t\t\t\tMARF.debug(\"ModuleParams.addParam() - Unknown module type: \" + piModule);\n\t\t}\n\t}", "public AnnotatedTypeBuilder<X> overrideParameterType(AnnotatedParameter<? super X> parameter, Type type) {\n\t\tif (parameter.getDeclaringCallable().getJavaMember() instanceof Method) {\n\t\t\tMethod method = (Method) parameter.getDeclaringCallable().getJavaMember();\n\t\t\treturn overrideMethodParameterType(method, parameter.getPosition(), type);\n\t\t}\n\t\tif (parameter.getDeclaringCallable().getJavaMember() instanceof Constructor<?>) {\n\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\tConstructor<X> constructor = (Constructor<X>) parameter.getDeclaringCallable().getJavaMember();\n\t\t\treturn overrideConstructorParameterType(constructor, parameter.getPosition(), type);\n\t\t} else {\n\t\t\tthrow new IllegalArgumentException(\"Cannot remove from parameter \" + parameter\n\t\t\t\t\t+ \" - cannot operate on member \" + parameter.getDeclaringCallable().getJavaMember());\n\t\t}\n\t}", "void addParameter(String name, String value) throws CheckerException;", "@Override\n public void addParam(String param, Object value) {\n request.addProperty(param, value);\n }", "protected String addParams(IntrospectedTable introspectedTable, Method method, int type1) {\n switch (type1) {\n case 1:\n method.addParameter(new Parameter(pojoType, \"record\"));\n return \"record\";\n case 2:\n if (introspectedTable.getRules().generatePrimaryKeyClass()) {\n FullyQualifiedJavaType type = new FullyQualifiedJavaType(introspectedTable.getPrimaryKeyType());\n method.addParameter(new Parameter(type, \"key\"));\n } else {\n for (IntrospectedColumn introspectedColumn : introspectedTable.getPrimaryKeyColumns()) {\n FullyQualifiedJavaType type = introspectedColumn.getFullyQualifiedJavaType();\n method.addParameter(new Parameter(type, introspectedColumn.getJavaProperty()));\n }\n }\n StringBuffer sb = new StringBuffer();\n for (IntrospectedColumn introspectedColumn : introspectedTable.getPrimaryKeyColumns()) {\n sb.append(introspectedColumn.getJavaProperty());\n sb.append(\",\");\n }\n sb.setLength(sb.length() - 1);\n return sb.toString();\n case 3:\n method.addParameter(new Parameter(pojoExampleType, \"example\"));\n return \"example\";\n case 4:\n method.addParameter(0, new Parameter(pojoType, \"record\"));\n method.addParameter(1, new Parameter(pojoExampleType, \"example\"));\n return \"record, example\";\n default:\n break;\n }\n return null;\n }", "public void addParameter(ParameterDefinition parameterDefinition) {\r\n if (parameterDefinition == null) {\r\n return;\r\n }\r\n parameterDefinitions.add(parameterDefinition);\r\n shortNamesMap.put(parameterDefinition.getShortName(), parameterDefinition);\r\n longNamesMap.put(parameterDefinition.getLongName(), parameterDefinition);\r\n }", "@Generated(value={\"edu.jhu.cs.bsj.compiler.utils.generator.SourceGenerator\"})\npublic interface TypeParameterNode extends Node, TypeNameBindingNode\n{\n /**\n * Gets the base type name for the parameter.\n * @return The base type name for the parameter.\n * @throws ClassCastException If the value of this property is a special node.\n */\n public IdentifierNode getIdentifier()throws ClassCastException;\n \n /**\n * Gets the union object for the base type name for the parameter.\n * @return A union object representing The base type name for the parameter.\n */\n public NodeUnion<? extends IdentifierNode> getUnionForIdentifier();\n \n /**\n * Changes the base type name for the parameter.\n * @param identifier The base type name for the parameter.\n */\n public void setIdentifier(IdentifierNode identifier);\n \n /**\n * Changes the base type name for the parameter.\n * @param identifier The base type name for the parameter.\n * @throws NullPointerException If the provided value is <code>null</code>.\n * Node union values may have <code>null</code>\n * contents but are never <code>null</code>\n * themselves.\n */\n public void setUnionForIdentifier(NodeUnion<? extends IdentifierNode> identifier) throws NullPointerException;\n \n /**\n * Gets the bounds over the base type.\n * @return The bounds over the base type.\n * @throws ClassCastException If the value of this property is a special node.\n */\n public DeclaredTypeListNode getBounds()throws ClassCastException;\n \n /**\n * Gets the union object for the bounds over the base type.\n * @return A union object representing The bounds over the base type.\n */\n public NodeUnion<? extends DeclaredTypeListNode> getUnionForBounds();\n \n /**\n * Changes the bounds over the base type.\n * @param bounds The bounds over the base type.\n */\n public void setBounds(DeclaredTypeListNode bounds);\n \n /**\n * Changes the bounds over the base type.\n * @param bounds The bounds over the base type.\n * @throws NullPointerException If the provided value is <code>null</code>.\n * Node union values may have <code>null</code>\n * contents but are never <code>null</code>\n * themselves.\n */\n public void setUnionForBounds(NodeUnion<? extends DeclaredTypeListNode> bounds) throws NullPointerException;\n \n /**\n * Generates a deep copy of this node.\n * @param factory The node factory to use to create the deep copy.\n * @return The resulting deep copy node.\n */\n @Override\n public TypeParameterNode deepCopy(BsjNodeFactory factory);\n \n}", "public void addType(ValueType type) {\n\t\ttypes.add(type);\n\t}", "private synchronized final void addParams(Vector poParams, final int piModuleType) {\n switch (piModuleType) {\n case PREPROCESSING:\n this.oPreprocessingParams.addAll(poParams);\n break;\n\n case FEATURE_EXTRACTION:\n this.oFeatureExtractionParams.addAll(poParams);\n break;\n\n case CLASSIFICATION:\n this.oClassificationParams.addAll(poParams);\n break;\n\n default:\n throw new IllegalArgumentException(\"Unknown module type: \" + piModuleType + \".\");\n }\n }", "public void addParam(Property p) {\r\n params.addElement(p);\r\n }", "public Animator addParameter(String name) {\n parameters.put(name, new Parameter());\n return this;\n }", "public void setParam(int pos, BCClass type) {\n setParam(pos, type.getName());\n }", "public <P extends Parameter> P parameter(Class<P> kind, int index);", "private void addParameter(MethodConfig argMethodConfig,\r\n\t\t\tString argMethodName, String argMethodReturnType,\r\n\t\t\tDOConfig argDoConfig) {\r\n\t\tsetDefaulMethodInfo(argMethodConfig, argMethodName, argMethodReturnType);\r\n\t\taddDefaultParameterInfo(argMethodConfig, argDoConfig.getName(),\r\n\t\t\t\targDoConfig.getClassName());\r\n\t}", "public void addParameter(Document doc, Namespace ns, String parameterName,\n String parameterDataType) {\n\n // get parameter element\n Element parameterElement = (Element) doc.getRootElement()\n .getChild(\"parameter\", ns).clone();\n\n // set parameter attributes \"name\" and \"class\"\n parameterElement.setAttribute(\"name\", parameterName);\n parameterElement.setAttribute(\"class\", parameterDataType);\n\n // add element to document\n @SuppressWarnings(\"unchecked\")\n List<Element> children = doc.getRootElement().getChildren();\n\n int index = 0;\n\n for (Element element : children) {\n String thisChildName = element.getName();\n\n // get element over \"title\"-element\n if (thisChildName == \"title\") {\n index = doc.getRootElement().indexOf(element) - 1;\n\n }\n\n }\n\n doc.getRootElement().addContent(index, parameterElement);\n\n parameterCounter++;\n\n }", "public NumberedParameter(ParameterType type, int number) {\n this.type = type;\n this.number = number;\n }", "public LnwRestrictionFunction addParam( Object param ) {\n\t\tvalues.add( LnwSqlParameter.adaptData(param) );\n\t\treturn this;\n\t}", "public interface MetaParameter<T> extends MetaElement {\n\n /**\n * Parameter type class object\n */\n Class<T> getType();\n\n @Override\n default Kind getKind() {\n return Kind.PARAMETER;\n }\n}", "@jdk.Exported\npublic interface TypeParameterTree extends Tree {\n Name getName();\n List<? extends Tree> getBounds();\n\n /**\n * Return annotations on the type parameter declaration.\n *\n * Annotations need Target meta-annotations of\n * {@link java.lang.annotation.ElementType#TYPE_PARAMETER} or\n * {@link java.lang.annotation.ElementType#TYPE_USE}\n * to appear in this position.\n *\n * @return annotations on the type parameter declaration\n * @since 1.8\n */\n List<? extends AnnotationTree> getAnnotations();\n}", "public void addType(TypeDeclaration type) {\n m_classBuilder.addType(type);\n }", "public MethodBuilder type(String type) {\n\t\tthis.type = type;\n\t\treturn this;\n\t}", "public void addParam(String key, Object value) {\n getParams().put(key, value);\n }", "int getParamType(String type);", "public DoubleParameter addParameter(DoubleParameter p)\n {\n params.add(p);\n return p;\n }", "Parameter createParameter();", "public void addType(String name, Type type) {\n addTypeImpl(name, type, false);\n }", "public final void entryRuleAstTypeParam() throws RecognitionException {\n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:2229:1: ( ruleAstTypeParam EOF )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:2230:1: ruleAstTypeParam EOF\n {\n before(grammarAccess.getAstTypeParamRule()); \n pushFollow(FOLLOW_ruleAstTypeParam_in_entryRuleAstTypeParam4694);\n ruleAstTypeParam();\n\n state._fsp--;\n\n after(grammarAccess.getAstTypeParamRule()); \n match(input,EOF,FOLLOW_EOF_in_entryRuleAstTypeParam4701); \n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }", "public void setParameterType2(java.lang.Integer parameterType2) {\r\n this.parameterType2 = parameterType2;\r\n }", "void addParam(OpCode opcode, String param) {\n\t\t// We need to add 'param' to pool of constants and add a reference to it\n\t\tint idx = parseParam(opcode, param);\n\t\tcode.add(idx);\n\t}", "public void addParam(String name, String value) {\n\t\tparams.put(name, value);\n\t}", "public java.lang.Integer getParameterType() {\r\n return parameterType;\r\n }", "public abstract void addValue(String str, Type type);", "List<Type> getTypeParameters();", "gov.nih.nlm.ncbi.www.MedlineSiDocument.MedlineSi.Type addNewType();", "public void addParam(String name, String value) {\r\n if (params == null) {\r\n params = new ArrayList();\r\n }\r\n Param param = new Param(name, value);\r\n params.add(param);\r\n }", "public void addParameter(String key, String value) {\n parameters.add(new ParameterEntry<String, String>(key, value));\n }", "@Test\n public void testParameterType() throws Exception {\n ArrayList<Type> typeList = Lists.newArrayList();\n typeList.add(String.class);\n typeList.addAll(getBothParameters(ParamToListParam.class));\n typeList.add(getFirstTypeParameter(StringListSink.class));\n PipelineRegisterer.validateTypes(typeList);\n }", "protected void addParam(ParamRanking pr){\r\n\t\tranking.add(pr);\r\n\t\tCollections.sort(ranking);\r\n\t}", "public boolean addType(Accessibility pPAccess, String pTName, TypeSpec TS, Location pLocation);", "public void eInit(EObject context, String name, IJvmTypeProvider typeContext) {\n\t\tsetTypeResolutionContext(typeContext);\n\t\tthis.context = context;\n\t\tthis.parameter = this.jvmTypesFactory.createJvmTypeParameter();\n\t\tthis.parameter.setName(name);\n\n\t}", "public void addParameter(String key, Object value) {\n params.put(key, value.toString());\n }", "private void addParameter(String p_str)\n {\n if (p_str == null || p_str.length() > 0)\n {\n incrementIndent();\n addIndent();\n openStartTag(ACQ_PARM);\n closeTag(false);\n addString(p_str);\n openEndTag(ACQ_PARM);\n closeTag();\n decrementIndent();\n }\n }", "public Href addParameter(String name, Object value)\r\n {\r\n this.parameters.put(name, ObjectUtils.toString(value, null));\r\n return this;\r\n }", "public final void addTrigger (Type type)\n {\n int savedRefCount = _refCount;\n for (Iterator i=type.value().getParameters().iterator(); i.hasNext();)\n if (((TypeParameter)i.next()).addResiduation(this,savedRefCount))\n _refCount++;\n }", "@Override\r\n\t\tprotected boolean visit(final Type type) {\r\n\t\t\tChecker.notNull(\"parameter:type\", type);\r\n\r\n\t\t\tfinal Method method = type.findMethod(this.getMethodName(), this.getParameterTypes());\r\n\t\t\tfinal boolean skipRemaining = method != null;\r\n\t\t\tif (skipRemaining) {\r\n\t\t\t\tthis.setFound(method);\r\n\t\t\t}\r\n\t\t\treturn skipRemaining;\r\n\t\t}", "public static ParameterExpression variable(Class type) { throw Extensions.todo(); }", "@Override\r\n\tpublic void addParamInfo(ParamInfo info) {\n\t\tpm.insert(info);\r\n\t\t\r\n\t}", "public static ParameterExpression variable(Class type, String name) { throw Extensions.todo(); }", "void addConstructorParametersTypes(final List<Class<?>> parametersTypes) {\r\n\t\tconstructorParametersTypes.add(parametersTypes);\r\n\t}", "public final void rule__AstTypeParameterList__ParamsAssignment_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:25960:1: ( ( ruleAstTypeParam ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:25961:1: ( ruleAstTypeParam )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:25961:1: ( ruleAstTypeParam )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:25962:1: ruleAstTypeParam\n {\n before(grammarAccess.getAstTypeParameterListAccess().getParamsAstTypeParamParserRuleCall_1_0()); \n pushFollow(FOLLOW_ruleAstTypeParam_in_rule__AstTypeParameterList__ParamsAssignment_152187);\n ruleAstTypeParam();\n\n state._fsp--;\n\n after(grammarAccess.getAstTypeParameterListAccess().getParamsAstTypeParamParserRuleCall_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 }" ]
[ "0.7788107", "0.77232647", "0.7459104", "0.7363096", "0.70800227", "0.69979733", "0.69428706", "0.69139814", "0.6863046", "0.6708176", "0.659734", "0.65890425", "0.6585802", "0.65348107", "0.6532608", "0.6465598", "0.64033055", "0.6393447", "0.6384616", "0.6383532", "0.6379586", "0.6352888", "0.62686694", "0.616988", "0.61583406", "0.61502355", "0.6072371", "0.6055147", "0.60518366", "0.6034521", "0.6012366", "0.6004802", "0.59972847", "0.59870106", "0.5930531", "0.5906245", "0.58336526", "0.58124596", "0.58106613", "0.57776666", "0.5774605", "0.57709295", "0.57708836", "0.5759352", "0.57545584", "0.57334703", "0.57286614", "0.5684776", "0.56800103", "0.56800103", "0.56555706", "0.5640642", "0.56310034", "0.56250477", "0.56194204", "0.5613932", "0.5585967", "0.5547092", "0.55466473", "0.55185634", "0.55067337", "0.5489392", "0.54889953", "0.54881775", "0.5468711", "0.54651695", "0.5461782", "0.5457382", "0.54545146", "0.5448673", "0.5437387", "0.5430302", "0.5425216", "0.54172176", "0.5416319", "0.54155856", "0.5409693", "0.54089975", "0.5401611", "0.53991216", "0.53939307", "0.5392158", "0.5390491", "0.53837657", "0.53831863", "0.5371545", "0.5345617", "0.53399444", "0.5332799", "0.5330138", "0.53298366", "0.53158087", "0.5302734", "0.5291543", "0.52891487", "0.5287325", "0.527833", "0.52757794", "0.5264472", "0.52608705" ]
0.7113688
4
Add a parameter type to this method.
public void addParam(int pos, BCClass type) { addParam(pos, type.getName()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void addTypedParameter(Parameter typedParameter);", "public void addParam(Class type) {\n addParam(type.getName());\n }", "public void addParam(String type) {\n String[] origParams = getParamNames();\n String[] params = new String[origParams.length + 1];\n for (int i = 0; i < origParams.length; i++)\n params[i] = origParams[i];\n params[origParams.length] = type;\n setParams(params);\n }", "public void addParam(BCClass type) {\n addParam(type.getName());\n }", "public void addParam(int pos, Class type) {\n addParam(pos, type.getName());\n }", "public void addSourceParameterType(Class<?> type) {\n parameterTypes.add(type);\n }", "public void addParameter(VariableType _type, String _name) {\n\t\tparameterType.add(_type);\n\t\tVariableItem _variableItem=new VariableItem(_type,_name);\t\t\n\t\tvariableItem.add(_variableItem);\n\t}", "public JVar addParameter(JType type, String name) {\n if(intf!=null)\n intfMethod.param(type,name);\n return implMethod.param(type,name);\n }", "public void addTargetParameterType(Class<?> type) {\n this.targetParameterTypes.add(type);\n }", "public void setParamType(String paramType) {\n this.paramType = paramType;\n }", "public void addParameter(ParmInfoEntry p){\n\t}", "public void setParameterType(java.lang.Integer parameterType) {\r\n this.parameterType = parameterType;\r\n }", "public String getParameterType() { return parameterType; }", "public void setTypeParameter(String typeParameter) {\n\t\tthis.typeParameter = typeParameter;\n\t}", "public void setTypeParameters(TypeParameterListNode typeParameters);", "public void addParam(int pos, String type) {\n String[] origParams = getParamNames();\n if ((pos < 0) || (pos >= origParams.length))\n throw new IndexOutOfBoundsException(\"pos = \" + pos);\n\n String[] params = new String[origParams.length + 1];\n for (int i = 0, index = 0; i < params.length; i++) {\n if (i == pos)\n params[i] = type;\n else\n params[i] = origParams[index++];\n }\n setParams(params);\n }", "public static ParameterExpression parameter(Class type) { throw Extensions.todo(); }", "public ParameterType getType();", "protected final void addParameter(final ParameterDef parameter) {\n parameters.add(parameter);\n }", "public static ParameterExpression parameter(Class type, String name) { throw Extensions.todo(); }", "Type getMethodParameterType() throws IllegalArgumentException;", "private synchronized final void addParam(Object oParam, final int piModuleType) {\n switch (piModuleType) {\n case PREPROCESSING:\n this.oPreprocessingParams.add(oParam);\n break;\n\n case FEATURE_EXTRACTION:\n this.oFeatureExtractionParams.add(oParam);\n break;\n\n case CLASSIFICATION:\n this.oClassificationParams.add(oParam);\n break;\n\n default:\n throw new IllegalArgumentException(\"Unknown module type: \" + piModuleType + \".\");\n }\n }", "Report addParameter(String parameter, Object value);", "public void setType(int paramtype)\r\n\t{\r\n\t\ttype = paramtype;\r\n\t}", "private void addParameter(int param) {\r\n command_parameters.addInt(param);\r\n }", "public void addParameter(ParameterExtendedImpl param) {\n \tParameterExtendedImpl paramExt = parameters.getParameter(param.getIndex());\n \tif(paramExt != null)\n \t\tparamExt = new ParameterExtendedImpl(param);\n \t\n \tparamExt = parameters.getParameter(param.getIndex(), param.getDirection());\n \tif(paramExt != null){\n \t\tparamExt = new ParameterExtendedImpl(param);\n \t\treturn;\n \t}\n \t\n \taddToParameters(param);\n }", "public abstract void addParameter(String key, Object value);", "private void addParameter( String classname ){\n if(DEBUG) System.out.print(classname+\" \");\n\n // get the class\n Class klass=null;\n try{\n klass=Class.forName(classname);\n }catch(NoClassDefFoundError e){\n if(DEBUG) System.out.println(\"(NoClassDefError) NO\");\n return;\n }catch(ClassNotFoundException e){\n if(DEBUG) System.out.println(\"(ClassNotFoundException) NO\");\n return;\n }catch(ClassFormatError e){\n if(DEBUG) System.out.println(\"(ClassFormatError) NO\");\n return;\n }\n\n // confirm this isn't null\n if(klass==null){\n if(DEBUG) System.out.println(\"(Null Class) NO\");\n return;\n }\n\n // check that this is not an interface or abstract\n int modifier=klass.getModifiers();\n if(Modifier.isInterface(modifier)){\n if(DEBUG) System.out.println(\"(Interface) NO\");\n return;\n }\n if(Modifier.isAbstract(modifier)){\n if(DEBUG) System.out.println(\"(Abstract) NO\");\n return;\n }\n\n // check that this is a parameter\n if(! (IParameter.class.isAssignableFrom(klass)) ){\n if(DEBUG) System.out.println(\"(Not a IParameter) NO\");\n return;\n }\n\n // get the instance\n IParameter param= null;\n try{\n param = getInstance(klass,DEBUG);\n }catch( Exception ss){\n \n }\n\n if( param == null ){\n return;\n }\n\n // get the type which will be the key in the hashtable\n String type=param.getType();\n\n if(type == null) {\n System.err.println(\"Type not defined for \" + param.getClass());\n return;\n }\n if(type.equals(\"UNKNOWN\")){\n if(DEBUG) System.out.println(\"(Type Unknown) NO\");\n return;\n }else{\n if(DEBUG) System.out.print(\"[type=\"+type+\"] \");\n }\n\n // add it to the hashtable\n paramList.put(type,klass);\n \n // final debug print\n if(DEBUG) System.out.println(\"OK\");\n }", "public void addArgumentTypeSerialization(String functionName, String argumentName, TensorType type) {\n wrappedSerializationContext.addArgumentTypeSerialization(functionName, argumentName, type);\n }", "public void addParameter(ConstraintParameter param) {\n\t\tif (m_parameters == null) {\n\t\t\tm_parameters = new ArrayList<ConstraintParameter>();\n\t\t\tm_parameterString = \"\";\n\t\t}\n\t\t\n\t\t// add this parameter info to the end of the list\n\t\tm_parameters.add(param);\n\t\tm_parameterString += \" :\" + param.toString();\n\t}", "public void addParameter( ParameterClass parameter )\n\t{\n\t\tnotLocked();\n\t\t\n\t\t// make sure we don't already have one by this name\n\t\tif( parameters.containsKey(parameter.getName()) )\n\t\t{\n\t\t\tthrow new DiscoException( \"Add Parameter Failed: Class [%s] already has parameter with name [%s]\",\n\t\t\t name, parameter.getName() );\n\t\t}\n\t\t\n\t\t// store the parameter\n\t\tparameter.setParent( this );\n\t\tparameters.put( parameter.getName(), parameter );\n\t}", "public void addIndependentParameter(ParameterAPI parameter)\n throws ParameterException;", "public MethodBuilder parameter(String parameter) {\n\t\tparameters.add(parameter);\n\t\treturn this;\n\t}", "public void setParamType(String paramType) {\n this.paramType = paramType == null ? null : paramType.trim();\n }", "public void add(Type t);", "public void addParameter(String name, Object value) {\r\n\t\tparameters.put(name, value);\r\n\t}", "public void addParameter(String name, Object value) {\n t.setParameter(name, value);\n }", "public static boolean typeParameter(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"typeParameter\")) return false;\n boolean r;\n Marker m = enter_section_(b, l, _NONE_, TYPE_PARAMETER, \"<type parameter>\");\n r = typeParameter_0(b, l + 1);\n r = r && componentName(b, l + 1);\n r = r && typeParameter_2(b, l + 1);\n exit_section_(b, l, m, r, false, DartParser::type_parameter_recover);\n return r;\n }", "private void handleParameters(Node node, ParamType paramType) {\n\n Parameters parameters = new Parameters();\n parameters.setName(node.attributes().get(\"name\").toString());\n Map<String, Object> parameter = new HashMap<String, Object>();\n\n Iterator<Node> itr = node.childNodes();\n while (itr.hasNext()) {\n Node childNode = itr.next();\n String key = childNode.attributes().get(\"name\").toString();\n String value = childNode.attributes().get(\"value\").toString();\n parameter.put(key, value);\n }\n parameters.setParameter(parameter);\n switch (paramType) {\n\n case TESTSUITE:\n testSuite.addParameters(parameters);\n break;\n case TESTCASE:\n currentTestCase.addParameters(parameters);\n break;\n case TESTSTEP:\n currentTestStep.addParameters(parameters);\n break;\n case PERMUTATION:\n currentPermutation.addParameters(parameters);\n break;\n }\n\n }", "public TypeParameterListNode getTypeParameters()throws ClassCastException;", "@Override\n public String kind() {\n return \"@param\";\n }", "Builder addAdditionalType(String value);", "public void addInputParameter(Parameter parameter) {\n\t\tif (!validParameter(parameter.getName(), parameter.getValue())) {\n\t\t\tthrow new IllegalArgumentException(\"Invalid input parameter!\");\n\t\t}\n\t\tparameters.add(parameter);\n\n\t\tupdateStructureHash();\n\t}", "public void addType(TypeData type) { types.add(type); }", "public void setParam(int pos, Class type) {\n setParam(pos, type.getName());\n }", "default HxParameter createParameter(final HxType parameterType) {\n return createParameter(parameterType.getName());\n }", "public void addParam(JParameter x) {\n params = Lists.add(params, x);\n }", "public void buildTypeParamInfo() {\n\t\twriter.writeTypeParamInfo();\n\t}", "public String getParamType() {\n return paramType;\n }", "public String getParamType() {\n return paramType;\n }", "private final void addParam(Object oParam, final int piModule)\n\t{\n\t\tswitch(piModule)\n\t\t{\n\t\t\tcase PREPROCESSING:\n\t\t\t\tthis.oPreprocessingParams.add(oParam);\n\t\t\t\tbreak;\n\n\t\t\tcase FEATURE_EXTRACTION:\n\t\t\t\tthis.oFeatureExtraction.add(oParam);\n\t\t\t\tbreak;\n\n\t\t\tcase CLASSIFICATION:\n\t\t\t\tthis.oClassification.add(oParam);\n\t\t\t\tbreak;\n\n\t\t\tdefault:\n\t\t\t\tMARF.debug(\"ModuleParams.addParam() - Unknown module type: \" + piModule);\n\t\t}\n\t}", "public AnnotatedTypeBuilder<X> overrideParameterType(AnnotatedParameter<? super X> parameter, Type type) {\n\t\tif (parameter.getDeclaringCallable().getJavaMember() instanceof Method) {\n\t\t\tMethod method = (Method) parameter.getDeclaringCallable().getJavaMember();\n\t\t\treturn overrideMethodParameterType(method, parameter.getPosition(), type);\n\t\t}\n\t\tif (parameter.getDeclaringCallable().getJavaMember() instanceof Constructor<?>) {\n\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\tConstructor<X> constructor = (Constructor<X>) parameter.getDeclaringCallable().getJavaMember();\n\t\t\treturn overrideConstructorParameterType(constructor, parameter.getPosition(), type);\n\t\t} else {\n\t\t\tthrow new IllegalArgumentException(\"Cannot remove from parameter \" + parameter\n\t\t\t\t\t+ \" - cannot operate on member \" + parameter.getDeclaringCallable().getJavaMember());\n\t\t}\n\t}", "void addParameter(String name, String value) throws CheckerException;", "@Override\n public void addParam(String param, Object value) {\n request.addProperty(param, value);\n }", "protected String addParams(IntrospectedTable introspectedTable, Method method, int type1) {\n switch (type1) {\n case 1:\n method.addParameter(new Parameter(pojoType, \"record\"));\n return \"record\";\n case 2:\n if (introspectedTable.getRules().generatePrimaryKeyClass()) {\n FullyQualifiedJavaType type = new FullyQualifiedJavaType(introspectedTable.getPrimaryKeyType());\n method.addParameter(new Parameter(type, \"key\"));\n } else {\n for (IntrospectedColumn introspectedColumn : introspectedTable.getPrimaryKeyColumns()) {\n FullyQualifiedJavaType type = introspectedColumn.getFullyQualifiedJavaType();\n method.addParameter(new Parameter(type, introspectedColumn.getJavaProperty()));\n }\n }\n StringBuffer sb = new StringBuffer();\n for (IntrospectedColumn introspectedColumn : introspectedTable.getPrimaryKeyColumns()) {\n sb.append(introspectedColumn.getJavaProperty());\n sb.append(\",\");\n }\n sb.setLength(sb.length() - 1);\n return sb.toString();\n case 3:\n method.addParameter(new Parameter(pojoExampleType, \"example\"));\n return \"example\";\n case 4:\n method.addParameter(0, new Parameter(pojoType, \"record\"));\n method.addParameter(1, new Parameter(pojoExampleType, \"example\"));\n return \"record, example\";\n default:\n break;\n }\n return null;\n }", "public void addParameter(ParameterDefinition parameterDefinition) {\r\n if (parameterDefinition == null) {\r\n return;\r\n }\r\n parameterDefinitions.add(parameterDefinition);\r\n shortNamesMap.put(parameterDefinition.getShortName(), parameterDefinition);\r\n longNamesMap.put(parameterDefinition.getLongName(), parameterDefinition);\r\n }", "@Generated(value={\"edu.jhu.cs.bsj.compiler.utils.generator.SourceGenerator\"})\npublic interface TypeParameterNode extends Node, TypeNameBindingNode\n{\n /**\n * Gets the base type name for the parameter.\n * @return The base type name for the parameter.\n * @throws ClassCastException If the value of this property is a special node.\n */\n public IdentifierNode getIdentifier()throws ClassCastException;\n \n /**\n * Gets the union object for the base type name for the parameter.\n * @return A union object representing The base type name for the parameter.\n */\n public NodeUnion<? extends IdentifierNode> getUnionForIdentifier();\n \n /**\n * Changes the base type name for the parameter.\n * @param identifier The base type name for the parameter.\n */\n public void setIdentifier(IdentifierNode identifier);\n \n /**\n * Changes the base type name for the parameter.\n * @param identifier The base type name for the parameter.\n * @throws NullPointerException If the provided value is <code>null</code>.\n * Node union values may have <code>null</code>\n * contents but are never <code>null</code>\n * themselves.\n */\n public void setUnionForIdentifier(NodeUnion<? extends IdentifierNode> identifier) throws NullPointerException;\n \n /**\n * Gets the bounds over the base type.\n * @return The bounds over the base type.\n * @throws ClassCastException If the value of this property is a special node.\n */\n public DeclaredTypeListNode getBounds()throws ClassCastException;\n \n /**\n * Gets the union object for the bounds over the base type.\n * @return A union object representing The bounds over the base type.\n */\n public NodeUnion<? extends DeclaredTypeListNode> getUnionForBounds();\n \n /**\n * Changes the bounds over the base type.\n * @param bounds The bounds over the base type.\n */\n public void setBounds(DeclaredTypeListNode bounds);\n \n /**\n * Changes the bounds over the base type.\n * @param bounds The bounds over the base type.\n * @throws NullPointerException If the provided value is <code>null</code>.\n * Node union values may have <code>null</code>\n * contents but are never <code>null</code>\n * themselves.\n */\n public void setUnionForBounds(NodeUnion<? extends DeclaredTypeListNode> bounds) throws NullPointerException;\n \n /**\n * Generates a deep copy of this node.\n * @param factory The node factory to use to create the deep copy.\n * @return The resulting deep copy node.\n */\n @Override\n public TypeParameterNode deepCopy(BsjNodeFactory factory);\n \n}", "public void addType(ValueType type) {\n\t\ttypes.add(type);\n\t}", "private synchronized final void addParams(Vector poParams, final int piModuleType) {\n switch (piModuleType) {\n case PREPROCESSING:\n this.oPreprocessingParams.addAll(poParams);\n break;\n\n case FEATURE_EXTRACTION:\n this.oFeatureExtractionParams.addAll(poParams);\n break;\n\n case CLASSIFICATION:\n this.oClassificationParams.addAll(poParams);\n break;\n\n default:\n throw new IllegalArgumentException(\"Unknown module type: \" + piModuleType + \".\");\n }\n }", "public void addParam(Property p) {\r\n params.addElement(p);\r\n }", "public Animator addParameter(String name) {\n parameters.put(name, new Parameter());\n return this;\n }", "public void setParam(int pos, BCClass type) {\n setParam(pos, type.getName());\n }", "public <P extends Parameter> P parameter(Class<P> kind, int index);", "private void addParameter(MethodConfig argMethodConfig,\r\n\t\t\tString argMethodName, String argMethodReturnType,\r\n\t\t\tDOConfig argDoConfig) {\r\n\t\tsetDefaulMethodInfo(argMethodConfig, argMethodName, argMethodReturnType);\r\n\t\taddDefaultParameterInfo(argMethodConfig, argDoConfig.getName(),\r\n\t\t\t\targDoConfig.getClassName());\r\n\t}", "public void addParameter(Document doc, Namespace ns, String parameterName,\n String parameterDataType) {\n\n // get parameter element\n Element parameterElement = (Element) doc.getRootElement()\n .getChild(\"parameter\", ns).clone();\n\n // set parameter attributes \"name\" and \"class\"\n parameterElement.setAttribute(\"name\", parameterName);\n parameterElement.setAttribute(\"class\", parameterDataType);\n\n // add element to document\n @SuppressWarnings(\"unchecked\")\n List<Element> children = doc.getRootElement().getChildren();\n\n int index = 0;\n\n for (Element element : children) {\n String thisChildName = element.getName();\n\n // get element over \"title\"-element\n if (thisChildName == \"title\") {\n index = doc.getRootElement().indexOf(element) - 1;\n\n }\n\n }\n\n doc.getRootElement().addContent(index, parameterElement);\n\n parameterCounter++;\n\n }", "public NumberedParameter(ParameterType type, int number) {\n this.type = type;\n this.number = number;\n }", "public LnwRestrictionFunction addParam( Object param ) {\n\t\tvalues.add( LnwSqlParameter.adaptData(param) );\n\t\treturn this;\n\t}", "public interface MetaParameter<T> extends MetaElement {\n\n /**\n * Parameter type class object\n */\n Class<T> getType();\n\n @Override\n default Kind getKind() {\n return Kind.PARAMETER;\n }\n}", "@jdk.Exported\npublic interface TypeParameterTree extends Tree {\n Name getName();\n List<? extends Tree> getBounds();\n\n /**\n * Return annotations on the type parameter declaration.\n *\n * Annotations need Target meta-annotations of\n * {@link java.lang.annotation.ElementType#TYPE_PARAMETER} or\n * {@link java.lang.annotation.ElementType#TYPE_USE}\n * to appear in this position.\n *\n * @return annotations on the type parameter declaration\n * @since 1.8\n */\n List<? extends AnnotationTree> getAnnotations();\n}", "public void addType(TypeDeclaration type) {\n m_classBuilder.addType(type);\n }", "public MethodBuilder type(String type) {\n\t\tthis.type = type;\n\t\treturn this;\n\t}", "public void addParam(String key, Object value) {\n getParams().put(key, value);\n }", "int getParamType(String type);", "public DoubleParameter addParameter(DoubleParameter p)\n {\n params.add(p);\n return p;\n }", "Parameter createParameter();", "public void addType(String name, Type type) {\n addTypeImpl(name, type, false);\n }", "public final void entryRuleAstTypeParam() throws RecognitionException {\n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:2229:1: ( ruleAstTypeParam EOF )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:2230:1: ruleAstTypeParam EOF\n {\n before(grammarAccess.getAstTypeParamRule()); \n pushFollow(FOLLOW_ruleAstTypeParam_in_entryRuleAstTypeParam4694);\n ruleAstTypeParam();\n\n state._fsp--;\n\n after(grammarAccess.getAstTypeParamRule()); \n match(input,EOF,FOLLOW_EOF_in_entryRuleAstTypeParam4701); \n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }", "public void setParameterType2(java.lang.Integer parameterType2) {\r\n this.parameterType2 = parameterType2;\r\n }", "void addParam(OpCode opcode, String param) {\n\t\t// We need to add 'param' to pool of constants and add a reference to it\n\t\tint idx = parseParam(opcode, param);\n\t\tcode.add(idx);\n\t}", "public void addParam(String name, String value) {\n\t\tparams.put(name, value);\n\t}", "public java.lang.Integer getParameterType() {\r\n return parameterType;\r\n }", "public abstract void addValue(String str, Type type);", "List<Type> getTypeParameters();", "gov.nih.nlm.ncbi.www.MedlineSiDocument.MedlineSi.Type addNewType();", "public void addParam(String name, String value) {\r\n if (params == null) {\r\n params = new ArrayList();\r\n }\r\n Param param = new Param(name, value);\r\n params.add(param);\r\n }", "public void addParameter(String key, String value) {\n parameters.add(new ParameterEntry<String, String>(key, value));\n }", "@Test\n public void testParameterType() throws Exception {\n ArrayList<Type> typeList = Lists.newArrayList();\n typeList.add(String.class);\n typeList.addAll(getBothParameters(ParamToListParam.class));\n typeList.add(getFirstTypeParameter(StringListSink.class));\n PipelineRegisterer.validateTypes(typeList);\n }", "protected void addParam(ParamRanking pr){\r\n\t\tranking.add(pr);\r\n\t\tCollections.sort(ranking);\r\n\t}", "public boolean addType(Accessibility pPAccess, String pTName, TypeSpec TS, Location pLocation);", "public void eInit(EObject context, String name, IJvmTypeProvider typeContext) {\n\t\tsetTypeResolutionContext(typeContext);\n\t\tthis.context = context;\n\t\tthis.parameter = this.jvmTypesFactory.createJvmTypeParameter();\n\t\tthis.parameter.setName(name);\n\n\t}", "public void addParameter(String key, Object value) {\n params.put(key, value.toString());\n }", "private void addParameter(String p_str)\n {\n if (p_str == null || p_str.length() > 0)\n {\n incrementIndent();\n addIndent();\n openStartTag(ACQ_PARM);\n closeTag(false);\n addString(p_str);\n openEndTag(ACQ_PARM);\n closeTag();\n decrementIndent();\n }\n }", "public Href addParameter(String name, Object value)\r\n {\r\n this.parameters.put(name, ObjectUtils.toString(value, null));\r\n return this;\r\n }", "public final void addTrigger (Type type)\n {\n int savedRefCount = _refCount;\n for (Iterator i=type.value().getParameters().iterator(); i.hasNext();)\n if (((TypeParameter)i.next()).addResiduation(this,savedRefCount))\n _refCount++;\n }", "@Override\r\n\t\tprotected boolean visit(final Type type) {\r\n\t\t\tChecker.notNull(\"parameter:type\", type);\r\n\r\n\t\t\tfinal Method method = type.findMethod(this.getMethodName(), this.getParameterTypes());\r\n\t\t\tfinal boolean skipRemaining = method != null;\r\n\t\t\tif (skipRemaining) {\r\n\t\t\t\tthis.setFound(method);\r\n\t\t\t}\r\n\t\t\treturn skipRemaining;\r\n\t\t}", "public static ParameterExpression variable(Class type) { throw Extensions.todo(); }", "@Override\r\n\tpublic void addParamInfo(ParamInfo info) {\n\t\tpm.insert(info);\r\n\t\t\r\n\t}", "public static ParameterExpression variable(Class type, String name) { throw Extensions.todo(); }", "void addConstructorParametersTypes(final List<Class<?>> parametersTypes) {\r\n\t\tconstructorParametersTypes.add(parametersTypes);\r\n\t}", "public final void rule__AstTypeParameterList__ParamsAssignment_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:25960:1: ( ( ruleAstTypeParam ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:25961:1: ( ruleAstTypeParam )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:25961:1: ( ruleAstTypeParam )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:25962:1: ruleAstTypeParam\n {\n before(grammarAccess.getAstTypeParameterListAccess().getParamsAstTypeParamParserRuleCall_1_0()); \n pushFollow(FOLLOW_ruleAstTypeParam_in_rule__AstTypeParameterList__ParamsAssignment_152187);\n ruleAstTypeParam();\n\n state._fsp--;\n\n after(grammarAccess.getAstTypeParameterListAccess().getParamsAstTypeParamParserRuleCall_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 }" ]
[ "0.7788107", "0.77232647", "0.7459104", "0.7363096", "0.7113688", "0.70800227", "0.69979733", "0.69428706", "0.6863046", "0.6708176", "0.659734", "0.65890425", "0.6585802", "0.65348107", "0.6532608", "0.6465598", "0.64033055", "0.6393447", "0.6384616", "0.6383532", "0.6379586", "0.6352888", "0.62686694", "0.616988", "0.61583406", "0.61502355", "0.6072371", "0.6055147", "0.60518366", "0.6034521", "0.6012366", "0.6004802", "0.59972847", "0.59870106", "0.5930531", "0.5906245", "0.58336526", "0.58124596", "0.58106613", "0.57776666", "0.5774605", "0.57709295", "0.57708836", "0.5759352", "0.57545584", "0.57334703", "0.57286614", "0.5684776", "0.56800103", "0.56800103", "0.56555706", "0.5640642", "0.56310034", "0.56250477", "0.56194204", "0.5613932", "0.5585967", "0.5547092", "0.55466473", "0.55185634", "0.55067337", "0.5489392", "0.54889953", "0.54881775", "0.5468711", "0.54651695", "0.5461782", "0.5457382", "0.54545146", "0.5448673", "0.5437387", "0.5430302", "0.5425216", "0.54172176", "0.5416319", "0.54155856", "0.5409693", "0.54089975", "0.5401611", "0.53991216", "0.53939307", "0.5392158", "0.5390491", "0.53837657", "0.53831863", "0.5371545", "0.5345617", "0.53399444", "0.5332799", "0.5330138", "0.53298366", "0.53158087", "0.5302734", "0.5291543", "0.52891487", "0.5287325", "0.527833", "0.52757794", "0.5264472", "0.52608705" ]
0.69139814
8
Change a parameter type of this method.
public void setParam(int pos, String type) { String[] origParams = getParamNames(); if ((pos < 0) || (pos >= origParams.length)) throw new IndexOutOfBoundsException("pos = " + pos); String[] params = new String[origParams.length]; for (int i = 0; i < params.length; i++) { if (i == pos) params[i] = type; else params[i] = origParams[i]; } setParams(params); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setType(int paramtype)\r\n\t{\r\n\t\ttype = paramtype;\r\n\t}", "public void setParameterType(java.lang.Integer parameterType) {\r\n this.parameterType = parameterType;\r\n }", "public void setTypeParameter(String typeParameter) {\n\t\tthis.typeParameter = typeParameter;\n\t}", "public void setParamType(String paramType) {\n this.paramType = paramType;\n }", "public void setTypeParameters(TypeParameterListNode typeParameters);", "void addTypedParameter(Parameter typedParameter);", "public void changeToType(TYPE type){\n this.type=type;\n return;\n }", "public String getParameterType() { return parameterType; }", "Type getMethodParameterType() throws IllegalArgumentException;", "public void setParamType(String paramType) {\n this.paramType = paramType == null ? null : paramType.trim();\n }", "public ParameterType getType();", "public AnnotatedTypeBuilder<X> overrideParameterType(AnnotatedParameter<? super X> parameter, Type type) {\n\t\tif (parameter.getDeclaringCallable().getJavaMember() instanceof Method) {\n\t\t\tMethod method = (Method) parameter.getDeclaringCallable().getJavaMember();\n\t\t\treturn overrideMethodParameterType(method, parameter.getPosition(), type);\n\t\t}\n\t\tif (parameter.getDeclaringCallable().getJavaMember() instanceof Constructor<?>) {\n\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\tConstructor<X> constructor = (Constructor<X>) parameter.getDeclaringCallable().getJavaMember();\n\t\t\treturn overrideConstructorParameterType(constructor, parameter.getPosition(), type);\n\t\t} else {\n\t\t\tthrow new IllegalArgumentException(\"Cannot remove from parameter \" + parameter\n\t\t\t\t\t+ \" - cannot operate on member \" + parameter.getDeclaringCallable().getJavaMember());\n\t\t}\n\t}", "public void addParam(Class type) {\n addParam(type.getName());\n }", "public static ParameterExpression parameter(Class type) { throw Extensions.todo(); }", "void setParameter(String name, Object value);", "public void setType(String newValue);", "public void setType(String newValue);", "public void setParam(int pos, Class type) {\n setParam(pos, type.getName());\n }", "public void setParameterType2(java.lang.Integer parameterType2) {\r\n this.parameterType2 = parameterType2;\r\n }", "public static ParameterExpression parameter(Class type, String name) { throw Extensions.todo(); }", "public void setNewValues_descriptionType(int param){\n \n // setting primitive attribute tracker to true\n localNewValues_descriptionTypeTracker =\n param != java.lang.Integer.MIN_VALUE;\n \n this.localNewValues_descriptionType=param;\n \n\n }", "public void setType(java.lang.String newType) {\n\ttype = newType;\n}", "public void setOldValues_descriptionType(int param){\n \n // setting primitive attribute tracker to true\n localOldValues_descriptionTypeTracker =\n param != java.lang.Integer.MIN_VALUE;\n \n this.localOldValues_descriptionType=param;\n \n\n }", "public void addParam(String type) {\n String[] origParams = getParamNames();\n String[] params = new String[origParams.length + 1];\n for (int i = 0; i < origParams.length; i++)\n params[i] = origParams[i];\n params[origParams.length] = type;\n setParams(params);\n }", "public void setType(String newtype)\n {\n type = newtype;\n }", "public void setParam(int pos, BCClass type) {\n setParam(pos, type.getName());\n }", "void changeType(NoteTypes newType) {\n this.type = newType;\n }", "public void addParam(BCClass type) {\n addParam(type.getName());\n }", "@Override\n public void setParameters(Map<Enum<?>, Object> parameters) {\n }", "protected void setType(String newType) {\n\t\ttype = newType;\n\t}", "protected abstract Feature<T,?> convertArgument(Class<?> parameterType, Feature<T,?> originalArgument);", "void setParameter(String name, String value);", "void setType(Type type)\n {\n this.type = type;\n }", "public void setOldProperty_descriptionType(int param){\n \n // setting primitive attribute tracker to true\n localOldProperty_descriptionTypeTracker =\n param != java.lang.Integer.MIN_VALUE;\n \n this.localOldProperty_descriptionType=param;\n \n\n }", "public abstract void setType();", "@Override\r\n public void setParameter(String parameters) {\r\n // dummy\r\n }", "public void setNewProperty_descriptionType(int param){\n \n // setting primitive attribute tracker to true\n localNewProperty_descriptionTypeTracker =\n param != java.lang.Integer.MIN_VALUE;\n \n this.localNewProperty_descriptionType=param;\n \n\n }", "public void setType(String type);", "public void setType(String type);", "public void setType(String type);", "public void change_type(int type_){\n\t\ttype = type_;\n\t\tif(type != 0)\n\t\t\toccupe = 1;\n\t}", "@Override\n public String kind() {\n return \"@param\";\n }", "public abstract Object adjust(Object value, T type);", "void setType(java.lang.String type);", "public void setDescriptionType(int param){\n \n // setting primitive attribute tracker to true\n localDescriptionTypeTracker =\n param != java.lang.Integer.MIN_VALUE;\n \n this.localDescriptionType=param;\n \n\n }", "public void setType(String inType)\n {\n\ttype = inType;\n }", "public void addSourceParameterType(Class<?> type) {\n parameterTypes.add(type);\n }", "public JVar addParameter(JType type, String name) {\n if(intf!=null)\n intfMethod.param(type,name);\n return implMethod.param(type,name);\n }", "public void setAnyType(java.lang.Object param) {\n this.localAnyType = param;\n }", "public void setType(Object type)\r\n {\r\n\tthis.type = type;\r\n }", "void setDataType(int type );", "@Override\n\tpublic void setType(String type) {\n\t}", "public NumberedParameter(ParameterType type, int number) {\n this.type = type;\n this.number = number;\n }", "@Override\n public void setParameter(String parameter, String value) {\n //no parameters\n }", "public void setType(String newVal) {\n if ((newVal != null && this.type != null && (newVal.compareTo(this.type) == 0)) || \n (newVal == null && this.type == null && type_is_initialized)) {\n return; \n } \n this.type = newVal; \n\n type_is_modified = true; \n type_is_initialized = true; \n }", "Setter buildParameterSetter(Type[] types, String path);", "public void setType(int t){\n this.type = t;\n }", "public void setType(int type) {\n type_ = type;\n }", "UpdateType updateType();", "@Override\n\tpublic void type() {\n\t\t\n\t}", "private void handleParameters(Node node, ParamType paramType) {\n\n Parameters parameters = new Parameters();\n parameters.setName(node.attributes().get(\"name\").toString());\n Map<String, Object> parameter = new HashMap<String, Object>();\n\n Iterator<Node> itr = node.childNodes();\n while (itr.hasNext()) {\n Node childNode = itr.next();\n String key = childNode.attributes().get(\"name\").toString();\n String value = childNode.attributes().get(\"value\").toString();\n parameter.put(key, value);\n }\n parameters.setParameter(parameter);\n switch (paramType) {\n\n case TESTSUITE:\n testSuite.addParameters(parameters);\n break;\n case TESTCASE:\n currentTestCase.addParameters(parameters);\n break;\n case TESTSTEP:\n currentTestStep.addParameters(parameters);\n break;\n case PERMUTATION:\n currentPermutation.addParameters(parameters);\n break;\n }\n\n }", "public MethodBuilder type(String type) {\n\t\tthis.type = type;\n\t\treturn this;\n\t}", "public TypeParameterListNode getTypeParameters()throws ClassCastException;", "public void addParam(int pos, Class type) {\n addParam(pos, type.getName());\n }", "@Override\n\tpublic void setParameter(PreparedStatement ps, int i, String parameter,\n\t\t\tJdbcType jdbcType) throws SQLException {\n\t\t\n\t}", "public void setOldCardinalityType(int param){\n \n // setting primitive attribute tracker to true\n localOldCardinalityTypeTracker =\n param != java.lang.Integer.MIN_VALUE;\n \n this.localOldCardinalityType=param;\n \n\n }", "public HttpParams setParameter(String name, Object value) throws UnsupportedOperationException {\n/* 228 */ throw new UnsupportedOperationException(\"Setting parameters in a stack is not supported.\");\n/* */ }", "@Override\r\n\tpublic void setParameter(PreparedStatement ps, int i, String parameter,\r\n\t\t\tJdbcType jdbcType) throws SQLException {\n\t\t\r\n\t}", "void setType(String type) {\n this.type = type;\n }", "@Override\n\t\t\t\t\tpublic Parameter handleParameter(Method parent,\n\t\t\t\t\t\t\tEParamType direction, FArgument src) {\n\t\t\t\t\t\treturn super.handleParameter(parent, direction, src);\n\t\t\t\t\t}", "public void onParaTypeChangeByVar(int i) {\n }", "public void addTargetParameterType(Class<?> type) {\n this.targetParameterTypes.add(type);\n }", "private static Object convertType(Class type, String parameter)\n throws ResourceException {\n try {\n String typeName = type.getName();\n\n if (typeName.equals(\"java.lang.String\") ||\n typeName.equals(\"java.lang.Object\")) {\n return parameter;\n }\n\n if (typeName.equals(\"int\") || typeName.equals(\"java.lang.Integer\")) {\n return new Integer(parameter);\n }\n\n if (typeName.equals(\"short\") || typeName.equals(\"java.lang.Short\")) {\n return new Short(parameter);\n }\n\n if (typeName.equals(\"byte\") || typeName.equals(\"java.lang.Byte\")) {\n return new Byte(parameter);\n }\n\n if (typeName.equals(\"long\") || typeName.equals(\"java.lang.Long\")) {\n return new Long(parameter);\n }\n\n if (typeName.equals(\"float\") || typeName.equals(\"java.lang.Float\")) {\n return new Float(parameter);\n }\n\n if (typeName.equals(\"double\") ||\n typeName.equals(\"java.lang.Double\")) {\n return new Double(parameter);\n }\n\n if (typeName.equals(\"java.math.BigDecimal\")) {\n return new java.math.BigDecimal(parameter);\n }\n\n if (typeName.equals(\"java.math.BigInteger\")) {\n return new java.math.BigInteger(parameter);\n }\n\n if (typeName.equals(\"boolean\") ||\n typeName.equals(\"java.lang.Boolean\")) {\n return new Boolean(parameter);\n }\n\n return parameter;\n } catch (NumberFormatException nfe) {\n _logger.log(Level.SEVERE, \"jdbc.exc_nfe\", parameter);\n\n String msg = sm.getString(\"me.invalid_param\", parameter);\n throw new ResourceException(msg);\n }\n }", "boolean removeTypedParameter(Parameter typedParameter);", "public void setType(Type t) {\n type = t;\n }", "@Override\n\t\t\t\t\tpublic Parameter handleParameter(Method parent,\n\t\t\t\t\t\t\tEParamType direction, FEnumerator src) {\n\t\t\t\t\t\treturn super.handleParameter(parent, direction, src);\n\t\t\t\t\t}", "void setClassType(String classType);", "private synchronized final void setParams(Vector poParams, final int piModuleType) {\n if (poParams == null) {\n throw new IllegalArgumentException(\"Parameters vector cannot be null.\");\n }\n\n switch (piModuleType) {\n case PREPROCESSING:\n this.oPreprocessingParams = poParams;\n break;\n\n case FEATURE_EXTRACTION:\n this.oFeatureExtractionParams = poParams;\n break;\n\n case CLASSIFICATION:\n this.oClassificationParams = poParams;\n break;\n\n default:\n throw new IllegalArgumentException(\"Unknown module type: \" + piModuleType + \".\");\n }\n }", "public void setPreparedStatementType(Class<? extends PreparedStatement> preparedStatementType)\r\n/* 30: */ {\r\n/* 31: 78 */ this.preparedStatementType = preparedStatementType;\r\n/* 32: */ }", "public void setType(Type type){\n\t\tthis.type = type;\n\t}", "public void setType(String type){\n \tthis.type = type;\n }", "public void changeType(String type, String newtype) {\r\n\r\n\t\tTaskType tt = getType(type);\r\n\t\tif (tt != null)\r\n\t\t\ttt.name = newtype;\r\n\t}", "public void addParam(int pos, BCClass type) {\n addParam(pos, type.getName());\n }", "BParameterTyping createBParameterTyping();", "public void setParameter(String parName, Object parVal) throws HibException ;", "@Override\n\t\tpublic void setParameters(Object[] parameters) {\n\t\t\t\n\t\t}", "public void setType(String name){\n\t\ttype = name;\n\t}", "@Override\n\t\t\t\t\tpublic Parameter handleParameter(Method parent,\n\t\t\t\t\t\t\tEParamType direction, FEnumerationType src) {\n\t\t\t\t\t\treturn super.handleParameter(parent, direction, src);\n\t\t\t\t\t}", "public void setType (int type) {\n this.type = type;\n }", "public void setType (int type) {\n this.type = type;\n }", "public void setEnablementParameter(YParameter parameter) {\n if (YParameter.getTypeForEnablement().equals(parameter.getDirection())) {\n if (null != parameter.getName()) {\n _enablementParameters.put(parameter.getName(), parameter);\n } else if (null != parameter.getElementName()) {\n _enablementParameters.put(parameter.getElementName(), parameter);\n }\n } else {\n throw new RuntimeException(\"Can only set enablement type param as such.\");\n }\n }", "public void setType(String type) {\n this.type = type;\n }", "public <P extends Parameter> P parameter(Class<P> kind, int index);", "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 setNewCardinalityType(int param){\n \n // setting primitive attribute tracker to true\n localNewCardinalityTypeTracker =\n param != java.lang.Integer.MIN_VALUE;\n \n this.localNewCardinalityType=param;\n \n\n }", "@Override\n public void setType(String type) {\n this.type = type;\n }", "public void setType(String aType) {\n iType = aType;\n }", "public AnnotatedTypeBuilder<X> overrideMethodParameterType(Method method, int position, Type type) {\n\t\tif (method == null) {\n\t\t\tthrow new IllegalArgumentException(String.format(\"%s parameter must not be null\", \"method\"));\n\t\t}\n\t\tif (type == null) {\n\t\t\tthrow new IllegalArgumentException(String.format(\"%s parameter must not be null\", \"type\"));\n\t\t}\n\t\tif (methodParameterTypes.get(method) == null) {\n\t\t\tmethodParameterTypes.put(method, new HashMap<Integer, Type>());\n\t\t}\n\t\tmethodParameterTypes.get(method).put(position, type);\n\t\treturn this;\n\t}", "public void setParameter( List<Parameter> parameter )\n {\n _parameter = parameter;\n }" ]
[ "0.72733945", "0.7111713", "0.68061686", "0.6789817", "0.66196436", "0.65000445", "0.6464128", "0.6360029", "0.6344383", "0.6325987", "0.6270046", "0.625604", "0.62227905", "0.61982507", "0.6170655", "0.614995", "0.614995", "0.6124251", "0.60968643", "0.60959744", "0.604978", "0.60492724", "0.6026958", "0.60185605", "0.6014495", "0.6005477", "0.5994023", "0.5984773", "0.59694135", "0.5947493", "0.59367085", "0.5924517", "0.5884858", "0.58759433", "0.5867174", "0.5822282", "0.57902104", "0.57602835", "0.57602835", "0.57602835", "0.574506", "0.57412964", "0.5724216", "0.5716515", "0.56730264", "0.5662465", "0.5659974", "0.5659567", "0.5645449", "0.5625353", "0.56201464", "0.5618819", "0.5599966", "0.559617", "0.5591178", "0.5586451", "0.5569617", "0.5556391", "0.55411714", "0.5525582", "0.5522261", "0.5521967", "0.5520563", "0.55190605", "0.5517226", "0.5514198", "0.5511906", "0.55110174", "0.5509015", "0.5506326", "0.5499629", "0.54974794", "0.54922354", "0.5478692", "0.54734635", "0.5472017", "0.54705113", "0.54662", "0.5454941", "0.5450392", "0.54496855", "0.5448804", "0.5447179", "0.5439833", "0.5434915", "0.543028", "0.5424609", "0.5423579", "0.5417214", "0.5417214", "0.54169536", "0.54126436", "0.54122376", "0.5410141", "0.5410141", "0.5404318", "0.53928024", "0.53924066", "0.5391221", "0.5389043" ]
0.58098036
36
Change a parameter type of this method.
public void setParam(int pos, Class type) { setParam(pos, type.getName()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setType(int paramtype)\r\n\t{\r\n\t\ttype = paramtype;\r\n\t}", "public void setParameterType(java.lang.Integer parameterType) {\r\n this.parameterType = parameterType;\r\n }", "public void setTypeParameter(String typeParameter) {\n\t\tthis.typeParameter = typeParameter;\n\t}", "public void setParamType(String paramType) {\n this.paramType = paramType;\n }", "public void setTypeParameters(TypeParameterListNode typeParameters);", "void addTypedParameter(Parameter typedParameter);", "public void changeToType(TYPE type){\n this.type=type;\n return;\n }", "public String getParameterType() { return parameterType; }", "Type getMethodParameterType() throws IllegalArgumentException;", "public void setParamType(String paramType) {\n this.paramType = paramType == null ? null : paramType.trim();\n }", "public ParameterType getType();", "public AnnotatedTypeBuilder<X> overrideParameterType(AnnotatedParameter<? super X> parameter, Type type) {\n\t\tif (parameter.getDeclaringCallable().getJavaMember() instanceof Method) {\n\t\t\tMethod method = (Method) parameter.getDeclaringCallable().getJavaMember();\n\t\t\treturn overrideMethodParameterType(method, parameter.getPosition(), type);\n\t\t}\n\t\tif (parameter.getDeclaringCallable().getJavaMember() instanceof Constructor<?>) {\n\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\tConstructor<X> constructor = (Constructor<X>) parameter.getDeclaringCallable().getJavaMember();\n\t\t\treturn overrideConstructorParameterType(constructor, parameter.getPosition(), type);\n\t\t} else {\n\t\t\tthrow new IllegalArgumentException(\"Cannot remove from parameter \" + parameter\n\t\t\t\t\t+ \" - cannot operate on member \" + parameter.getDeclaringCallable().getJavaMember());\n\t\t}\n\t}", "public void addParam(Class type) {\n addParam(type.getName());\n }", "public static ParameterExpression parameter(Class type) { throw Extensions.todo(); }", "void setParameter(String name, Object value);", "public void setType(String newValue);", "public void setType(String newValue);", "public void setParameterType2(java.lang.Integer parameterType2) {\r\n this.parameterType2 = parameterType2;\r\n }", "public static ParameterExpression parameter(Class type, String name) { throw Extensions.todo(); }", "public void setNewValues_descriptionType(int param){\n \n // setting primitive attribute tracker to true\n localNewValues_descriptionTypeTracker =\n param != java.lang.Integer.MIN_VALUE;\n \n this.localNewValues_descriptionType=param;\n \n\n }", "public void setType(java.lang.String newType) {\n\ttype = newType;\n}", "public void setOldValues_descriptionType(int param){\n \n // setting primitive attribute tracker to true\n localOldValues_descriptionTypeTracker =\n param != java.lang.Integer.MIN_VALUE;\n \n this.localOldValues_descriptionType=param;\n \n\n }", "public void addParam(String type) {\n String[] origParams = getParamNames();\n String[] params = new String[origParams.length + 1];\n for (int i = 0; i < origParams.length; i++)\n params[i] = origParams[i];\n params[origParams.length] = type;\n setParams(params);\n }", "public void setType(String newtype)\n {\n type = newtype;\n }", "public void setParam(int pos, BCClass type) {\n setParam(pos, type.getName());\n }", "void changeType(NoteTypes newType) {\n this.type = newType;\n }", "public void addParam(BCClass type) {\n addParam(type.getName());\n }", "@Override\n public void setParameters(Map<Enum<?>, Object> parameters) {\n }", "protected void setType(String newType) {\n\t\ttype = newType;\n\t}", "protected abstract Feature<T,?> convertArgument(Class<?> parameterType, Feature<T,?> originalArgument);", "void setParameter(String name, String value);", "void setType(Type type)\n {\n this.type = type;\n }", "public void setOldProperty_descriptionType(int param){\n \n // setting primitive attribute tracker to true\n localOldProperty_descriptionTypeTracker =\n param != java.lang.Integer.MIN_VALUE;\n \n this.localOldProperty_descriptionType=param;\n \n\n }", "public abstract void setType();", "@Override\r\n public void setParameter(String parameters) {\r\n // dummy\r\n }", "public void setParam(int pos, String type) {\n String[] origParams = getParamNames();\n if ((pos < 0) || (pos >= origParams.length))\n throw new IndexOutOfBoundsException(\"pos = \" + pos);\n\n String[] params = new String[origParams.length];\n for (int i = 0; i < params.length; i++) {\n if (i == pos)\n params[i] = type;\n else\n params[i] = origParams[i];\n }\n setParams(params);\n }", "public void setNewProperty_descriptionType(int param){\n \n // setting primitive attribute tracker to true\n localNewProperty_descriptionTypeTracker =\n param != java.lang.Integer.MIN_VALUE;\n \n this.localNewProperty_descriptionType=param;\n \n\n }", "public void setType(String type);", "public void setType(String type);", "public void setType(String type);", "public void change_type(int type_){\n\t\ttype = type_;\n\t\tif(type != 0)\n\t\t\toccupe = 1;\n\t}", "@Override\n public String kind() {\n return \"@param\";\n }", "public abstract Object adjust(Object value, T type);", "void setType(java.lang.String type);", "public void setDescriptionType(int param){\n \n // setting primitive attribute tracker to true\n localDescriptionTypeTracker =\n param != java.lang.Integer.MIN_VALUE;\n \n this.localDescriptionType=param;\n \n\n }", "public void setType(String inType)\n {\n\ttype = inType;\n }", "public void addSourceParameterType(Class<?> type) {\n parameterTypes.add(type);\n }", "public JVar addParameter(JType type, String name) {\n if(intf!=null)\n intfMethod.param(type,name);\n return implMethod.param(type,name);\n }", "public void setAnyType(java.lang.Object param) {\n this.localAnyType = param;\n }", "public void setType(Object type)\r\n {\r\n\tthis.type = type;\r\n }", "void setDataType(int type );", "@Override\n\tpublic void setType(String type) {\n\t}", "public NumberedParameter(ParameterType type, int number) {\n this.type = type;\n this.number = number;\n }", "@Override\n public void setParameter(String parameter, String value) {\n //no parameters\n }", "public void setType(String newVal) {\n if ((newVal != null && this.type != null && (newVal.compareTo(this.type) == 0)) || \n (newVal == null && this.type == null && type_is_initialized)) {\n return; \n } \n this.type = newVal; \n\n type_is_modified = true; \n type_is_initialized = true; \n }", "Setter buildParameterSetter(Type[] types, String path);", "public void setType(int t){\n this.type = t;\n }", "public void setType(int type) {\n type_ = type;\n }", "UpdateType updateType();", "@Override\n\tpublic void type() {\n\t\t\n\t}", "private void handleParameters(Node node, ParamType paramType) {\n\n Parameters parameters = new Parameters();\n parameters.setName(node.attributes().get(\"name\").toString());\n Map<String, Object> parameter = new HashMap<String, Object>();\n\n Iterator<Node> itr = node.childNodes();\n while (itr.hasNext()) {\n Node childNode = itr.next();\n String key = childNode.attributes().get(\"name\").toString();\n String value = childNode.attributes().get(\"value\").toString();\n parameter.put(key, value);\n }\n parameters.setParameter(parameter);\n switch (paramType) {\n\n case TESTSUITE:\n testSuite.addParameters(parameters);\n break;\n case TESTCASE:\n currentTestCase.addParameters(parameters);\n break;\n case TESTSTEP:\n currentTestStep.addParameters(parameters);\n break;\n case PERMUTATION:\n currentPermutation.addParameters(parameters);\n break;\n }\n\n }", "public MethodBuilder type(String type) {\n\t\tthis.type = type;\n\t\treturn this;\n\t}", "public TypeParameterListNode getTypeParameters()throws ClassCastException;", "public void addParam(int pos, Class type) {\n addParam(pos, type.getName());\n }", "@Override\n\tpublic void setParameter(PreparedStatement ps, int i, String parameter,\n\t\t\tJdbcType jdbcType) throws SQLException {\n\t\t\n\t}", "public void setOldCardinalityType(int param){\n \n // setting primitive attribute tracker to true\n localOldCardinalityTypeTracker =\n param != java.lang.Integer.MIN_VALUE;\n \n this.localOldCardinalityType=param;\n \n\n }", "public HttpParams setParameter(String name, Object value) throws UnsupportedOperationException {\n/* 228 */ throw new UnsupportedOperationException(\"Setting parameters in a stack is not supported.\");\n/* */ }", "@Override\r\n\tpublic void setParameter(PreparedStatement ps, int i, String parameter,\r\n\t\t\tJdbcType jdbcType) throws SQLException {\n\t\t\r\n\t}", "void setType(String type) {\n this.type = type;\n }", "@Override\n\t\t\t\t\tpublic Parameter handleParameter(Method parent,\n\t\t\t\t\t\t\tEParamType direction, FArgument src) {\n\t\t\t\t\t\treturn super.handleParameter(parent, direction, src);\n\t\t\t\t\t}", "public void onParaTypeChangeByVar(int i) {\n }", "public void addTargetParameterType(Class<?> type) {\n this.targetParameterTypes.add(type);\n }", "private static Object convertType(Class type, String parameter)\n throws ResourceException {\n try {\n String typeName = type.getName();\n\n if (typeName.equals(\"java.lang.String\") ||\n typeName.equals(\"java.lang.Object\")) {\n return parameter;\n }\n\n if (typeName.equals(\"int\") || typeName.equals(\"java.lang.Integer\")) {\n return new Integer(parameter);\n }\n\n if (typeName.equals(\"short\") || typeName.equals(\"java.lang.Short\")) {\n return new Short(parameter);\n }\n\n if (typeName.equals(\"byte\") || typeName.equals(\"java.lang.Byte\")) {\n return new Byte(parameter);\n }\n\n if (typeName.equals(\"long\") || typeName.equals(\"java.lang.Long\")) {\n return new Long(parameter);\n }\n\n if (typeName.equals(\"float\") || typeName.equals(\"java.lang.Float\")) {\n return new Float(parameter);\n }\n\n if (typeName.equals(\"double\") ||\n typeName.equals(\"java.lang.Double\")) {\n return new Double(parameter);\n }\n\n if (typeName.equals(\"java.math.BigDecimal\")) {\n return new java.math.BigDecimal(parameter);\n }\n\n if (typeName.equals(\"java.math.BigInteger\")) {\n return new java.math.BigInteger(parameter);\n }\n\n if (typeName.equals(\"boolean\") ||\n typeName.equals(\"java.lang.Boolean\")) {\n return new Boolean(parameter);\n }\n\n return parameter;\n } catch (NumberFormatException nfe) {\n _logger.log(Level.SEVERE, \"jdbc.exc_nfe\", parameter);\n\n String msg = sm.getString(\"me.invalid_param\", parameter);\n throw new ResourceException(msg);\n }\n }", "boolean removeTypedParameter(Parameter typedParameter);", "public void setType(Type t) {\n type = t;\n }", "@Override\n\t\t\t\t\tpublic Parameter handleParameter(Method parent,\n\t\t\t\t\t\t\tEParamType direction, FEnumerator src) {\n\t\t\t\t\t\treturn super.handleParameter(parent, direction, src);\n\t\t\t\t\t}", "void setClassType(String classType);", "private synchronized final void setParams(Vector poParams, final int piModuleType) {\n if (poParams == null) {\n throw new IllegalArgumentException(\"Parameters vector cannot be null.\");\n }\n\n switch (piModuleType) {\n case PREPROCESSING:\n this.oPreprocessingParams = poParams;\n break;\n\n case FEATURE_EXTRACTION:\n this.oFeatureExtractionParams = poParams;\n break;\n\n case CLASSIFICATION:\n this.oClassificationParams = poParams;\n break;\n\n default:\n throw new IllegalArgumentException(\"Unknown module type: \" + piModuleType + \".\");\n }\n }", "public void setPreparedStatementType(Class<? extends PreparedStatement> preparedStatementType)\r\n/* 30: */ {\r\n/* 31: 78 */ this.preparedStatementType = preparedStatementType;\r\n/* 32: */ }", "public void setType(Type type){\n\t\tthis.type = type;\n\t}", "public void setType(String type){\n \tthis.type = type;\n }", "public void changeType(String type, String newtype) {\r\n\r\n\t\tTaskType tt = getType(type);\r\n\t\tif (tt != null)\r\n\t\t\ttt.name = newtype;\r\n\t}", "public void addParam(int pos, BCClass type) {\n addParam(pos, type.getName());\n }", "BParameterTyping createBParameterTyping();", "public void setParameter(String parName, Object parVal) throws HibException ;", "@Override\n\t\tpublic void setParameters(Object[] parameters) {\n\t\t\t\n\t\t}", "public void setType(String name){\n\t\ttype = name;\n\t}", "@Override\n\t\t\t\t\tpublic Parameter handleParameter(Method parent,\n\t\t\t\t\t\t\tEParamType direction, FEnumerationType src) {\n\t\t\t\t\t\treturn super.handleParameter(parent, direction, src);\n\t\t\t\t\t}", "public void setType (int type) {\n this.type = type;\n }", "public void setType (int type) {\n this.type = type;\n }", "public void setEnablementParameter(YParameter parameter) {\n if (YParameter.getTypeForEnablement().equals(parameter.getDirection())) {\n if (null != parameter.getName()) {\n _enablementParameters.put(parameter.getName(), parameter);\n } else if (null != parameter.getElementName()) {\n _enablementParameters.put(parameter.getElementName(), parameter);\n }\n } else {\n throw new RuntimeException(\"Can only set enablement type param as such.\");\n }\n }", "public void setType(String type) {\n this.type = type;\n }", "public <P extends Parameter> P parameter(Class<P> kind, int index);", "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 setNewCardinalityType(int param){\n \n // setting primitive attribute tracker to true\n localNewCardinalityTypeTracker =\n param != java.lang.Integer.MIN_VALUE;\n \n this.localNewCardinalityType=param;\n \n\n }", "@Override\n public void setType(String type) {\n this.type = type;\n }", "public void setType(String aType) {\n iType = aType;\n }", "public AnnotatedTypeBuilder<X> overrideMethodParameterType(Method method, int position, Type type) {\n\t\tif (method == null) {\n\t\t\tthrow new IllegalArgumentException(String.format(\"%s parameter must not be null\", \"method\"));\n\t\t}\n\t\tif (type == null) {\n\t\t\tthrow new IllegalArgumentException(String.format(\"%s parameter must not be null\", \"type\"));\n\t\t}\n\t\tif (methodParameterTypes.get(method) == null) {\n\t\t\tmethodParameterTypes.put(method, new HashMap<Integer, Type>());\n\t\t}\n\t\tmethodParameterTypes.get(method).put(position, type);\n\t\treturn this;\n\t}", "public void setParameter( List<Parameter> parameter )\n {\n _parameter = parameter;\n }" ]
[ "0.72733945", "0.7111713", "0.68061686", "0.6789817", "0.66196436", "0.65000445", "0.6464128", "0.6360029", "0.6344383", "0.6325987", "0.6270046", "0.625604", "0.62227905", "0.61982507", "0.6170655", "0.614995", "0.614995", "0.60968643", "0.60959744", "0.604978", "0.60492724", "0.6026958", "0.60185605", "0.6014495", "0.6005477", "0.5994023", "0.5984773", "0.59694135", "0.5947493", "0.59367085", "0.5924517", "0.5884858", "0.58759433", "0.5867174", "0.5822282", "0.58098036", "0.57902104", "0.57602835", "0.57602835", "0.57602835", "0.574506", "0.57412964", "0.5724216", "0.5716515", "0.56730264", "0.5662465", "0.5659974", "0.5659567", "0.5645449", "0.5625353", "0.56201464", "0.5618819", "0.5599966", "0.559617", "0.5591178", "0.5586451", "0.5569617", "0.5556391", "0.55411714", "0.5525582", "0.5522261", "0.5521967", "0.5520563", "0.55190605", "0.5517226", "0.5514198", "0.5511906", "0.55110174", "0.5509015", "0.5506326", "0.5499629", "0.54974794", "0.54922354", "0.5478692", "0.54734635", "0.5472017", "0.54705113", "0.54662", "0.5454941", "0.5450392", "0.54496855", "0.5448804", "0.5447179", "0.5439833", "0.5434915", "0.543028", "0.5424609", "0.5423579", "0.5417214", "0.5417214", "0.54169536", "0.54126436", "0.54122376", "0.5410141", "0.5410141", "0.5404318", "0.53928024", "0.53924066", "0.5391221", "0.5389043" ]
0.6124251
17
Change a parameter type of this method.
public void setParam(int pos, BCClass type) { setParam(pos, type.getName()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setType(int paramtype)\r\n\t{\r\n\t\ttype = paramtype;\r\n\t}", "public void setParameterType(java.lang.Integer parameterType) {\r\n this.parameterType = parameterType;\r\n }", "public void setTypeParameter(String typeParameter) {\n\t\tthis.typeParameter = typeParameter;\n\t}", "public void setParamType(String paramType) {\n this.paramType = paramType;\n }", "public void setTypeParameters(TypeParameterListNode typeParameters);", "void addTypedParameter(Parameter typedParameter);", "public void changeToType(TYPE type){\n this.type=type;\n return;\n }", "public String getParameterType() { return parameterType; }", "Type getMethodParameterType() throws IllegalArgumentException;", "public void setParamType(String paramType) {\n this.paramType = paramType == null ? null : paramType.trim();\n }", "public ParameterType getType();", "public AnnotatedTypeBuilder<X> overrideParameterType(AnnotatedParameter<? super X> parameter, Type type) {\n\t\tif (parameter.getDeclaringCallable().getJavaMember() instanceof Method) {\n\t\t\tMethod method = (Method) parameter.getDeclaringCallable().getJavaMember();\n\t\t\treturn overrideMethodParameterType(method, parameter.getPosition(), type);\n\t\t}\n\t\tif (parameter.getDeclaringCallable().getJavaMember() instanceof Constructor<?>) {\n\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\tConstructor<X> constructor = (Constructor<X>) parameter.getDeclaringCallable().getJavaMember();\n\t\t\treturn overrideConstructorParameterType(constructor, parameter.getPosition(), type);\n\t\t} else {\n\t\t\tthrow new IllegalArgumentException(\"Cannot remove from parameter \" + parameter\n\t\t\t\t\t+ \" - cannot operate on member \" + parameter.getDeclaringCallable().getJavaMember());\n\t\t}\n\t}", "public void addParam(Class type) {\n addParam(type.getName());\n }", "public static ParameterExpression parameter(Class type) { throw Extensions.todo(); }", "void setParameter(String name, Object value);", "public void setType(String newValue);", "public void setType(String newValue);", "public void setParam(int pos, Class type) {\n setParam(pos, type.getName());\n }", "public void setParameterType2(java.lang.Integer parameterType2) {\r\n this.parameterType2 = parameterType2;\r\n }", "public static ParameterExpression parameter(Class type, String name) { throw Extensions.todo(); }", "public void setNewValues_descriptionType(int param){\n \n // setting primitive attribute tracker to true\n localNewValues_descriptionTypeTracker =\n param != java.lang.Integer.MIN_VALUE;\n \n this.localNewValues_descriptionType=param;\n \n\n }", "public void setType(java.lang.String newType) {\n\ttype = newType;\n}", "public void setOldValues_descriptionType(int param){\n \n // setting primitive attribute tracker to true\n localOldValues_descriptionTypeTracker =\n param != java.lang.Integer.MIN_VALUE;\n \n this.localOldValues_descriptionType=param;\n \n\n }", "public void addParam(String type) {\n String[] origParams = getParamNames();\n String[] params = new String[origParams.length + 1];\n for (int i = 0; i < origParams.length; i++)\n params[i] = origParams[i];\n params[origParams.length] = type;\n setParams(params);\n }", "public void setType(String newtype)\n {\n type = newtype;\n }", "void changeType(NoteTypes newType) {\n this.type = newType;\n }", "public void addParam(BCClass type) {\n addParam(type.getName());\n }", "@Override\n public void setParameters(Map<Enum<?>, Object> parameters) {\n }", "protected void setType(String newType) {\n\t\ttype = newType;\n\t}", "protected abstract Feature<T,?> convertArgument(Class<?> parameterType, Feature<T,?> originalArgument);", "void setParameter(String name, String value);", "void setType(Type type)\n {\n this.type = type;\n }", "public void setOldProperty_descriptionType(int param){\n \n // setting primitive attribute tracker to true\n localOldProperty_descriptionTypeTracker =\n param != java.lang.Integer.MIN_VALUE;\n \n this.localOldProperty_descriptionType=param;\n \n\n }", "public abstract void setType();", "@Override\r\n public void setParameter(String parameters) {\r\n // dummy\r\n }", "public void setParam(int pos, String type) {\n String[] origParams = getParamNames();\n if ((pos < 0) || (pos >= origParams.length))\n throw new IndexOutOfBoundsException(\"pos = \" + pos);\n\n String[] params = new String[origParams.length];\n for (int i = 0; i < params.length; i++) {\n if (i == pos)\n params[i] = type;\n else\n params[i] = origParams[i];\n }\n setParams(params);\n }", "public void setNewProperty_descriptionType(int param){\n \n // setting primitive attribute tracker to true\n localNewProperty_descriptionTypeTracker =\n param != java.lang.Integer.MIN_VALUE;\n \n this.localNewProperty_descriptionType=param;\n \n\n }", "public void setType(String type);", "public void setType(String type);", "public void setType(String type);", "public void change_type(int type_){\n\t\ttype = type_;\n\t\tif(type != 0)\n\t\t\toccupe = 1;\n\t}", "@Override\n public String kind() {\n return \"@param\";\n }", "public abstract Object adjust(Object value, T type);", "void setType(java.lang.String type);", "public void setDescriptionType(int param){\n \n // setting primitive attribute tracker to true\n localDescriptionTypeTracker =\n param != java.lang.Integer.MIN_VALUE;\n \n this.localDescriptionType=param;\n \n\n }", "public void setType(String inType)\n {\n\ttype = inType;\n }", "public void addSourceParameterType(Class<?> type) {\n parameterTypes.add(type);\n }", "public JVar addParameter(JType type, String name) {\n if(intf!=null)\n intfMethod.param(type,name);\n return implMethod.param(type,name);\n }", "public void setAnyType(java.lang.Object param) {\n this.localAnyType = param;\n }", "public void setType(Object type)\r\n {\r\n\tthis.type = type;\r\n }", "void setDataType(int type );", "@Override\n\tpublic void setType(String type) {\n\t}", "public NumberedParameter(ParameterType type, int number) {\n this.type = type;\n this.number = number;\n }", "@Override\n public void setParameter(String parameter, String value) {\n //no parameters\n }", "public void setType(String newVal) {\n if ((newVal != null && this.type != null && (newVal.compareTo(this.type) == 0)) || \n (newVal == null && this.type == null && type_is_initialized)) {\n return; \n } \n this.type = newVal; \n\n type_is_modified = true; \n type_is_initialized = true; \n }", "Setter buildParameterSetter(Type[] types, String path);", "public void setType(int t){\n this.type = t;\n }", "public void setType(int type) {\n type_ = type;\n }", "UpdateType updateType();", "@Override\n\tpublic void type() {\n\t\t\n\t}", "private void handleParameters(Node node, ParamType paramType) {\n\n Parameters parameters = new Parameters();\n parameters.setName(node.attributes().get(\"name\").toString());\n Map<String, Object> parameter = new HashMap<String, Object>();\n\n Iterator<Node> itr = node.childNodes();\n while (itr.hasNext()) {\n Node childNode = itr.next();\n String key = childNode.attributes().get(\"name\").toString();\n String value = childNode.attributes().get(\"value\").toString();\n parameter.put(key, value);\n }\n parameters.setParameter(parameter);\n switch (paramType) {\n\n case TESTSUITE:\n testSuite.addParameters(parameters);\n break;\n case TESTCASE:\n currentTestCase.addParameters(parameters);\n break;\n case TESTSTEP:\n currentTestStep.addParameters(parameters);\n break;\n case PERMUTATION:\n currentPermutation.addParameters(parameters);\n break;\n }\n\n }", "public MethodBuilder type(String type) {\n\t\tthis.type = type;\n\t\treturn this;\n\t}", "public TypeParameterListNode getTypeParameters()throws ClassCastException;", "public void addParam(int pos, Class type) {\n addParam(pos, type.getName());\n }", "@Override\n\tpublic void setParameter(PreparedStatement ps, int i, String parameter,\n\t\t\tJdbcType jdbcType) throws SQLException {\n\t\t\n\t}", "public void setOldCardinalityType(int param){\n \n // setting primitive attribute tracker to true\n localOldCardinalityTypeTracker =\n param != java.lang.Integer.MIN_VALUE;\n \n this.localOldCardinalityType=param;\n \n\n }", "public HttpParams setParameter(String name, Object value) throws UnsupportedOperationException {\n/* 228 */ throw new UnsupportedOperationException(\"Setting parameters in a stack is not supported.\");\n/* */ }", "@Override\r\n\tpublic void setParameter(PreparedStatement ps, int i, String parameter,\r\n\t\t\tJdbcType jdbcType) throws SQLException {\n\t\t\r\n\t}", "void setType(String type) {\n this.type = type;\n }", "@Override\n\t\t\t\t\tpublic Parameter handleParameter(Method parent,\n\t\t\t\t\t\t\tEParamType direction, FArgument src) {\n\t\t\t\t\t\treturn super.handleParameter(parent, direction, src);\n\t\t\t\t\t}", "public void onParaTypeChangeByVar(int i) {\n }", "public void addTargetParameterType(Class<?> type) {\n this.targetParameterTypes.add(type);\n }", "private static Object convertType(Class type, String parameter)\n throws ResourceException {\n try {\n String typeName = type.getName();\n\n if (typeName.equals(\"java.lang.String\") ||\n typeName.equals(\"java.lang.Object\")) {\n return parameter;\n }\n\n if (typeName.equals(\"int\") || typeName.equals(\"java.lang.Integer\")) {\n return new Integer(parameter);\n }\n\n if (typeName.equals(\"short\") || typeName.equals(\"java.lang.Short\")) {\n return new Short(parameter);\n }\n\n if (typeName.equals(\"byte\") || typeName.equals(\"java.lang.Byte\")) {\n return new Byte(parameter);\n }\n\n if (typeName.equals(\"long\") || typeName.equals(\"java.lang.Long\")) {\n return new Long(parameter);\n }\n\n if (typeName.equals(\"float\") || typeName.equals(\"java.lang.Float\")) {\n return new Float(parameter);\n }\n\n if (typeName.equals(\"double\") ||\n typeName.equals(\"java.lang.Double\")) {\n return new Double(parameter);\n }\n\n if (typeName.equals(\"java.math.BigDecimal\")) {\n return new java.math.BigDecimal(parameter);\n }\n\n if (typeName.equals(\"java.math.BigInteger\")) {\n return new java.math.BigInteger(parameter);\n }\n\n if (typeName.equals(\"boolean\") ||\n typeName.equals(\"java.lang.Boolean\")) {\n return new Boolean(parameter);\n }\n\n return parameter;\n } catch (NumberFormatException nfe) {\n _logger.log(Level.SEVERE, \"jdbc.exc_nfe\", parameter);\n\n String msg = sm.getString(\"me.invalid_param\", parameter);\n throw new ResourceException(msg);\n }\n }", "boolean removeTypedParameter(Parameter typedParameter);", "public void setType(Type t) {\n type = t;\n }", "@Override\n\t\t\t\t\tpublic Parameter handleParameter(Method parent,\n\t\t\t\t\t\t\tEParamType direction, FEnumerator src) {\n\t\t\t\t\t\treturn super.handleParameter(parent, direction, src);\n\t\t\t\t\t}", "void setClassType(String classType);", "private synchronized final void setParams(Vector poParams, final int piModuleType) {\n if (poParams == null) {\n throw new IllegalArgumentException(\"Parameters vector cannot be null.\");\n }\n\n switch (piModuleType) {\n case PREPROCESSING:\n this.oPreprocessingParams = poParams;\n break;\n\n case FEATURE_EXTRACTION:\n this.oFeatureExtractionParams = poParams;\n break;\n\n case CLASSIFICATION:\n this.oClassificationParams = poParams;\n break;\n\n default:\n throw new IllegalArgumentException(\"Unknown module type: \" + piModuleType + \".\");\n }\n }", "public void setPreparedStatementType(Class<? extends PreparedStatement> preparedStatementType)\r\n/* 30: */ {\r\n/* 31: 78 */ this.preparedStatementType = preparedStatementType;\r\n/* 32: */ }", "public void setType(Type type){\n\t\tthis.type = type;\n\t}", "public void setType(String type){\n \tthis.type = type;\n }", "public void changeType(String type, String newtype) {\r\n\r\n\t\tTaskType tt = getType(type);\r\n\t\tif (tt != null)\r\n\t\t\ttt.name = newtype;\r\n\t}", "public void addParam(int pos, BCClass type) {\n addParam(pos, type.getName());\n }", "BParameterTyping createBParameterTyping();", "public void setParameter(String parName, Object parVal) throws HibException ;", "@Override\n\t\tpublic void setParameters(Object[] parameters) {\n\t\t\t\n\t\t}", "public void setType(String name){\n\t\ttype = name;\n\t}", "@Override\n\t\t\t\t\tpublic Parameter handleParameter(Method parent,\n\t\t\t\t\t\t\tEParamType direction, FEnumerationType src) {\n\t\t\t\t\t\treturn super.handleParameter(parent, direction, src);\n\t\t\t\t\t}", "public void setType (int type) {\n this.type = type;\n }", "public void setType (int type) {\n this.type = type;\n }", "public void setEnablementParameter(YParameter parameter) {\n if (YParameter.getTypeForEnablement().equals(parameter.getDirection())) {\n if (null != parameter.getName()) {\n _enablementParameters.put(parameter.getName(), parameter);\n } else if (null != parameter.getElementName()) {\n _enablementParameters.put(parameter.getElementName(), parameter);\n }\n } else {\n throw new RuntimeException(\"Can only set enablement type param as such.\");\n }\n }", "public void setType(String type) {\n this.type = type;\n }", "public <P extends Parameter> P parameter(Class<P> kind, int index);", "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 setNewCardinalityType(int param){\n \n // setting primitive attribute tracker to true\n localNewCardinalityTypeTracker =\n param != java.lang.Integer.MIN_VALUE;\n \n this.localNewCardinalityType=param;\n \n\n }", "@Override\n public void setType(String type) {\n this.type = type;\n }", "public void setType(String aType) {\n iType = aType;\n }", "public AnnotatedTypeBuilder<X> overrideMethodParameterType(Method method, int position, Type type) {\n\t\tif (method == null) {\n\t\t\tthrow new IllegalArgumentException(String.format(\"%s parameter must not be null\", \"method\"));\n\t\t}\n\t\tif (type == null) {\n\t\t\tthrow new IllegalArgumentException(String.format(\"%s parameter must not be null\", \"type\"));\n\t\t}\n\t\tif (methodParameterTypes.get(method) == null) {\n\t\t\tmethodParameterTypes.put(method, new HashMap<Integer, Type>());\n\t\t}\n\t\tmethodParameterTypes.get(method).put(position, type);\n\t\treturn this;\n\t}", "public void setParameter( List<Parameter> parameter )\n {\n _parameter = parameter;\n }" ]
[ "0.72733945", "0.7111713", "0.68061686", "0.6789817", "0.66196436", "0.65000445", "0.6464128", "0.6360029", "0.6344383", "0.6325987", "0.6270046", "0.625604", "0.62227905", "0.61982507", "0.6170655", "0.614995", "0.614995", "0.6124251", "0.60968643", "0.60959744", "0.604978", "0.60492724", "0.6026958", "0.60185605", "0.6014495", "0.5994023", "0.5984773", "0.59694135", "0.5947493", "0.59367085", "0.5924517", "0.5884858", "0.58759433", "0.5867174", "0.5822282", "0.58098036", "0.57902104", "0.57602835", "0.57602835", "0.57602835", "0.574506", "0.57412964", "0.5724216", "0.5716515", "0.56730264", "0.5662465", "0.5659974", "0.5659567", "0.5645449", "0.5625353", "0.56201464", "0.5618819", "0.5599966", "0.559617", "0.5591178", "0.5586451", "0.5569617", "0.5556391", "0.55411714", "0.5525582", "0.5522261", "0.5521967", "0.5520563", "0.55190605", "0.5517226", "0.5514198", "0.5511906", "0.55110174", "0.5509015", "0.5506326", "0.5499629", "0.54974794", "0.54922354", "0.5478692", "0.54734635", "0.5472017", "0.54705113", "0.54662", "0.5454941", "0.5450392", "0.54496855", "0.5448804", "0.5447179", "0.5439833", "0.5434915", "0.543028", "0.5424609", "0.5423579", "0.5417214", "0.5417214", "0.54169536", "0.54126436", "0.54122376", "0.5410141", "0.5410141", "0.5404318", "0.53928024", "0.53924066", "0.5391221", "0.5389043" ]
0.6005477
25
Clear all parameters from this method.
public void clearParams() { setParams((String[]) null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void clearParameters() {\n\t\tqueryParameters.clear();\n\t}", "public Builder clearParameters() {\n parameters_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000800);\n\n return this;\n }", "void clearTypedParameters();", "public void reset() {\r\n reset(params);\r\n }", "public URIBuilder clearParameters() {\n this.queryParams = null;\n this.encodedQuery = null;\n this.encodedSchemeSpecificPart = null;\n return this;\n }", "public void reset()\n {\n Iterator i;\n\n i = params.iterator(); \n while (i.hasNext()) {\n ((Parameter)i.next()).reset();\n }\n\n i = options.iterator(); \n while (i.hasNext()) {\n ((Parameter)i.next()).reset();\n }\n }", "public Builder clearParameters() {\n if (parametersBuilder_ == null) {\n parameters_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000008);\n onChanged();\n } else {\n parametersBuilder_.clear();\n }\n return this;\n }", "public Builder clearParameters() {\n if (parametersBuilder_ == null) {\n parameters_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000001);\n onChanged();\n } else {\n parametersBuilder_.clear();\n }\n return this;\n }", "void onClearAllParametersButtonClick();", "public Builder clearParams() {\n if (paramsBuilder_ == null) {\n params_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000008);\n onChanged();\n } else {\n paramsBuilder_.clear();\n }\n return this;\n }", "public Builder clearArguments() {\n arguments.clear();\n return this;\n }", "Statement clearParameters();", "public Builder clearArguments() {\n arguments_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000002);\n onChanged();\n return this;\n }", "public void clear()\r\n {\r\n m_alParameters.clear();\r\n fireTableDataChanged();\r\n }", "protected void resetParams() {\n\t\treport.report(\"Resetting Test Parameters\");\n\t\t// numberOfRecoverys = 0;\n\t\tstreams = new ArrayList<StreamParams>();\n\t\tlistOfStreamList = new ArrayList<ArrayList<StreamParams>>();\n\t}", "void clearParameters() throws SQLException;", "public Builder clearArgs() {\n\t\t\t\targs_ = com.google.protobuf.LazyStringArrayList.EMPTY;\n\t\t\t\tbitField0_ = (bitField0_ & ~0x00000002);\n\t\t\t\tonChanged();\n\t\t\t\treturn this;\n\t\t\t}", "public Builder clearQueryParameters() {\n\t\t\turl.query.clear();\n\t\t\treturn this;\n\t\t}", "@Override\r\n public void clear() {\r\n super.clear();\r\n this.commandArgs = null;\r\n this.command = null;\r\n this.notifys = null;\r\n this.ctx = null;\r\n }", "@Override\n public void resetAllValues() {\n }", "void disableClearAllParametersButton();", "public Builder clearArgs() {\n args_ = com.google.protobuf.LazyStringArrayList.EMPTY;\n bitField0_ = (bitField0_ & ~0x00000002);\n onChanged();\n return this;\n }", "public Builder clearArgs() {\n args_ = com.google.protobuf.LazyStringArrayList.EMPTY;\n bitField0_ = (bitField0_ & ~0x00000002);\n onChanged();\n return this;\n }", "public void clear()\n {\n inputs.clear();\n outputs.clear();\n }", "public void clearParameters() throws SQLException {\n currentPreparedStatement.clearParameters();\n }", "public Builder clearArgs() {\n if (argsBuilder_ == null) {\n args_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000001);\n onChanged();\n } else {\n argsBuilder_.clear();\n }\n return this;\n }", "@Override\n\t\t\tpublic void clear() {\n\t\t\t\t\n\t\t\t}", "public Builder clearArg() {\n\n\t\t\t\targ_ = getDefaultInstance().getArg();\n\t\t\t\tonChanged();\n\t\t\t\treturn this;\n\t\t\t}", "public void clearStatement() {\n\t\tif (pstmt != null) {\n\t\t\ttry {\n\t\t\t\tpstmt.clearParameters();\n\t\t\t} catch (SQLException se) {\n\t\t\t\tse.printStackTrace();\n\t\t\t} \t\n\t\t}\n\t}", "public DefaultCurveMetadataBuilder clearParameterMetadata() {\n this.parameterMetadata = null;\n return this;\n }", "public void removeParameters() {\n LogWriter.logMessage(LogWriter.TRACE_DEBUG, \"removeParameters() \");\n Via via=(Via)sipHeader;\n \n via.removeParameters();\n }", "@Override\n public void clear() {\n \n }", "@Override\r\n\tpublic void clearAll() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void clearAll() {\n\t\t\r\n\t}", "@Override\n\tpublic void reset() {\n\t\tthis.currentConditionIndex = 0;\n\t\t\n\t\tfor(Cond cond:this.conditions)\n\t\t{\n\t\t\tfor(Param param:cond.params)\n\t\t\t{\n\t\t\t\tparam.reset();\n\t\t\t}\n\t\t}\n\t}", "@Override\n\t\tpublic void clear() {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void clear() {\n\t\t\t\n\t\t}", "private void clear() {\n }", "public void clear()\r\n {\r\n super.clear();\r\n }", "public void cleararrays(){\n condicional.clear();\n parametro1.clear();\n parametro2.clear();\n }", "void removeAllParameterViews();", "@Override\n protected void clear() {\n\n }", "public void clear()\n {\n }", "@Override\n\tpublic void clearAll() {\n\t\t\n\t}", "public void clear() {\n oredCriteria.clear();\n orderByClause = null;\n distinct = false;\n this.offset= 0;\n this.limit= Integer.MAX_VALUE;\n this.sumCol=null;\n this.groupSelClause=null;\n this.groupByClause=null;\n this.forUpdate=false;\n }", "void reset()\n {\n reset(values);\n }", "private void reset() {\n\t\tfiles = new HashMap<>();\n\t\tparams = new HashMap<>();\n\t}", "public void clearCachedArguments() {\n\t\tObject[] args = getCachedArguments();\n\t\tfor (int i = 0; i < args.length; i++) {\n\t\t\targs[i] = null;\n\t\t}\n\t}", "void enableClearAllParametersButton();", "public void clear() {\n oredCriteria.clear();\n orderByClause = null;\n distinct = false;\n this.offset= 0;\n this.limit= Integer.MAX_VALUE;\n this.sumCol=null;\n this.groupSelClause=null;\n this.groupByClause=null;\n }", "public void clear() {\n\t\toredCriteria.clear();\n\t\torderByClause = null;\n\t\tdistinct = false;\n\t}", "public void clear() {\n\t\toredCriteria.clear();\n\t\torderByClause = null;\n\t\tdistinct = false;\n\t}", "public void clear() {\n\t\toredCriteria.clear();\n\t\torderByClause = null;\n\t\tdistinct = false;\n\t}", "public void clear() {\n\t\toredCriteria.clear();\n\t\torderByClause = null;\n\t\tdistinct = false;\n\t}", "public void clear() {\n\t\toredCriteria.clear();\n\t\torderByClause = null;\n\t\tdistinct = false;\n\t}", "public void clear() {\n\t\toredCriteria.clear();\n\t\torderByClause = null;\n\t\tdistinct = false;\n\t}", "public void clear() {\n\t\toredCriteria.clear();\n\t\torderByClause = null;\n\t\tdistinct = false;\n\t}", "public void clear() {\n\t\toredCriteria.clear();\n\t\torderByClause = null;\n\t\tdistinct = false;\n\t}", "public void clear() {\n\t\toredCriteria.clear();\n\t\torderByClause = null;\n\t\tdistinct = false;\n\t}", "public void clear() {\n\t\toredCriteria.clear();\n\t\torderByClause = null;\n\t\tdistinct = false;\n\t}", "public void clear() {\n\t\toredCriteria.clear();\n\t\torderByClause = null;\n\t\tdistinct = false;\n\t}", "public Builder clearParameterValue() {\n bitField0_ = (bitField0_ & ~0x00000002);\n parameterValue_ = getDefaultInstance().getParameterValue();\n\n return this;\n }", "public void clear() {\n\t\t\r\n\t}", "@Override public void clear() {\n }", "public void clear() {\r\n\t\toredCriteria.clear();\r\n\t\torderByClause = null;\r\n\t\tdistinct = false;\r\n\t}", "public void clear() {\r\n\t\toredCriteria.clear();\r\n\t\torderByClause = null;\r\n\t\tdistinct = false;\r\n\t}", "public void clear() {\r\n\t\toredCriteria.clear();\r\n\t\torderByClause = null;\r\n\t\tdistinct = false;\r\n\t}", "public void clear() {\r\n\t\toredCriteria.clear();\r\n\t\torderByClause = null;\r\n\t\tdistinct = false;\r\n\t}", "public void clear() {\r\n\t\toredCriteria.clear();\r\n\t\torderByClause = null;\r\n\t\tdistinct = false;\r\n\t}", "public void clear () {\n\t\treset();\n\t}", "@Override\n public void clear()\n {\n\n }", "@Override\r\n\tpublic void clear() {\n\t\t\r\n\t}", "public void clear() {\n\n\t}", "public void clear() {\n values.clear();\n }", "public void clear() {\n }", "public void clear() {\n }", "public void clear() {\n \tsuper.clear();\n oredCriteria.clear();\n orderByClause = null;\n distinct = false;\n }", "@Override\n\tpublic void clear() {\n\n\t}", "@Override\n public void clear()\n {\n }", "public br.unb.cic.bionimbus.avro.gen.JobInfo.Builder clearArgs() {\n args = null;\n fieldSetFlags()[3] = false;\n return this;\n }", "@Override\n public void clear() {\n super.clear();\n }", "@Override\n public synchronized void clear() {\n }", "@Override\n\tpublic void clear() {\n\t}", "public void clear() {\n }", "void clearAll();", "void clearAll();", "public void reset() {\n\t\tvar.clear();\n\t\tname.clear();\n\t}", "@Override\n public void clear() {\n initialize();\n }", "public void clearAll();", "public void clearAll();", "public void clear() {\n\t\twhere = null;\n\t}", "private void clearQueryString() {\n this.setQueryString(\"\");\n }", "@Override\n\tvoid clear() {\n\n\t}", "public void reset() {\n super.reset();\n }", "@Override\r\n\tpublic void clear() {\n\r\n\t}", "private void clearAllFilter() {\n }", "public void Clear();", "public QueryMethodType<T> removeMethodParams()\n {\n childNode.remove(\"method-params\");\n return this;\n }", "public void clear()\n\t{\n\t\tobjectToId.clear();\n\t\tidToObject.clear();\n\t}", "public void clear();" ]
[ "0.7783314", "0.7582644", "0.7540398", "0.7472876", "0.74431616", "0.7272298", "0.72125447", "0.7190858", "0.71849847", "0.71827143", "0.7034695", "0.7026387", "0.6978998", "0.6954059", "0.69010204", "0.6891954", "0.6848782", "0.6797751", "0.66921043", "0.66081506", "0.65708", "0.6548039", "0.6548039", "0.6529162", "0.65246946", "0.65074426", "0.6498075", "0.649242", "0.64918315", "0.64864475", "0.6482918", "0.6463193", "0.6457387", "0.6457387", "0.645457", "0.6440677", "0.6440677", "0.64223945", "0.6419317", "0.6416264", "0.6409318", "0.64002335", "0.6397811", "0.6395718", "0.63770044", "0.6371412", "0.6369911", "0.6368768", "0.6368599", "0.6366171", "0.636246", "0.636246", "0.636246", "0.636246", "0.636246", "0.636246", "0.636246", "0.636246", "0.636246", "0.636246", "0.636246", "0.635239", "0.6347956", "0.6346382", "0.6332887", "0.6332887", "0.6332887", "0.6332887", "0.6332887", "0.6329836", "0.6329312", "0.63210225", "0.6319086", "0.6318936", "0.6308033", "0.6308033", "0.63073814", "0.6306366", "0.63054293", "0.6286614", "0.6284466", "0.6283572", "0.6272079", "0.6268253", "0.62678427", "0.62678427", "0.62614805", "0.6260896", "0.62547505", "0.62547505", "0.6252931", "0.6248551", "0.62479234", "0.624716", "0.6246707", "0.6246286", "0.6246231", "0.62433", "0.6239921", "0.62318295" ]
0.79102576
0
Remove a parameter from this method.
public void removeParam(int pos) { String[] origParams = getParamNames(); if ((pos < 0) || (pos >= origParams.length)) throw new IndexOutOfBoundsException("pos = " + pos); String[] params = new String[origParams.length - 1]; for (int i = 0, index = 0; i < origParams.length; i++) if (i != pos) params[index++] = origParams[i]; setParams(params); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void removeParameter(){\r\n \tMap<String,String> params = FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap();\r\n\t\tlong paramId = Long.parseLong(params.get(\"parameterId\"));\r\n\t\tthis.getLog().info(\"parameterId:\" + paramId);\r\n\t\t\r\n\t\tif(paramId != 0){\r\n\t\t\ttry {\r\n\t\t\t\tConnectionFactory.createConnection().deleteParameter(paramId);\r\n\t\t\t\tthis.getSelectedAlgorithm().setParameters(ConnectionFactory.createConnection().getAlgorithmParameterArray(getSelectedAlgorithm().getId()));\r\n\t\t\t} catch (DataStorageException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "boolean removeTypedParameter(Parameter typedParameter);", "public boolean removeParameter(String name) {\n/* 247 */ throw new UnsupportedOperationException(\"Removing parameters in a stack is not supported.\");\n/* */ }", "public void removeIndependentParameter(String name)\n throws ParameterException;", "public void removeParameter(final String name) {\n\t\tqueryParameters.remove(name);\n\t}", "public void removeParameter(String name) throws IllegalArgumentException {\n LogWriter.logMessage(LogWriter.TRACE_DEBUG, \"removeParameter() \");\n Via via=(Via)sipHeader;\n \n if( name==null )\n throw new IllegalArgumentException\n (\"JAIN-EXCEPTION: parameter is null\");\n else via.removeParameter(name); \n }", "private void remove(String paramString) {\n }", "public void removeParam(int index) {\n params = Lists.remove(params, index);\n }", "public void removeParam(Object obj) {\n\t\tparams.remove(obj);\n\t}", "public AnnotatedTypeBuilder<X> removeFromParameter(AnnotatedParameter<? super X> parameter,\n\t\t\tClass<? extends Annotation> annotationType) {\n\t\tif (parameter.getDeclaringCallable().getJavaMember() instanceof Method) {\n\t\t\tMethod method = (Method) parameter.getDeclaringCallable().getJavaMember();\n\t\t\treturn removeFromMethodParameter(method, parameter.getPosition(), annotationType);\n\t\t}\n\t\tif (parameter.getDeclaringCallable().getJavaMember() instanceof Constructor<?>) {\n\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\tConstructor<X> constructor = (Constructor<X>) parameter.getDeclaringCallable().getJavaMember();\n\t\t\treturn removeFromConstructorParameter(constructor, parameter.getPosition(), annotationType);\n\t\t} else {\n\t\t\tthrow new IllegalArgumentException(\"Cannot remove from parameter \" + parameter\n\t\t\t\t\t+ \" - cannot operate on member \" + parameter.getDeclaringCallable().getJavaMember());\n\t\t}\n\t}", "public void removeParameter(String name)\r\n {\r\n // warning, param names are escaped\r\n this.parameters.remove(StringEscapeUtils.escapeHtml(name));\r\n }", "public Object removeValue(final String name) {\r\n return this.params.remove(name);\r\n }", "public void removeParameter(int key){\n\n int i = 0;\n boolean found = false;\n while (i < parameters.size() && !found){\n if (parameters.get(i).getKey() == key) {\n parameters.remove(i);\n found = true;\n }\n }\n\n }", "RemoveTokenParameter getRemoveTokenParameter();", "void deleteParameter(long id);", "public void eliminarParametro() throws Exception;", "public void removePersistentParameter(String name) {\r\n\t\tpersistentParameters.remove(name);\r\n\t}", "public static void remove(String n) {\r\n\t\tif (runtimePars.remove(n) == null)\r\n\t\t\tnew ParameterNameError(\"Parameter \" + n + \" does not exist.\");\r\n\t\t// System.out.println(\"Parameter \" + n +\r\n\t\t// \" removed from the runtime table. \");\r\n\t}", "public QueryMethodType<T> removeMethodParams()\n {\n childNode.remove(\"method-params\");\n return this;\n }", "public void removePersistentParameter(String name) {\n\t\tpersistentParameters.remove(name);\n\t}", "public void removeParameterValue(String serviceProviderCode, String parameterName, String parameterValue,\r\n\t\t\tString callerID) throws AAException, RemoteException;", "public void removeParameters() {\n LogWriter.logMessage(LogWriter.TRACE_DEBUG, \"removeParameters() \");\n Via via=(Via)sipHeader;\n \n via.removeParameters();\n }", "public void removeTemporaryParameter(String name) {\n\t\ttemporaryParameters.remove(name);\n\t}", "public void removeParam(int i)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(PARAM$14, i);\r\n }\r\n }", "private void supprimerParametre() {\n if (getSelectedParamatre() == null) return;\n parametreListView.getItems().remove(parametreListView.getSelectionModel().getSelectedItem());\n }", "void removeQueryParam(String name) {\n if (name == null) {\n throw new IllegalArgumentException(\"Name cannot be null\");\n }\n Iterator<Param> iter = queryParams.iterator();\n while (iter.hasNext()) {\n Param p = iter.next();\n if (p.key.equals(name)) {\n iter.remove();\n }\n }\n }", "public Builder removeQueryParameter(String name) {\n\t\t\tcheckArgument(name != null && !name.isEmpty(), \"Invalid parameter name\");\n\n\t\t\turl.query.remove(name);\n\t\t\treturn this;\n\t\t}", "public AnnotatedTypeBuilder<X> removeFromMethodParameter(Method method, int position,\n\t\t\tClass<? extends Annotation> annotationType) {\n\t\tif (methods.get(method) == null) {\n\t\t\tthrow new IllegalArgumentException(\"Method \" + method + \" not present on class \" + getJavaClass());\n\t\t} else {\n\t\t\tif (methodParameters.get(method).get(position) == null) {\n\t\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\t\tString.format(\"parameter %s not present on method %s declared on class %s\", method, position,\n\t\t\t\t\t\t\t\tgetJavaClass()));\n\t\t\t} else {\n\t\t\t\tmethodParameters.get(method).get(position).remove(annotationType);\n\t\t\t}\n\t\t}\n\t\treturn this;\n\t}", "public void removePerson(Person p);", "public void removeParameter(String sName)\r\n {\r\n for (int iCount = 0; iCount < m_alParameters.size(); iCount++)\r\n {\r\n Parameter c = m_alParameters.get(iCount);\r\n\r\n if (c.getName().equals(sName))\r\n {\r\n m_alParameters.remove(iCount);\r\n fireTableRowsDeleted(iCount, iCount);\r\n }\r\n }\r\n }", "public void removeAPIParameter(String apiParameterGUID) throws InvalidParameterException,\n UserNotAuthorizedException,\n PropertyServerException\n {\n apiManagerClient.removeAPIParameter(userId, apiManagerGUID, apiManagerName, apiParameterGUID);\n }", "public void removeProperty(String name) {\n HttpSession session = (HttpSession) _currentSession.get();\n if (session != null) {\n session.removeAttribute(name);\n \n // Also remove it from the input parameter list.\n Map inputParameters = (Map) session.getAttribute(\"_inputs\");\n if (inputParameters != null) {\n inputParameters.remove(name);\n }\n }\n }", "public void removeFromParameterNameValuePairs(entity.LoadParameter element);", "public AnnotatedTypeBuilder<X> overrideParameterType(AnnotatedParameter<? super X> parameter, Type type) {\n\t\tif (parameter.getDeclaringCallable().getJavaMember() instanceof Method) {\n\t\t\tMethod method = (Method) parameter.getDeclaringCallable().getJavaMember();\n\t\t\treturn overrideMethodParameterType(method, parameter.getPosition(), type);\n\t\t}\n\t\tif (parameter.getDeclaringCallable().getJavaMember() instanceof Constructor<?>) {\n\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\tConstructor<X> constructor = (Constructor<X>) parameter.getDeclaringCallable().getJavaMember();\n\t\t\treturn overrideConstructorParameterType(constructor, parameter.getPosition(), type);\n\t\t} else {\n\t\t\tthrow new IllegalArgumentException(\"Cannot remove from parameter \" + parameter\n\t\t\t\t\t+ \" - cannot operate on member \" + parameter.getDeclaringCallable().getJavaMember());\n\t\t}\n\t}", "public Object remove();", "Object remove();", "public void remove();", "public void remove();", "public void remove();", "public void remove();", "public void remove();", "public void remove () {}", "public Return removeMember(Parameter _parameter) {\n Instance instance = (Instance) _parameter.get(ParameterValues.INSTANCE);\n String tempID = ((Long) instance.getId()).toString();\n\n Context context = null;\n try {\n context = Context.getThreadContext();\n\n String abstractid =\n context.getParameter(\"oid\").substring(\n context.getParameter(\"oid\").indexOf(\".\") + 1);\n\n SearchQuery query = new SearchQuery();\n query.setQueryTypes(\"TeamWork_MemberRights\");\n query.addWhereExprEqValue(\"ID\", tempID);\n query.addWhereExprEqValue(\"AbstractLink\", abstractid);\n query.addSelect(\"UserAbstractLink\");\n query.executeWithoutAccessCheck();\n\n if (query.next()) {\n Long Userid = ((Person) query.get(\"UserAbstractLink\")).getId();\n query.close();\n\n query = new SearchQuery();\n query.setQueryTypes(\"TeamWork_Abstract2Abstract\");\n query.addWhereExprEqValue(\"AncestorLink\", abstractid);\n query.addSelect(\"AbstractLink\");\n query.executeWithoutAccessCheck();\n\n while (query.next()) {\n SearchQuery query2 = new SearchQuery();\n query2.setQueryTypes(\"TeamWork_Member\");\n query2.addWhereExprEqValue(\"AbstractLink\", query.get(\"AbstractLink\")\n .toString());\n query2.addWhereExprEqValue(\"UserAbstractLink\", Userid);\n query2.addSelect(\"OID\");\n query2.executeWithoutAccessCheck();\n if (query2.next()) {\n String delOID = (String) query2.get(\"OID\");\n Delete delete = new Delete(delOID);\n delete.execute();\n }\n query2.close();\n }\n query.close();\n } else {\n LOG.error(\"no\");\n }\n\n } catch (EFapsException e) {\n LOG.error(\"removeMember(ParameterInterface)\", e);\n }\n\n return null;\n\n }", "void removeIsInputTo(MethodCall oldIsInputTo);", "public void remove() {\r\n //\r\n }", "@Override\n\tpublic void removeValue(String arg0) {\n\t}", "@Override\n public void setParameter(String parameter, String value) {\n //no parameters\n }", "@Override\n\tpublic void remove() { }", "public void remove() {\n\n }", "private PointCut removePointCut(PointCut p, Integer arg) {\n\t\tif (p.getType().equals(this.targetType)) {\n\t\t\tif (arg == 0) {\n\t\t\t\treturn null;\n\t\t\t} else {\n\t\t\t\tList<PointCut> pointcuts = new ArrayList<PointCut>();\n\t\t\t\treturn new CombinedPointCut(p.getBeginLine(), p.getBeginColumn(), \"&&\", pointcuts);\n\t\t\t}\n\t\t} else\n\t\t\treturn p;\n\t}", "public void intervalRemoved(ListDataEvent parm1) {\n String methodName = \"remove\" + fieldName;\n String theType = \"jade.core.AID\";\n itsMsg.removeUserDefinedParameter(theRemovedKey);\n }", "public Builder clearParameterId() {\n parameterId_ = getDefaultInstance().getParameterId();\n bitField0_ = (bitField0_ & ~0x00000002);\n onChanged();\n return this;\n }", "public void remove(){\n }", "public Builder clearParameterValue() {\n bitField0_ = (bitField0_ & ~0x00000002);\n parameterValue_ = getDefaultInstance().getParameterValue();\n\n return this;\n }", "public Builder clearArg() {\n\n\t\t\t\targ_ = getDefaultInstance().getArg();\n\t\t\t\tonChanged();\n\t\t\t\treturn this;\n\t\t\t}", "public void remove() {\n\t}", "public void remove() {\n\t}", "public Builder removeParameters(int index) {\n if (parametersBuilder_ == null) {\n ensureParametersIsMutable();\n parameters_.remove(index);\n onChanged();\n } else {\n parametersBuilder_.remove(index);\n }\n return this;\n }", "public Builder removeParameters(int index) {\n if (parametersBuilder_ == null) {\n ensureParametersIsMutable();\n parameters_.remove(index);\n onChanged();\n } else {\n parametersBuilder_.remove(index);\n }\n return this;\n }", "public void removeMember(Annotation member);", "@Override\n\tpublic String getParameter(String name) {\n\t\treturn null;\n\t}", "public /* synthetic */ void remove() {\n this.a.remove();\n }", "@Override\n public void remove() {\n }", "protected void addInputParameterWithoutChecks(Parameter parameter) {\n\t\tparameters.add(parameter);\n\t\tupdateStructureHash();\n\t}", "public void remove(String fieldName) {\n Object key = null;\n for (Object[] param : paramList) {\n if (param[0].toString().equals(fieldName)) {\n key = param;\n break;\n }\n }\n paramList.remove(key);\n }", "@Override\n\t\tpublic void remove() {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void remove() {\n\t\t\t\n\t\t}", "public final void remove () {\r\n }", "public DefaultCurveMetadataBuilder clearParameterMetadata() {\n this.parameterMetadata = null;\n return this;\n }", "void removeAllParameterViews();", "@Override\n public void remove() {\n }", "public void remove(String name);", "public void remove() {\n throw new UnsupportedOperationException(\"not supported optional operation.\");\n }", "@Override\r\n\tpublic void remove() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void remove() {\n\t\t\r\n\t}", "protected abstract void removeRequest ();", "public void remove() {\n\t }", "public void remove() {\n\t }", "public void remove() {\n\t }", "public Builder clearParameterName() {\n bitField0_ = (bitField0_ & ~0x00000001);\n parameterName_ = getDefaultInstance().getParameterName();\n\n return this;\n }", "@Override\r\n\t\tpublic void remove() {\r\n\t\t\t// YOU DO NOT NEED TO WRITE THIS\r\n\t\t}", "void remove();", "void remove();", "void remove();", "void remove();", "void remove();", "@Override\n protected void removeMember() {\n }", "public void remove(Point p)\n {\n pellets.remove(p);\n }", "public void removePoint(Point2D p);", "@Override\n\tpublic void remove() {\n\t\t\n\t}", "@Override\n\tpublic void remove() {\n\t\t\n\t}", "@Override\n\tpublic void remove() {\n\t\t\n\t}", "@Override\n\tpublic void remove() {\n\t\t\n\t}", "@Override\n\tpublic void remove() {\n\t\t\n\t}", "@Override\n\tpublic void remove() {\n\t\t\n\t}", "@Override\n\tpublic void remove() {\n\t\t\n\t}", "@Override\n\tpublic void remove() {\n\t\t\n\t}", "public Builder removeParameters(int index) {\n ensureParametersIsMutable();\n parameters_.remove(index);\n\n return this;\n }", "@Override\n\t\tpublic String getParameter(String name) {\n\t\t\treturn null;\n\t\t}", "void unsetMethod();" ]
[ "0.7585278", "0.7462238", "0.738395", "0.72514975", "0.7243423", "0.70848674", "0.6996269", "0.6973954", "0.68613905", "0.68183196", "0.6746384", "0.6667185", "0.6552928", "0.653219", "0.652522", "0.6517679", "0.65081716", "0.6501115", "0.64642006", "0.645881", "0.64164305", "0.6409909", "0.64017487", "0.6313538", "0.6288616", "0.6277536", "0.62630373", "0.62168765", "0.6188226", "0.61670005", "0.6122774", "0.6053021", "0.60518324", "0.6000655", "0.5988849", "0.59448653", "0.59376246", "0.59376246", "0.59376246", "0.59376246", "0.59376246", "0.59115934", "0.59084296", "0.5902668", "0.5885129", "0.5872789", "0.58255166", "0.58224046", "0.5822247", "0.5819566", "0.5804443", "0.5793762", "0.5791903", "0.57870424", "0.57768404", "0.57693154", "0.57693154", "0.57639104", "0.57639104", "0.57634944", "0.5744104", "0.5714199", "0.57093745", "0.5709155", "0.57051104", "0.56952363", "0.56952363", "0.56934077", "0.56786907", "0.56714404", "0.5670954", "0.5668945", "0.566605", "0.56653744", "0.56653744", "0.56634545", "0.566016", "0.566016", "0.566016", "0.5657628", "0.5648082", "0.5634889", "0.5634889", "0.5634889", "0.5634889", "0.5634889", "0.56327903", "0.56183964", "0.5618044", "0.5613771", "0.5613771", "0.5613771", "0.5613771", "0.5613771", "0.5613771", "0.5613771", "0.5613771", "0.5610111", "0.55966264", "0.55919087" ]
0.66979057
11
////////////////////////////// VisitAcceptor implementation //////////////////////////////
public void acceptVisit(BCVisitor visit) { visit.enterBCMethod(this); visitAttributes(visit); visit.exitBCMethod(this); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void visit();", "@Override\r\n\tpublic void visit() {\n\r\n\t}", "public abstract void accept(Visitor visitor);", "public abstract void accept(Visitor v);", "@Override\n\tpublic void accept(Visitor visitor) {\n\t\t\n\t}", "@Override\r\n\tpublic void accept(Visitor v) {\r\n\t\tv.visit(this);\t\r\n\t}", "public abstract void accept0(IASTNeoVisitor visitor);", "public void accept(Visitor visitor);", "void accept(Visitor visitor);", "public void accept(IVisitor visitor);", "public void visit() {\n\t\tvisited = true;\n\t}", "@Override\n public void accept(TreeVisitor visitor) {\n }", "@Override\n\tpublic void accept(Visitor v) {\n\t\tv.visit(this);\n\t}", "@Override\n\tpublic void accept(WhereNodeVisitor visitor) {\n\t\tvisitor.visit(this);\n\t}", "@Override\n\tpublic void accept(TreeVisitor visitor) {\n\n\t}", "@Override\n\tpublic void accept(NodeVisitor visitor) {\n\t\tvisitor.visit(this);\n\t}", "public interface Acceptor {\n\n /**\n * Accepts a visitor for further processing.\n *\n * @param visitor the visitor class to accept.\n */\n void accept(Visitor visitor);\n}", "public void visit() {\n visited = true;\n }", "void visit(Visitor visitor);", "void accept(Visitor<V> visitor);", "public interface Acceptor<V>\n{\n /**\n * Accepts a visitor and applies it to this.\n *\n * @param visitor The visitor to apply to this.\n */\n void accept(Visitor<V> visitor);\n}", "@Override\n public void visit(NodeVisitor v){\n v.visit(this);\n }", "@Override\n\tpublic void accept(Visitor visitor) {\n\t\tvisitor.visit(this);\n\t}", "public <C> void accept(Visitor<B> visitor, Class<C> clz);", "@Override\r\n\tpublic void accept(Visitor visitor) {\r\n\t\tvisitor.visit(this);\r\n\t}", "public void visit(Request r);", "@Override\r\n \tpublic final void accept(IASTNeoVisitor visitor) {\r\n \t\tassertNotNull(visitor);\r\n \t\t\r\n \t\t// begin with the generic pre-visit\r\n \t\tif(visitor.preVisit(this)) {\r\n \t\t\t// dynamic dispatch to internal method for type-specific visit/endVisit\r\n \t\t\taccept0(visitor);\r\n \t\t}\r\n \t\t// end with the generic post-visit\r\n \t\tvisitor.postVisit(this);\r\n \t}", "interface VisitorAccept {\n\t/**\n\t * Methode permettant d'accepter le visiteur.\n\t * \n\t * @param visitor\n\t * ; MessageVisitor\n\t */\n\tpublic void accept(MessageVisitor visitor);\n}", "public Object accept(Visitor v, Object params);", "public void visit(Choke c);", "@Override\n\tpublic <T> T accept(ASTVisitor<T> v) {\n\t\treturn v.visit(this);\n\t}", "@Override\n public void accept(Visitor visitor) {\n visitor.visit(this);\n }", "@Override\n public void accept(Visitor visitor) {\n visitor.visit(this);\n }", "public Visitor visitor(Visitor v) \n { \n return visitor = v; \n }", "interface CarElement {\n // the element being visited accepts the visitor\n void accept(final CarElementVisitor visitor);\n}", "@Override\n public R visit(Filter n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.constraint.accept(this, argu);\n return _ret;\n }", "@Override\r\n\tpublic Relation accept(Visitor v)\t\t{ return v.visit(this);\t\t\t\t\t\t\t}", "@Override\n public synchronized void accept(ClassVisitor cv) {\n super.accept(cv);\n }", "public abstract <E, F, D, I> E accept(ReturnVisitor<E, F, D, I> visitor);", "@Override\n\tpublic Object accept(Visitor visitor) {\n\t\treturn visitor.visit(this);\n\t}", "public abstract void accept(PhysicalPlanVisitor visitor);", "@Override\n public <T> T accept(Visitor<T> v) {\n return v.visit(this);\n }", "public void accept(ExpressionNodeVisitor visitor);", "public abstract double accept(TopologyVisitor visitor);", "<R,D> R accept(TreeVisitor<R,D> visitor, D data);", "public abstract int visit(SpatialVisitor visitor);", "public interface Visitable {\n public boolean accept(Visitor v);\n}", "public Visitor() {}", "@Override\n\tpublic void visit(Matches arg0) {\n\t\t\n\t}", "private Object magicVisit(ParseTree ctx, Node<TokenAttributes> CST_node) {\n current_node = CST_node;\n Object result = visit(ctx);\n current_node = CST_node;\n return result;\n }", "public abstract void accept(CodeVisitor v);", "void accept(TmxElementVisitor visitor);", "public void accept(Visitor v) {\n\t\tv.visit(this);\n\t}", "protected boolean acceptForTraversal(Atom atom)\r\n {\r\n return true;\r\n }", "@Override\n\tpublic void visit(Matches arg0) {\n\n\t}", "public void accept(Visitor visitor) {\n\t\tvisitor.visit(this);\n\t}", "public void accept(Visitor v, Context c) {\n\t\tv.visit(this, c);\n\t}", "public interface Visitor {\n\t/* METHODS */\n\t/**\n\t * Visits a Liquor.\n\t * @param liquor The Liquor to visit.\n\t */\n\tvoid visit(Liquor liquor);\n\t\n\t/**\n\t * Visits a Tobacco.\n\t * @param tobacco The Tobacco to visit.\n\t */\n\tvoid visit(Tobacco tobacco);\n\t\n\t/**\n\t * Visits a Necessity.\n\t * @param necessity The Necessity to visit.\n\t */\n\tvoid visit(Necessity necessity);\n}", "@Override\n\tpublic void visit(final Aunt person) {\n\t\t\n\t}", "void accept0(ASTVisitor visitor) {\r\n\t\tboolean visitChildren = visitor.visit(this);\r\n\t\tif (visitChildren) {\r\n\t\t\t// visit children in normal left to right reading order\r\n\t\t\tacceptChild(visitor, getExpression());\r\n\t\t\tacceptChildren(visitor, newArguments);\r\n\t\t\tacceptChildren(visitor, constructorArguments);\r\n\t\t\tacceptChildren(visitor, baseClasses);\r\n\t\t\tacceptChildren(visitor, declarations);\r\n\t\t}\r\n\t\tvisitor.endVisit(this);\r\n\t}", "void accept(final CarElementVisitor visitor);", "public void visit(Attraction attraction, Visitor visitor){\n if( ((ISecurity)attraction).isAllowedToRide(visitor) ){\n attraction.addVisitor(visitor);\n }\n\n }", "void accept(Visitor visitor, BufferedImage im);", "public abstract void visit(V v) throws VisitorException;", "public Object accept(FilterVisitor visitor, Object extraData) {\n \treturn visitor.visit(this,extraData);\n }", "@Override\n\tpublic void visit(final GrandMa person) {\n\t\t\n\t}", "void accept0(ASTVisitor visitor) {\n boolean visitChildren = visitor.visit(this);\n if (visitChildren) {\n // visit children in normal left to right reading order\n acceptChild(visitor, getExpression());\n acceptChildren(visitor, this.typeArguments);\n acceptChild(visitor, getName());\n }\n visitor.endVisit(this);\n }", "public interface Visitor {\n void accept(Element element);\n}", "public interface Visitor extends DLABoxAxiom.Visitor, DLTBoxAxiom.Visitor {\n\n\t}", "@Override\n public R visit(GraphGraphPattern n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.varOrIRIref.accept(this, argu);\n n.groupGraphPattern.accept(this, argu);\n return _ret;\n }", "public interface Visitable {\n\n\tpublic double accept(Visitor visitor);\n}", "@Override\r\n\tpublic void visitar(jugador jugador) {\n\t\t\r\n\t}", "public void visit(Interested i);", "@Override\n public void visit(Index node) {\n }", "public Object accept (Visitor v) {\n return v.visit(this);\n }", "public void accept(Visitor v) {\n/* 103 */ v.visitLoadClass(this);\n/* 104 */ v.visitAllocationInstruction(this);\n/* 105 */ v.visitExceptionThrower(this);\n/* 106 */ v.visitStackProducer(this);\n/* 107 */ v.visitTypedInstruction(this);\n/* 108 */ v.visitCPInstruction(this);\n/* 109 */ v.visitNEW(this);\n/* */ }", "public void accept(MessageVisitor visitor);", "void accept0(ASTVisitor visitor) {\n boolean visitChildren = visitor.visit(this);\n if (visitChildren) {\n // visit children in normal left to right reading order\n acceptChildren(visitor, initializers);\n acceptChild(visitor, getExpression());\n acceptChildren(visitor, updaters);\n acceptChild(visitor, getBody()); }\n visitor.endVisit(this); }", "@Override\r\n\tpublic void visit(DisparoAliado d) {\n\t\tobj.mover();\r\n//\t\tSystem.out.println(\"VisitorEnemigo.visit(DisparoAliado)\");\r\n\t}", "@Override\n public void accept(final SqlNodeVisitor<E> visitor) throws SQLException {\n visitor.visit(this);\n }", "@Override\n public R visit(Rule n, A argu) {\n R _ret = null;\n n.consequent.accept(this, argu);\n n.nodeToken.accept(this, argu);\n n.antecedent.accept(this, argu);\n return _ret;\n }", "@Override\n\tpublic void visited(ComputerPartVisitor visitor) {\n\t\tvisitor.visit(this);\n\t\t\n\t}", "public void visit(Have h);", "public void visit()\n\t{\n\t\t// Visit data element.\n\t\tcargo.visit();\n\t}", "@Override\n public void accept(VisitorMessageFromServer visitorMessageFromServer) {\n visitorMessageFromServer.visit(this);\n }", "@Override\r\n\tpublic void visit(DisparoEnemigo d) {\n\t\tobj.mover();\r\n//\t\tSystem.out.println(\"VisitorEnemigo.visit(DisparoEnemigo)\");\r\n\t}", "@Override\n\tpublic void visit(final Uncle person) {\n\t\t\n\t}", "@Override\r\n\tpublic void accept(MemoryVisitor memVis) {\r\n\t\tmemVis.visit(this);\r\n\t}", "@Override\n\tpublic void visitarObjeto(Objeto o) {\n\t\t\n\t}", "void visit(Entity node);", "public interface FlowerElement {\n public void accept(Visitor visitor);\n}", "public VisitAction() {\n }", "public interface Visitor {\n //----------------------------------------------------------------------------------- \n\n /**\n * Visit method to handle <code>Assignment</code> elements.\n * \n * @param assignment Assignment object to be handled.\n */\n void visit(final Assignment assignment);\n\n /**\n * Visit method to handle <code>Delete</code> elements.\n * \n * @param delete Delete object to be handled.\n */\n void visit(final Delete delete);\n\n /**\n * Visit method to handle <code>Insert</code> elements.\n * \n * @param insert Insert object to be handled.\n */\n void visit(final Insert insert);\n\n /**\n * Visit method to handle <code>Join</code> elements.\n * \n * @param join Join object to be handled\n */\n void visit(final Join join);\n\n /**\n * Visit method to handle select elements.\n * \n * @param select Select object to be handled.\n */\n void visit(final Select select);\n\n /**\n * Visit method to handle <code>Table</code> elements.\n * \n * @param table Table object to be handled.\n */\n void visit(final Table table);\n\n /**\n * Visit method to handle <code>TableAlias</code> elements.\n * \n * @param tableAlias TableAlias object to be handled.\n */\n void visit(final TableAlias tableAlias);\n\n /**\n * Visit method to handle update elements.\n * \n * @param update Update object to be handled.\n */\n void visit(final Update update);\n\n /**\n * Visit method to handle <code>AndCondition</code> elements.\n * \n * @param andCondition AndCondition object to be handled.\n */\n void visit(final AndCondition andCondition);\n\n /**\n * Visit method to handle <code>Compare</code> elements.\n * \n * @param compare Compare object to be handled.\n */\n void visit(final Compare compare);\n\n /**\n * Visit method to handle <code>IsNullPredicate</code> elements.\n * \n * @param isNullPredicate IsNullPredicate object to be handled.\n */\n void visit(final IsNullPredicate isNullPredicate);\n\n /**\n * Visit method to handle <code>OrCondition</code> elements.\n * \n * @param orCondition OrCondition object to be handled.\n */\n void visit(final OrCondition orCondition);\n\n /**\n * Visit method to handle <code>Column</code> elements.\n * \n * @param column Column object to be handled.\n */\n void visit(final Column column);\n\n /**\n * Visit method to handle <code>NextVal</code> elements.\n * \n * @param nextVal NextVal object to be handled.\n */\n void visit(final NextVal nextVal);\n\n /**\n * Visit method to handle <code>Parameter</code> elements.\n * \n * @param parameter Parameter object to be handled.\n */\n void visit(final Parameter parameter);\n\n //-----------------------------------------------------------------------------------\n\n /**\n * Method returning constructed String.\n * \n * @return Constructed query string.\n */\n String toString();\n\n //----------------------------------------------------------------------------------- \n}", "public interface Visitable {\n\tvoid accept(ModelVisitor visitor);\n}", "Object visit(CopyInstr ir) {\n ir._out.accept(this);\n ir._in.accept(this);\n return null;\n }", "void visit(Entry entry);", "@Override\n public void accept(ElementVisitor visitor) {\n if (visitor instanceof DefaultElementVisitor) {\n DefaultElementVisitor defaultVisitor = (DefaultElementVisitor) visitor;\n defaultVisitor.visit(this);\n } else {\n visitor.visit(this);\n }\n }", "@Override\n public void accept(ElementVisitor visitor) {\n if (visitor instanceof DefaultElementVisitor) {\n DefaultElementVisitor defaultVisitor = (DefaultElementVisitor) visitor;\n defaultVisitor.visit(this);\n } else {\n visitor.visit(this);\n }\n }", "@Override public <T> T apply(TreeVisitor<T> visitor)\n {\n return visitor.visit(this);\n }", "@Override\n public R visit(NamedGraphClause n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.sourceSelector.accept(this, argu);\n return _ret;\n }" ]
[ "0.6685165", "0.6648125", "0.6581321", "0.6545279", "0.6354984", "0.63268715", "0.6304381", "0.62886083", "0.62599355", "0.6195844", "0.6173921", "0.61541325", "0.61512184", "0.6142437", "0.6128189", "0.6110677", "0.6103312", "0.60805804", "0.60734046", "0.60601115", "0.60271996", "0.59803945", "0.59611547", "0.5960946", "0.5959292", "0.59569514", "0.59297943", "0.5929577", "0.5921499", "0.5890463", "0.58837235", "0.58797413", "0.58797413", "0.583249", "0.57786155", "0.5767472", "0.57663935", "0.5762281", "0.57604915", "0.5740667", "0.57379836", "0.5704054", "0.57031745", "0.5699655", "0.56923336", "0.5676528", "0.56719315", "0.5667843", "0.56570566", "0.5651134", "0.5642059", "0.5630348", "0.55702037", "0.55675644", "0.5567118", "0.55623835", "0.5557902", "0.55509156", "0.5549981", "0.5548114", "0.5531864", "0.55076706", "0.55028445", "0.5500783", "0.55007607", "0.54989487", "0.5498487", "0.54941857", "0.54905474", "0.5488115", "0.547279", "0.54709095", "0.546712", "0.5454502", "0.545331", "0.5452083", "0.5437858", "0.5429847", "0.5416177", "0.5412782", "0.54120755", "0.54053575", "0.5394354", "0.5392204", "0.5376909", "0.53627795", "0.5361174", "0.5353208", "0.53499943", "0.53445256", "0.53356266", "0.5327634", "0.53233385", "0.5322048", "0.5301776", "0.52933824", "0.5285826", "0.5285826", "0.52794045", "0.5274874" ]
0.56231916
52
DB den alinan useri spring e vericek ve spring onun userDetails e donusturecek
public interface SecurityService extends UserDetailsService { @Override public UserDetails loadUserByUsername(String username) throws UsernameNotFoundException; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "UserDetails getDetails();", "@Query(\"SELECT id FROM Users t WHERE t.email =:email AND t.password =:password\")\n @Transactional(readOnly = true)\n Integer viewUser(@Param(\"email\") String email, @Param(\"password\") String password);", "UserDetails getCurrentUser();", "@Override\n protected UserDetails retrieveUser(final String username, final UsernamePasswordAuthenticationToken upat) throws AuthenticationException {\n //only public methods can be marked as transactional\n return (UserDetails) transactionTemplate.execute(new TransactionCallback() {\n\n @Override\n public Object doInTransaction(TransactionStatus status) { \n try {\n UserDetails ud = null;\n com.wpa.wpa.bo.User u = genericDAO.getByPropertyUnique(\"email\", username, com.wpa.wpa.bo.User.class);\n \n String password = (String) upat.getCredentials();\n \n System.out.println(\"PASS \" + password);\n if (u == null || !u.hasPassword(password)) {\n System.out.println(\"NE\");\n AuthenticationException e = new BadCredentialsException(\"Neplatne uzivatelske udaje\");\n // FacesContext.getCurrentInstance().getExternalContext().getSessionMap().put(AbstractAuthenticationProcessingFilter.SPRING_SECURITY_LAST_EXCEPTION_KEY, e);\n throw e;\n } else {\n List<GrantedAuthority> auths = new ArrayList<GrantedAuthority>();\n auths.add(new GrantedAuthorityImpl(\"ROLE_USER\"));\n Role role = u.getRole();\n auths.add(new GrantedAuthorityImpl(\"ROLE_\" + role.getName()));\n ud = new User(u.getEmail(), u.getPassword(), auths);\n }\n return ud;\n } catch(EmptyResultDataAccessException e) {\n AuthenticationException eb = new BadCredentialsException(\"Uživatel neexistuje\");\n // FacesContext.getCurrentInstance().getExternalContext().getSessionMap().put(AbstractAuthenticationProcessingFilter.SPRING_SECURITY_LAST_EXCEPTION_KEY, e);\n throw eb;\n } catch(AuthenticationException e){\n status.setRollbackOnly();\n throw e;\n }catch (Exception e) {\n LOG.error(\"Error occured during retrieveUser call\", e);\n status.setRollbackOnly();\n throw new RuntimeException(e);\n }\n }\n });\n }", "@RequestMapping(\"/test\")\n public void test(){\n User user = (User) SecurityUtils.getCurrentUser();\n System.out.println(\"user>>>\"+user.getId());\n }", "User getUserDetails(int userId);", "public User loadUserDetails(String id)throws Exception;", "@EventListener(ApplicationReadyEvent.class)\n public void get() {\n User testUser = new User(\"Jan\", getPasswordEncoder().encode(\"123\"), \"ROLE_USER\");\n User testAdmin = new User(\"Olek\", getPasswordEncoder().encode(\"321\"), \"ROLE_ADMIN\");\n userRepository.save(testUser);\n userRepository.save(testAdmin);\n }", "@RequestMapping(value = \"/db\", method = RequestMethod.GET)\n public String home(Locale locale, Model model) throws Exception{\n \tMap<String, Object> params = new HashMap<String, Object>();\n \tparams.put(\"USER\", \"root\");\n \t\n logger.info(\"db\");\n \n List<UserVO> userList = service.selectUser(params);\n \n logger.debug(\"db : \" + userList);\n \n model.addAttribute(\"userList\", userList);\n \n return \"db\";\n }", "@Override\n public CustomerDetails viewAccount(String user) {\n CustomerDetails details=customerRepository.findById(user).get(); \n log.debug(user);\n return details; \n\n }", "protected void accionUsuario() {\n\t\t\r\n\t}", "@Override\npublic UserDto getLoggedInUserDetails(String uid, Connection con) throws SQLException, InvalidUserDetailsException {\n\tPreparedStatement ps = null;\n\tUserDto user = null;\n\tps = con.prepareStatement(SQLQueryConstants.GET_LOGGED_USER);\n\n\tps.setInt(1, Integer.parseInt(uid));\nResultSet rs=\tps.executeQuery();\n\tif (rs.next()) {\n\t\tUserDto uDto = new UserDto();\n\t\tRoleDto rDto = null;\n\t\tStatusDto sDto = null;\n\t\tAddressDto aDto = null;\n\t\t\n\t\tuDto.setUserId(rs.getInt(1));\n\t\tuDto.setFirstName(rs.getString(2));\n\t\tuDto.setLastName(rs.getString(3));\n\t\tuDto.setEmail(rs.getString(4));\n\t\tuDto.setMobileNo(rs.getString(5));\n\t\tuDto.setPassword(rs.getString(6));\n\t\tuDto.setGender(rs.getString(7));\n\t\tuDto.setImage(rs.getBlob(8));\n\t\t// getting roleId\n\t\trDto = new RoleDto();\n\t\trDto.setRoleId(rs.getInt(9));\n\t\tuDto.setRoleId(rDto);\n\t\t// getting statusid\n\t\tsDto = new StatusDto();\n\t\tsDto.setStatusId(rs.getInt(10));\n\t\tuDto.setStatusId(sDto);\n\n\t\t// get superior id\n\t\tUserDto sid = new UserDto();\n\t\tsid.setUserId(rs.getInt(11));\n\t\tuDto.setSuperiorId(sid);\n\n\t\t// get address id\n\t\taDto = new AddressDto();\n\t\taDto.setAddressId(rs.getInt(12));\n\t\tuDto.setAddressId(aDto);\n\t\t\n\t\t//list.add(uDto);\n\t\tSystem.out.println(uDto);\n\t\tlogger.info(\"Valid loign details\");\n\t\treturn uDto;\n\t\n\t} else {\n\t\tlogger.error(\"Invalid login details\");\n\t\t\t\t\n\tthrow new InvalidUserDetailsException(MessageConstants.INVALID_USER_CREDIENTIALS);\t\n\t\t\n\t}\n\t\n}", "@Override\r\n\tpublic User_Detail getUserDetail(int userId) {\n\t\treturn sessionFactory.getCurrentSession().get(User_Detail.class, Integer.valueOf(userId));\r\n\t}", "public UserVo selectUserOne(UserVo userVo) {\n\t\tSystem.out.println(\"[UserDao] : insert\");\r\n\t\tSystem.out.println(\"id= \" + userVo.getId());\r\n\t\tSystem.out.println(\"PASSWORD = \" + userVo.getPassword());\r\n\t\t\r\n\t\treturn sqlSession.selectOne(\"user.selectUserOne\",userVo);\r\n\t}", "@Override\n public void intsertUser(SysUser user) {\n System.out.println(\"user插入到mysql数据库中(oracle数据库):\"+user);\n }", "@Transactional\n\tpublic Userinfo getUserInfo(Userinfo userInfo)\n\t{ String i = (userInfoDAO.findUserByUsername(userInfo.getUsername())).getIdentificationid();\n\tif(i.equalsIgnoreCase(userInfo.getIdentificationid()))\n\t{\n\t\tUserinfo ui = userInfoDAO.findUserByUsername(userInfo.getUsername()); \n\t\treturn ui;\n\t}\n\treturn null;\n\t}", "public User getById(@NotBlank String id){\n System.out.println(\"Sukses mengambil data User.\");\n return null;\n }", "@Override\n public User getUser(String userId){\n return userDAO.getUser(userId);\n }", "public User details(String user);", "private User authenticate(JSONObject data) {\r\n UserJpaController uJpa = new UserJpaController(Persistence.createEntityManagerFactory(\"MovBasePU\"));\r\n\r\n long fbId = Long.parseLong((String) data.remove(\"id\"));\r\n User user = uJpa.findByFbId(fbId);\r\n if (user != null) {\r\n return user;\r\n } else {\r\n user = new User(fbId, (String) data.remove(\"name\"), (String) data.remove(\"email\"), new Date(), \"u\");\r\n try {\r\n uJpa.create(user);\r\n } catch (Exception ex) {\r\n Logger.getLogger(LoginController.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n return user;\r\n }\r\n\r\n }", "@Override\n\t@Transactional\n\tpublic UserDetails searchUser(String email) {\n\t\ttry {\t\n\t\t\t\n\t\t\tQuery qUser = manager.createQuery(\"from Usuario where email = :email and ativo = :ativo\")\n\t\t\t\t\t.setParameter(\"email\", email)\n\t\t\t\t\t.setParameter(\"ativo\", true);\n\t\t\tList<Usuario> usuarios = qUser.getResultList();\n\t\t\t\n\t\t\t\n\t\t\tQuery qAcess = manager.createQuery(\"from Acesso where usuario.id = :id and acesso = :acesso\")\n\t\t\t\t\t.setParameter(\"id\", usuarios.get(0).getId())\n\t\t\t\t\t.setParameter(\"acesso\", true);\n\t\t\tList<Acesso> acessos = qAcess.getResultList();\n\t\t\n\t\t\t/*\n\t\t\tAcesso acesso = new Acesso();\n\t\t\tUsuario usuario = new Usuario();\n\t\t\t\n\t\t\tusuario.setNome(\"Daniel\");\n\t\t\tusuario.setEmail(\"\");\n\t\t\tacesso.setSenha(\"$2a$10$jdQpiR35ZZVdrFQYUW7q/evtl1Xr6ED3y.pIzukdgzvF0PIBtrmzS\");\n\t\t\tacesso.setAcesso(true);\n\t\t\tacesso.setUsuario(usuario);\n\t\t\t\t\t\n\t\t\treturn new UsuarioDetails(acesso.getUsuario().getNome(), acesso.getUsuario().getEmail(), acesso.getSenha(), acesso.isAcesso());\n\t\t\t*/\n\t\t\treturn new UsuarioDetails(acessos.get(0).getUsuario().getNome(), acessos.get(0).getUsuario().getEmail(), acessos.get(0).getSenha(), acessos.get(0).isAcesso());\n\t\n\t\t}catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\tthrow new RuntimeException(e);\t\t\n\t\t} finally {\n\t\t\t// TODO: handle finally clause\n\t\t\tmanager.close();\n\t\t}\n\t}", "public UserDetailsEntity findByPwdAndUserEmail(String pwd,String userEmail);", "private void saveUserDetails() {\n UserModel userModel = new UserModel();\n userModel.setUserName(editUserName.getText().toString());\n userModel.setPassword(editPassword.getText().toString());\n\n /* if (db.insertUserDetils(userModel)) {\n //Toast.makeText(LoginActivity.this, \"Successfully save\", Toast.LENGTH_SHORT).show();\n } else {\n Toast.makeText(this, \"Data not Saved\", Toast.LENGTH_SHORT).show();\n }*/\n }", "@RequestMapping(value=\"/insertuser\",method =RequestMethod.GET)\n public boolean insertUser(@RequestBody User user){\n user.setPassword(user.getPassword());\n user.setUsername(user.getUsername());\n return iUserService.save(user);\n }", "@Override\n public void configure(AuthenticationManagerBuilder auth)\n throws Exception {\n auth.userDetailsService(userDetailServiceDao);\n\n }", "public UserTO getUserDetails(final UserTO user) throws DatabaseOperationException, ApplicationException {\n\t\t// The SQL query string for retrieving the user's data from the database\n\t\tLOG.info(\"Inside - method getUserDetails in UserDao class\");\n\t\tfinal String queryString = QueryConstants.QRY_USR_VALIDATE;\n\t\tint response = 0;// Variable for storing the response value\n\t\tResultSet result = null;\n\t\tPreparedStatement statement = null;\n\t\ttry {\n\t\t\tconnection = DbUtil.getConnection();\n\t\t\tString password;\n\t\t\tString role;\n\t\t\tstatement = connection\n\t\t\t\t\t.prepareStatement(queryString); // Creates the\n\t\t\t// preparedStatement Object\n\t\t\tstatement.setString(1, user.getUserid());\n\t\t\tresult = statement.executeQuery(); // Executes the Query\n\t\t\twhile (result.next()) { // If result has value means a user with\n\t\t\t\t// username exists\n\t\t\t\tpassword = result.getString(2);\n\t\t\t\trole = result.getString(3);\n\t\t\t\tif (user.getPassword().equals(password)) {\n\t\t\t\t\t/**\n\t\t\t\t\t * Checks if the entered password matches with the one\n\t\t\t\t\t * already stored in the database for that particular user\n\t\t\t\t\t */\n\t\t\t\t\tresponse = 2;\n\t\t\t\t} else {// Here the password doesnot match .So the response\n\t\t\t\t\t// value is set to 1\n\t\t\t\t\tresponse = 1;\n\t\t\t\t}\n\t\t\t\tuser.setResult(response);\n\t\t\t\tuser.setRole(role);\n\t\t\t}\n\t\t\tLOG.info(\"Exit - method getUserDetails in UserDao class\");\n\t\t} catch (SQLException e) {\n\t\t\tthrow new DatabaseOperationException(\"SQL Exception happened\", e);\n\t\t} catch (ClassNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tthrow new ApplicationException(e);\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tthrow new ApplicationException(e);\n\t\t} finally {\n\n\t\t\ttry {\n\t\t\t\tstatement.close();\n\t\t\t\tif (result != null) {\n\t\t\t\t\tresult.close();\n\t\t\t\t}\n\t\t\t\tif(connection!=null)\n\t\t\t\t{\n\t\t\t\t\tconnection.close();\n\t\t\t\t}\n\t\t\t} catch (SQLException e) {\n\t\t\t\tthrow new DatabaseOperationException(\"SQL Exception happened\", e);\n\t\t\t}\n\n\t\t}\n\t\treturn user;\n\t}", "void save(UserDetails userDetails);", "public CrudRolUsuario(Context context){\n db = Conexion.obtenerBaseDatosLectura(context , null );\n }", "@RequestMapping(\"/createnewuser\")\r\n\tpublic ModelAndView userCreated(@ModelAttribute(\"rg\") Register reg) {\r\n\t\t\r\n\t\tBigInteger num = reg.getMb_no();\r\n\t\tSystem.out.println(\"mbno=\"+num.toString());\r\n\t\t//Doing the entry of New User in Spring_Users table\r\n\t\t\r\n\t\tString username = reg.getEmail_id();\r\n\t\tString password = reg.getPassword();\r\n\t\tSpringUsers su = new SpringUsers();\r\n\t\tsu.setUsername(username);\r\n\t\tsu.setPassword(password);\r\n\t\tsu.setEnabled(1);\r\n\t\tSystem.out.println(\"username=\"+username);\r\n\t\tSystem.out.println(\"password=\"+password);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tString r = reg.getUser_type();\r\n\t\t\r\n\t\t//if(r.equals(\"ROLE_INDIVIDUAL\"))\r\n\t\t\t//return new ModelAndView(\"individualhomepage\");\r\n\t\t//if(r.equals(\"ROLE_BROKER\"))\r\n\t//\t\treturn new ModelAndView(\"brokerhomepage\");\r\n\t\t//if(r.equals(\"ROLE_BUILDER\"))\r\n\t\t//\treturn new ModelAndView(\"builderhomepage\");\r\n\t\t\r\n\t//\tint i = susvc.entryOfNewUser(su);\r\n\t\t\r\n\t\tint j = regsvc.registerNewUser(reg);\r\n\t\t \r\n\t\treturn new ModelAndView(\"usercreated\");\r\n\r\n\t}", "public interface UserService extends UserDetailsService{\n\n\t/**\n\t * save method is used save record in user table\n\t * \n\t * @param userEntity.\n\t * @return UserEntity\n\t */\n public UserEntity save(UserEntity userEntity); \n\t\n /**\n * getByName method is used to retrieve userId from userName. \n * \n * @param userName\n * @return UUID\n */\n public UserQueryEntity getByName(String userName);\n \n}", "public abstract void saveUserDetails(User user) throws InlogException;", "private void pushToHibernate(){\n DATA_API.saveUser(USER);\n }", "public void updateUserDetails() {\n\t\tSystem.out.println(\"Calling updateUserDetails() Method To Update User Record\");\n\t\tuserDAO.updateUser(user);\n\t}", "User getUserInformation(Long user_id);", "private void getUser(){\n mainUser = DatabaseAccess.getUser();\n }", "@Repository\npublic interface UserDao {\n int getuid(String user_name);\n void addqiandao(qiandao qiandao);\n List<Role> getqx(String user_name);\n List<qiandao> gety(String user_name);\n List<qiandao> getj();\n List<qiandao> getall();\n Timestamp getoldtime(int uid);\n void delete1(int qid);\n\n\n}", "UserInfo getUserById(Integer user_id);", "void userChangeByAdmin(AdminUserDTO adminUserDTO) throws RecordExistException;", "@Override\r\n\tpublic int signUp(userData user) {\n\t\tString pwd = user.getUser_pwd();\r\n\t\tSystem.out.println(user.getUser_phone()+\" get \"+ pwd + \"key:\"+user.getKey()+\" phone:\"+user.getUser_phone());\r\n\t\tpwd = MD5.md5_salt(pwd);\r\n\t\tSystem.out.println(user.getUser_phone()+\" final: \"+ pwd);\r\n\t\tHashMap<String,String> t = new HashMap();\r\n\t\tt.put(\"key\", user.getKey());\r\n\t\tt.put(\"value\", user.getUser_phone());\r\n\t\tString phone = AES.decode(t);\r\n\t\tSystem.out.println(\"phone:\"+phone+\" identity:\"+user.getIdentity()+\"final: \"+ pwd);\r\n\t\tuser_table u = new user_table();\r\n\t\tu.setUserphone(phone);\r\n\t\tu.setIdentity(user.getIdentity());\r\n\t\tu.setUserpwd(pwd);\r\n\t\ttry {\r\n\t\t\ttry{\r\n\t\t\t\tuser_table chong = this.userRespository.findById(phone).get();\r\n\t\t\t\treturn -1;\r\n\t\t\t}catch (Exception e)\r\n\t\t\t{\r\n\t\t\t\tthis.userRespository.save(u);\r\n\t\t\t\treturn 1;\r\n\t\t\t}\r\n\t\t}catch (Exception e)\r\n\t\t{\r\n\t\t\treturn 0;\r\n\t\t}\r\n\r\n\t}", "@Override\n\tpublic UserDTO queryUser(RequestParam rp) throws ServiceException {\n\t\ttry{\n\t\t\treturn sysUserDao.queryUser(rp);\n\t\t}catch(DaoException e) {\n\t\t\tlog.error(\"queryUser\", e);\n\t\t\tthrow new ServiceException(e);\n\t\t}\n\t}", "public UserDTO login(String mail,String password){\r\n try {\r\n PreparedStatement preSta = conn.prepareStatement(sqlLogin);\r\n preSta.setString(1, mail);\r\n preSta.setString(2, password);\r\n ResultSet rs = preSta.executeQuery();\r\n if(rs.next()){\r\n UserDTO user = new UserDTO();\r\n user.setEmail(rs.getString(\"Email\"));\r\n user.setPassword(rs.getString(\"Pass\"));\r\n user.setRole(rs.getInt(\"RoleId\"));\r\n user.setUserId(rs.getInt(\"UserId\"));\r\n return user;\r\n }\r\n \r\n } catch (SQLException ex) {\r\n Logger.getLogger(UserDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n error =\"thong tin dang nhap sai\";\r\n return null;\r\n }", "public Usuario findbyIdUsuario(Long idUsr){\n\t\t\t\t em.getTransaction().begin();\n\t\t\t\t Usuario u= em.find(Usuario.class, idUsr);\n\t\t\t\t em.getTransaction().commit();\n\t\t\t\t return u;\n\t\t\t }", "@Override\n\tpublic void insert(User objetc) {\n\t\tuserDao.insert(objetc);\n\t\t\n\t}", "@Override\n public void onCancelled(DatabaseError error) {\n Log.e(TAG, \"Failed to read user!\");\n }", "@RolesAllowed({ RoleEnum.ROLE_ADMIN, RoleEnum.ROLE_GUEST })\n\tpublic Integer saveUser(User user);", "@Override\r\n\tpublic void configure(AuthenticationManagerBuilder auth) throws Exception {\r\n\t\tauth.userDetailsService(userService) /**\r\n\t\t\t\t\t\t\t\t\t\t\t\t * service that implements UserDetailService which implements\r\n\t\t\t\t\t\t\t\t\t\t\t\t * loadByUserName() where DB username and password are retrieved\r\n\t\t\t\t\t\t\t\t\t\t\t\t **/\r\n\t\t\t\t.passwordEncoder(bCryptPasswordEncoder); /**\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t * type of encoder used in order to encrypt incoming request\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t * password and compare with encrypted password from db\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t **/\r\n\t}", "@Transactional\n public UserDetails loadUserById(Long id) {\n Employee user = korisnikRepository.findById(id).orElseThrow(\n () -> new UsernameNotFoundException(\"User not found with id : \" + id)\n );\n\n return UserPrincipal.create(user);\n }", "@Override\n public User getUserById(int id) {\n Session session = this.sessionFactory.getCurrentSession(); \n User u = (User) session.load(User.class, new Integer(id));\n logger.info(\"User loaded successfully, User details=\"+u);\n return u;\n }", "@Transactional\r\n\t\t\t@Override\r\n\t\t\tpublic UserDetails loadUserByUsername(String email) throws UsernameNotFoundException {\r\n\t\t\t\tco.simplon.users.User account = service.findByEmail(email);\r\n\t\t\t\tif(account != null) {\r\n\t\t\t\t\treturn new User2(account.getEmail(), account.getPassword(), true, true, true, true,\r\n\t\t\t\t\t\t\tgetAuthorities(account.getRole()));\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthrow new UsernameNotFoundException (\"Impossible de trouver le compte :\"+ email +\".\");\n\t\t\t\t}\r\n\t\t\t}", "public User() {\n this.firstName = \"Lorenzo\";\n this.lastName = \"Malferrari\";\n this.username = \"[email protected]\";\n this.email = \"[email protected]\";\n this.password = \"123456\";\n this.city = \"Bologna\";\n this.country = \"Italia\";\n this.gender = \"Maschio\";\n this.birthdate = new Date();\n this.age = 21;\n this.imgUser = 1;\n this.last_access = new Date();\n this.registration_date = new Date();\n }", "@Override\n\tpublic User CheckUser(String username,String password,String administra) {\n\t\tSession session=sessionFactory.openSession();\n\t\tTransaction tr = session.beginTransaction();\n\t\tList<User> list=null;\n\t\t//String sqlString =\"select*from user where username= '\"+username+\"' and password= '\"+password+\"' \";\n\t\tString sqlString=\"select * from user where username = '\"+username+\"' and password = '\"+password+\"' and administra = '0' \";\n\t\ttry {\n\t\t\tQuery query=session.createSQLQuery(sqlString).addScalar(\"id\", StringType.INSTANCE)\n\t\t\t\t\t.addScalar(\"username\", StringType.INSTANCE)\n\t\t\t\t\t.addScalar(\"password\", StringType.INSTANCE)\n\t\t\t\t\t.addScalar(\"administra\", StringType.INSTANCE)\n\t\t\t\t\t.addScalar(\"balance\",FloatType.INSTANCE);\n\t\t\tquery.setResultTransformer(Transformers.aliasToBean(User.class));\n\t\t\tlist= query.list();\n\t\t} catch (HibernateException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}finally{\n\t\t\ttr.commit();\n\t\t session.close();\n\t\t}\n\t\tif (list.size()==0) {\n\t\t\treturn null;\n\t\t}\n\t\treturn list.get(0);\n\t}", "@RequestMapping(\"/mytest\")\n\tpublic void Test() {\n\t\t\n\t\tuser.setUsername(\"hailing\");\n\t\tuser.setPassword(\"123\");\n\t\tint a=userService.insertSelective(user);\n\t\tSystem.out.println(a);\n\t\tSystem.out.println(\"已经进来/mytest\");\n\t}", "public String getUserId(){return userID;}", "public User usuario() {\r\n Authentication auth = SecurityContextHolder.getContext().getAuthentication();\r\n User user = userService.findUserByEmail(auth.getName());\r\n return user;\r\n }", "public User usuario() {\r\n Authentication auth = SecurityContextHolder.getContext().getAuthentication();\r\n User user = userService.findUserByEmail(auth.getName());\r\n return user;\r\n }", "@RequestMapping(\"/admin\")\n public String admin() {\n \t//当前用户凭证\n\t\tSeller principal = (Seller)SecurityUtils.getSubject().getPrincipal();\n\t\tSystem.out.println(\"拿取用户凭证\"+principal);\n return \"index管理员\";\n\n }", "@Repository(\"userDao\")\npublic interface IUserDao extends IGenericDao<User, Long> {\n List<User> findByKullaniciAdi(String kullaniciAdi);\n}", "RegsatUser selectByPrimaryKey(Long userId);", "public boolean update(UserDTO user){\r\n try {\r\n PreparedStatement preSta = conn.prepareStatement(sqlUpdateUser);\r\n preSta.setString(1,user.getEmail());\r\n preSta.setString(2, user.getPassword());\r\n preSta.setInt(3, user.getRole());\r\n preSta.setInt(4, user.getUserId());\r\n if(preSta.executeUpdate() >0){\r\n return true;\r\n }\r\n } catch (SQLException ex) {\r\n Logger.getLogger(UserDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n error=\"khong ton tai userId\"+ user.getUserId();\r\n return false;\r\n }", "@Override\n\t@Bean\n\tprotected UserDetailsService userDetailsService() \n\t{\n\t\tBCryptPasswordEncoder passwordEncoder = new BCryptPasswordEncoder(10);\n\t\tUserDetails admin = User.builder()\n\t\t\t\t.username(\"admin\")\n\t\t\t\t.password(passwordEncoder.encode(\"123456Ea\"))\n\t\t\t\t.roles(\"ADMIN\")\n\t\t\t\t.build();\n\t\t\n\t\tUserDetails user = User.builder()\n\t\t\t\t.username(\"user\")\n\t\t\t\t.password(passwordEncoder.encode(\"123456Ea\"))\n\t\t\t\t.roles(\"USER\")\n\t\t\t\t.build();\n\t\t\n\t\treturn new InMemoryUserDetailsManager(admin,user);\n\t\n\t\t\n\t}", "public static boolean addUser(UserDetailspojo user) throws SQLException {\n Connection conn=DBConnection.getConnection();\n String qry=\"insert into users1 values(?,?,?,?,?)\";\n System.out.println(user);\n PreparedStatement ps=conn.prepareStatement(qry);\n ps.setString(1,user.getUserid());\n ps.setString(4,user.getPassword());\n ps.setString(5,user.getUserType());\n ps.setString(3,user.getEmpid());\n ps.setString(2,user.getUserName());\n //ResultSet rs=ps.executeQuery();\n int rs=ps.executeUpdate();\n return rs==1;\n //String username=null;\n }", "public interface UserDetailsRepository extends CrudRepository<UserDetails, Long> {\n}", "@Repository(value=\"userDao\")\npublic interface UserDao {\n //根据用户ID获取相应的用户名和密码\n UserBean selectByUserId(String userId);\n\n //添加用户\n void insertUser(UserBean userBean);\n\n //修改密码\n void updatePassword(UserBean userBean);\n\n //修改头像\n void updateFavicon(UserBean userBean);\n}", "void persiste(UsuarioDetalle usuarioDetalle);", "@Transactional\r\n\tpublic void addUser(){\r\n\t}", "@Transactional\n void fetchUserAndEnable(VerificationToken verificationToken) throws SpringRedditException {\n String username = verificationToken.getUser().getUsername();\n //and call orElseThrow as supplier to throws out custom springRedEx\n User user = userRepository.findByUsername(username).orElseThrow(() -> new SpringRedditException(\"User not found with name - \" + username));\n //and store this result inside var user and enable this user by typing user.set\n user.setEnabled(true);\n userRepository.save(user);\n /*lastly sava user to database and mark the method as transaction\n and go back to auth controller and return response entity back to the client\n by typing written new response entity\n */\n }", "@Override\n\tpublic User viewUser(String nm) {\n\t\treturn userdao.viewUser(nm);\n\t}", "@Override\n @Bean\n protected UserDetailsService userDetailsService() {\n\n\n UserDetails user = User.builder()\n .username(\"cs\")\n .password( passwordEncoder.encode(\"cs\"))\n .roles(STUDENT.name())\n .build();\n\n UserDetails admin = User.builder()\n .username(\"admin\")\n .password( passwordEncoder.encode(\"admin\"))\n .roles( ADMIN.name())\n .build();\n\n return new InMemoryUserDetailsManager(user,admin);\n }", "public UserVO getUserDetailsFromID(Long id) throws UserException {\n UserVO userVO = null;\n try {\n userVO = userDAO.getUserDetailsFromID(id);\n } catch (UserException e) {\n log.error(\" Exception type in service impl \" + e.getExceptionType());\n throw new UserException(e.getExceptionType());\n } catch (Exception e1) {\n e1.printStackTrace();\n }\n return userVO;\n }", "public User getUser(){return this.user;}", "public String getDbuser() {\n return dbuser;\n }", "@Override\n\tpublic Vendedores IngresarAgachaditoUserDetails(String username) {\n\t\treturn new Vendedores(1, 2, 1, 1, \"[email protected]\", \"vendedor1\", true, 1);\n\t}", "BizUserWhiteList selectByPrimaryKey(Long id);", "public List<User> loadAllUserDetails()throws Exception;", "private void saveUserDetails()\r\n\t{\r\n\t\t/*\r\n\t\t * Retrieve content from form\r\n\t\t */\r\n\t\tContentValues reg = new ContentValues();\r\n\r\n\t\treg.put(UserdataDBAdapter.C_NAME, txtName.getText().toString());\r\n\r\n\t\treg.put(UserdataDBAdapter.C_USER_EMAIL, txtUserEmail.getText()\r\n\t\t\t\t.toString());\r\n\r\n\t\treg.put(UserdataDBAdapter.C_RECIPIENT_EMAIL, lblAddressee.getText()\r\n\t\t\t\t.toString());\r\n\r\n\t\tif (rdbKilo.isChecked())\r\n\t\t{\r\n\t\t\treg.put(UserdataDBAdapter.C_USES_METRIC, 1);\t// , true\r\n\t\t}\r\n\t\telse\r\n\t\t\tif (rdbPound.isChecked())\r\n\t\t\t{\r\n\t\t\t\treg.put(UserdataDBAdapter.C_USES_METRIC, 0);\t// , false\r\n\t\t\t}\r\n\r\n\t\t/*\r\n\t\t * Save content into database source:\r\n\t\t * http://stackoverflow.com/questions/\r\n\t\t * 9212574/calling-activity-methods-from-fragment\r\n\t\t */\r\n\t\ttry\r\n\t\t{\r\n\t\t\tActivity parent = getActivity();\r\n\r\n\t\t\tif (parent instanceof LauncherActivity)\r\n\t\t\t{\r\n\t\t\t\tif (arguments == null)\r\n\t\t\t\t{\r\n\t\t\t\t\t((LauncherActivity) parent).getUserdataDBAdapter().insert(\r\n\t\t\t\t\t\t\treg);\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\treg.put(UserdataDBAdapter.C_ID, arguments.getInt(\"userId\"));\r\n\r\n\t\t\t\t\t((LauncherActivity) parent).getUserdataDBAdapter().update(\r\n\t\t\t\t\t\t\treg);\r\n\r\n\t\t\t\t\t((LauncherActivity) parent).queryForUserDetails();\r\n\t\t\t\t}\r\n\t\t\t\tToast.makeText(parent, \"User details successfully stored\",\r\n\t\t\t\t\t\tToast.LENGTH_LONG).show();\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (SQLException e)\r\n\t\t{\r\n\t\t\tLog.i(this.getClass().toString(), e.getMessage());\r\n\t\t}\r\n\t}", "User selectUserByUserNameAndPassword(@Param(\"username\") String username, @Param(\"password\") String password);", "@Override\n public UserDetailsWithAvatar loadUserByUsername(String userName) throws UsernameNotFoundException {\n User user = userRepository.findByUserName(userName);\n //megprobaljuk a repository findbyEmail metodussal megkeresni a user-t\n if (user == null){\n \t//a repository a talalot egy User Entity-be(olyan Bean ami az adatbazis 1 rekodrjanak adatait tartalmazza) menti\n throw new UsernameNotFoundException(\"Invalid username or password.\");\n //Ha a repository nem talalja a user-t es null erteket dob a User Entity akkor UsernameNotFoundException-t dobunk\n }\n return new UserDetailsWithAvatar(user.getUserName(),\n user.getPassword(),\n mapRolesToAuthorities(user.getRoles()),\n user.getAvatar());\n //Ha a repository talalt a kriteriumnak megfelelo user-t, akkor egy altalunk meghatorozott User Entity class-bol kikerjuk a user adatait, tobbek kozt a role-t is és az itt megtalahto\n //mapRolesToAuthorities privat metodussal autentikacio listava alakitjuk azt, es ezzel egyutt a user minden ertkevel letrehozunk egy uj \n //SpringSecurityban mar elore megirt user peldanyt. Ez a user mar kezelni tudja az autentikaciokat, osszehasonlítasokat, lock.olast stb stb.\n \n }", "User loadUser(int id) throws DataAccessException;", "UserDetails get(String id);", "@RequestMapping(value = \"themtaikhoan\", method = {RequestMethod.GET})\n public String insertAccount(ModelMap model) {\n if (conUser == null) {\n return \"dangnhap\";\n } else {\n model.addAttribute(\"user\", new User());\n model.addAttribute(\"tenUser\", conUser.getUsername());\n return \"insertAccount\";\n }\n }", "UserDTO findUserByUseridAndPassword ( String userid , String password);", "@Test\n\tpublic void testFindUserById() throws Exception {\n\t\tSqlSession sqlSession = factory.openSession();\n\t\tUser user = sqlSession.selectOne(\"com.wistron.meal.user.findUserById\",3);\n\t\tSystem.out.println(user);\n\t\tsqlSession.close();\n\t\t\n\t}", "UserInfoDao getUserInfoDao();", "@Override\r\n\tpublic void save() {\n\t\tSystem.out.println(\"UserServiceImplÍ┤đđ┴╦\");\r\n\t\tuserDao.save();\r\n\t}", "protected void proccesValues() {\n Users user = new Users();\n user.setName(bean.getName());\n user.setSurname(bean.getSurname());\n user.setUsername(bean.getUsername());\n StrongPasswordEncryptor passwordEncryptor = new StrongPasswordEncryptor();\n String encryptedPassword = passwordEncryptor.encryptPassword(bean.getPassword());\n user.setPassword(encryptedPassword);\n \n usersService.persist(user);\n Notification.show(msgs.getMessage(INFO_REGISTERED), Notification.Type.ERROR_MESSAGE);\n resetValues();\n UI.getCurrent().getNavigator().navigateTo(ViewLogin.NAME);\n }", "@Bean\n public UserDetailsManager userDetailsManager() {\n\n\n CustomUserDetailsManager detailsManager = new CustomUserDetailsManager();\n detailsManager.createUser(new SecurityUser(\"sa\", \"123\"));\n return detailsManager;\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 }", "@RequestMapping(value=\"/signup/{username}/{password}\")\n @ResponseBody\n public boolean signup(@PathVariable String username, @PathVariable String password){\n\n User user = new User(username, password);\n try{\n customUserDetailsService.save(user);\n return true;\n }catch (Exception e) {\n System.out.println(e);\n //ef return false tha er username fratekid...\n return false;\n }\n }", "private void insert() {//将数据录入数据库\n\t\tUser eb = new User();\n\t\tUserDao ed = new UserDao();\n\t\teb.setUsername(username.getText().toString().trim());\n\t\tString pass = new String(this.pass.getPassword());\n\t\teb.setPassword(pass);\n\t\teb.setName(name.getText().toString().trim());\n\t\teb.setSex(sex1.isSelected() ? sex1.getText().toString().trim(): sex2.getText().toString().trim());\t\n\t\teb.setAddress(addr.getText().toString().trim());\n\t\teb.setTel(tel.getText().toString().trim());\n\t\teb.setType(role.getSelectedIndex()+\"\");\n\t\teb.setState(\"1\");\n\t\t\n\t\tif (ed.addUser(eb) == 1) {\n\t\t\teb=ed.queryUserone(eb);\n\t\t\tJOptionPane.showMessageDialog(null, \"帐号为\" + eb.getUsername()\n\t\t\t\t\t+ \"的客户信息,录入成功\");\n\t\t\tclear();\n\t\t}\n\n\t}", "@Query(\"SELECT * FROM USERS_TABLE\")\n List<UsersEntity>checkUsernameAndPassword();", "public User getUserById(Long id) throws Exception;", "@Override\r\n\tpublic void insertOne(GuestUserVo bean) throws SQLException {\n\t\t\r\n\t}", "@Repository\npublic interface UserDetailsRepository extends JpaRepository<UserDetails, Long> {\n}", "@Override\r\n\tpublic LoginBean verifyUserLogin(String uname, String pass) {\r\n\t\tLoginBean loginBean= new LoginBean();\r\n\t\tString sql = \"select userId,userName,password from Login where userName = ? and password=? \";\r\n\t\t loginBean= template.queryForObject(sql,\r\n\t\t\t\t\tnew Object[] { uname, pass },\r\n\t\t\t\t\tnew BeanPropertyRowMapper<LoginBean>(LoginBean.class));\r\n\t\t return loginBean;\r\n\t\t\r\n\t}", "@Override\r\n\tpublic Object createUser() throws DataAccessException, SQLException {\n\t\treturn null;\r\n\t}", "@Override\n\tpublic void save() {\n\t\tSystem.out.println(\"UserDao实现类\");\n\t}", "public User getUserDetailsById(Long userId) {\n\t\tString sql = \"select * from HealthUsers where id = ?\";\n\t\treturn jdbcTemplate.queryForObject(sql, new UserRowMapper(), userId);\n\t}", "@RegisterMapperFactory(BeanMapperFactory.class)\n\npublic interface UserRegisterDAO {\n @SqlUpdate(\"create table if not exists User (id Long auto_increment , username varchar(2000) primary key,emailaddress varchar(20),password varchar(8),occupation varchar(20))\")\n void createUserTable();\n\n @SqlUpdate(\"delete table User\")\n void deleteUserTable();\n\n @SqlQuery(\"select * from User\")\n List<UserDetails> list();\n\n @GetGeneratedKeys\n @SqlUpdate(\"insert into User (id, username, emailaddress, password, occupation) values (:id,:userName,:emailAddress,:password,:occupation)\")\n long create(@BindBean UserDetails userDetails);\n\n @SqlQuery(\"select * from User where id = :id\")\n UserDetails retrieve(@Bind(\"id\") long id);\n\n @SqlQuery(\"select * from User where (username)= (:userName) and (password)=(:password)\")\n UserDetails retrieveUser(@BindBean UserDetails userDetails);\n\n @SqlQuery(\"select * from User where userName = :userName\")\n UserDetails retrieveByUserName(@Bind(\"userName\") String userName );\n\n @SqlQuery(\"select username from User where id = :id\")\n String retrieveUserName(@Bind(\"id\") long id );\n\n @SqlQuery(\"select * from User where (username)= (:userName) and (password)=(:password)\")\n UserDetails retrieveUser(@Bind(\"userName\") String userName,@Bind(\"password\") String password);\n\n @SqlQuery(\"select occupation from User where username = :userName\")\n String retrieveOccupation(@Bind(\"userName\") String userName);\n\n @SqlQuery(\"select id from User where username = :userName\")\n long retrieveUserId(@Bind(\"userName\") String userName);\n}", "UserDao getUserDao();", "public ResultSet Reuser()throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select c.user_id,c.first_name,c.last_name from customer c,login l where l.login_id=c.login_id and l.usertype='user' and l.status='not approved'\");\r\n\treturn rs;\r\n}", "void setUser(OSecurityUser user);" ]
[ "0.62685794", "0.6213772", "0.61827075", "0.6169364", "0.6152023", "0.6043249", "0.6040406", "0.60203433", "0.5973824", "0.59502125", "0.5950042", "0.59065217", "0.5897229", "0.5897073", "0.5888849", "0.58845943", "0.58764035", "0.5852939", "0.5848793", "0.58326584", "0.58300704", "0.58279747", "0.5825628", "0.58251643", "0.58158755", "0.5806262", "0.57882845", "0.5787047", "0.57852626", "0.5784791", "0.57801306", "0.57701385", "0.5751827", "0.57259506", "0.5725659", "0.57246894", "0.5724099", "0.5712026", "0.571003", "0.57090414", "0.5703393", "0.5700326", "0.56944317", "0.5692677", "0.56897455", "0.5686642", "0.5680481", "0.56802666", "0.5675531", "0.56661505", "0.56653666", "0.56575966", "0.5654495", "0.565155", "0.565155", "0.5648321", "0.5641691", "0.56407654", "0.5640216", "0.5637121", "0.56329435", "0.5628904", "0.56288254", "0.56196475", "0.5603852", "0.5603764", "0.5598165", "0.5592196", "0.55893946", "0.5585932", "0.55834913", "0.55822796", "0.5581375", "0.5580519", "0.55801404", "0.55793774", "0.5574797", "0.55740434", "0.55666316", "0.5566124", "0.5560652", "0.5558749", "0.5555674", "0.55530417", "0.55518836", "0.5549304", "0.5546444", "0.55430955", "0.5542455", "0.5542004", "0.5534978", "0.55287987", "0.5528156", "0.5527144", "0.55259764", "0.5523542", "0.5520949", "0.5515531", "0.55129355", "0.551224", "0.5508192" ]
0.0
-1
jhipsterneedleentityaddfield JHipster will add fields here, do not remove
public Long getId() { return id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void addField(\n JavaSymbolName propertyName,\n JavaType propertyType,\n String columnName,\n String columnType,\n JavaType className,\n boolean id,\n boolean oneToOne, boolean oneToMany, boolean manyToOne, boolean manyToMany, String mappedBy);", "Builder addMainEntity(String value);", "@Override\n\tpublic void save(Field entity) {\n\t\t\n\t}", "public void updateNonDynamicFields() {\n\n\t}", "public void setupFields()\n {\n FieldInfo field = null;\n field = new FieldInfo(this, \"ID\", Constants.DEFAULT_FIELD_LENGTH, null, null);\n field.setDataClass(Integer.class);\n field.setHidden(true);\n field = new FieldInfo(this, \"LastChanged\", Constants.DEFAULT_FIELD_LENGTH, null, null);\n field.setDataClass(Date.class);\n field.setHidden(true);\n field = new FieldInfo(this, \"Deleted\", 10, null, new Boolean(false));\n field.setDataClass(Boolean.class);\n field.setHidden(true);\n field = new FieldInfo(this, \"Description\", 25, null, null);\n field = new FieldInfo(this, \"CurrencyCode\", 3, null, null);\n field = new FieldInfo(this, \"LastRate\", 10, null, null);\n field.setDataClass(Double.class);\n field.setScale(-1);\n field = new FieldInfo(this, \"RateChangedDate\", 12, null, null);\n field.setDataClass(Date.class);\n field.setScale(Constants.DATE_ONLY);\n field = new FieldInfo(this, \"RateChangedBy\", 16, null, null);\n field.setDataClass(Integer.class);\n field = new FieldInfo(this, \"CostingRate\", 10, null, null);\n field.setDataClass(Double.class);\n field.setScale(-1);\n field = new FieldInfo(this, \"CostingChangedDate\", 12, null, null);\n field.setDataClass(Date.class);\n field.setScale(Constants.DATE_ONLY);\n field = new FieldInfo(this, \"CostingChangedBy\", 16, null, null);\n field.setDataClass(Integer.class);\n field = new FieldInfo(this, \"RoundAt\", 1, null, null);\n field.setDataClass(Short.class);\n field = new FieldInfo(this, \"IntegerDesc\", 20, null, \"Dollar\");\n field = new FieldInfo(this, \"FractionDesc\", 20, null, null);\n field = new FieldInfo(this, \"FractionAmount\", 10, null, new Integer(100));\n field.setDataClass(Integer.class);\n field = new FieldInfo(this, \"Sign\", 3, null, \"$\");\n field = new FieldInfo(this, \"LanguageID\", Constants.DEFAULT_FIELD_LENGTH, null, null);\n field.setDataClass(Integer.class);\n field = new FieldInfo(this, \"NaturalInteger\", 20, null, null);\n field = new FieldInfo(this, \"NaturalFraction\", 20, null, null);\n }", "public ChangeFieldEf() {\r\n\t\tthis(null, null);\r\n\t}", "@Override\r\n protected void createDbContentCreateEdit() {\n DbContentCreateEdit dbContentCreateEdit = new DbContentCreateEdit();\r\n dbContentCreateEdit.init(null);\r\n form.getModelObject().setDbContentCreateEdit(dbContentCreateEdit);\r\n dbContentCreateEdit.setParent(form.getModelObject());\r\n ruServiceHelper.updateDbEntity(form.getModelObject()); \r\n }", "Builder addMainEntity(Thing value);", "private void addFieldToBook(String config_id, GOlrField field) {\n if (!unique_fields.containsKey(field.id)) {\n unique_fields.put(field.id, field);\n } else {\n // check if defined fields are equivalent\n if (!unique_fields.get(field.id).equals(field)) {\n throw new IllegalStateException(field.id + \" is defined twice with different properties.\\n\"\n + unique_fields.get(field.id) + \"\\n\" + field);\n }\n }\n // Ensure presence of comments (description) list.\n if (!collected_comments.containsKey(field.id)) {\n collected_comments.put(field.id, new ArrayList<String>());\n }\n // And add to it if there is an available description.\n if (field.description != null) {\n ArrayList<String> comments = collected_comments.get(field.id);\n comments.add(\" \" + config_id + \": \" + field.description + \" \");\n collected_comments.put(field.id, comments);\n }\n }", "public void addField(TemplateField field)\r\n{\r\n\tfields.addElement(field);\r\n}", "@Override\r\n public void createNewEntity(String entityName) {\n\r\n }", "public PimsSysReqFieldDaoHibernate() {\n super(PimsSysReqField.class);\n }", "FieldDefinition createFieldDefinition();", "protected void addField(InstanceContainer container, Form form, MetaProperty metaProperty, boolean isReadonly) {\n MetaClass metaClass = container.getEntityMetaClass();\n Range range = metaProperty.getRange();\n\n boolean isRequired = isRequired(metaProperty);\n\n UiEntityAttributeContext attributeContext = new UiEntityAttributeContext(metaClass, metaProperty.getName());\n accessManager.applyRegisteredConstraints(attributeContext);\n\n if (!attributeContext.canView())\n return;\n\n if (range.isClass()) {\n UiEntityContext entityContext = new UiEntityContext(range.asClass());\n accessManager.applyRegisteredConstraints(entityContext);\n if (!entityContext.isViewPermitted()) {\n return;\n }\n }\n\n ValueSource valueSource = new ContainerValueSource<>(container, metaProperty.getName());\n\n ComponentGenerationContext componentContext =\n new ComponentGenerationContext(metaClass, metaProperty.getName());\n componentContext.setValueSource(valueSource);\n\n Field field = (Field) uiComponentsGenerator.generate(componentContext);\n\n if (requireTextArea(metaProperty, getItem(), MAX_TEXTFIELD_STRING_LENGTH)) {\n field = uiComponents.create(TextArea.NAME);\n }\n\n if (isBoolean(metaProperty)) {\n field = createBooleanField();\n }\n\n if (range.isClass()) {\n EntityPicker pickerField = uiComponents.create(EntityPicker.class);\n\n EntityLookupAction lookupAction = actions.create(EntityLookupAction.class);\n lookupAction.setScreenClass(EntityInspectorBrowser.class);\n lookupAction.setScreenOptionsSupplier(() -> new MapScreenOptions(\n ParamsMap.of(\"entity\", metaProperty.getRange().asClass().getName())));\n lookupAction.setOpenMode(OpenMode.THIS_TAB);\n\n pickerField.addAction(lookupAction);\n pickerField.addAction(actions.create(EntityClearAction.class));\n\n field = pickerField;\n }\n\n field.setValueSource(valueSource);\n field.setCaption(getPropertyCaption(metaClass, metaProperty));\n field.setRequired(isRequired);\n\n isReadonly = isReadonly || (disabledProperties != null && disabledProperties.contains(metaProperty.getName()));\n if (range.isClass() && !metadataTools.isEmbedded(metaProperty)) {\n field.setEditable(metadataTools.isOwningSide(metaProperty) && !isReadonly);\n } else {\n field.setEditable(!isReadonly);\n }\n\n field.setWidth(fieldWidth);\n\n if (isRequired) {\n field.setRequiredMessage(messageTools.getDefaultRequiredMessage(metaClass, metaProperty.getName()));\n }\n form.add(field);\n }", "public interface ExtendedFieldGroupFieldFactory extends FieldGroupFieldFactory\r\n{\r\n\t<T> CRUDTable<T> createTableField(Class<T> genericType, boolean manyToMany);\r\n}", "public interface JdlFieldView extends JdlField, JdlCommentView {\n //TODO This validation should be handled in JdlService\n default String getTypeName() {\n JdlFieldEnum type = getType();\n return switch (type) {\n case ENUM -> getEnumEntityName()\n .orElseThrow(() -> new IllegalStateException(\"An enum field must have its enum entity name set\"));\n default -> ((\"UUID\".equals(type.name())) ? type.name() : type.toCamelUpper());\n };\n }\n\n default String constraints() {\n List<String> constraints = new ArrayList<>();\n if (renderRequired()) constraints.add(requiredConstraint());\n if (isUnique()) constraints.add(uniqueConstraint());\n getMin().ifPresent(min -> constraints.add(minConstraint(min)));\n getMax().ifPresent(max -> constraints.add(maxConstraint(max)));\n getPattern().ifPresent(pattern -> constraints.add(patternConstraint(pattern)));\n return (!constraints.isEmpty()) ? \" \".concat(Joiner.on(\" \").join(constraints)) : null;\n }\n\n // TODO do not write required when field is primary key\n default boolean renderRequired() {\n // if (!isPrimaryKey() && isRequired() && ) constraints.add(JdlUtils.validationRequired());\n return isRequired() && !(getName().equals(\"id\") && getType().equals(JdlFieldEnum.UUID));\n }\n\n @NotNull\n default String requiredConstraint() {\n return \"required\";\n }\n\n @NotNull\n default String uniqueConstraint() {\n return \"unique\";\n }\n\n default String minConstraint(int min) {\n return switch (getType()) {\n case STRING -> validationMinLength(min);\n default -> validationMin(min);\n };\n }\n\n default String maxConstraint(int max) {\n return switch (getType()) {\n case STRING -> validationMaxLength(max);\n default -> validationMax(max);\n };\n }\n\n //TODO This validation should be handled in JdlService\n default String patternConstraint(String pattern) {\n return switch (getType()) {\n case STRING -> validationPattern(pattern);\n default -> throw new RuntimeException(\"Only String can have a pattern\");\n };\n }\n\n @NotNull\n default String validationMax(final int max) {\n return \"max(\" + max + \")\";\n }\n\n @NotNull\n default String validationMin(final int min) {\n return \"min(\" + min + \")\";\n }\n\n default String validationMaxLength(final int max) {\n return \"maxlength(\" + max + \")\";\n }\n\n @NotNull\n default String validationMinLength(final int min) {\n return \"minlength(\" + min + \")\";\n }\n\n @NotNull\n default String validationPattern(final String pattern) {\n return \"pattern(/\" + pattern + \"/)\";\n }\n}", "@attribute(value = \"\", required = true)\t\r\n\tpublic void addField(Field f) {\r\n\t\tfields.put(\"\" + fieldCount++, f);\r\n\t}", "@Override\r\n\tpublic void addField(Field field) \r\n\t{\r\n\t\tif(this.fields == null)\r\n\t\t{\r\n\t\t\tthis.fields = new ArrayList<>();\r\n\t\t}\r\n\t\tthis.fields.add(field);\r\n\t}", "void SaveBudgetKeyAdditional(BudgetKeyAdditionalEntity budgetKeyAdditionalEntity);", "public void createField(Field field) {\n Span span = this.tracer.buildSpan(\"Client.CreateField\").start();\n try {\n String path = String.format(\"/index/%s/field/%s\", field.getIndex().getName(), field.getName());\n String body = field.getOptions().toString();\n ByteArrayEntity data = new ByteArrayEntity(body.getBytes(StandardCharsets.UTF_8));\n clientExecute(\"POST\", path, data, null, \"Error while creating field\");\n } finally {\n span.finish();\n }\n }", "@Test\n\tpublic void testFieldCRUDConfig() {\n\t\tfinal IntrospectionResult introspection = getIntrospection();\n\t\tfinal String entityInputTypeName = Entity6.class.getSimpleName() + schemaConfig.getInputTypeNameSuffix();\n\t\tfinal IntrospectionFullType entityInputType = getFullType(introspection, entityInputTypeName);\n\t\tfinal String entity6TypeName = Entity6.class.getSimpleName();\n\t\tfinal IntrospectionFullType entityType = getFullType(introspection, entity6TypeName);\n\t\t// Check field attr1 is not readable\n\t\tfinal Optional<IntrospectionTypeField> attr1Field = getOptionalField(entityType, \"attr1\");\n\t\tAssert.assertFalse(\n\t\t\t\tMessage.format(\"There shouldn't be a readable field [{}] in [{}].\", \"typeField\", entity6TypeName),\n\t\t\t\tattr1Field.isPresent());\n\t\t// Check field attr2 is not saveable\n\t\tfinal Optional<IntrospectionInputValue> attr2InputField = getOptionalInputField(entityInputType, \"attr2\");\n\t\tAssert.assertFalse(\n\t\t\t\tMessage.format(\"There shouldn't be a not saveable field [{}] in [{}].\", \"attr2\", entityInputTypeName),\n\t\t\t\tattr2InputField.isPresent());\n\t\t// Check field attr3 is not nullable\n\t\tassertInputField(entityInputType, \"attr3\", IntrospectionTypeKindEnum.SCALAR, Scalars.GraphQLString.getName());\n\t\t// Check field attr4 is not nullableForCreate\n\t\tassertInputField(entityInputType, \"attr4\", IntrospectionTypeKindEnum.SCALAR, Scalars.GraphQLString.getName());\n\t\t// Check field attr5 is not nullableForUpdate\n\t\tassertInputField(entityInputType, \"attr5\", IntrospectionTypeKindEnum.SCALAR, Scalars.GraphQLString.getName());\n\t\t// Check field attr6 is not filterable\n\t\tfinal String entityFilterTypeName = Entity6.class.getSimpleName()\n\t\t\t\t+ schemaConfig.getQueryGetListFilterEntityTypeNameSuffix();\n\t\tfinal IntrospectionFullType entityFilterInputType = getFullType(introspection, entityFilterTypeName);\n\t\tfinal Optional<IntrospectionInputValue> attr4IinputField = getOptionalInputField(entityFilterInputType,\n\t\t\t\t\"attr6\");\n\t\tAssert.assertFalse(\n\t\t\t\tMessage.format(\"There shouldn't be a filterable field [{}] in [{}].\", \"attr6\", entityFilterTypeName),\n\t\t\t\tattr4IinputField.isPresent());\n\t\t// Check field attr7 is mandatory\n\t\t// Check field attr8 is mandatory for update\n\t\t// Check field attr9 is mandatory for create\n\n\t\t// Check field attr10 is not readable for ROLE1\n\t\t// Check field attr10 is not readable for ROLE1\n\n\t\t// Check field attr11 is not saveable for ROLE1\n\n\t\t// Check field attr12 is not nullable for ROLE1\n\n\t\t// Check field attr13 is not nullable for update for ROLE1\n\n\t\t// Check field attr14 is not nullable for create for ROLE1\n\n\t\t// Check field attr15 is mandatory for ROLE1\n\n\t\t// Check field attr16 is mandatory for update for ROLE1\n\n\t\t// Check field attr17 is mandatory for create for ROLE1\n\n\t\t// Check field attr18 is not readable for ROLE1 and ROLE2\n\n\t\t// Check field attr19 is not readable for ROLE1 and ROLE2\n\n\t\t// Check field attr20 is not readable for ROLE1 and not saveable ROLE2\n\n\t\t// Check field attr21 is not readable and not nullable for ROLE1 and\n\t\t// ROLE2\n\n\t\t// Check field attr21 is readable and nullable for other roles than ROLE\n\t\t// 1 and ROLE2\n\n\t\t// Check field attr22 is readable for ROLE1\n\n\t\t// Check field attr22 is not readable for everybody except ROLE1\n\t}", "public void addField()\n {\n DefaultMutableTreeNode node = (DefaultMutableTreeNode) availableFieldsComp.getTree().getLastSelectedPathComponent();\n if (node == null || !node.isLeaf() || !(node.getUserObject() instanceof DataObjDataFieldWrapper) )\n {\n return; // not really a field that can be added, just empty or a string\n }\n\n Object obj = node.getUserObject();\n if (obj instanceof DataObjDataFieldWrapper)\n {\n DataObjDataFieldWrapper wrapper = (DataObjDataFieldWrapper) obj;\n String sep = sepText.getText();\n if (StringUtils.isNotEmpty(sep))\n {\n try\n {\n DefaultStyledDocument doc = (DefaultStyledDocument) formatEditor.getStyledDocument();\n if (doc.getLength() > 0)\n {\n doc.insertString(doc.getLength(), sep, null);\n }\n }\n catch (BadLocationException ble) {}\n \n }\n insertFieldIntoTextEditor(wrapper);\n setHasChanged(true);\n }\n }", "Builder addMainEntity(Thing.Builder value);", "public interface FieldPopulator\n{\n List<String> getCoreFields();\n\n List<String> getSupportedFields();\n\n String getUriTemplate();\n}", "void addFieldBinding( FieldBinding binding );", "@Override\n\tprotected void initializeFields() {\n\n\t}", "public void setEntityAddDate(String entityAddDate);", "@Test\n public void createCustomFieldTest() throws ApiException {\n CustomFieldDefinitionJsonBean body = null;\n FieldDetails response = api.createCustomField(body);\n\n // TODO: test validations\n }", "private void addField(JField jfield) {\n\n // Check for storage ID conflict; note we can get this legitimately when a field is declared only\n // in supertypes, where two of the supertypes are mutually unassignable from each other. In that\n // case, verify that the generated field is the same.\n JField other = this.jfields.get(jfield.storageId);\n if (other != null) {\n\n // If the descriptions differ, no need to give any more details\n if (!other.toString().equals(jfield.toString())) {\n throw new IllegalArgumentException(\"illegal duplicate use of storage ID \"\n + jfield.storageId + \" for both \" + other + \" and \" + jfield);\n }\n\n // Check whether the fields are exactly the same; if not, there is a conflict\n if (!other.isSameAs(jfield)) {\n throw new IllegalArgumentException(\"two or more methods defining \" + jfield + \" conflict: \"\n + other.getter + \" and \" + jfield.getter);\n }\n\n // OK - they are the same thing\n return;\n }\n this.jfields.put(jfield.storageId, jfield);\n\n // Check for name conflict\n if ((other = this.jfieldsByName.get(jfield.name)) != null)\n throw new IllegalArgumentException(\"illegal duplicate use of field name `\" + jfield.name + \"' in \" + this);\n this.jfieldsByName.put(jfield.name, jfield);\n jfield.parent = this;\n\n // Logging\n if (this.log.isTraceEnabled())\n this.log.trace(\"added {} to object type `{}'\", jfield, this.name);\n }", "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 }", "@Override\n public Field<?> createField(Container container, Object itemId,\n Object propertyId, Component uiContext) {\n Field<?> field = super.createField(container, itemId,\n propertyId, uiContext);\n\n // ...and just set them as immediate\n ((AbstractField<?>) field).setImmediate(true);\n\n // Also modify the width of TextFields\n if (field instanceof TextField)\n field.setWidth(\"100%\");\n field.setRequired(true);\n ((TextField) field).setInputPrompt(\"Введите назначение\");\n field.addStyleName(ValoTheme.LAYOUT_HORIZONTAL_WRAPPING);\n field.focus();\n\n return field;\n }", "private void setNewField(String fieldName) {\n setNewField(fieldName, DBCreator.STRING_TYPE, null);\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}", "private void handleIdFields(JFieldVar field, JsonNode propertyNode) {\n if (propertyNode.has(JpaConstants.IS_ID_COLUMN) && propertyNode.get(JpaConstants.IS_ID_COLUMN).asBoolean(true)) {\n field.annotate(Id.class);\n }\n\n if (propertyNode.has(JpaConstants.GENERATED_VALUE)) {\n JsonNode generatedValueNode = propertyNode.get(JpaConstants.GENERATED_VALUE);\n JAnnotationUse jAnnotationUse = field.annotate(GeneratedValue.class);\n if (generatedValueNode.has(JpaConstants.STRATEGY)) {\n jAnnotationUse.param(JpaConstants.STRATEGY, GenerationType.valueOf(generatedValueNode.get(JpaConstants.STRATEGY).asText()));\n }\n }\n }", "void addField(\n JavaSymbolName propertyName,\n JavaType propertyType,\n String columnName,\n String columnType,\n JavaType className\n );", "@Override\n\tpublic void save(List<Field> entity) {\n\t\t\n\t}", "@Test\n @Transactional\n void createCommonTableFieldWithExistingId() throws Exception {\n commonTableField.setId(1L);\n CommonTableFieldDTO commonTableFieldDTO = commonTableFieldMapper.toDto(commonTableField);\n\n int databaseSizeBeforeCreate = commonTableFieldRepository.findAll().size();\n\n // An entity with an existing ID cannot be created, so this API call must fail\n restCommonTableFieldMockMvc\n .perform(\n post(ENTITY_API_URL).contentType(MediaType.APPLICATION_JSON).content(TestUtil.convertObjectToJsonBytes(commonTableFieldDTO))\n )\n .andExpect(status().isBadRequest());\n\n // Validate the CommonTableField in the database\n List<CommonTableField> commonTableFieldList = commonTableFieldRepository.findAll();\n assertThat(commonTableFieldList).hasSize(databaseSizeBeforeCreate);\n }", "HxField createField(final String fieldType,\n final String fieldName);", "public static CommonTableField createUpdatedEntity() {\n CommonTableField commonTableField = new CommonTableField()\n .title(UPDATED_TITLE)\n .entityFieldName(UPDATED_ENTITY_FIELD_NAME)\n .type(UPDATED_TYPE)\n .tableColumnName(UPDATED_TABLE_COLUMN_NAME)\n .columnWidth(UPDATED_COLUMN_WIDTH)\n .order(UPDATED_ORDER)\n .editInList(UPDATED_EDIT_IN_LIST)\n .hideInList(UPDATED_HIDE_IN_LIST)\n .hideInForm(UPDATED_HIDE_IN_FORM)\n .enableFilter(UPDATED_ENABLE_FILTER)\n .validateRules(UPDATED_VALIDATE_RULES)\n .showInFilterTree(UPDATED_SHOW_IN_FILTER_TREE)\n .fixed(UPDATED_FIXED)\n .sortable(UPDATED_SORTABLE)\n .treeIndicator(UPDATED_TREE_INDICATOR)\n .clientReadOnly(UPDATED_CLIENT_READ_ONLY)\n .fieldValues(UPDATED_FIELD_VALUES)\n .notNull(UPDATED_NOT_NULL)\n .system(UPDATED_SYSTEM)\n .help(UPDATED_HELP)\n .fontColor(UPDATED_FONT_COLOR)\n .backgroundColor(UPDATED_BACKGROUND_COLOR)\n .nullHideInForm(UPDATED_NULL_HIDE_IN_FORM)\n .endUsed(UPDATED_END_USED)\n .options(UPDATED_OPTIONS);\n return commonTableField;\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}", "protected synchronized void addFieldEntity(int fld_i, String entity) {\r\n // System.err.println(\"addFieldEntity(\" + fld_i + \",\\\"\" + entity + \"\\\")\");\r\n //\r\n // fld_i is used to indicate if this is a second iteration of addFieldEntity() to prevent\r\n // infinite recursion... not sure if it's correct... for example, what happens when\r\n // a post-processor transform converts a domain to an ip address - shouldn't that IP\r\n // address then be further decomposed?\r\n //\r\n if (fld_i != -1 && entity.equals(BundlesDT.NOTSET)) {\r\n ent_2_i.put(BundlesDT.NOTSET, -1); \r\n fld_dts.get(fld_i).add(BundlesDT.DT.NOTSET);\r\n\r\n //\r\n // Decompose a tag into it's basic elements\r\n //\r\n } else if (fld_i != -1 && fieldHeader(fld_i).equals(BundlesDT.TAGS)) {\r\n addFieldEntity(-1,entity); // Add the tag itself\r\n Iterator<String> it = Utils.tokenizeTags(entity).iterator();\r\n while (it.hasNext()) {\r\n String tag = it.next(); addFieldEntity(-1, tag);\r\n\tif (Utils.tagIsHierarchical(tag)) {\r\n String sep[] = Utils.tagDecomposeHierarchical(tag);\r\n\t for (int i=0;i<sep.length;i++) addFieldEntity(-1, sep[i]);\r\n\t} else if (Utils.tagIsTypeValue(tag)) {\r\n String sep[] = Utils.separateTypeValueTag(tag);\r\n\t tag_types.add(sep[0]);\r\n\t addFieldEntity(-1,sep[1]);\r\n\t}\r\n }\r\n\r\n //\r\n // Otherwise, keep track of the datatype to field correlation and run post\r\n // processors on the item to have those lookups handy.\r\n //\r\n } else {\r\n // System.err.println(\"determining datatype for \\\"\" + entity + \"\\\"\"); // DEBUG\r\n BundlesDT.DT datatype = BundlesDT.getEntityDataType(entity); if (dt_count_lu.containsKey(datatype) == false) dt_count_lu.put(datatype,0);\r\n // System.err.println(\"datatype for \\\"\" + entity + \"\\\" ==> \" + datatype); // DEBUG\r\n if (datatype != null) {\r\n// System.err.println(\"390:fld_i = \" + fld_i + \" (\" + fld_dts.containsKey(fld_i) + \")\"); // abc DEBUG\r\n// try { System.err.println(\" \" + fieldHeader(fld_i)); } catch (Throwable t) { } // abc DEBUG\r\n if (fld_i != -1) fld_dts.get(fld_i).add(datatype);\r\n if (ent_2_i.containsKey(entity) == false) {\r\n\t // Use special rules to set integer correspondance\r\n\t switch (datatype) {\r\n\t case IPv4: ent_2_i.put(entity, Utils.ipAddrToInt(entity)); break;\r\n\t case IPv4CIDR: ent_2_i.put(entity, Utils.ipAddrToInt((new StringTokenizer(entity, \"/\")).nextToken())); break;\r\n\t case INTEGER: ent_2_i.put(entity, Integer.parseInt(entity)); \r\n\t if (warn_on_float_conflict) checkForFloatConflict(fld_i);\r\n\t break;\r\n case FLOAT: ent_2_i.put(entity, Float.floatToIntBits(Float.parseFloat(entity))); \r\n\t if (warn_on_float_conflict) checkForFloatConflict(fld_i);\r\n break;\r\n\t case DOMAIN: ent_2_i.put(entity, Utils.ipAddrToInt(\"127.0.0.2\") + dt_count_lu.get(datatype)); // Put Domains In Unused IPv4 Space\r\n\t dt_count_lu.put(datatype, dt_count_lu.get(datatype) + 1);\r\n\t\t\t break;\r\n\r\n\t // Pray that these don't collide - otherwise x/y scatters will be off...\r\n\t default: ent_2_i.put(entity, dt_count_lu.get(datatype));\r\n\t dt_count_lu.put(datatype, dt_count_lu.get(datatype) + 1);\r\n\t\t\t break;\r\n }\r\n\t}\r\n\t// Map out the derivatives so that they will have values int the lookups\r\n\t// - Create the post processors\r\n\tif (post_processors == null) {\r\n\t String post_proc_strs[] = BundlesDT.listEnabledPostProcessors();\r\n\t post_processors = new PostProc[post_proc_strs.length];\r\n\t for (int i=0;i<post_processors.length;i++) post_processors[i] = BundlesDT.createPostProcessor(post_proc_strs[i], this);\r\n\t}\r\n\t// - Run all of the post procs against their correct types\r\n if (fld_i != -1) for (int i=0;i<post_processors.length;i++) {\r\n if (post_processors[i].type() == datatype) {\r\n\t String strs[] = post_processors[i].postProcess(entity);\r\n\t for (int j=0;j<strs.length;j++) {\r\n if (entity.equals(strs[j]) == false) addFieldEntity(-1, strs[j]);\r\n\t }\r\n }\r\n\t}\r\n } else if (ent_2_i.containsKey(entity) == false) {\r\n ent_2_i.put(entity, not_assoc.size());\r\n\tnot_assoc.add(entity);\r\n }\r\n }\r\n }", "void add(E entity) throws ValidationException, RepositoryException;", "private JSONObject addMetadataField(String field, String value, JSONObject metadataFields) throws JSONException{\n\t\tif (value != null && value != \"\"){\n\t\t\tmetadataFields.put(field, value);\n\t\t} return metadataFields;\n\t}", "@Label(\"Organization存储\")\npublic interface OrganizationRepository extends ModelQueryAndBatchUpdateRepository<Organization, EOrganization, Integer> {\n\n}", "public void init() {\n entityPropertyBuilders.add(new DefaultEntityComponentBuilder(environment));\n entityPropertyBuilders.add(new FilterTransientFieldComponentBuilder(environment));\n entityPropertyBuilders.add(new MakeAccessibleComponentBuilder(environment));\n entityPropertyBuilders.add(new PrimaryKeyComponentBuilder(environment));\n\n // Field meta property builders\n fieldPropertyBuilders.add(new FilterPrimaryKeyComponentBuilder(environment));\n fieldPropertyBuilders.add(new FilterTransientFieldComponentBuilder(environment));\n fieldPropertyBuilders.add(new MakeAccessibleComponentBuilder(environment));\n fieldPropertyBuilders.add(new TtlFieldComponentBuilder(environment));\n fieldPropertyBuilders.add(new CompositeParentComponentBuilder(environment));\n fieldPropertyBuilders.add(new CollectionFieldComponentBuilder(environment));\n fieldPropertyBuilders.add(new MapFieldComponentBuilder(environment));\n fieldPropertyBuilders.add(new SimpleFieldComponentBuilder(environment));\n }", "public void setUWCompany(entity.UWCompany value);", "@PrePersist()\r\n\tpublic void initEntity(){\r\n\t\tthis.name = WordUtils.capitalizeFully(this.name);\r\n\t}", "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 }", "public ChangeFieldEf( EAdField<?> field,\r\n\t\t\tEAdOperation operation) {\r\n\t\tsuper();\r\n\t\tsetId(\"changeField\");\r\n\t\tthis.fields = new EAdListImpl<EAdField<?>>(EAdField.class);\r\n\t\tif (field != null)\r\n\t\t\tfields.add(field);\r\n\t\tthis.operation = operation;\r\n\t}", "private void prepareFields(Entity entity, boolean usePrimaryKey) \r\n\t\t\tthrows IllegalArgumentException, IllegalAccessException, InvocationTargetException{\r\n\t\tprimaryKeyTos = new ArrayList<FieldTO>();\r\n\t\tfieldTos = new ArrayList<FieldTO>();\r\n\t\tField[] fields = entity.getClass().getDeclaredFields();\t\r\n\t\t\r\n\t\t//trunk entity to persistence\r\n\t\tfor(int i=0; i<fields.length; i++){\r\n\t\t\tField reflectionField = fields[i];\r\n\t\t\tif(reflectionField!=null){\r\n\t\t\t\treflectionField.setAccessible(true);\r\n\t\t\t\tAnnotation annoField = reflectionField.getAnnotation(GPAField.class);\r\n\t\t\t\tAnnotation annoFieldPK = reflectionField.getAnnotation(GPAPrimaryKey.class);\r\n\t\t\t\tAnnotation annoFieldBean = reflectionField.getAnnotation(GPAFieldBean.class);\r\n\t\t\t\t/* \r\n\t\t\t\t ainda falta validar a chave primária do objeto\r\n\t\t\t\t por enquanto so esta prevendo pk usando sequence no banco\r\n\t\t\t\t objeto id sempre é gerado no banco por uma sequence\r\n\t\t\t\t*/\r\n\t\t\t\tif(annoFieldPK!=null && annoFieldPK instanceof GPAPrimaryKey){\r\n\t\t\t\t\tGPAPrimaryKey pk = (GPAPrimaryKey)annoFieldPK;\r\n\t\t\t\t\t//if(pk.ignore() == true){\r\n\t\t\t\t\t//\tcontinue;\r\n\t\t\t\t\t//}else{\r\n\t\t\t\t\tString name = pk.name();\r\n\t\t\t\t\tObject value = reflectionField.get(entity);\r\n\t\t\t\t\tfieldTos.add(new FieldTO(name, value));\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t\t//}\r\n\t\t\t\t}\r\n\t\t\t\tif(annoField!=null && annoField instanceof GPAField){\r\n\t\t\t\t\tGPAField field = (GPAField)annoField;\r\n\t\t\t\t\tString name = field.name();\r\n\t\t\t\t\tObject value = reflectionField.get(entity);\r\n\t\t\t\t\tfieldTos.add(new FieldTO(name, value));\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\tif(annoFieldBean!=null && annoFieldBean instanceof GPAFieldBean){\r\n\t\t\t\t\tGPAFieldBean field = (GPAFieldBean)annoFieldBean;\r\n\t\t\t\t\tString name = field.name();\r\n\t\t\t\t\tObject value = reflectionField.get(entity);\r\n\t\t\t\t\tfieldTos.add(new FieldTO(name, value));\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Mapper(uses ={DateComponent.class}, componentModel = \"spring\")\npublic interface CreateCodeMapper extends EntityMapper<CreateCodeDto , Code> {\n}", "public void addEntityMetadata() throws Exception {\n\n\t\tEntityMetadata entity = new EntityMetadata(entityType, false);\n\t\tentity.setRepositoryInstance(\"OperationalDB\");\n\t\tentity.setProviderType(\"RDBMSDataProvider\");\n\n\t\tMap<String, List<String>> providerParams = new HashMap<String, List<String>>();\n\t\tproviderParams.put(\"table\",\n\t\t\t\tArrays.asList(new String[] { \"APPLICATION_OBJECT\" }));\n\t\tproviderParams.put(\"id_column\", Arrays.asList(new String[] { \"ID\" }));\n\t\tproviderParams.put(\"id_type\", Arrays.asList(new String[] { \"guid\" }));\n\t\tproviderParams.put(\"optimistic_locking\",\n\t\t\t\tArrays.asList(new String[] { \"false\" }));\n\t\tproviderParams.put(\"flex_searchable_string_prefix\",\n\t\t\t\tArrays.asList(new String[] { \"I_VC\" }));\n\t\tproviderParams.put(\"flex_non_searchable_string_prefix\",\n\t\t\t\tArrays.asList(new String[] { \"U_VC\" }));\n\t\tproviderParams.put(\"flex_searchable_date_prefix\",\n\t\t\t\tArrays.asList(new String[] { \"I_DT\" }));\n\t\tproviderParams.put(\"flex_non_searchable_date_prefix\",\n\t\t\t\tArrays.asList(new String[] { \"U_DT\" }));\n\t\tproviderParams.put(\"flex_searchable_number_prefix\",\n\t\t\t\tArrays.asList(new String[] { \"I_NUM\" }));\n\t\tproviderParams.put(\"flex_non_searchable_number_prefix\",\n\t\t\t\tArrays.asList(new String[] { \"U_NUM\" }));\n\t\tproviderParams.put(\"flex_blob_prefix\",\n\t\t\t\tArrays.asList(new String[] { \"U_BLOB\" }));\n\n\t\tentity.setProviderParameters(providerParams);\n\t\tentity.setContainer(false);\n\n\t\tHashMap<String, Map<String, String>> metadataAttachments = new HashMap<String, Map<String, String>>();\n\t\tMap<String, String> prop = new HashMap<String, String>();\n\t\tprop.put(\"isEncrypted\", \"false\");\n\t\tmetadataAttachments.put(\"properties\", prop);\n\t\tAttributeDefinition attrDef = null;\n\t\tFieldDefinition fieldDef = null;\n\n\t\t// parameters: name, type, description, isRequired, isSearchable, isMLS,\n\t\t// defaultValue, groupName, metadataAttachments\n\n\t\tattrDef = new AttributeDefinition(\"givenName\", \"string\", null, true,\n\t\t\t\ttrue, false, null, \"Basic\", metadataAttachments);\n\t\tentity.addAttribute(attrDef);\n\t\t\n\t\tattrDef = new AttributeDefinition(\"lastName\", \"string\", null, true,\n\t\t\t\ttrue, false, null, \"Basic\", metadataAttachments);\n\t\tentity.addAttribute(attrDef);\n\t\t\n\t\tattrDef = new AttributeDefinition(\"email\", \"string\", null, true,\n\t\t\t\ttrue, false, null, \"Basic\", metadataAttachments);\n\t\tentity.addAttribute(attrDef);\n\t\t\n\t\tattrDef = new AttributeDefinition(\"startDate\", \"date\", null, false,\n\t\t\t\ttrue, false, null, \"Basic\", metadataAttachments);\n\t\tentity.addAttribute(attrDef);\n\t\t\n\t\tattrDef = new AttributeDefinition(\"endDate\", \"date\", null, false,\n\t\t\t\ttrue, false, null, \"Basic\", metadataAttachments);\n\t\tentity.addAttribute(attrDef);\n\t\t\n\t\tattrDef = new AttributeDefinition(\"employeeNo\", \"number\", null, true,\n\t\t\t\ttrue, false, null, \"Basic\", metadataAttachments);\n\t\tentity.addAttribute(attrDef);\n\n\n\t\tattrDef = new AttributeDefinition(\"__UID__\", \"string\", null, true,\n\t\t\t\ttrue, false, null, \"Basic\", metadataAttachments);\n\t\tentity.addAttribute(attrDef);\n\t\tfieldDef = new FieldDefinition(\"AO_UID\", \"string\",true);\n\t\tentity.addField(fieldDef);\n\t\tentity.addAttributeMapping(\"__UID__\", \"AO_UID\");\n\t\t\n\t\tattrDef = new AttributeDefinition(\"__NAME__\", \"string\", null, true,\n\t\t\t\ttrue, false, null, \"Basic\", metadataAttachments);\n\t\tentity.addAttribute(attrDef);\n\t\tfieldDef = new FieldDefinition(\"AO_NAME\", \"string\",true);\n\t\tentity.addField(fieldDef);\n\t\tentity.addAttributeMapping(\"__NAME__\", \"AO_NAME\");\n\n\t\t/*\n\t\t * attrDef = new AttributeDefinition(childEntityType, childEntityType,\n\t\t * null, false, true, false, null, \"Basic\", metadataAttachments);\n\t\t * entity.addChildEntityAttribute(attrDef);\n\t\t */\n\n\t\tString xmlString = getStringfromDoc(entity);\n\n\t\ttry {\n\t\t\tmgrConfig.createEntityMetadata(entity);\n\t\t\tSystem.out.println(\"Created entity type: \" + entityType);\n\n\t\t} catch (Exception e) {\n\t\t\t//fail(\"Unexpected exception: \" + getStackTrace(e));\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@ProviderType\npublic interface EmployeeModel extends BaseModel<Employee> {\n\n\t/*\n\t * NOTE FOR DEVELOPERS:\n\t *\n\t * Never modify or reference this interface directly. All methods that expect a employee model instance should use the {@link Employee} interface instead.\n\t */\n\n\t/**\n\t * Returns the primary key of this employee.\n\t *\n\t * @return the primary key of this employee\n\t */\n\tpublic long getPrimaryKey();\n\n\t/**\n\t * Sets the primary key of this employee.\n\t *\n\t * @param primaryKey the primary key of this employee\n\t */\n\tpublic void setPrimaryKey(long primaryKey);\n\n\t/**\n\t * Returns the uuid of this employee.\n\t *\n\t * @return the uuid of this employee\n\t */\n\t@AutoEscape\n\tpublic String getUuid();\n\n\t/**\n\t * Sets the uuid of this employee.\n\t *\n\t * @param uuid the uuid of this employee\n\t */\n\tpublic void setUuid(String uuid);\n\n\t/**\n\t * Returns the employee ID of this employee.\n\t *\n\t * @return the employee ID of this employee\n\t */\n\tpublic long getEmployeeId();\n\n\t/**\n\t * Sets the employee ID of this employee.\n\t *\n\t * @param employeeId the employee ID of this employee\n\t */\n\tpublic void setEmployeeId(long employeeId);\n\n\t/**\n\t * Returns the first name of this employee.\n\t *\n\t * @return the first name of this employee\n\t */\n\t@AutoEscape\n\tpublic String getFirstName();\n\n\t/**\n\t * Sets the first name of this employee.\n\t *\n\t * @param firstName the first name of this employee\n\t */\n\tpublic void setFirstName(String firstName);\n\n\t/**\n\t * Returns the last name of this employee.\n\t *\n\t * @return the last name of this employee\n\t */\n\t@AutoEscape\n\tpublic String getLastName();\n\n\t/**\n\t * Sets the last name of this employee.\n\t *\n\t * @param lastName the last name of this employee\n\t */\n\tpublic void setLastName(String lastName);\n\n\t/**\n\t * Returns the middle name of this employee.\n\t *\n\t * @return the middle name of this employee\n\t */\n\t@AutoEscape\n\tpublic String getMiddleName();\n\n\t/**\n\t * Sets the middle name of this employee.\n\t *\n\t * @param middleName the middle name of this employee\n\t */\n\tpublic void setMiddleName(String middleName);\n\n\t/**\n\t * Returns the birth date of this employee.\n\t *\n\t * @return the birth date of this employee\n\t */\n\tpublic Date getBirthDate();\n\n\t/**\n\t * Sets the birth date of this employee.\n\t *\n\t * @param birthDate the birth date of this employee\n\t */\n\tpublic void setBirthDate(Date birthDate);\n\n\t/**\n\t * Returns the post ID of this employee.\n\t *\n\t * @return the post ID of this employee\n\t */\n\tpublic long getPostId();\n\n\t/**\n\t * Sets the post ID of this employee.\n\t *\n\t * @param postId the post ID of this employee\n\t */\n\tpublic void setPostId(long postId);\n\n\t/**\n\t * Returns the sex of this employee.\n\t *\n\t * @return the sex of this employee\n\t */\n\tpublic Boolean getSex();\n\n\t/**\n\t * Sets the sex of this employee.\n\t *\n\t * @param sex the sex of this employee\n\t */\n\tpublic void setSex(Boolean sex);\n\n}", "public void createFieldEditors()\n\t{\n\t}", "private void addSetter(JavaObject object, JavaModelBeanField field) {\n\t\tIJavaCodeLines arguments = getArguments(field, object.getImports());\n\t\tSetterMethod method = new SetterMethod(field.getName(), field.getType(), arguments, objectType);\n\t\tobject.addBlock(method);\n\t}", "public interface GradeMapper {\n @Select(\"select * from grade\")\n public List<Grade> getByGradeNm();\n\n @Insert(\"insert into grade(grade_nm,teacher_id) values(#{gradeNm},#{teacherId})\")\n @Options(useGeneratedKeys=true,keyColumn=\"id\",keyProperty=\"id\")//设置id自增长\n public void save(Grade grade);\n}", "@Generated(\"Speedment\")\npublic interface Employee extends Entity<Employee> {\n \n /**\n * This Field corresponds to the {@link Employee} field that can be obtained\n * using the {@link Employee#getId()} method.\n */\n public final static ComparableField<Employee, Short> ID = new ComparableFieldImpl<>(\"id\", Employee::getId, Employee::setId);\n /**\n * This Field corresponds to the {@link Employee} field that can be obtained\n * using the {@link Employee#getFirstname()} method.\n */\n public final static StringField<Employee> FIRSTNAME = new StringFieldImpl<>(\"firstname\", o -> o.getFirstname().orElse(null), Employee::setFirstname);\n /**\n * This Field corresponds to the {@link Employee} field that can be obtained\n * using the {@link Employee#getLastname()} method.\n */\n public final static StringField<Employee> LASTNAME = new StringFieldImpl<>(\"lastname\", o -> o.getLastname().orElse(null), Employee::setLastname);\n /**\n * This Field corresponds to the {@link Employee} field that can be obtained\n * using the {@link Employee#getBirthdate()} method.\n */\n public final static ComparableField<Employee, Date> BIRTHDATE = new ComparableFieldImpl<>(\"birthdate\", o -> o.getBirthdate().orElse(null), Employee::setBirthdate);\n \n /**\n * Returns the id of this Employee. The id field corresponds to the database\n * column db0.sql696688.employee.id.\n * \n * @return the id of this Employee\n */\n Short getId();\n \n /**\n * Returns the firstname of this Employee. The firstname field corresponds to\n * the database column db0.sql696688.employee.firstname.\n * \n * @return the firstname of this Employee\n */\n Optional<String> getFirstname();\n \n /**\n * Returns the lastname of this Employee. The lastname field corresponds to\n * the database column db0.sql696688.employee.lastname.\n * \n * @return the lastname of this Employee\n */\n Optional<String> getLastname();\n \n /**\n * Returns the birthdate of this Employee. The birthdate field corresponds to\n * the database column db0.sql696688.employee.birthdate.\n * \n * @return the birthdate of this Employee\n */\n Optional<Date> getBirthdate();\n \n /**\n * Sets the id of this Employee. The id field corresponds to the database\n * column db0.sql696688.employee.id.\n * \n * @param id to set of this Employee\n * @return this Employee instance\n */\n Employee setId(Short id);\n \n /**\n * Sets the firstname of this Employee. The firstname field corresponds to\n * the database column db0.sql696688.employee.firstname.\n * \n * @param firstname to set of this Employee\n * @return this Employee instance\n */\n Employee setFirstname(String firstname);\n \n /**\n * Sets the lastname of this Employee. The lastname field corresponds to the\n * database column db0.sql696688.employee.lastname.\n * \n * @param lastname to set of this Employee\n * @return this Employee instance\n */\n Employee setLastname(String lastname);\n \n /**\n * Sets the birthdate of this Employee. The birthdate field corresponds to\n * the database column db0.sql696688.employee.birthdate.\n * \n * @param birthdate to set of this Employee\n * @return this Employee instance\n */\n Employee setBirthdate(Date birthdate);\n \n /**\n * Creates and returns a {@link Stream} of all {@link Borrowed} Entities that\n * references this Entity by the foreign key field that can be obtained using\n * {@link Borrowed#getEmployeeid()}. The order of the Entities are undefined\n * and may change from time to time.\n * <p>\n * Using this method, you may \"walk the graph\" and jump directly between\n * referencing Entities without using {@code JOIN}s.<p> N.B. The current\n * implementation supports lazy-loading of the referencing Entities.\n * \n * @return a {@link Stream} of all {@link Borrowed} Entities that references\n * this Entity by the foreign key field that can be obtained using {@link\n * Borrowed#getEmployeeid()}\n */\n Stream<Borrowed> findBorrowedsByEmployeeid();\n \n /**\n * Creates and returns a <em>distinct</em> {@link Stream} of all {@link\n * Borrowed} Entities that references this Entity by a foreign key. The order\n * of the Entities are undefined and may change from time to time.\n * <p>\n * Note that the Stream is <em>distinct</em>, meaning that referencing\n * Entities will only appear once in the Stream, even though they may\n * reference this Entity by several columns.\n * <p>\n * Using this method, you may \"walk the graph\" and jump directly between\n * referencing Entities without using {@code JOIN}s.<p> N.B. The current\n * implementation supports lazy-loading of the referencing Entities.\n * \n * @return a <em>distinct</em> {@link Stream} of all {@link Borrowed}\n * Entities that references this Entity by a foreign key\n */\n Stream<Borrowed> findBorroweds();\n}", "public interface FieldDAO extends CrudRepository<Field, Integer> {\n\n}", "protected Component constructCustomField(EntityModel<U> entityModel, AttributeModel attributeModel) {\n // override in subclasses\n return null;\n }", "public EsIndexPropertyBuilder addField(String fieldName, AllowableFieldEntry field) {\n this.fieldMap.put(fieldName, field);\n return this;\n }", "public AttributeField(Field field){\n this.field = field;\n }", "public void testFields()\n {\n TestUtils.testNoAddedFields(getTestedClass(), null);\n }", "public static void insertField(Field field) {\n\t\t\n\t\ttry{\n Connection connection = getConnection();\n\n\n try {\n PreparedStatement statement = connection.prepareStatement(\"INSERT INTO template_fields (field_id, form_name, field_name, field_value, field_type, field_mandatory)\"\n \t\t\t\t\t\t\t\t\t\t\t\t\t\t+ \" VALUES ('\"+field.getTheId()+\"', '\"+field.getTheFormName()+\"', '\"+field.getTheName()+\"', 'Here is text 424', '\"+field.getTheType()+\"', '\"+field.getTheMandatory()+\"')\"); \n statement.executeUpdate();\n\n statement.close();\n connection.close();\n } catch (SQLException ex) {\n \t//23 stands for duplicate / unique entries in db, so listen for that error and update db if so\n \tif (ex.getSQLState().startsWith(\"23\")) {\n System.out.println(\"Duplicate\");\n PreparedStatement statement = connection.prepareStatement(\"UPDATE template_fields SET \"\n \t\t+ \"field_id = '\"+field.getTheId()+\"', field_name = '\"+field.getTheName()+\"',\"\n \t\t+ \" field_value = 'here text', field_type = '\"+field.getTheType()+\"'\"\n \t\t\t\t+ \"WHERE field_id = '\"+field.getTheId()+\"' \"); \n\t\t\t\t\tstatement.executeUpdate();\n\t\t\t\t\t\n\t\t\t\t\tstatement.close();\n\t\t\t\t\tconnection.close();\n \t}\n }\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n\t}", "@Override\r\n protected void addAdditionalFormFields(AssayDomainIdForm domainIdForm, DataRegion rgn)\r\n {\n rgn.addHiddenFormField(\"providerName\", domainIdForm.getProviderName());\r\n }", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface ProgrammePropMapper extends EntityMapper<ProgrammePropDTO, ProgrammeProp> {\n\n\n\n default ProgrammeProp fromId(Long id) {\n if (id == null) {\n return null;\n }\n ProgrammeProp programmeProp = new ProgrammeProp();\n programmeProp.setId(id);\n return programmeProp;\n }\n}", "void addEntity(IViewEntity entity);", "public void addField(String fieldName, Object fieldValue, boolean forceAdd) {\n if (forceAdd\n || (this.beanMap.containsKey(fieldName)\n && this.beanMap.get(fieldName) == null && !this.deferredDescriptions\n .containsKey(fieldName))) {\n this.beanMap.put(fieldName, fieldValue);\n }\n }", "ObjectField createObjectField();", "private void createListFields(SGTable table) {\n\t\t\t\n\t\t ListGridField LIST_COLUMN_FIELD = new ListGridField(\"FIELD_ID\", Util.TI18N.LIST_COLUMN_FIELD(), 145); \n\t\t LIST_COLUMN_FIELD.setCanEdit(false);\n\t\t ListGridField LIST_COLUMN_CNAME = new ListGridField(\"FIELD_CNAME\", Util.TI18N.LIST_COLUMN_CNAME(), 105); \n\t\t LIST_COLUMN_CNAME.setCanEdit(false);\n\t\t ListGridField LIST_COLUMN_WIDTH = new ListGridField(\"FIELD_WIDTH\",Util.TI18N.LIST_COLUMN_WIDTH(),40); \n\t\t ListGridField LIST_SHOW_FLAG = new ListGridField(\"SHOW_FLAG\",Util.TI18N.LIST_SHOW_FLAG(),50);\n\t\t LIST_SHOW_FLAG.setType(ListGridFieldType.BOOLEAN);\n\t\t ListGridField MODIFY_FLAG=new ListGridField(\"MODIFY_FLAG\",\"\",50);\n\t\t MODIFY_FLAG.setType(ListGridFieldType.BOOLEAN);\n\t\t MODIFY_FLAG.setHidden(true);\n\t\t table.setFields(LIST_COLUMN_FIELD, LIST_COLUMN_CNAME, LIST_COLUMN_WIDTH, LIST_SHOW_FLAG,MODIFY_FLAG);\n\t}", "@Override\n\tpublic void entityAdded(Entity entity)\n\t{\n\t\t\n\t}", "public JsonField() {\n }", "public void buildMetaFields() {\n for (AtreusMetaEntity metaEntity : environment.getMetaManager().getEntities()) {\n Class<?> entityType = metaEntity.getEntityType();\n\n // Build the fields\n for (Field field : entityType.getDeclaredFields()) {\n\n // Execute the meta property builder rule bindValue\n for (BaseEntityMetaComponentBuilder propertyBuilder : fieldPropertyBuilders) {\n if (!propertyBuilder.acceptsField((MetaEntityImpl) metaEntity, field)) {\n continue;\n }\n propertyBuilder.validateField((MetaEntityImpl) metaEntity, field);\n if (propertyBuilder.handleField((MetaEntityImpl) metaEntity, field)) {\n break;\n }\n }\n\n }\n }\n }", "@Test(enabled = false) //ExSkip\n public void insertMergeField(final DocumentBuilder builder, final String fieldName, final String textBefore, final String textAfter) throws Exception {\n FieldMergeField field = (FieldMergeField) builder.insertField(FieldType.FIELD_MERGE_FIELD, true);\n field.setFieldName(fieldName);\n field.setTextBefore(textBefore);\n field.setTextAfter(textAfter);\n }", "protected abstract void createFieldEditors();", "public BaseField setupField(int iFieldSeq)\n {\n BaseField field = null;\n if (iFieldSeq == 0)\n field = new HotelField(this, PRODUCT_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 1)\n // field = new DateField(this, START_DATE, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 2)\n // field = new DateField(this, END_DATE, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 3)\n // field = new StringField(this, DESCRIPTION, 10, null, null);\n //if (iFieldSeq == 4)\n // field = new CityField(this, CITY_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 5)\n // field = new CityField(this, TO_CITY_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 6)\n // field = new ContinentField(this, CONTINENT_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 7)\n // field = new RegionField(this, REGION_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 8)\n // field = new CountryField(this, COUNTRY_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 9)\n // field = new StateField(this, STATE_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 10)\n // field = new VendorField(this, VENDOR_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n if (iFieldSeq == 11)\n field = new HotelRateField(this, RATE_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n if (iFieldSeq == 12)\n field = new HotelClassField(this, CLASS_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 13)\n // field = new DateField(this, DETAIL_DATE, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 14)\n // field = new ShortField(this, PAX, Constants.DEFAULT_FIELD_LENGTH, null, new Short((short)2));\n //if (iFieldSeq == 15)\n // field = new HotelScreenRecord_LastChanged(this, LAST_CHANGED, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 16)\n // field = new BooleanField(this, REMOTE_QUERY_ENABLED, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 17)\n // field = new ShortField(this, BLOCKED, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 18)\n // field = new ShortField(this, OVERSELL, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 19)\n // field = new BooleanField(this, CLOSED, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 20)\n // field = new BooleanField(this, DELETE, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 21)\n // field = new BooleanField(this, READ_ONLY, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 22)\n // field = new ProductSearchTypeField(this, PRODUCT_SEARCH_TYPE_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n //if (iFieldSeq == 23)\n // field = new ProductTypeField(this, PRODUCT_TYPE_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n if (iFieldSeq == 24)\n field = new PaxCategorySelect(this, PAX_CATEGORY_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);\n if (field == null)\n field = super.setupField(iFieldSeq);\n return field;\n }", "@PostConstruct\n protected void initNewEntity() {\n setNewEntity(getService().create());\n }", "private void exposeExposedFieldsToJs() {\n if (fieldsWithNameExposed.isEmpty()) {\n return;\n }\n\n MethodSpec.Builder exposeFieldMethod = MethodSpec\n .methodBuilder(\"vg$ef\")\n .addAnnotation(JsMethod.class);\n\n fieldsWithNameExposed\n .forEach(field -> exposeFieldMethod\n .addStatement(\"this.$L = $T.v()\",\n field.getName(),\n FieldsExposer.class)\n );\n\n exposeFieldMethod\n .addStatement(\n \"$T.e($L)\",\n FieldsExposer.class,\n fieldsWithNameExposed.stream()\n .map(ExposedField::getName)\n .collect(Collectors.joining(\",\"))\n );\n componentExposedTypeBuilder.addMethod(exposeFieldMethod.build());\n }", "public void addField (String label, String field) {\n addField (label, field, \"\");\n }", "@Override\r\n protected void buildEditingFields() {\r\n LanguageCodeComboBox languageCodeComboBox = new LanguageCodeComboBox();\r\n languageCodeComboBox.setAllowBlank(false);\r\n languageCodeComboBox.setToolTip(\"The translation language's code is required. It can not be null. Please select one or delete the row.\");\r\n BoundedTextField tf = new BoundedTextField();\r\n tf.setMaxLength(256);\r\n tf.setToolTip(\"This is the translation corresponding to the selected language. This field is required. It can not be null.\");\r\n tf.setAllowBlank(false);\r\n addColumnEditorConfig(languageCodeColumnConfig, languageCodeComboBox);\r\n addColumnEditorConfig(titleColumnConfig, tf);\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}", "public void add() {\n preAdd();\n EntitySelect<T> entitySelect = getEntitySelect();\n entitySelect.setMultiSelect(true);\n getEntitySelect().open();\n }", "@Override\n\tprotected CoreEntity createNewEntity() {\n\t\treturn null;\n\t}", "@Data\npublic class <XXX>ModelInfo extends AbstractModelInfo {\n private <Field1DataType> <Field1>;\n /**\n * @return an corresponding {@link <XXX>Transformer} for this model info\n */\n @Override\n public Transformer getTransformer() {\n return new <XXX>Transformer(this);\n }", "Ack editProperty(ProjectEntity entity, String propertyTypeName, JsonNode data);", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface EmploymentTypeMapper extends EntityMapper<EmploymentTypeDTO, EmploymentType> {\n\n\n @Mapping(target = \"people\", ignore = true)\n EmploymentType toEntity(EmploymentTypeDTO employmentTypeDTO);\n\n default EmploymentType fromId(Long id) {\n if (id == null) {\n return null;\n }\n EmploymentType employmentType = new EmploymentType();\n employmentType.setId(id);\n return employmentType;\n }\n}", "EntityBeanDescriptor createEntityBeanDescriptor();", "private void addFields(StringBuilder xml) {\n\t\tfor(FieldRequest field : fields) {\n\t\t\tstartElementWithAttributes(xml, \"Delta\");\n\t\t\taddStringAttribute(xml, \"id\", field.getId());\n\t\t\taddBooleanAttribute(xml, \"masked\", field.getMasked());\n\t\t\tcloseSimpleElementWithAttributes(xml);\n\t\t}\n\t}", "private void createUserListFields(SGTable table) {\n\t\t ListGridField LIST_COLUMN_ID = new ListGridField(\"FIELD_ID\", Util.TI18N.LIST_COLUMN_FIELD(), 145);\n\t\t LIST_COLUMN_ID.setCanEdit(false);\n\t\t ListGridField LIST_COLUMN_CNAME = new ListGridField(\"FIELD_CNAME\", Util.TI18N.LIST_COLUMN_CNAME(), 105);\n\t\t LIST_COLUMN_CNAME.setCanEdit(false);\n\t\t ListGridField COLUMN_WIDTH = new ListGridField(\"FIELD_WIDTH\", Util.TI18N.LIST_COLUMN_WIDTH(), 40);\n\t\t LIST_COLUMN_CNAME.setCanEdit(false);\n\t\t table.setFields(LIST_COLUMN_ID, LIST_COLUMN_CNAME, COLUMN_WIDTH);\n }", "@attribute(value = \"\", required = true)\t\r\n\tpublic void addCharField(CharField f) {\r\n\t\tfields.put(\"\" + fieldCount++, f);\r\n\t}", "Builder addMainEntityOfPage(String value);", "@Override\n protected void createEntity() {\n ProjectStatus status = createProjectStatus(5);\n setEntity(status);\n }", "public interface CommonEntityMethod extends ToJson,GetFieldValue,SetFieldValue{\n}", "public static void providePOJOsFieldAndGetterSetter(\n final FileWriterWrapper writer,\n final Field field)\n throws IOException {\n String javaType = mapType(field.getOriginalDataType());\n\n writer.write(\" private \" + javaType + \" \" + field.getJavaName()\n + \" = null;\\n\\n\");\n\n writer.write(\" public \" + javaType + \" \" + field.getGetterName()\n + \"() {\\n\");\n writer.write(\" return \" + field.getJavaName() + \";\\n\");\n writer.write(\" }\\n\\n\");\n\n writer.write(\" public void \" + field.getSetterName() + \"(\"\n + javaType + \" newValue) {\\n\");\n writer.write(\" \" + field.getJavaName() + \" = newValue\"\n + \";\\n\");\n writer.write(\" }\\n\\n\");\n }", "@ProviderType\npublic interface ItemShopBasketModel extends BaseModel<ItemShopBasket> {\n\n\t/*\n\t * NOTE FOR DEVELOPERS:\n\t *\n\t * Never modify or reference this interface directly. All methods that expect a item shop basket model instance should use the {@link ItemShopBasket} interface instead.\n\t */\n\n\t/**\n\t * Returns the primary key of this item shop basket.\n\t *\n\t * @return the primary key of this item shop basket\n\t */\n\tpublic long getPrimaryKey();\n\n\t/**\n\t * Sets the primary key of this item shop basket.\n\t *\n\t * @param primaryKey the primary key of this item shop basket\n\t */\n\tpublic void setPrimaryKey(long primaryKey);\n\n\t/**\n\t * Returns the item shop basket ID of this item shop basket.\n\t *\n\t * @return the item shop basket ID of this item shop basket\n\t */\n\tpublic long getItemShopBasketId();\n\n\t/**\n\t * Sets the item shop basket ID of this item shop basket.\n\t *\n\t * @param itemShopBasketId the item shop basket ID of this item shop basket\n\t */\n\tpublic void setItemShopBasketId(long itemShopBasketId);\n\n\t/**\n\t * Returns the shop basket ID of this item shop basket.\n\t *\n\t * @return the shop basket ID of this item shop basket\n\t */\n\tpublic long getShopBasketId();\n\n\t/**\n\t * Sets the shop basket ID of this item shop basket.\n\t *\n\t * @param shopBasketId the shop basket ID of this item shop basket\n\t */\n\tpublic void setShopBasketId(long shopBasketId);\n\n\t/**\n\t * Returns the name of this item shop basket.\n\t *\n\t * @return the name of this item shop basket\n\t */\n\t@AutoEscape\n\tpublic String getName();\n\n\t/**\n\t * Sets the name of this item shop basket.\n\t *\n\t * @param name the name of this item shop basket\n\t */\n\tpublic void setName(String name);\n\n\t/**\n\t * Returns the imported of this item shop basket.\n\t *\n\t * @return the imported of this item shop basket\n\t */\n\tpublic boolean getImported();\n\n\t/**\n\t * Returns <code>true</code> if this item shop basket is imported.\n\t *\n\t * @return <code>true</code> if this item shop basket is imported; <code>false</code> otherwise\n\t */\n\tpublic boolean isImported();\n\n\t/**\n\t * Sets whether this item shop basket is imported.\n\t *\n\t * @param imported the imported of this item shop basket\n\t */\n\tpublic void setImported(boolean imported);\n\n\t/**\n\t * Returns the exempt of this item shop basket.\n\t *\n\t * @return the exempt of this item shop basket\n\t */\n\tpublic boolean getExempt();\n\n\t/**\n\t * Returns <code>true</code> if this item shop basket is exempt.\n\t *\n\t * @return <code>true</code> if this item shop basket is exempt; <code>false</code> otherwise\n\t */\n\tpublic boolean isExempt();\n\n\t/**\n\t * Sets whether this item shop basket is exempt.\n\t *\n\t * @param exempt the exempt of this item shop basket\n\t */\n\tpublic void setExempt(boolean exempt);\n\n\t/**\n\t * Returns the price of this item shop basket.\n\t *\n\t * @return the price of this item shop basket\n\t */\n\tpublic Double getPrice();\n\n\t/**\n\t * Sets the price of this item shop basket.\n\t *\n\t * @param price the price of this item shop basket\n\t */\n\tpublic void setPrice(Double price);\n\n\t/**\n\t * Returns the active of this item shop basket.\n\t *\n\t * @return the active of this item shop basket\n\t */\n\tpublic boolean getActive();\n\n\t/**\n\t * Returns <code>true</code> if this item shop basket is active.\n\t *\n\t * @return <code>true</code> if this item shop basket is active; <code>false</code> otherwise\n\t */\n\tpublic boolean isActive();\n\n\t/**\n\t * Sets whether this item shop basket is active.\n\t *\n\t * @param active the active of this item shop basket\n\t */\n\tpublic void setActive(boolean active);\n\n\t/**\n\t * Returns the amount of this item shop basket.\n\t *\n\t * @return the amount of this item shop basket\n\t */\n\tpublic long getAmount();\n\n\t/**\n\t * Sets the amount of this item shop basket.\n\t *\n\t * @param amount the amount of this item shop basket\n\t */\n\tpublic void setAmount(long amount);\n\n\t/**\n\t * Returns the tax of this item shop basket.\n\t *\n\t * @return the tax of this item shop basket\n\t */\n\tpublic Double getTax();\n\n\t/**\n\t * Sets the tax of this item shop basket.\n\t *\n\t * @param tax the tax of this item shop basket\n\t */\n\tpublic void setTax(Double tax);\n\n\t/**\n\t * Returns the total of this item shop basket.\n\t *\n\t * @return the total of this item shop basket\n\t */\n\tpublic Double getTotal();\n\n\t/**\n\t * Sets the total of this item shop basket.\n\t *\n\t * @param total the total of this item shop basket\n\t */\n\tpublic void setTotal(Double total);\n\n}", "@Override\n public boolean isDisableMetadataField() {\n return false;\n }", "@SuppressWarnings(\"all\")\n public AField create(IAPresenter source, Field reflectedJavaField, AEntity entityBean) {\n AField algosField = null;\n List items = null;\n boolean nuovaEntity = text.isEmpty(entityBean.id);\n EAFieldType type = annotation.getFormType(reflectedJavaField);\n String caption = annotation.getFormFieldName(reflectedJavaField);\n AIField fieldAnnotation = annotation.getAIField(reflectedJavaField);\n String width = annotation.getWidthEM(reflectedJavaField);\n boolean required = annotation.isRequired(reflectedJavaField);\n boolean focus = annotation.isFocus(reflectedJavaField);\n boolean enabled = annotation.isFieldEnabled(reflectedJavaField, nuovaEntity);\n Class targetClazz = annotation.getComboClass(reflectedJavaField);\n// boolean visible = annotation.isFieldVisibile(reflectedJavaField, nuovaEntity);\n Object bean;\n\n //@todo RIMETTERE\n// int rows = annotation.getNumRows(reflectionJavaField);\n// boolean nullSelection = annotation.isNullSelectionAllowed(reflectionJavaField);\n// boolean newItems = annotation.isNewItemsAllowed(reflectionJavaField);\n\n if (type == EAFieldType.text.noone) {\n return null;\n }// end of if cycle\n\n //@todo RIMETTERE\n// //--non riesco (per ora) a leggere le Annotation da una classe diversa (AEntity)\n// if (fieldAnnotation == null && reflectionJavaField.getName().equals(Cost.PROPERTY_ID)) {\n// type = EAFieldType.id;\n// }// end of if cycle\n\n if (type != null) {\n algosField = fieldFactory.crea(source, type, reflectedJavaField, entityBean);\n }// end of if cycle\n\n if (type == EAFieldType.combo && targetClazz != null && algosField != null) {\n bean = context.getBean(targetClazz);\n\n if (bean instanceof AService) {\n items = ((AService) bean).findAll();\n }// end of if cycle\n\n if (array.isValid(items)) {\n ((AComboField) algosField).fixCombo(items, false, false);\n }// end of if cycle\n }// end of if cycle\n\n\n //@todo RIMETTERE\n// if (type == EAFieldType.enumeration && targetClazz != null && algosField != null) {\n// if (targetClazz.isEnum()) {\n// items = new ArrayList(Arrays.asList(targetClazz.getEnumConstants()));\n// }// end of if cycle\n//\n// if (algosField != null && algosField instanceof AComboField && items != null) {\n// ((AComboField) algosField).fixCombo(items, false, false);\n// }// end of if cycle\n// }// end of if cycle\n\n //@todo RIMETTERE\n// if (type == EAFieldType.radio && targetClazz != null && algosField != null) {\n// //@todo PATCH - PATCH - PATCH\n// if (reflectionJavaField.getName().equals(\"attivazione\") && entityBean.getClass().getName().equals(Preferenza.class.getName())) {\n// items = new ArrayList(Arrays.asList(PrefEffect.values()));\n// }// end of if cycle\n// //@todo PATCH - PATCH - PATCH\n//\n// if (items != null) {\n// ((ARadioField) algosField).fixRadio(items);\n// }// end of if cycle\n// }// end of if cycle\n\n //@todo RIMETTERE\n// if (type == EAFieldType.link && targetClazz != null && algosField != null) {\n// String lowerName = text.primaMinuscola(targetClazz.getSimpleName());\n// Object bean = context.getBean(lowerName);\n// algosField.setTarget((ApplicationListener) bean);\n// }// end of if cycle\n//\n if (algosField != null && fieldAnnotation != null) {\n// algosField.setVisible(visible);\n algosField.setEnabled(enabled);\n algosField.setRequiredIndicatorVisible(required);\n algosField.setCaption(caption);\n// if (text.isValid(width)) {\n algosField.setWidth(width);\n// }// end of if cycle\n// if (rows > 0) {\n// algosField.setRows(rows);\n// }// end of if cycle\n algosField.setFocus(focus);\n//\n// if (LibParams.displayToolTips()) {\n// algosField.setDescription(fieldAnnotation.help());\n// }// end of if cycle\n//\n// if (type == EAFieldType.dateNotEnabled) {\n// algosField.setEnabled(false);\n// }// end of if cycle\n }// end of if cycle\n\n return algosField;\n }", "@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 }", "private void addDescriptorFields (XmlDescriptor new_desc, Vector fields) {\n\t\tfor (int i = 0; i < fields.size(); i++) {\n\t\t\tJField jf = (JField)fields.elementAt(i);\n\t\t\tif (!jf._noMarshal) {\t\t\t\t\n\t\t\t\tif (jf.isXmlAttribute())\n\t\t\t\t\tnew_desc.addAttribute (jf);\n\t\t\t\telse\n\t\t\t\t\tnew_desc.addElement (jf);\n\t\t\t} else {\n\t\t\t\t//System.out.println (\"not adding unmarshal field..\" + jf.getJavaName ());\n\t\t\t}\n\t\t}\n\t}", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface ClientHeartbeatInfoMapper extends EntityMapper<ClientHeartbeatInfoDTO, ClientHeartbeatInfo> {\n\n\n\n default ClientHeartbeatInfo fromId(Long id) {\n if (id == null) {\n return null;\n }\n ClientHeartbeatInfo clientHeartbeatInfo = new ClientHeartbeatInfo();\n clientHeartbeatInfo.setId(id);\n return clientHeartbeatInfo;\n }\n}", "public EntityPropertyBean() {}", "public Field(String watermark,\n String showfieldname,\n String saveRequired,\n String jfunction,\n String onChange,\n String onKeyDown,\n String defaultValue,\n String type,\n String sqlValue,\n String field_name,\n String relation,\n String states,\n String relationField,\n String onClickVList,\n String jIdList,\n String name,\n String searchRequired,\n String id,\n String placeholder,\n String value,\n String fieldType,\n String onclicksummary,\n String newRecord,\n List<Field> dListArray,\n List<OptionModel> mOptionsArrayList,\n String onclickrightbutton,\n String webSaveRequired,\n String field_type) {\n\n this.watermark = watermark;\n this.showfieldname = showfieldname;\n this.saveRequired = saveRequired;\n this.jfunction = jfunction;\n this.onChange = onChange;\n this.onKeyDown = onKeyDown;\n this.defaultValue = defaultValue;\n this.type = type;\n this.sqlValue = sqlValue;\n this.field_name = field_name;\n this.relation = relation;\n this.states = states;\n this.relationField = relationField;\n this.onClickVList = onClickVList;\n this.jIdList = jIdList;\n this.name = name;\n this.searchRequired = searchRequired;\n this.id = id;\n this.placeholder = placeholder;\n this.value = value;\n this.fieldType = fieldType;\n this.onclicksummary = onclicksummary;\n this.newRecord = newRecord;\n this.dListArray = dListArray;\n this.optionsArrayList = mOptionsArrayList;\n this.onclickrightbutton = onclickrightbutton;\n this.webSaveRequired = webSaveRequired;\n this.field_type = field_type;\n\n// this( watermark, showfieldname, saveRequired, jfunction,\n// onChange, onKeyDown, defaultValue, type, sqlValue,\n// field_name, relation, states, relationField,\n// onClickVList, jIdList, name, \"\",\n// searchRequired, id, placeholder, value,\n// fieldType, onclicksummary, newRecord, \"\",\n// dListArray,mOptionsArrayList,onclickrightbutton);\n }" ]
[ "0.62933207", "0.59871024", "0.59345496", "0.5807264", "0.57005894", "0.56254286", "0.56229895", "0.56043065", "0.55907774", "0.55277437", "0.55270976", "0.5502147", "0.5449934", "0.5449778", "0.5448262", "0.5438682", "0.5421909", "0.539829", "0.5392975", "0.5386786", "0.5378604", "0.5368571", "0.5365954", "0.53548914", "0.53542715", "0.5320208", "0.5299872", "0.5281769", "0.5277985", "0.5277643", "0.52720714", "0.5261695", "0.5250926", "0.5237663", "0.5232543", "0.5226736", "0.52246344", "0.52201366", "0.52098", "0.52081615", "0.5208048", "0.52047235", "0.5192572", "0.5187729", "0.51830703", "0.51454425", "0.5136857", "0.51367474", "0.5134208", "0.51329243", "0.5132539", "0.5131652", "0.5122219", "0.51200175", "0.51170164", "0.5110706", "0.50978315", "0.50843036", "0.5078298", "0.50773495", "0.50740963", "0.50712", "0.5068569", "0.50645906", "0.5061913", "0.5058393", "0.505457", "0.50536925", "0.5053569", "0.5053347", "0.50525504", "0.5050168", "0.50495523", "0.50453347", "0.50411284", "0.503058", "0.50298315", "0.50244564", "0.502122", "0.50095356", "0.5008393", "0.5006762", "0.5003892", "0.49978906", "0.49883392", "0.49701265", "0.49588418", "0.49572", "0.49551457", "0.49545777", "0.49497432", "0.49307552", "0.49283522", "0.49278754", "0.49254358", "0.49232286", "0.49127015", "0.4909568", "0.49072063", "0.4905449", "0.49016434" ]
0.0
-1
jhipsterneedleentityaddgetterssetters JHipster will add getters and setters here, do not remove
@Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof Producto)) { return false; } return id != null && id.equals(((Producto) o).id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface CommonEntityMethod extends ToJson,GetFieldValue,SetFieldValue{\n}", "static void setPropertiesFromGetters(TableEntity entity, ClientLogger logger) {\n Class<?> myClass = entity.getClass();\n\n // Do nothing if the entity is actually a `TableEntity` rather than a subclass\n if (myClass == TableEntity.class) {\n return;\n }\n\n for (Method m : myClass.getMethods()) {\n // Skip any non-getter methods\n if (m.getName().length() < 3\n || TABLE_ENTITY_METHODS.contains(m.getName())\n || (!m.getName().startsWith(\"get\") && !m.getName().startsWith(\"is\"))\n || m.getParameterTypes().length != 0\n || void.class.equals(m.getReturnType())) {\n continue;\n }\n\n // A method starting with `is` is only a getter if it returns a boolean\n if (m.getName().startsWith(\"is\") && m.getReturnType() != Boolean.class\n && m.getReturnType() != boolean.class) {\n continue;\n }\n\n // Remove the `get` or `is` prefix to get the name of the property\n int prefixLength = m.getName().startsWith(\"is\") ? 2 : 3;\n String propName = m.getName().substring(prefixLength);\n\n try {\n // Invoke the getter and store the value in the properties map\n entity.getProperties().put(propName, m.invoke(entity));\n } catch (ReflectiveOperationException | IllegalArgumentException e) {\n logger.logThrowableAsWarning(new ReflectiveOperationException(String.format(\n \"Failed to get property '%s' on type '%s'\", propName, myClass.getName()), e));\n }\n }\n }", "public interface UnitTypeProperties extends PropertyAccess<UnitTypeDTO> {\n @Editor.Path(\"id\")\n ModelKeyProvider<UnitTypeDTO> key();\n ValueProvider<UnitTypeDTO, String> id();\n ValueProvider<UnitTypeDTO, String> name();\n @Editor.Path(\"name\")\n LabelProvider<UnitTypeDTO> nameLabel();\n}", "@ProviderType\npublic interface EmployeeModel extends BaseModel<Employee> {\n\n\t/*\n\t * NOTE FOR DEVELOPERS:\n\t *\n\t * Never modify or reference this interface directly. All methods that expect a employee model instance should use the {@link Employee} interface instead.\n\t */\n\n\t/**\n\t * Returns the primary key of this employee.\n\t *\n\t * @return the primary key of this employee\n\t */\n\tpublic long getPrimaryKey();\n\n\t/**\n\t * Sets the primary key of this employee.\n\t *\n\t * @param primaryKey the primary key of this employee\n\t */\n\tpublic void setPrimaryKey(long primaryKey);\n\n\t/**\n\t * Returns the uuid of this employee.\n\t *\n\t * @return the uuid of this employee\n\t */\n\t@AutoEscape\n\tpublic String getUuid();\n\n\t/**\n\t * Sets the uuid of this employee.\n\t *\n\t * @param uuid the uuid of this employee\n\t */\n\tpublic void setUuid(String uuid);\n\n\t/**\n\t * Returns the employee ID of this employee.\n\t *\n\t * @return the employee ID of this employee\n\t */\n\tpublic long getEmployeeId();\n\n\t/**\n\t * Sets the employee ID of this employee.\n\t *\n\t * @param employeeId the employee ID of this employee\n\t */\n\tpublic void setEmployeeId(long employeeId);\n\n\t/**\n\t * Returns the first name of this employee.\n\t *\n\t * @return the first name of this employee\n\t */\n\t@AutoEscape\n\tpublic String getFirstName();\n\n\t/**\n\t * Sets the first name of this employee.\n\t *\n\t * @param firstName the first name of this employee\n\t */\n\tpublic void setFirstName(String firstName);\n\n\t/**\n\t * Returns the last name of this employee.\n\t *\n\t * @return the last name of this employee\n\t */\n\t@AutoEscape\n\tpublic String getLastName();\n\n\t/**\n\t * Sets the last name of this employee.\n\t *\n\t * @param lastName the last name of this employee\n\t */\n\tpublic void setLastName(String lastName);\n\n\t/**\n\t * Returns the middle name of this employee.\n\t *\n\t * @return the middle name of this employee\n\t */\n\t@AutoEscape\n\tpublic String getMiddleName();\n\n\t/**\n\t * Sets the middle name of this employee.\n\t *\n\t * @param middleName the middle name of this employee\n\t */\n\tpublic void setMiddleName(String middleName);\n\n\t/**\n\t * Returns the birth date of this employee.\n\t *\n\t * @return the birth date of this employee\n\t */\n\tpublic Date getBirthDate();\n\n\t/**\n\t * Sets the birth date of this employee.\n\t *\n\t * @param birthDate the birth date of this employee\n\t */\n\tpublic void setBirthDate(Date birthDate);\n\n\t/**\n\t * Returns the post ID of this employee.\n\t *\n\t * @return the post ID of this employee\n\t */\n\tpublic long getPostId();\n\n\t/**\n\t * Sets the post ID of this employee.\n\t *\n\t * @param postId the post ID of this employee\n\t */\n\tpublic void setPostId(long postId);\n\n\t/**\n\t * Returns the sex of this employee.\n\t *\n\t * @return the sex of this employee\n\t */\n\tpublic Boolean getSex();\n\n\t/**\n\t * Sets the sex of this employee.\n\t *\n\t * @param sex the sex of this employee\n\t */\n\tpublic void setSex(Boolean sex);\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}", "@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}", "public interface ResourceEntityMapperExt {\n\n List<ResourceEntity> getAllResource();\n\n Set<ResourceEntity> selectRoleResourcesByRoleId(@Param(\"roleId\") String roleId);\n\n void disable(@Param(\"resourceId\") String resourceId);\n\n void enable(@Param(\"resourceId\") String resourceId);\n\n List<Map> getParentMenusByUserId(@Param(\"userId\") String userId);\n\n List<Map> getChildrenMenusByUserId(@Param(\"userId\") String userId);\n\n List<Map> getAllParentMenus();\n\n List<Map> getAllChildrenMenus();\n\n List<Map> queryResourceList();\n\n void deleteByResourceId(@Param(\"resourceId\")String resourceId);\n\n List<String> resourcesByRoleId(@Param(\"roleId\") String roleId);\n\n List<Map> getAllChildrenMenusBySourceId(@Param(\"sourceId\")String sourceId);\n}", "@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}", "public void toEntity(){\n\n }", "public interface EmployeeMapper extends BaseMapper<Employee> {\n\n @Override\n @Select(\"select * from employee\")\n List<Employee> findAll();\n\n @Override\n int save(Employee employee);\n}", "public interface RepositoryJpaMetadataProvider extends\n ItdTriggerBasedMetadataProvider {\n}", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface ProgrammePropMapper extends EntityMapper<ProgrammePropDTO, ProgrammeProp> {\n\n\n\n default ProgrammeProp fromId(Long id) {\n if (id == null) {\n return null;\n }\n ProgrammeProp programmeProp = new ProgrammeProp();\n programmeProp.setId(id);\n return programmeProp;\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}", "@ProviderType\npublic interface LichChiTietModel\n\textends BaseModel<LichChiTiet>, GroupedModel, ShardedModel {\n\n\t/*\n\t * NOTE FOR DEVELOPERS:\n\t *\n\t * Never modify or reference this interface directly. All methods that expect a lich chi tiet model instance should use the {@link LichChiTiet} interface instead.\n\t */\n\n\t/**\n\t * Returns the primary key of this lich chi tiet.\n\t *\n\t * @return the primary key of this lich chi tiet\n\t */\n\tpublic long getPrimaryKey();\n\n\t/**\n\t * Sets the primary key of this lich chi tiet.\n\t *\n\t * @param primaryKey the primary key of this lich chi tiet\n\t */\n\tpublic void setPrimaryKey(long primaryKey);\n\n\t/**\n\t * Returns the lich chi tiet ID of this lich chi tiet.\n\t *\n\t * @return the lich chi tiet ID of this lich chi tiet\n\t */\n\tpublic long getLichChiTietId();\n\n\t/**\n\t * Sets the lich chi tiet ID of this lich chi tiet.\n\t *\n\t * @param lichChiTietId the lich chi tiet ID of this lich chi tiet\n\t */\n\tpublic void setLichChiTietId(long lichChiTietId);\n\n\t/**\n\t * Returns the group ID of this lich chi tiet.\n\t *\n\t * @return the group ID of this lich chi tiet\n\t */\n\t@Override\n\tpublic long getGroupId();\n\n\t/**\n\t * Sets the group ID of this lich chi tiet.\n\t *\n\t * @param groupId the group ID of this lich chi tiet\n\t */\n\t@Override\n\tpublic void setGroupId(long groupId);\n\n\t/**\n\t * Returns the language of this lich chi tiet.\n\t *\n\t * @return the language of this lich chi tiet\n\t */\n\t@AutoEscape\n\tpublic String getLanguage();\n\n\t/**\n\t * Sets the language of this lich chi tiet.\n\t *\n\t * @param language the language of this lich chi tiet\n\t */\n\tpublic void setLanguage(String language);\n\n\t/**\n\t * Returns the company ID of this lich chi tiet.\n\t *\n\t * @return the company ID of this lich chi tiet\n\t */\n\t@Override\n\tpublic long getCompanyId();\n\n\t/**\n\t * Sets the company ID of this lich chi tiet.\n\t *\n\t * @param companyId the company ID of this lich chi tiet\n\t */\n\t@Override\n\tpublic void setCompanyId(long companyId);\n\n\t/**\n\t * Returns the user ID of this lich chi tiet.\n\t *\n\t * @return the user ID of this lich chi tiet\n\t */\n\t@Override\n\tpublic long getUserId();\n\n\t/**\n\t * Sets the user ID of this lich chi tiet.\n\t *\n\t * @param userId the user ID of this lich chi tiet\n\t */\n\t@Override\n\tpublic void setUserId(long userId);\n\n\t/**\n\t * Returns the user uuid of this lich chi tiet.\n\t *\n\t * @return the user uuid of this lich chi tiet\n\t */\n\t@Override\n\tpublic String getUserUuid();\n\n\t/**\n\t * Sets the user uuid of this lich chi tiet.\n\t *\n\t * @param userUuid the user uuid of this lich chi tiet\n\t */\n\t@Override\n\tpublic void setUserUuid(String userUuid);\n\n\t/**\n\t * Returns the user name of this lich chi tiet.\n\t *\n\t * @return the user name of this lich chi tiet\n\t */\n\t@AutoEscape\n\t@Override\n\tpublic String getUserName();\n\n\t/**\n\t * Sets the user name of this lich chi tiet.\n\t *\n\t * @param userName the user name of this lich chi tiet\n\t */\n\t@Override\n\tpublic void setUserName(String userName);\n\n\t/**\n\t * Returns the create date of this lich chi tiet.\n\t *\n\t * @return the create date of this lich chi tiet\n\t */\n\t@Override\n\tpublic Date getCreateDate();\n\n\t/**\n\t * Sets the create date of this lich chi tiet.\n\t *\n\t * @param createDate the create date of this lich chi tiet\n\t */\n\t@Override\n\tpublic void setCreateDate(Date createDate);\n\n\t/**\n\t * Returns the created by user of this lich chi tiet.\n\t *\n\t * @return the created by user of this lich chi tiet\n\t */\n\tpublic long getCreatedByUser();\n\n\t/**\n\t * Sets the created by user of this lich chi tiet.\n\t *\n\t * @param createdByUser the created by user of this lich chi tiet\n\t */\n\tpublic void setCreatedByUser(long createdByUser);\n\n\t/**\n\t * Returns the modified date of this lich chi tiet.\n\t *\n\t * @return the modified date of this lich chi tiet\n\t */\n\t@Override\n\tpublic Date getModifiedDate();\n\n\t/**\n\t * Sets the modified date of this lich chi tiet.\n\t *\n\t * @param modifiedDate the modified date of this lich chi tiet\n\t */\n\t@Override\n\tpublic void setModifiedDate(Date modifiedDate);\n\n\t/**\n\t * Returns the modified by user of this lich chi tiet.\n\t *\n\t * @return the modified by user of this lich chi tiet\n\t */\n\tpublic long getModifiedByUser();\n\n\t/**\n\t * Sets the modified by user of this lich chi tiet.\n\t *\n\t * @param modifiedByUser the modified by user of this lich chi tiet\n\t */\n\tpublic void setModifiedByUser(long modifiedByUser);\n\n\t/**\n\t * Returns the gio bat dau of this lich chi tiet.\n\t *\n\t * @return the gio bat dau of this lich chi tiet\n\t */\n\tpublic Date getGioBatDau();\n\n\t/**\n\t * Sets the gio bat dau of this lich chi tiet.\n\t *\n\t * @param gioBatDau the gio bat dau of this lich chi tiet\n\t */\n\tpublic void setGioBatDau(Date gioBatDau);\n\n\t/**\n\t * Returns the mo ta of this lich chi tiet.\n\t *\n\t * @return the mo ta of this lich chi tiet\n\t */\n\t@AutoEscape\n\tpublic String getMoTa();\n\n\t/**\n\t * Sets the mo ta of this lich chi tiet.\n\t *\n\t * @param moTa the mo ta of this lich chi tiet\n\t */\n\tpublic void setMoTa(String moTa);\n\n\t/**\n\t * Returns the nguoi tham du of this lich chi tiet.\n\t *\n\t * @return the nguoi tham du of this lich chi tiet\n\t */\n\t@AutoEscape\n\tpublic String getNguoiThamDu();\n\n\t/**\n\t * Sets the nguoi tham du of this lich chi tiet.\n\t *\n\t * @param nguoiThamDu the nguoi tham du of this lich chi tiet\n\t */\n\tpublic void setNguoiThamDu(String nguoiThamDu);\n\n\t/**\n\t * Returns the nguoi chu tri of this lich chi tiet.\n\t *\n\t * @return the nguoi chu tri of this lich chi tiet\n\t */\n\t@AutoEscape\n\tpublic String getNguoiChuTri();\n\n\t/**\n\t * Sets the nguoi chu tri of this lich chi tiet.\n\t *\n\t * @param nguoiChuTri the nguoi chu tri of this lich chi tiet\n\t */\n\tpublic void setNguoiChuTri(String nguoiChuTri);\n\n\t/**\n\t * Returns the selected date of this lich chi tiet.\n\t *\n\t * @return the selected date of this lich chi tiet\n\t */\n\tpublic Date getSelectedDate();\n\n\t/**\n\t * Sets the selected date of this lich chi tiet.\n\t *\n\t * @param selectedDate the selected date of this lich chi tiet\n\t */\n\tpublic void setSelectedDate(Date selectedDate);\n\n\t/**\n\t * Returns the trangthai chi tiet of this lich chi tiet.\n\t *\n\t * @return the trangthai chi tiet of this lich chi tiet\n\t */\n\tpublic int getTrangthaiChiTiet();\n\n\t/**\n\t * Sets the trangthai chi tiet of this lich chi tiet.\n\t *\n\t * @param trangthaiChiTiet the trangthai chi tiet of this lich chi tiet\n\t */\n\tpublic void setTrangthaiChiTiet(int trangthaiChiTiet);\n\n\t/**\n\t * Returns the lich cong tac ID of this lich chi tiet.\n\t *\n\t * @return the lich cong tac ID of this lich chi tiet\n\t */\n\tpublic long getLichCongTacId();\n\n\t/**\n\t * Sets the lich cong tac ID of this lich chi tiet.\n\t *\n\t * @param lichCongTacId the lich cong tac ID of this lich chi tiet\n\t */\n\tpublic void setLichCongTacId(long lichCongTacId);\n\n\t/**\n\t * Returns the address of this lich chi tiet.\n\t *\n\t * @return the address of this lich chi tiet\n\t */\n\t@AutoEscape\n\tpublic String getAddress();\n\n\t/**\n\t * Sets the address of this lich chi tiet.\n\t *\n\t * @param address the address of this lich chi tiet\n\t */\n\tpublic void setAddress(String address);\n\n\t/**\n\t * Returns the note of this lich chi tiet.\n\t *\n\t * @return the note of this lich chi tiet\n\t */\n\t@AutoEscape\n\tpublic String getNote();\n\n\t/**\n\t * Sets the note of this lich chi tiet.\n\t *\n\t * @param note the note of this lich chi tiet\n\t */\n\tpublic void setNote(String note);\n\n\t/**\n\t * Returns the lydo tra ve of this lich chi tiet.\n\t *\n\t * @return the lydo tra ve of this lich chi tiet\n\t */\n\t@AutoEscape\n\tpublic String getLydoTraVe();\n\n\t/**\n\t * Sets the lydo tra ve of this lich chi tiet.\n\t *\n\t * @param lydoTraVe the lydo tra ve of this lich chi tiet\n\t */\n\tpublic void setLydoTraVe(String lydoTraVe);\n\n\t/**\n\t * Returns the organization ID of this lich chi tiet.\n\t *\n\t * @return the organization ID of this lich chi tiet\n\t */\n\tpublic long getOrganizationId();\n\n\t/**\n\t * Sets the organization ID of this lich chi tiet.\n\t *\n\t * @param organizationId the organization ID of this lich chi tiet\n\t */\n\tpublic void setOrganizationId(long organizationId);\n\n}", "private GetProperty(Builder builder) {\n super(builder);\n }", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface ClientHeartbeatInfoMapper extends EntityMapper<ClientHeartbeatInfoDTO, ClientHeartbeatInfo> {\n\n\n\n default ClientHeartbeatInfo fromId(Long id) {\n if (id == null) {\n return null;\n }\n ClientHeartbeatInfo clientHeartbeatInfo = new ClientHeartbeatInfo();\n clientHeartbeatInfo.setId(id);\n return clientHeartbeatInfo;\n }\n}", "public interface CreateEntityView<E extends SerializableEntity> extends EntityView {\r\n\r\n\t/**\r\n\t * Make save handler enabled\r\n\t * \r\n\t * @param enabled\r\n\t */\r\n\tvoid setSaveHandlerEnabled(boolean enabled);\r\n\t\r\n}", "public interface IGQLDynamicAttributeGetterSetter<ENTITY_TYPE, GETTER_ATTRIBUTE_TYPE, SETTER_ATTRIBUTE_TYPE>\n\t\textends\n\t\t\tIGQLDynamicAttributeGetter<ENTITY_TYPE, GETTER_ATTRIBUTE_TYPE>,\n\t\t\tIGQLDynamicAttributeSetter<ENTITY_TYPE, SETTER_ATTRIBUTE_TYPE> {\n\n}", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface EmploymentTypeMapper extends EntityMapper<EmploymentTypeDTO, EmploymentType> {\n\n\n @Mapping(target = \"people\", ignore = true)\n EmploymentType toEntity(EmploymentTypeDTO employmentTypeDTO);\n\n default EmploymentType fromId(Long id) {\n if (id == null) {\n return null;\n }\n EmploymentType employmentType = new EmploymentType();\n employmentType.setId(id);\n return employmentType;\n }\n}", "public interface SaleRowDTOProperties {\n\n Vehicle.KapschVehicle getVehicle();\n\n void setVehicle(Vehicle.KapschVehicle vehicle);\n\n}", "public interface PropertyDefEntity extends javax.ejb.EJBLocalObject {\n\n /**\n * Returns a PropertyDefDto data transfer object containing all parameters of\n * this property definition instance.\n *\n * @return PropertyDefDto the data transfer object containing all parameters of this instance\n * @see #setDto\n */\n public PropertyDefDto getDto();\n\n /**\n * Sets all data members of this property definition instance to the values\n * from the specified data transfer object.\n *\n * @param dto PropertyDefDto the data transfer object containing the new\n * parameters for this instance\n * @see #getDto\n */\n public void setDto(PropertyDefDto dto);\n\n}", "@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}", "@ProviderType\npublic interface PersonModel extends BaseModel<Person> {\n\n\t/*\n\t * NOTE FOR DEVELOPERS:\n\t *\n\t * Never modify or reference this interface directly. All methods that expect a person model instance should use the {@link Person} interface instead.\n\t */\n\n\t/**\n\t * Returns the primary key of this person.\n\t *\n\t * @return the primary key of this person\n\t */\n\tpublic long getPrimaryKey();\n\n\t/**\n\t * Sets the primary key of this person.\n\t *\n\t * @param primaryKey the primary key of this person\n\t */\n\tpublic void setPrimaryKey(long primaryKey);\n\n\t/**\n\t * Returns the uuid of this person.\n\t *\n\t * @return the uuid of this person\n\t */\n\t@AutoEscape\n\tpublic String getUuid();\n\n\t/**\n\t * Sets the uuid of this person.\n\t *\n\t * @param uuid the uuid of this person\n\t */\n\tpublic void setUuid(String uuid);\n\n\t/**\n\t * Returns the person ID of this person.\n\t *\n\t * @return the person ID of this person\n\t */\n\tpublic long getPersonId();\n\n\t/**\n\t * Sets the person ID of this person.\n\t *\n\t * @param personId the person ID of this person\n\t */\n\tpublic void setPersonId(long personId);\n\n\t/**\n\t * Returns the name of this person.\n\t *\n\t * @return the name of this person\n\t */\n\t@AutoEscape\n\tpublic String getName();\n\n\t/**\n\t * Sets the name of this person.\n\t *\n\t * @param name the name of this person\n\t */\n\tpublic void setName(String name);\n\n\t/**\n\t * Returns the age of this person.\n\t *\n\t * @return the age of this person\n\t */\n\tpublic int getAge();\n\n\t/**\n\t * Sets the age of this person.\n\t *\n\t * @param age the age of this person\n\t */\n\tpublic void setAge(int age);\n\n\t/**\n\t * Returns the gender of this person.\n\t *\n\t * @return the gender of this person\n\t */\n\t@AutoEscape\n\tpublic String getGender();\n\n\t/**\n\t * Sets the gender of this person.\n\t *\n\t * @param gender the gender of this person\n\t */\n\tpublic void setGender(String gender);\n\n\t/**\n\t * Returns the email ID of this person.\n\t *\n\t * @return the email ID of this person\n\t */\n\t@AutoEscape\n\tpublic String getEmailId();\n\n\t/**\n\t * Sets the email ID of this person.\n\t *\n\t * @param emailId the email ID of this person\n\t */\n\tpublic void setEmailId(String emailId);\n\n\t/**\n\t * Returns the nationality of this person.\n\t *\n\t * @return the nationality of this person\n\t */\n\t@AutoEscape\n\tpublic String getNationality();\n\n\t/**\n\t * Sets the nationality of this person.\n\t *\n\t * @param nationality the nationality of this person\n\t */\n\tpublic void setNationality(String nationality);\n\n\t/**\n\t * Returns the occupation of this person.\n\t *\n\t * @return the occupation of this person\n\t */\n\t@AutoEscape\n\tpublic String getOccupation();\n\n\t/**\n\t * Sets the occupation of this person.\n\t *\n\t * @param occupation the occupation of this person\n\t */\n\tpublic void setOccupation(String occupation);\n\n}", "@SuppressWarnings(\"unused\")\n@Repository\n@JaversSpringDataAuditable\n\npublic interface SellContractCustomerRepository extends JpaRepository<SellContractCustomer, Long> {\n\n SellContractCustomer findByCustomer_Id(Long customerId);\n\n List<SellContractCustomer> findAllBySellContract_Id(Long sellContractId);\n\n}", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface GradeMapper extends EntityMapper<GradeDTO, Grade> {\n\n\n @Mapping(target = \"subjects\", ignore = true)\n @Mapping(target = \"contents\", ignore = true)\n Grade toEntity(GradeDTO gradeDTO);\n\n default Grade fromId(Long id) {\n if (id == null) {\n return null;\n }\n Grade grade = new Grade();\n grade.setId(id);\n return grade;\n }\n}", "@Generated(\"Speedment\")\npublic interface Employee extends Entity<Employee> {\n \n /**\n * This Field corresponds to the {@link Employee} field that can be obtained\n * using the {@link Employee#getId()} method.\n */\n public final static ComparableField<Employee, Short> ID = new ComparableFieldImpl<>(\"id\", Employee::getId, Employee::setId);\n /**\n * This Field corresponds to the {@link Employee} field that can be obtained\n * using the {@link Employee#getFirstname()} method.\n */\n public final static StringField<Employee> FIRSTNAME = new StringFieldImpl<>(\"firstname\", o -> o.getFirstname().orElse(null), Employee::setFirstname);\n /**\n * This Field corresponds to the {@link Employee} field that can be obtained\n * using the {@link Employee#getLastname()} method.\n */\n public final static StringField<Employee> LASTNAME = new StringFieldImpl<>(\"lastname\", o -> o.getLastname().orElse(null), Employee::setLastname);\n /**\n * This Field corresponds to the {@link Employee} field that can be obtained\n * using the {@link Employee#getBirthdate()} method.\n */\n public final static ComparableField<Employee, Date> BIRTHDATE = new ComparableFieldImpl<>(\"birthdate\", o -> o.getBirthdate().orElse(null), Employee::setBirthdate);\n \n /**\n * Returns the id of this Employee. The id field corresponds to the database\n * column db0.sql696688.employee.id.\n * \n * @return the id of this Employee\n */\n Short getId();\n \n /**\n * Returns the firstname of this Employee. The firstname field corresponds to\n * the database column db0.sql696688.employee.firstname.\n * \n * @return the firstname of this Employee\n */\n Optional<String> getFirstname();\n \n /**\n * Returns the lastname of this Employee. The lastname field corresponds to\n * the database column db0.sql696688.employee.lastname.\n * \n * @return the lastname of this Employee\n */\n Optional<String> getLastname();\n \n /**\n * Returns the birthdate of this Employee. The birthdate field corresponds to\n * the database column db0.sql696688.employee.birthdate.\n * \n * @return the birthdate of this Employee\n */\n Optional<Date> getBirthdate();\n \n /**\n * Sets the id of this Employee. The id field corresponds to the database\n * column db0.sql696688.employee.id.\n * \n * @param id to set of this Employee\n * @return this Employee instance\n */\n Employee setId(Short id);\n \n /**\n * Sets the firstname of this Employee. The firstname field corresponds to\n * the database column db0.sql696688.employee.firstname.\n * \n * @param firstname to set of this Employee\n * @return this Employee instance\n */\n Employee setFirstname(String firstname);\n \n /**\n * Sets the lastname of this Employee. The lastname field corresponds to the\n * database column db0.sql696688.employee.lastname.\n * \n * @param lastname to set of this Employee\n * @return this Employee instance\n */\n Employee setLastname(String lastname);\n \n /**\n * Sets the birthdate of this Employee. The birthdate field corresponds to\n * the database column db0.sql696688.employee.birthdate.\n * \n * @param birthdate to set of this Employee\n * @return this Employee instance\n */\n Employee setBirthdate(Date birthdate);\n \n /**\n * Creates and returns a {@link Stream} of all {@link Borrowed} Entities that\n * references this Entity by the foreign key field that can be obtained using\n * {@link Borrowed#getEmployeeid()}. The order of the Entities are undefined\n * and may change from time to time.\n * <p>\n * Using this method, you may \"walk the graph\" and jump directly between\n * referencing Entities without using {@code JOIN}s.<p> N.B. The current\n * implementation supports lazy-loading of the referencing Entities.\n * \n * @return a {@link Stream} of all {@link Borrowed} Entities that references\n * this Entity by the foreign key field that can be obtained using {@link\n * Borrowed#getEmployeeid()}\n */\n Stream<Borrowed> findBorrowedsByEmployeeid();\n \n /**\n * Creates and returns a <em>distinct</em> {@link Stream} of all {@link\n * Borrowed} Entities that references this Entity by a foreign key. The order\n * of the Entities are undefined and may change from time to time.\n * <p>\n * Note that the Stream is <em>distinct</em>, meaning that referencing\n * Entities will only appear once in the Stream, even though they may\n * reference this Entity by several columns.\n * <p>\n * Using this method, you may \"walk the graph\" and jump directly between\n * referencing Entities without using {@code JOIN}s.<p> N.B. The current\n * implementation supports lazy-loading of the referencing Entities.\n * \n * @return a <em>distinct</em> {@link Stream} of all {@link Borrowed}\n * Entities that references this Entity by a foreign key\n */\n Stream<Borrowed> findBorroweds();\n}", "@Mapper(uses ={DateComponent.class}, componentModel = \"spring\")\npublic interface CreateCodeMapper extends EntityMapper<CreateCodeDto , Code> {\n}", "public void setUWCompany(entity.UWCompany value);", "@ProviderType\npublic interface ItemShopBasketModel extends BaseModel<ItemShopBasket> {\n\n\t/*\n\t * NOTE FOR DEVELOPERS:\n\t *\n\t * Never modify or reference this interface directly. All methods that expect a item shop basket model instance should use the {@link ItemShopBasket} interface instead.\n\t */\n\n\t/**\n\t * Returns the primary key of this item shop basket.\n\t *\n\t * @return the primary key of this item shop basket\n\t */\n\tpublic long getPrimaryKey();\n\n\t/**\n\t * Sets the primary key of this item shop basket.\n\t *\n\t * @param primaryKey the primary key of this item shop basket\n\t */\n\tpublic void setPrimaryKey(long primaryKey);\n\n\t/**\n\t * Returns the item shop basket ID of this item shop basket.\n\t *\n\t * @return the item shop basket ID of this item shop basket\n\t */\n\tpublic long getItemShopBasketId();\n\n\t/**\n\t * Sets the item shop basket ID of this item shop basket.\n\t *\n\t * @param itemShopBasketId the item shop basket ID of this item shop basket\n\t */\n\tpublic void setItemShopBasketId(long itemShopBasketId);\n\n\t/**\n\t * Returns the shop basket ID of this item shop basket.\n\t *\n\t * @return the shop basket ID of this item shop basket\n\t */\n\tpublic long getShopBasketId();\n\n\t/**\n\t * Sets the shop basket ID of this item shop basket.\n\t *\n\t * @param shopBasketId the shop basket ID of this item shop basket\n\t */\n\tpublic void setShopBasketId(long shopBasketId);\n\n\t/**\n\t * Returns the name of this item shop basket.\n\t *\n\t * @return the name of this item shop basket\n\t */\n\t@AutoEscape\n\tpublic String getName();\n\n\t/**\n\t * Sets the name of this item shop basket.\n\t *\n\t * @param name the name of this item shop basket\n\t */\n\tpublic void setName(String name);\n\n\t/**\n\t * Returns the imported of this item shop basket.\n\t *\n\t * @return the imported of this item shop basket\n\t */\n\tpublic boolean getImported();\n\n\t/**\n\t * Returns <code>true</code> if this item shop basket is imported.\n\t *\n\t * @return <code>true</code> if this item shop basket is imported; <code>false</code> otherwise\n\t */\n\tpublic boolean isImported();\n\n\t/**\n\t * Sets whether this item shop basket is imported.\n\t *\n\t * @param imported the imported of this item shop basket\n\t */\n\tpublic void setImported(boolean imported);\n\n\t/**\n\t * Returns the exempt of this item shop basket.\n\t *\n\t * @return the exempt of this item shop basket\n\t */\n\tpublic boolean getExempt();\n\n\t/**\n\t * Returns <code>true</code> if this item shop basket is exempt.\n\t *\n\t * @return <code>true</code> if this item shop basket is exempt; <code>false</code> otherwise\n\t */\n\tpublic boolean isExempt();\n\n\t/**\n\t * Sets whether this item shop basket is exempt.\n\t *\n\t * @param exempt the exempt of this item shop basket\n\t */\n\tpublic void setExempt(boolean exempt);\n\n\t/**\n\t * Returns the price of this item shop basket.\n\t *\n\t * @return the price of this item shop basket\n\t */\n\tpublic Double getPrice();\n\n\t/**\n\t * Sets the price of this item shop basket.\n\t *\n\t * @param price the price of this item shop basket\n\t */\n\tpublic void setPrice(Double price);\n\n\t/**\n\t * Returns the active of this item shop basket.\n\t *\n\t * @return the active of this item shop basket\n\t */\n\tpublic boolean getActive();\n\n\t/**\n\t * Returns <code>true</code> if this item shop basket is active.\n\t *\n\t * @return <code>true</code> if this item shop basket is active; <code>false</code> otherwise\n\t */\n\tpublic boolean isActive();\n\n\t/**\n\t * Sets whether this item shop basket is active.\n\t *\n\t * @param active the active of this item shop basket\n\t */\n\tpublic void setActive(boolean active);\n\n\t/**\n\t * Returns the amount of this item shop basket.\n\t *\n\t * @return the amount of this item shop basket\n\t */\n\tpublic long getAmount();\n\n\t/**\n\t * Sets the amount of this item shop basket.\n\t *\n\t * @param amount the amount of this item shop basket\n\t */\n\tpublic void setAmount(long amount);\n\n\t/**\n\t * Returns the tax of this item shop basket.\n\t *\n\t * @return the tax of this item shop basket\n\t */\n\tpublic Double getTax();\n\n\t/**\n\t * Sets the tax of this item shop basket.\n\t *\n\t * @param tax the tax of this item shop basket\n\t */\n\tpublic void setTax(Double tax);\n\n\t/**\n\t * Returns the total of this item shop basket.\n\t *\n\t * @return the total of this item shop basket\n\t */\n\tpublic Double getTotal();\n\n\t/**\n\t * Sets the total of this item shop basket.\n\t *\n\t * @param total the total of this item shop basket\n\t */\n\tpublic void setTotal(Double total);\n\n}", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface EightydMapper extends EntityMapper<EightydDTO, Eightyd> {\n\n\n\n default Eightyd fromId(Long id) {\n if (id == null) {\n return null;\n }\n Eightyd eightyd = new Eightyd();\n eightyd.setId(id);\n return eightyd;\n }\n}", "public interface MerchandiserEntities {\n\n static Entity outletEntity() {\n return new Entity(\n Entities.OUTLET_ENTITY,\n OutletModel.id,\n ArrayBuilder.<Field>create()\n .addAll(ImmutableList.of(\n field(OutletModel.name),\n field(OutletModel.address),\n field(OutletModel.qrCode),\n field(OutletModel.location, JavaType.OBJECT, hasOneLocation()),\n field(OutletModel.locationGps, JavaType.OBJECT, hasOneLocation()),\n field(OutletModel.locationNetwork, JavaType.OBJECT, hasOneLocation()),\n field(OutletModel.images, JavaType.ARRAY, hasManyOutletImages())\n ))\n .addAll(Entities.baseFields())\n .build(list -> list.toArray(new Field[list.size()])),\n new DbMapping(\n Entities.OUTLET_TABLE,\n OutletTable.id,\n ArrayBuilder.<ColumnMapping>create()\n .addAll(ImmutableList.of(\n column(OutletModel.name, OutletTable.name),\n column(OutletModel.address, OutletTable.address),\n column(OutletModel.qrCode, OutletTable.qr_code)\n ))\n .addAll(Entities.baseColumns())\n .build(list -> list.toArray(new ColumnMapping[list.size()])),\n ArrayBuilder.<RelationMapping>create()\n .addAll(ImmutableList.of(\n Entities.locationMapping(OutletModel.location, OutletTable.location_id),\n Entities.locationMapping(OutletModel.locationGps, OutletTable.location_id_gps),\n Entities.locationMapping(OutletModel.locationNetwork, OutletTable.location_id_network),\n outletImagesMapping()\n ))\n .addAll(Arrays.asList(Entities.baseRelationMappingsArray()))\n .build(list -> list.toArray(new RelationMapping[list.size()]))\n )\n );\n }\n\n static Relationship hasOneLocation() {\n return new Relationship(\n Relationship.Type.MANY_TO_ONE,\n Relationship.Name.HAS_ONE,\n Entities.LOCATION_ENTITY\n );\n }\n\n static Relationship hasManyOutletImages() {\n return new Relationship(\n Relationship.Type.ONE_TO_MANY,\n Relationship.Name.HAS_MANY,\n Entities.OUTLET_IMAGE_ENTITY\n );\n }\n\n static VirtualRelationMappingImpl outletImagesMapping() {\n return new VirtualRelationMappingImpl(\n Entities.OUTLET_IMAGE_TABLE,\n Entities.OUTLET_IMAGE_ENTITY,\n ImmutableList.of(\n new ForeignColumnMapping(\n OutletImageTable.outlet_id,\n OutletTable.id\n )\n ),\n OutletModel.images,\n new RelationMappingOptionsImpl(\n RelationMappingOptions.CascadeUpsert.YES,\n RelationMappingOptions.CascadeDelete.YES,\n true\n )\n );\n }\n\n static Entity outletImageEntity() {\n return new Entity(\n Entities.OUTLET_IMAGE_ENTITY,\n OutletImageModel.id,\n ArrayBuilder.<Field>create()\n .addAll(ImmutableList.of(\n field(OutletImageModel.title),\n field(OutletImageModel.description),\n field(OutletImageModel.uri),\n field(OutletImageModel.file),\n field(OutletImageModel.fileName),\n field(OutletImageModel.height),\n field(OutletImageModel.width),\n field(OutletImageModel.outlet, JavaType.OBJECT, hasOneOutlet())\n ))\n .addAll(Entities.baseFields())\n .build(list -> list.toArray(new Field[list.size()])),\n new DbMapping(\n Entities.OUTLET_IMAGE_TABLE,\n OutletImageTable.id,\n ArrayBuilder.<ColumnMapping>create()\n .addAll(ImmutableList.of(\n column(OutletImageModel.title, OutletImageTable.title),\n column(OutletImageModel.description, OutletImageTable.description),\n column(OutletImageModel.uri, OutletImageTable.uri),\n column(OutletImageModel.file, OutletImageTable.file),\n column(OutletImageModel.fileName, OutletImageTable.file_name),\n column(OutletImageModel.height, OutletImageTable.height),\n column(OutletImageModel.width, OutletImageTable.width)\n ))\n .addAll(Entities.baseColumns())\n .build(list -> list.toArray(new ColumnMapping[list.size()])),\n ArrayBuilder.<RelationMapping>create()\n .addAll(ImmutableList.of(\n new DirectRelationMappingImpl(\n OUTLET_TABLE,\n OUTLET_ENTITY,\n ImmutableList.of(\n new ForeignColumnMapping(\n OutletImageTable.outlet_id,\n OutletTable.id\n )\n ),\n OutletImageModel.outlet,\n new DirectRelationMappingOptionsImpl(\n RelationMappingOptions.CascadeUpsert.NO,\n RelationMappingOptions.CascadeDelete.NO,\n true,\n DirectRelationMappingOptions.LoadAndDelete.LOAD_AND_DELETE\n )\n )\n ))\n .addAll(Arrays.asList(Entities.baseRelationMappingsArray()))\n .build(list -> list.toArray(new RelationMapping[list.size()]))\n )\n );\n }\n\n static Relationship hasOneOutlet() {\n return new Relationship(\n Relationship.Type.MANY_TO_ONE,\n Relationship.Name.HAS_ONE,\n OUTLET_ENTITY\n );\n }\n\n static Entity locationEntity() {\n return new Entity(\n LOCATION_ENTITY,\n LocationModel.id,\n ArrayBuilder.<Field>create()\n .addAll(ImmutableList.of(\n Entities.field(LocationModel.lat),\n Entities.field(LocationModel.lng),\n Entities.field(LocationModel.accuracy)\n ))\n .addAll(Entities.baseFields())\n .build(list -> list.toArray(new Field[list.size()])),\n new DbMapping(\n LOCATION_TABLE,\n LocationTable.id,\n ArrayBuilder.<ColumnMapping>create()\n .addAll(ImmutableList.of(\n Entities.column(LocationModel.lat, LocationTable.lat),\n Entities.column(LocationModel.lng, LocationTable.lng),\n Entities.column(LocationModel.accuracy, LocationTable.accuracy)\n ))\n .addAll(Entities.baseColumns())\n .build(list -> list.toArray(new ColumnMapping[list.size()])),\n Entities.baseRelationMappingsArray()\n )\n );\n }\n}", "public interface RoleMapper {\n\n @Insert(\"insert into role values (role,desc) values (#{model.role},#{model.desc})\")\n @Options(useGeneratedKeys = true,keyProperty = \"model.id\")\n int insertRole(@Param(\"model\") RoleModel model);\n\n\n /**\n * 获取所有角色信息\n * @return\n */\n @Select(\"select id,role,desc,data_added,last_modified from role\")\n List<RoleModel> getAllRoles();\n\n\n /**\n * 获取角色Id\n * @param role\n * @return\n */\n @Select(\"select id from role where role=#{role}\")\n int getRoleId(String role);\n}", "@Mapper(componentModel = \"spring\", uses = {AanvraagberichtMapper.class})\npublic interface FdnAanvragerMapper extends EntityMapper<FdnAanvragerDTO, FdnAanvrager> {\n\n @Mapping(source = \"aanvraagbericht.id\", target = \"aanvraagberichtId\")\n FdnAanvragerDTO toDto(FdnAanvrager fdnAanvrager);\n\n @Mapping(target = \"adres\", ignore = true)\n @Mapping(target = \"legitimatiebewijs\", ignore = true)\n @Mapping(target = \"werksituaties\", ignore = true)\n @Mapping(target = \"gezinssituaties\", ignore = true)\n @Mapping(target = \"financieleSituaties\", ignore = true)\n @Mapping(source = \"aanvraagberichtId\", target = \"aanvraagbericht\")\n FdnAanvrager toEntity(FdnAanvragerDTO fdnAanvragerDTO);\n\n default FdnAanvrager fromId(Long id) {\n if (id == null) {\n return null;\n }\n FdnAanvrager fdnAanvrager = new FdnAanvrager();\n fdnAanvrager.setId(id);\n return fdnAanvrager;\n }\n}", "@DSDerby\n@Repository\npublic interface HillMapper extends BaseMapper<Hill> {\n\n}", "@MapperScan\npublic interface AdminMapper{\n //------------------Add your code here---------------------\n\n //------------------以下代码自动生成-----------------------\n\n /**\n * 根据条件查询全部\n * 参数:\n * map里的key为属性名(字段首字母小写)\n * value为查询的条件,默认为等于\n * 要改动sql请修改 *Mapper 类里的 _query() 方法\n */\n @SelectProvider(type = AdminSql.class,method = \"_queryAll\")\n List<AdminEntity> _queryAll(Map pagerParam);\n\n /**\n * 检验账号密码\n * @param account\n * @param password\n * @return\n */\n @SelectProvider(type = AdminSql.class,method = \"check\")\n List<AdminEntity> check(@Param(\"account\") String account, @Param(\"password\") String password);\n\n /**\n * 按id查询\n * 参数:\n * id : 要查询的记录的id\n */\n @SelectProvider(type = AdminSql.class,method = \"_get\")\n AdminEntity _get(String id);\n\n /**\n * 删除(逻辑)\n * 参数:\n * id : 要删除的记录的id\n */\n @DeleteProvider(type = AdminSql.class,method = \"_delete\")\n int _delete(String id);\n\n /**\n * 删除(物理)\n * 参数:\n * id : 要删除的记录的id\n */\n @DeleteProvider(type = AdminSql.class,method = \"_deleteForce\")\n int _deleteForce(String id);\n\n /**\n * 新增\n * 参数:\n * map里的key为属性名(字段首字母小写)\n * value为要插入的key值\n */\n @InsertProvider(type = AdminSql.class,method = \"_add\")\n int _add(Map params);\n\n /**\n * 按实体类新增\n * 参数:\n * 实体类对象,必须有id属性\n */\n @InsertProvider(type = AdminSql.class,method = \"_addEntity\")\n int _addEntity(AdminEntity bean);\n\n /**\n * 更新\n * 参数:\n * id : 要更新的记录的id\n * 其他map里的参数,key为属性名(字段首字母小写)\n * value为要更新成的值\n */\n @InsertProvider(type = AdminSql.class,method = \"_update\")\n int _update(Map params);\n\n /**\n * 按实体类更新\n * 参数:\n * 实体类对象,必须有id属性\n */\n @InsertProvider(type = AdminSql.class,method = \"_updateEntity\")\n int _updateEntity(AdminEntity bean);\n\n}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface CountryMapper extends EntityMapper<CountryDTO, Country> {\n\n\n @Mapping(target = \"cities\", ignore = true)\n @Mapping(target = \"countryLanguages\", ignore = true)\n Country toEntity(CountryDTO countryDTO);\n\n default Country fromId(Long id) {\n if (id == null) {\n return null;\n }\n Country country = new Country();\n country.setId(id);\n return country;\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}", "public interface AllergyModelProperties extends PropertyAccess<AllergyModel> {\n ModelKeyProvider<AllergyModel> id();\n}", "@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}", "@SuppressWarnings(\"unused\")\n@Repository\n@JaversSpringDataAuditable\npublic interface ReservoirCapacityRepository extends JpaRepository<ReservoirCapacity, Long> {\n\n}", "EntityDefinitionVisitor getEntityDefinitionStateSetterVisitor();", "@Mapper\n@Repository\npublic interface ClientDao {\n\n @Insert(value = \"insert into client_information(phone_number,user_name,password) values (#{phoneNumber},#{userName},#{password})\")\n void addClient(@Param(\"userName\") String userName, @Param(\"phoneNumber\") String phoneNumber , @Param(\"password\") String password);\n\n @Update(value = \"update client_information set sex=#{sex},user_name=#{user_name},email=#{email},\" +\n \"unit=#{unit},place=#{place} where phone_number=#{phone_number}\")\n void updateClient(@Param(\"phone_number\") String phone_number,@Param(\"user_name\") String user_name,@Param(\"sex\") String sex,@Param(\"email\") String email,@Param(\"unit\") String unit,@Param(\"place\") String place);\n\n @Select(value = \"select * from client_information where phone_number=#{phoneNumber}\")\n ClientVO selectClient(String phoneNumber);\n\n @Update(value = \"update client_information set password=#{password} where phone_number=#{phone_number}\")\n void updatePass(@Param(\"phone_number\") String phone_number,@Param(\"password\") String password);\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}", "@Bean\n\t@Lazy(false)\n\tAdditionalModelsConverter additionalModelsConverter() {\n\t\treturn new AdditionalModelsConverter();\n\t}", "@Test\n\tpublic void testSettersAddress() {\n\t\tassertTrue(beanTester.testSetters());\n\t}", "@Test\n\tpublic void testGettersAndSetters() {\n\t\tnew BeanTester().testBean(LeastCommonNodeInput.class, configuration);\n\n\t}", "@Service(name = \"CustomerService\")\n@OpenlegacyDesigntime(editor = \"WebServiceEditor\")\npublic interface CustomerServiceService {\n\n public CustomerServiceOut getCustomerService(CustomerServiceIn customerServiceIn) throws Exception;\n\n @Getter\n @Setter\n public static class CustomerServiceIn {\n \n Integer id3;\n }\n \n @ApiModel(value=\"CustomerServiceOut\", description=\"\")\n @Getter\n @Setter\n public static class CustomerServiceOut {\n \n @ApiModelProperty(value=\"Getuserdetails\")\n Getuserdetails getuserdetails;\n }\n}", "void generateWriteProperty2ContentValues(Builder methodBuilder, String beanName, TypeName beanClass, ModelProperty property);", "public interface SmooksTransformModel extends TransformModel {\n\n /** The \"smooks\" name. */\n public static final String SMOOKS = \"smooks\";\n\n /** The \"config\" name. */\n public static final String CONFIG = \"config\";\n \n /** The \"type\" name. */\n public static final String TYPE = \"type\";\n\n /** The \"reportPath\" name. */\n public static final String REPORT_PATH = \"reportPath\";\n \n /**\n * Gets the type attribute.\n * @return the type attribute\n */\n public String getTransformType();\n\n /**\n * Sets the type attribute.\n * @param type the type attribute\n * @return this SmooksTransformModel (useful for chaining)\n */\n public SmooksTransformModel setTransformType(String type);\n\n /**\n * Gets the config attribute.\n * @return the config attribute\n */\n public String getConfig();\n\n\n /**\n * Sets the config attribute.\n * @param config the config attribute\n * @return this SmooksTransformModel (useful for chaining)\n */\n public SmooksTransformModel setConfig(String config);\n\n /**\n * Gets the reportPath attribute.\n * @return the reportPath attribute\n */\n public String getReportPath();\n\n /**\n * Sets the reportPath attribute.\n * @param reportPath the reportPath attribute\n * @return this SmooksTransformModel (useful for chaining)\n */\n public SmooksTransformModel setReportPath(String reportPath);\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}", "@Bean\n\tpublic ExtendedMetadata extendedMetadata() {\n\t\tExtendedMetadata extendedMetadata = new ExtendedMetadata();\n\t\textendedMetadata.setIdpDiscoveryEnabled(true);\n\t\textendedMetadata.setSignMetadata(false);\n\t\textendedMetadata.setEcpEnabled(true);\n\t\treturn extendedMetadata;\n\t}", "public EntityPropertyBean() {}", "@Mapper\npublic interface SkuMapper {\n\n\n @Select(\"select * from Sku\")\n List<SkuParam> getAll();\n\n @Insert(value = {\"INSERT INTO Sku (skuName,price,categoryId,brandId,description) VALUES (#{skuName},#{price},#{categoryId},#{brandId},#{description})\"})\n @Options(useGeneratedKeys=true, keyProperty=\"skuId\")\n int insertLine(Sku sku);\n\n// @Insert(value = {\"INSERT INTO Sku (categoryId,brandId) VALUES (2,1)\"})\n// @Options(useGeneratedKeys=true, keyProperty=\"SkuId\")\n// int insertLine(Sku sku);\n\n @Delete(value = {\n \"DELETE from Sku WHERE skuId = #{skuId}\"\n })\n int deleteLine(@Param(value = \"skuId\") Long skuId);\n\n// @Insert({\n// \"<script>\",\n// \"INSERT INTO\",\n// \"CategoryAttributeGroup(id,templateId,name,sort,createTime,deleted,updateTime)\",\n// \"<foreach collection='list' item='obj' open='values' separator=',' close=''>\",\n// \" (#{obj.id},#{obj.templateId},#{obj.name},#{obj.sort},#{obj.createTime},#{obj.deleted},#{obj.updateTime})\",\n// \"</foreach>\",\n// \"</script>\"\n// })\n// Integer createCategoryAttributeGroup(List<CategoryAttributeGroup> categoryAttributeGroups);\n\n @Update(\"UPDATE Sku SET skuName = #{skuName} WHERE skuId = #{skuId}\")\n int updateLine(@Param(\"skuId\") Long skuId,@Param(\"skuName\")String skuName);\n\n\n @Select({\n \"<script>\",\n \"SELECT\",\n \"s.SkuName,c.categoryName,s.categoryId,b.brandName,s.price\",\n \"FROM\",\n \"Sku AS s\",\n \"JOIN\",\n \"Category AS c ON s.categoryId = c.categoryId\",\n \"JOIN\",\n \"Brand AS b ON s.brandId = b.brandId\",\n \"WHERE 1=1\",\n //范围查询,根据时间\n \"<if test=\\\" null != higherSkuParam.startTime and null != higherSkuParam.endTime \\\">\",\n \"AND s.updateTime &gt;= #{higherSkuParam.startTime}\",\n \"AND s.updateTime &lt;= #{ higherSkuParam.endTime}\",\n \"</if>\",\n //模糊查询,根据类别\n\n \"<if test=\\\"null != higherSkuParam.categoryName and ''!=higherSkuParam.categoryName\\\">\",\n \" AND c.categoryName LIKE CONCAT('%', #{higherSkuParam.categoryName}, '%')\",\n \"</if>\",\n\n //模糊查询,根据品牌\n\n \"<if test=\\\"null != higherSkuParam.brandName and ''!=higherSkuParam.brandName\\\">\",\n \" AND b.brandName LIKE CONCAT('%', #{higherSkuParam.brandName}, '%')\",\n \"</if>\",\n\n\n //模糊查询,根据商品名字\n \"<if test=\\\"null != higherSkuParam.skuName and ''!=higherSkuParam.skuName\\\">\",\n \" AND s.skuName LIKE CONCAT('%', #{higherSkuParam.skuName}, '%')\",\n \"</if>\",\n\n\n //根据多个类别查询\n \"<if test=\\\" null != higherSkuParam.categoryIds and higherSkuParam.categoryIds.size>0\\\" >\",\n \"AND s.categoryId IN\",\n \"<foreach collection=\\\"higherSkuParam.categoryIds\\\" item=\\\"data\\\" index=\\\"index\\\" open=\\\"(\\\" separator=\\\",\\\" close=\\\")\\\" >\",\n \" #{data} \",\n \"</foreach>\",\n \"</if>\",\n \"</script>\"\n })\n List<HigherSkuDTO> higherSelect(@Param(\"higherSkuParam\")HigherSkuParam higherSkuParam);\n\n\n\n// \"<if test=\\\" null != higherSkuParam.categoryName and ''!=higherSkuParam.categoryName \\\" >\",\n// \" AND c.categoryName LIKE \\\"%#{higherSkuParam.categoryName}%\\\" \",\n// \"</if>\",\n// \"<if test=\\\" null != higherSkuParam.skuName \\\" >\",\n// \"AND s.skuName LIKE \\\"%#{higherSkuParam.skuName}%\\\" \",\n// \"</if>\",\n}", "public void init() {\n entityPropertyBuilders.add(new DefaultEntityComponentBuilder(environment));\n entityPropertyBuilders.add(new FilterTransientFieldComponentBuilder(environment));\n entityPropertyBuilders.add(new MakeAccessibleComponentBuilder(environment));\n entityPropertyBuilders.add(new PrimaryKeyComponentBuilder(environment));\n\n // Field meta property builders\n fieldPropertyBuilders.add(new FilterPrimaryKeyComponentBuilder(environment));\n fieldPropertyBuilders.add(new FilterTransientFieldComponentBuilder(environment));\n fieldPropertyBuilders.add(new MakeAccessibleComponentBuilder(environment));\n fieldPropertyBuilders.add(new TtlFieldComponentBuilder(environment));\n fieldPropertyBuilders.add(new CompositeParentComponentBuilder(environment));\n fieldPropertyBuilders.add(new CollectionFieldComponentBuilder(environment));\n fieldPropertyBuilders.add(new MapFieldComponentBuilder(environment));\n fieldPropertyBuilders.add(new SimpleFieldComponentBuilder(environment));\n }", "public interface GradeMapper {\n @Select(\"select * from grade\")\n public List<Grade> getByGradeNm();\n\n @Insert(\"insert into grade(grade_nm,teacher_id) values(#{gradeNm},#{teacherId})\")\n @Options(useGeneratedKeys=true,keyColumn=\"id\",keyProperty=\"id\")//设置id自增长\n public void save(Grade grade);\n}", "EntityBeanDescriptor createEntityBeanDescriptor();", "@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}", "@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\npublic interface UserMapper {\n /**\n * 功能描述\n * @author xgl\n * @date 2019/12/12\n * @param appUser\n * @return int\n */\n int registerAppUser(AppUser appUser);\n /**\n * 功能描述\n * @author xgl\n * @date 2019/12/12\n * @param baseUser\n * @return int\n */\n int registerBaseUser(BaseUser baseUser);\n /**\n * 功能描述\n * @author xgl\n * @date 2019/12/12\n * @param appUser\n * @return com.example.app.entity.BaseUser\n */\n AppUser loginAppUser(AppUser appUser);\n /**\n * 功能描述\n * @author xgl\n * @date 2019/12/12\n * @param\n * @return java.util.List<com.example.app.entity.College>\n */\n @Select(\"select * from col\")\n List<College> allCollege();\n /**\n * 功能描述\n * @author xgl\n * @date 2019/12/12\n * @param user\n * @return int\n */\n int hasUser(BaseUser user);\n /**\n * 功能描述\n * @author xgl\n * @date 2019/12/12\n * @param col_id\n * @return int\n */\n int hasCol(int col_id);\n /**\n * 功能描述\n * @author xgl\n * @date 2019/12/12\n * @param sms\n * @return int\n */\n int registerCode(SMS sms);\n /**\n * 功能描述\n * @author xgl\n * @date 2019/12/12\n * @param code\n * @return int\n */\n int getCode(@Param(\"code\") Integer code);\n /**\n * 功能描述\n * @author xgl\n * @date 2019/12/12\n * @param order\n * @return int\n */\n int insertOrder(Order order);\n /**\n * 功能描述\n * @author xgl\n * @date 2019/12/12\n * @param order\n * @return int\n */\n int insertOrderCount(Order order);\n\n}", "public interface TdHtFuncroleRelRepository {\n\n /**\n * @Purpose 根据id查找角色id和功能id\n * @version 4.0\n * @author lizhun\n * @param map\n * @return TdHtFuncroleRelDto\n */\n public TdHtFuncroleRelDto findFuncroleRelByRoleIdAndFuncId(Map<String,Integer> map);\n\n /**\n * @Purpose 根据权限id查找角色权限关联信息\n * @version 4.0\n * @author lizhun\n * @param role_id\n * @return List<TdHtFuncroleRelDto>\n */\n public List<TdHtFuncroleRelDto> findFuncroleRelsByRoleId(int role_id);\n /**\n * @Purpose 添加角色权限关联信息\n * @version 4.0\n * @author lizhun\n * @return void\n */\n public void insertFuncroleRel(TdHtFuncroleRelDto TdHtFuncroleRelDto);\n /**\n * @Purpose 修改角色限关联信息\n * @version 4.0\n * @author lizhun\n * @return void\n */\n public void updateFuncroleRel(TdHtFuncroleRelDto TdHtFuncroleRelDto);\n /**\n * @Purpose 修改角色所有功能不可用\n * @version 4.0\n * @author lizhun\n * @return void\n */\n public void updateFuncroleRelByRoleId(int role_id);\n}", "public interface AEntityProperty {\n}", "public interface EntitySource extends IdentifiableTypeSource, ToolingHintContextContainer, EntityNamingSourceContributor {\n\t/**\n\t * Obtain the primary table for this entity.\n\t *\n\t * @return The primary table.\n\t */\n\tpublic TableSpecificationSource getPrimaryTable();\n\n\t/**\n\t * Obtain the secondary tables for this entity\n\t *\n\t * @return returns an iterator over the secondary tables for this entity\n\t */\n\tpublic Map<String,SecondaryTableSource> getSecondaryTableMap();\n\n\tpublic String getXmlNodeName();\n\n\t/**\n\t * Obtain the named custom tuplizer classes to be used.\n\t *\n\t * @return The custom tuplizer class names\n\t */\n\tpublic Map<EntityMode,String> getTuplizerClassMap();\n\n\t/**\n\t * Obtain the name of a custom persister class to be used.\n\t *\n\t * @return The custom persister class name\n\t */\n\tpublic String getCustomPersisterClassName();\n\n\t/**\n\t * Is this entity lazy (proxyable)?\n\t *\n\t * @return {@code true} indicates the entity is lazy; {@code false} non-lazy.\n\t */\n\tpublic boolean isLazy();\n\n\t/**\n\t * For {@link #isLazy() lazy} entities, obtain the interface to use in constructing its proxies.\n\t *\n\t * @return The proxy interface name\n\t */\n\tpublic String getProxy();\n\n\t/**\n\t * Obtain the batch-size to be applied when initializing proxies of this entity.\n\t *\n\t * @return returns the the batch-size.\n\t */\n\tpublic int getBatchSize();\n\n\t/**\n\t * Is the entity abstract?\n\t * <p/>\n\t * The implication is whether the entity maps to a database table.\n\t *\n\t * @return {@code true} indicates the entity is abstract; {@code false} non-abstract; {@code null}\n\t * indicates that a reflection check should be done when building the persister.\n\t */\n\tpublic Boolean isAbstract();\n\n\t/**\n\t * Did the source specify dynamic inserts?\n\t *\n\t * @return {@code true} indicates dynamic inserts will be used; {@code false} otherwise.\n\t */\n\tpublic boolean isDynamicInsert();\n\n\t/**\n\t * Did the source specify dynamic updates?\n\t *\n\t * @return {@code true} indicates dynamic updates will be used; {@code false} otherwise.\n\t */\n\tpublic boolean isDynamicUpdate();\n\n\t/**\n\t * Did the source specify to perform selects to decide whether to perform (detached) updates?\n\t *\n\t * @return {@code true} indicates selects will be done; {@code false} otherwise.\n\t */\n\tpublic boolean isSelectBeforeUpdate();\n\n\t/**\n\t * Obtain the name of a named-query that will be used for loading this entity\n\t *\n\t * @return THe custom loader query name\n\t */\n\tpublic String getCustomLoaderName();\n\n\t/**\n\t * Obtain the custom SQL to be used for inserts for this entity\n\t *\n\t * @return The custom insert SQL\n\t */\n\tpublic CustomSql getCustomSqlInsert();\n\n\t/**\n\t * Obtain the custom SQL to be used for updates for this entity\n\t *\n\t * @return The custom update SQL\n\t */\n\tpublic CustomSql getCustomSqlUpdate();\n\n\t/**\n\t * Obtain the custom SQL to be used for deletes for this entity\n\t *\n\t * @return The custom delete SQL\n\t */\n\tpublic CustomSql getCustomSqlDelete();\n\n\t/**\n\t * Obtain any additional table names on which to synchronize (auto flushing) this entity.\n\t *\n\t * @return Additional synchronized table names or 0 sized String array, never return null.\n\t */\n\tpublic String[] getSynchronizedTableNames();\n\n\t/**\n\t * Get the actual discriminator value in case of a single table inheritance\n\t *\n\t * @return the actual discriminator value in case of a single table inheritance or {@code null} in case there is no\n\t * explicit value or a different inheritance scheme\n\t */\n\tpublic String getDiscriminatorMatchValue();\n\n\t/**\n\t * @return returns the source information for constraints defined on the table\n\t */\n\tpublic Collection<ConstraintSource> getConstraints();\n\n\t/**\n\t * Obtain the filters for this entity.\n\t *\n\t * @return returns an array of the filters for this entity.\n\t */\n\tpublic FilterSource[] getFilterSources();\n\n\tpublic List<JaxbHbmNamedQueryType> getNamedQueries();\n\n\tpublic List<JaxbHbmNamedNativeQueryType> getNamedNativeQueries();\n\n\tpublic TruthValue quoteIdentifiersLocalToEntity();\n\n}", "@Override\r\n public void createNewEntity(String entityName) {\n\r\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}", "@Test\n\tpublic void testGettersAddress() {\n\t\tassertTrue(beanTester.testGetters());\n\t}", "public interface EmployeeRepository extends ArangoRepository<Employee, String> {}", "@Api(tags = \"Address Entity\")\n@RepositoryRestResource(collectionResourceRel = \"taxInformation\", path =\"taxInformation\")\npublic interface TaxInformationRepository extends PagingAndSortingRepository<TaxInformation,Integer> {\n}", "@Mapper\n@Repository\npublic interface StockMapper {\n\n @Insert(\"insert into product_stock(valued,product_id) values(#{valued},#{product_id})\")\n public void insertProductStock(ProductStock ProductStock);\n @Update(\"update product_stock set valued=#{valued},product_id=#{product_id} where id=#{id}\")\n public void updateProductStock(ProductStock ProductStock);\n @Delete(\"delete from product_stock where id=#{id}\")\n public void deleteProductStock(Integer id);\n @Select(\"select * from product_stock\")\n public List<ProductStock> selectAll();\n @Select(\"select * from product_stock where id=#{id}\")\n ProductStock selectById(Integer id);\n @Select(\"select * from product_stock where product_id=#{id}\")\n ProductStock findStockByProductId(Integer id);\n}", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface TemplateFormulaireMapper extends EntityMapper<TemplateFormulaireDTO, TemplateFormulaire> {\n\n\n @Mapping(target = \"questions\", ignore = true)\n TemplateFormulaire toEntity(TemplateFormulaireDTO templateFormulaireDTO);\n\n default TemplateFormulaire fromId(Long id) {\n if (id == null) {\n return null;\n }\n TemplateFormulaire templateFormulaire = new TemplateFormulaire();\n templateFormulaire.setId(id);\n return templateFormulaire;\n }\n}", "public void setupEntities() {\n }", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface OrderPaymentMapper extends EntityMapper<OrderPaymentDTO, OrderPayment> {\n\n\n\n default OrderPayment fromId(Long id) {\n if (id == null) {\n return null;\n }\n OrderPayment orderPayment = new OrderPayment();\n orderPayment.setId(id);\n return orderPayment;\n }\n}", "@Test\n\tpublic void testGettersAndSetters() {\n\t\tnew BeanTester().testBean(ShortestPathOutput.class, configuration);\n\t}", "@Repository\n@Mapper\npublic interface AppInfoMapper extends BaseMapper<AppInfoEntity> {\n}", "public interface LevelClearRecordService {\n\n /**\n * description: 根据传入bean查询挑战记录 <br>\n * version: 1.0 <br>\n * date: 2020/3/21 23:34 <br>\n * author: zhengzhiqiang <br>\n *\n * @param selectParam\n * @return siyi.game.dao.entity.LevelClearRecord\n */\n LevelClearRecord selectByBean(LevelClearRecord selectParam);\n\n /**\n * description: 插入挑战记录信息 <br>\n * version: 1.0 <br>\n * date: 2020/3/21 23:37 <br>\n * author: zhengzhiqiang <br>\n *\n * @param insertRecord\n * @return void\n */\n void insertSelective(LevelClearRecord insertRecord);\n\n /**\n * description: 根据主键更新挑战记录信息 <br>\n * version: 1.0 <br>\n * date: 2020/3/21 23:39 <br>\n * author: zhengzhiqiang <br>\n *\n * @param levelClearRecord\n * @return void\n */\n void updateByIdSelective(LevelClearRecord levelClearRecord);\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}", "public interface HealthBlockRecordsDataService extends MotechDataService<HealthBlock> {\n\n /**\n * finds the Health Block details by its parent code\n *\n * @param stateCode\n * @param districtCode\n * @param talukaCode\n * @param healthBlockCode\n * @return HealthBlock\n */\n @Lookup\n HealthBlock findHealthBlockByParentCode(@LookupField(name = \"stateCode\") Long stateCode, @LookupField(name = \"districtCode\") Long districtCode,\n @LookupField(name = \"talukaCode\") Long talukaCode, @LookupField(name = \"healthBlockCode\") Long healthBlockCode);\n\n}", "@Override\n public void loadEntityDetails() {\n \tsuper.loadEntityDetails();\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}", "@Override\n public Entity getEntity() {\n return super.getEntity();\n }", "public interface ApiBaseUserRolePostSwitchPoService extends feihua.jdbc.api.service.ApiBaseService<BaseUserRolePostSwitchPo, BaseUserRolePostSwitchDto, String> {\n\n /**\n * 根据用户查询\n * @param userId\n * @return\n */\n BaseUserRolePostSwitchPo selectByUserId(String userId);\n}", "@JsonGetter(\"price_money\")\r\n public Money getPriceMoney() {\r\n return priceMoney;\r\n }", "public interface BaseService<Kiruvchi, Chiquvchi, ID> {\n\n //Create Entity\n ApiResponse addEntity(Kiruvchi kiruvchi);\n\n //Get Page<Entity>\n Page<Chiquvchi> getEntiyPageBySort(Optional<Integer> page, Optional<Integer> size, Optional<String> sortBy);\n\n //Get by id Optional<Entity> Sababi Http Status kodini tog'ri jo'natish uchun\n Optional<Chiquvchi> getEntityById(ID id);\n\n //Update Entity by id\n ApiResponse editState(ID id, Kiruvchi kiruvchi);\n\n //Delete Entity by id\n ApiResponse deleteEntityById(Integer id);\n}", "@Override\n protected JsonUtil getJsonUtil() {\n return super.getJsonUtil();\n }", "public interface ApplyOrderMapper extends CrudRepository<OrderEntity, Long> {\n}", "@Mapper(componentModel = \"spring\", uses = {UserMapper.class, CustomerMapper.class})\npublic interface WorkDayMapper extends EntityMapper<WorkDayDTO, WorkDay> {\n\n @Mapping(source = \"user.id\", target = \"userId\")\n @Mapping(source = \"user.login\", target = \"userLogin\")\n @Mapping(source = \"customer.id\", target = \"customerId\")\n WorkDayDTO toDto(WorkDay workDay);\n\n @Mapping(source = \"userId\", target = \"user\")\n @Mapping(source = \"customerId\", target = \"customer\")\n WorkDay toEntity(WorkDayDTO workDayDTO);\n\n default WorkDay fromId(Long id) {\n if (id == null) {\n return null;\n }\n WorkDay workDay = new WorkDay();\n workDay.setId(id);\n return workDay;\n }\n}", "@Mapper\npublic interface BCategoriesMapper {\n\n @Select(\"select * from t_categories\")\n List<CategoriesPo> findAll();\n\n @Select(\"select id,categoriesName,cAbbreviate from t_categories where id=#{id}\")\n CategoriesPo getById(@Param(\"id\") int id);\n\n @Insert(\"insert ignore into t_categories(categoriesName,cAbbreviate) values(#{categoriesName},#{cAbbreviate})\")\n boolean save(@Param(\"categoriesName\") String categoriesName, @Param(\"cAbbreviate\") String cAbbreviate);\n\n @Update(\"update t_categories set categoriesName=#{categoriesName},cAbbreviate=#{cAbbreviate} where id=#{id}\")\n boolean edit(@Param(\"id\") int id, @Param(\"categoriesName\") String categoriesName, @Param(\"cAbbreviate\") String cAbbreviate);\n\n @Delete(\"delete from t_categories where id=#{id}\")\n boolean deleteById(@Param(\"id\") int id);\n}", "@RepositoryRestResource\npublic interface WebsiteRepository extends JpaRepository<WebsiteEntity, Long> {\n\n}", "@FameProperty(name = \"accessors\", derived = true)\n public Collection<TWithAccesses> getAccessors() {\n throw new UnsupportedOperationException(\"Not yet implemented!\"); \n }", "@JsonGetter(\"product_details\")\n public ProductData getProductDetails ( ) { \n return this.productDetails;\n }", "@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}", "@Repository(\"productTypeMapper\")\npublic interface ProductTypeMapper extends CommonMapper<ProductTypeInfo> {\n}", "@JsonIgnoreProperties({\"ezdUmg\"})\npublic interface BigretUsersFilter {\n}", "@Override\n public void updateClassDescriptor(ClassDescriptor desc) {\n desc.getters = List.of();\n desc.setters = List.of();\n\n for (Iterator<Binding> iterator = desc.fields.iterator(); iterator.hasNext(); ) {\n Binding binding = iterator.next();\n \n if (!Modifier.isPublic(binding.field.getModifiers())) {\n iterator.remove();\n } else {\n Property property = getProperty(binding.annotations);\n if (property != null) {\n binding.fromNames = new String[]{property.name()};\n binding.toNames = new String[]{property.name()};\n } else {\n iterator.remove();\n }\n }\n }\n }", "@SuppressWarnings(\"deprecation\")\npublic interface SyntheticModelProviderPlugin extends Plugin<ModelContext> {\n /**\n * Creates a synthetic model\n *\n * @param context - context to create the model from\n * @return model - when the plugin indicates it supports it, it must return a model\n */\n springfox.documentation.schema.Model create(ModelContext context);\n\n /**\n * Creates a synthetic model properties\n *\n * @param context - context to create the model properties from\n * @return model - when the plugin indicates it supports it, it must provide properties by name\n */\n List<springfox.documentation.schema.ModelProperty> properties(ModelContext context);\n\n\n /**\n * Creates a synthetic model\n *\n * @param context - context to create the model from\n * @return model - when the plugin indicates it supports it, it must return a model\n */\n ModelSpecification createModelSpecification(ModelContext context);\n\n /**\n * Creates a synthetic model properties\n *\n * @param context - context to create the model properties from\n * @return model - when the plugin indicates it supports it, it must provide properties by name\n */\n List<PropertySpecification> propertySpecifications(ModelContext context);\n\n /**\n * Creates a dependencies for the synthetic model\n *\n * @param context - context to create the model dependencies from\n * @return model - when the plugin indicates it supports it, it may return dependent model types.\n */\n Set<ResolvedType> dependencies(ModelContext context);\n}", "@Bean\n public ModelMapper modelMapper() {\n ModelMapper mapper = new ModelMapper();\n\n mapper.addMappings(new PropertyMap<Permit, PermitDto>() {\n @Override\n protected void configure() {\n Converter<List<Code>, List<Integer>> codeConverter = mappingContext -> {\n List<Integer> result = new ArrayList<>();\n mappingContext.getSource().forEach(code -> result.add(code.getId()));\n return result;\n };\n\n using(codeConverter).map(source.getCodes()).setCodeIds(null);\n }\n });\n return mapper;\n }", "@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}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface ChipsAdminRepository extends JpaRepository<ChipsAdmin, Long> {}", "@Bean\n public ExtendedMetadata extendedMetadata() {\n return new ExtendedMetadata();\n }", "@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}", "@Override\n public CalificacionEntity toEntity() {\n CalificacionEntity calificacionEntity = super.toEntity();\n if (this.getHospedaje() != null) {\n calificacionEntity.setHospedaje(this.getHospedaje().toEntity());\n }\n return calificacionEntity;\n }" ]
[ "0.6329455", "0.610891", "0.5659298", "0.5650563", "0.55329704", "0.54645276", "0.5463555", "0.5449493", "0.54340285", "0.5415549", "0.5387973", "0.5379287", "0.5350966", "0.5341474", "0.5335219", "0.53296864", "0.53243345", "0.5322623", "0.5316597", "0.53026056", "0.5292526", "0.5278104", "0.52696973", "0.5264438", "0.524272", "0.5240863", "0.52405816", "0.52257204", "0.5225502", "0.5208189", "0.52035034", "0.51993555", "0.5196327", "0.5194019", "0.5185534", "0.51771927", "0.5171068", "0.516729", "0.5162768", "0.51577497", "0.51561534", "0.51497084", "0.5146936", "0.514425", "0.5140919", "0.51308364", "0.5126797", "0.51247585", "0.5123248", "0.51213336", "0.5113321", "0.5104318", "0.5101503", "0.50969326", "0.5094136", "0.5092239", "0.5091498", "0.50900376", "0.5073529", "0.5070525", "0.50615615", "0.505554", "0.50524414", "0.5051104", "0.50489044", "0.50464475", "0.5037615", "0.50371265", "0.50358605", "0.5028557", "0.502739", "0.5024667", "0.50235677", "0.50204575", "0.5018744", "0.5012904", "0.50124973", "0.5011896", "0.50115806", "0.50001645", "0.49940118", "0.49915367", "0.4983942", "0.49834493", "0.49810436", "0.49796236", "0.49772877", "0.49766958", "0.497276", "0.4970099", "0.49680746", "0.49680606", "0.4965675", "0.49653903", "0.4965101", "0.49640384", "0.49639958", "0.49599823", "0.49560654", "0.49502972", "0.4948193" ]
0.0
-1
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
public void dispose(GLAutoDrawable glad) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void habilitar() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "@Override\r\n\t\tpublic void action()\r\n\t\t{\r\n// throw new UnsupportedOperationException(\"Not supported yet.\");\r\n\t\t}", "public void remove()\n/* */ {\n/* 99 */ throw new UnsupportedOperationException();\n/* */ }", "public void remove()\n/* */ {\n/* 110 */ throw new UnsupportedOperationException();\n/* */ }", "@Override\n public boolean isSupported() {\n return true;\n }", "@Override\n public String toString() {\n throw new UnsupportedOperationException(\"implement me!\");\n }", "private void cargartabla() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "private void HargaKamera() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "@Override\n public void remove() {\n throw new UnsupportedOperationException(); \n }", "@Override\r\npublic int method() {\n\treturn 0;\r\n}", "@Override\n\tpublic void remove() {\n\t\tthrow new UnsupportedOperationException();\t\t\n\t}", "@Override\n\tpublic void remove() {\n\t\tthrow new UnsupportedOperationException();\t\t\n\t}", "@Override\n public boolean isSupported() {\n return true;\n }", "private static UnsupportedOperationException getModificationUnsupportedException()\n {\n throw new UnsupportedOperationException(\"Illegal operation. Specified list is unmodifiable.\");\n }", "@Override\r\n public void remove() throws UnsupportedOperationException {\r\n throw new UnsupportedOperationException(\"Me ei poisteta\");\r\n }", "Boolean mo1305n() {\n throw new UnsupportedOperationException(getClass().getSimpleName());\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "public boolean isEnabled() {\n/* 945 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Override\r\n\t\t\tpublic void remove() {\r\n\t\t\t\tthrow new UnsupportedOperationException();\r\n\t\t\t}", "@Override\r\n\t\tpublic void remove() {\r\n\t\t\tthrow new UnsupportedOperationException();\r\n\t\t}", "void Salvar(String nome) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "protected void input_back(){\n throw new UnsupportedOperationException();\n }", "@Override\n\tpublic void remove() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "public UnsupportedCycOperationException() {\n super();\n }", "public int getListSelection() {\n/* 515 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public void remove(){\r\n\t\t\tthrow new UnsupportedOperationException();\r\n\t\t}", "@SuppressWarnings(\"static-method\")\n\tpublic void open() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "@Override\n\t\t\tpublic void remove() {\n\t\t\t\tthrow new UnsupportedOperationException();\n\t\t\t}", "@Override\n public void remove() {\n throw new UnsupportedOperationException();\n }", "@Override\n public void remove() {\n throw new UnsupportedOperationException();\n }", "@Override\n public void remove() {\n throw new UnsupportedOperationException();\n }", "private void atualizar_tbl_pro_profs() {\n throw new UnsupportedOperationException(\"Not supported yet.\");\n//To change body of generated methods, choose Tools | Templates.\n }", "@Override\n\t/**\n\t * feature is not supported\n\t */\n\tpublic void remove() {\n\t}", "@Override\n public void remove() {\n throw new UnsupportedOperationException();\n }", "@Override\n public void remove() {\n throw new UnsupportedOperationException();\n }", "public void remove() throws UnsupportedOperationException {\n\t\t\tthrow new UnsupportedOperationException(\"Myö ei poisteta\");\n\t\t}", "private String printStackTrace() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "@Override\n public void makeVisible() {\n throw new UnsupportedOperationException(\"operation not supported\");\n }", "public void _reportUnsupportedOperation() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"Operation not supported by parser of type \");\n sb.append(getClass().getName());\n throw new UnsupportedOperationException(sb.toString());\n }", "@Override\r\n public void actionPerformed(ActionEvent e) {\r\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\r\n }", "public void remove() {\r\n \r\n throw new UnsupportedOperationException();\r\n }", "public void showDropDown() {\n/* 592 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public void remove() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "public void remove() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "public int zzef() {\n throw new UnsupportedOperationException();\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n public String toString() {\n throw new UnsupportedOperationException();\n //TODO: Complete this method!\n }", "@Override\n public void refresh() {\n throw new UnsupportedOperationException(\"operation not supported\");\n }", "@Override\npublic boolean isEnabled() {\n\treturn false;\n}", "@Override\n public String writeToString() {\n throw new UnsupportedOperationException();\n }", "public boolean isImportantForAccessibility() {\n/* 1302 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "private String getText() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "@Deprecated\n/* */ public int getActions() {\n/* 289 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Override\n\tprotected Object clone() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "public String getDisplayVariant() {\n/* 656 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Override\n public boolean getObsolete()\n {\n return false;\n }", "@Override\n public void close() {\n throw new UnsupportedOperationException(\"Not supported yet.\");\n }", "public String getName() {\n/* 341 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Override\npublic boolean isEnabled() {\n\treturn true;\n}", "public int mo1265e() {\n throw new UnsupportedOperationException(getClass().getSimpleName());\n }", "public MissingMethodArgumentException() {\n }", "public ListAdapter getAdapter() {\n/* 431 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public CollectionItemInfo getCollectionItemInfo() {\n/* 1114 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Override\n public void cancel() {\n throw new UnsupportedOperationException();\n }", "public CharSequence getContentDescription() {\n/* 1531 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public void remove() {\n throw new UnsupportedOperationException();\r\n }", "@Override\n public final void remove() {\n throw new UnsupportedOperationException();\n }", "public void remove() {\n throw new UnsupportedOperationException();\n }", "public void remove() {\n throw new UnsupportedOperationException();\n }", "public void remove() {\r\n throw new UnsupportedOperationException();\r\n }", "private ExampleVersion() {\n throw new UnsupportedOperationException(\"Illegal constructor call.\");\n }", "public void remove() throws UnsupportedOperationException {\n\t\t\tthrow new UnsupportedOperationException( \"remove() Not implemented.\" );\n\t\t}", "public boolean isSelected() {\n/* 3021 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "private void chk() {\n if (clist != null)\n throw new UnsupportedOperationException();\n }", "public void remove() {\n\t\t\tthrow new UnsupportedOperationException();\n\t\t}", "@Override\n\tpublic void e() {\n\n\t}", "public boolean isEditable() {\n/* 1014 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Override\n\tpublic int method() {\n\t\treturn 0;\n\t}", "private void m50366E() {\n }", "@Deprecated\n\tprivate void oldCode()\n\t{\n\t}", "public boolean mo1266f() {\n throw new UnsupportedOperationException(getClass().getSimpleName());\n }", "public void remove() {\n throw new UnsupportedOperationException();\n }", "@Override\n public void actionPerformed(ActionEvent ae) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "private void someUtilityMethod() {\n }", "private void someUtilityMethod() {\n }", "public void remove() {\n throw new UnsupportedOperationException();\n }", "public void remove() {\n throw new UnsupportedOperationException();\n }", "private CollectionUtils() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "default boolean isDeprecated() {\n return false;\n }", "public String formNotImplemented()\r\n {\r\n return formError(\"501 Method not implemented\",\"Service not implemented, programer was lazy\");\r\n }", "@Override\n\tpublic String getMoreInformation() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "public void m23075a() {\n }", "private void setText() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "@Override\n\tpublic void dosomething() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "public int getObjectPropCode() {\n/* 108 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public void toggle() {\n/* 135 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public String getSuggestSelection() {\n/* 113 */ throw new RuntimeException(\"Stub!\");\n/* */ }" ]
[ "0.7744652", "0.73749053", "0.6966527", "0.6909395", "0.67964953", "0.6773559", "0.6771067", "0.6654384", "0.66389716", "0.6624263", "0.6609339", "0.6609339", "0.65914184", "0.6586954", "0.6555998", "0.6499744", "0.6462636", "0.64495736", "0.64296776", "0.6419897", "0.6382666", "0.63818693", "0.63796616", "0.63749474", "0.6362977", "0.636036", "0.63596714", "0.6353923", "0.6334584", "0.6334584", "0.6334584", "0.6330838", "0.6324835", "0.6323451", "0.6323451", "0.63148075", "0.629012", "0.6280384", "0.6277155", "0.6273978", "0.62646115", "0.6245552", "0.62258106", "0.62258106", "0.6219513", "0.6203273", "0.62024796", "0.6200088", "0.6199513", "0.61933196", "0.61925113", "0.6179876", "0.6179876", "0.616379", "0.6162549", "0.6161032", "0.6143854", "0.6126567", "0.6125385", "0.6122703", "0.61223984", "0.6113832", "0.61117774", "0.610708", "0.61012566", "0.6090525", "0.60898113", "0.60887575", "0.6087027", "0.60860145", "0.60860145", "0.60802037", "0.60587925", "0.60574937", "0.6048819", "0.60460234", "0.60427284", "0.6024831", "0.6021711", "0.60165054", "0.60164917", "0.60145986", "0.6008991", "0.6007108", "0.5997761", "0.5995581", "0.59879506", "0.59879506", "0.5985853", "0.5985853", "0.59836394", "0.5981447", "0.5977667", "0.5969774", "0.59676147", "0.59659356", "0.59650296", "0.5964039", "0.5955716", "0.59521776", "0.59496826" ]
0.0
-1
TODO Autogenerated method stub
@Override public int describeContents() { return 0; }
{ "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 Autogenerated method stub
@Override public void writeToParcel(Parcel dest, int flags) { dest.writeString(ID); dest.writeString(Title); dest.writeString(More); dest.writeString(Tag); dest.writeString(PosterUrl); dest.writeString(VideoUrl); dest.writeString(Director); dest.writeString(Actor); dest.writeString(Grade); dest.writeString(Contents); dest.writeString(RunningTime); dest.writeString(HD); dest.writeString(Price); }
{ "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
Create topic with 1 partition to control who is active and standby
@Before public void setUp() { topic = USER_TOPIC + KsqlIdentifierTestUtil.uniqueIdentifierName(); TEST_HARNESS.ensureTopics(1, topic); TEST_HARNESS.produceRows( topic, USER_PROVIDER, FormatFactory.KAFKA, FormatFactory.JSON, timestampSupplier::getAndIncrement ); //Create stream makeAdminRequest( REST_APP_0, "CREATE STREAM " + USERS_STREAM + " (" + USER_PROVIDER.ksqlSchemaString(false) + ")" + " WITH (" + " kafka_topic='" + topic + "', " + " value_format='JSON');" ); //Create table output = KsqlIdentifierTestUtil.uniqueIdentifierName(); sql = "SELECT * FROM " + output + " WHERE USERID = '" + KEY + "';"; sqlMultipleKeys = "SELECT * FROM " + output + " WHERE USERID IN ('" + KEY + "', '" + KEY1 + "');"; List<KsqlEntity> res = makeAdminRequestWithResponse( REST_APP_0, "CREATE TABLE " + output + " AS" + " SELECT " + USER_PROVIDER.key() + ", COUNT(1) AS COUNT FROM " + USERS_STREAM + " GROUP BY " + USER_PROVIDER.key() + ";" ); queryId = extractQueryId(res.get(0).toString()); queryId = queryId.substring(0, queryId.length() - 1); waitForTableRows(); waitForStreamsMetadataToInitialize( REST_APP_0, ImmutableList.of(HOST0, HOST1, HOST2), queryId); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void createTopic(String topic) {\n\n\t}", "@Override\n public void createPartition(Partition partition) {\n \n }", "public void createPartition(int nPid);", "public String createTopic(String topicName) throws Exception{\r\n\r\n\t\tpropTopic.put(\"bootstrap.servers\", config.getProperty(\"bootstrap.servers\"));\r\n\t\tpropTopic.put(\"group.id\", config.getProperty(\"group.id\"));\r\n\t\tpropTopic.put(\"key.deserializer\", \"org.apache.kafka.common.serialization.StringDeserializer\");\r\n\t\tpropTopic.put(\"value.deserializer\", \"org.apache.kafka.common.serialization.StringDeserializer\");\r\n\r\n\t\tif(getTopic(topicName)){\r\n\t\t\tSystem.out.println(\"Topic \"+topicName +\" already exists!!\");\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t\telse{\r\n\t\t\tSystem.out.println(\"Creating Topic : \"+topicName);\r\n\t\t\t\r\n\t\t\tAdminClient adminClient = AdminClient.create(prop);\r\n\t\t\tNewTopic newTopic = new NewTopic(topicName, 1, (short)1);\r\n\r\n\t\t\tList<NewTopic> newTopics = new ArrayList<NewTopic>();\r\n\t\t\tnewTopics.add(newTopic);\r\n\r\n\t\t\tadminClient.createTopics(newTopics);\r\n\t\t\tadminClient.close();\r\n\t\t}\r\n\t\t\r\n\t\treturn topicName;\r\n\t}", "private void createTopic(String topicName) {\r\n\t\tArrayList<Integer> socketNumbers = new ArrayList<Integer>();\r\n\t\tsubscriberMap.put(topicName, socketNumbers);\r\n\t\ttopicNumbers.put(topicNumbers.size(), topicName);\r\n\t\tterminal.println(\"Topic \" + topicName + \" was created.\");\r\n\t}", "public void createNewTopic() {\n try {\n forumService.createNewTopic(\n newTopicName.trim(),\n TopicCategory.OTHER,\n currentUser,\n cloudOfTopic);\n } catch (Exception e) {\n logger.error(ExceptionUtils.getStackTrace(e));\n }\n newTopicName = \"\";\n refreshForumState();\n }", "public void createTopics(String[] topics) {\n\n\t}", "public PathElementIF createTopic(String type, String id);", "VoteTopic createVoteTopic(VoteTopic topic, String userId);", "@Override\n\t\t\t\tpublic void addTopic(String topic) {\n\t\t\t\t\t\tsendData(\"<new><name>\" + topic +\"</name></new>\");\n\t\t\t\t}", "public Topic createTopic(@NonNull final String topicName){\n Topic topic = new Topic(topicName, UUID.randomUUID().toString());\n TopicHandler topicHandler = new TopicHandler(topic);\n topic_Handler_Map.put(topic.getTopicId(), topicHandler);\n System.out.println(\"Created Topic:\"+topic.getTopicName());\n return topic;\n }", "void setTopic(String topic);", "WithPartitionsAndCreate withStandardSku();", "TopicMessageStore createTopicMessageStore(ActiveMQTopic destination) throws IOException;", "public void setTopic(Topic topic) {\n this.topic = topic;\n }", "public void setTopic( String topic ) {\n this.topic = topic;\n }", "WithCreate withPartnerTopicFriendlyDescription(String partnerTopicFriendlyDescription);", "String getNewTopic();", "MemoryPartition createMemoryPartition();", "public void setTopic(String topic) {\n this.topic = topic;\n }", "public TopicImpl() {\n\n super(false); // don't generate UUID\n }", "PartnerTopicReadinessState partnerTopicReadinessState();", "public Builder setTopic(long value) {\n \n topic_ = value;\n onChanged();\n return this;\n }", "public TopicResourceInner withEnablePartitioning(Boolean enablePartitioning) {\n this.enablePartitioning = enablePartitioning;\n return this;\n }", "@ServiceMethod(returns = ReturnType.SINGLE)\n SystemTopicInner createOrUpdate(String resourceGroupName, String systemTopicName, SystemTopicInner systemTopicInfo);", "@ServiceMethod(returns = ReturnType.SINGLE)\n SystemTopicInner createOrUpdate(\n String resourceGroupName, String systemTopicName, SystemTopicInner systemTopicInfo, Context context);", "public boolean isCreationOfNewTopicAllowed() {\n return !(currentUser == null\n || currentUser.isPublicAccount());\n }", "private TopicAndPartition parseTopicPartitionName(String name) {\n int index = name.lastIndexOf('-');\n return new TopicAndPartition(name.substring(0, index), Integer.parseInt(name.substring(index + 1)));\n }", "protected TranslatedTopicWrapper createTranslatedTopic(final DataProviderFactory providerFactory, final TopicWrapper topic) {\n final TranslatedTopicWrapper translatedTopic = providerFactory.getProvider(TranslatedTopicProvider.class).newTranslatedTopic();\n translatedTopic.setLocale(topic.getLocale());\n translatedTopic.setTranslationPercentage(100);\n translatedTopic.setTopicId(topic.getId());\n translatedTopic.setTopicRevision(topic.getRevision());\n translatedTopic.setXml(topic.getXml());\n translatedTopic.setHtml(topic.getHtml());\n translatedTopic.setHtmlUpdated(new Date());\n return translatedTopic;\n }", "public Builder setTopic(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n topic_ = value;\n onChanged();\n return this;\n }", "boolean newTopicStatus(TopicStatusRequest request);", "void setHAPartition(HAPartition clusterPartition);", "@Override\n\tpublic boolean startPublishingOnTopic(Date StartTime, String Topic) {\n\t\treturn false;\n\t}", "public void setTopic(String topic) {\n\t\tthis.topic = topic;\n\t}", "public void setTopic(String topic) {\n\t\tthis.topic = topic;\n\t}", "@Override\n public void publish(String data, String topicName,String topicType) {\n Map<Integer, List<KafkaTopic>> kafkaTopicsByPartitionMap = getPerPartitionKafkaTopicList(0, 1,\"0\");\n for (Map.Entry<Integer, List<KafkaTopic>> entry : kafkaTopicsByPartitionMap.entrySet()) {\n List<KafkaTopic> kafkaTopicList= entry.getValue();\n for (KafkaTopic kafkaTopic : kafkaTopicList){\n if(kafkaTopic.getTopicName().equalsIgnoreCase(topicName)){\n new KafkaProducerClient(data, topicName,topicType, kafkaTopic.getPartitionId()).publishToKafkaTopic();\n return;\n }\n }\n }\n }", "@Bean\n Exchange topicExchange() {\n return new TopicExchange(CUSTOMER_TOPIC_EXCHANGE,\n true,\n false,\n Collections.emptyMap());\n }", "public interface Partitioner {\n\n Set<String> getPartitions();\n\n String getNextObjectName(String topic, String previousObject);\n\n boolean shouldReconfigure();\n\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}", "CompletableFuture<DataDestination> provision(String topicName);", "public Topic(String name)\r\n {\r\n this.name = name;\r\n }", "void to(String topic);", "public Topic (String name) {\n this.name = name;\n }", "public Subscriber createHierarchicalTopicSubscriber(String topicName) {\n validateTopicName(topicName, true);\n String target = String.format(\"%s.%s\", endpointId, topicName);\n CAMQPEndpointPolicy endpointPolicy = new CAMQPEndpointPolicy();\n endpointPolicy.setEndpointType(EndpointType.TOPIC);\n endpointPolicy.setTopicRouterType(TopicRouterType.Hierarchical);\n CAMQPTargetInterface receiver = CAMQPEndpointManager.createTarget(session, topicName, target, endpointPolicy);\n return new Subscriber(target, receiver);\n }", "protected boolean isTopicSupported(String topic)\n {\n return true;\n }", "public void putTopic(Topic topic) {\n\t\ttopics.add(topic) ;\n\t}", "@Override\n\tpublic void publishTopic(Node node) {\n\t\t\n\t}", "@Test\n public void testTopicCluster() throws InterruptedException {\n String topicName = \"TestMessages\" + generateRandomString(5);\n Config cfg = new Config();\n\n TestHazelcastInstanceFactory factory = createHazelcastInstanceFactory(2);\n HazelcastInstance[] instances = factory.newInstances(cfg);\n HazelcastInstance instance1 = instances[0];\n HazelcastInstance instance2 = instances[1];\n\n ITopic<String> topic1 = instance1.getTopic(topicName);\n final CountDownLatch latch1 = new CountDownLatch(1);\n final String message = \"Test\" + randomString();\n\n topic1.addMessageListener(new MessageListener<String>() {\n public void onMessage(Message msg) {\n assertEquals(message, msg.getMessageObject());\n latch1.countDown();\n }\n });\n\n ITopic<String> topic2 = instance2.getTopic(topicName);\n final CountDownLatch latch2 = new CountDownLatch(2);\n topic2.addMessageListener(new MessageListener<String>() {\n public void onMessage(Message msg) {\n assertEquals(message, msg.getMessageObject());\n latch2.countDown();\n }\n });\n\n topic1.publish(message);\n assertOpenEventually(latch1);\n\n instance1.shutdown();\n topic2.publish(message);\n assertOpenEventually(latch2);\n }", "@Override\r\n\tpublic int addTopic(String name) throws SQLException {\n\t\tString sql = \"insert into topic(tname) values(?) \";\r\n\t\t\r\n\t\tint excuteUpdate = excuteUpdate(sql, name);\r\n\t\t\r\n\t\treturn excuteUpdate;\r\n\t\t\r\n\t\t\r\n\t}", "void acknowledge(String topicName, int partition, long offset) throws IOException;", "protected void constructPartitions( Callback c, List nodes, int level ){\n //we want to ignore the dummy node partition\n String id = getPartitionID( mCurrentDepth );\n Partition p = new Partition( nodes, id );\n p.setIndex( mCurrentDepth );\n\n p.constructPartition();\n mLogger.log( \"Partition \" + p.getID() + \" is :\" + p.getNodeIDs(),\n LogManager.DEBUG_MESSAGE_LEVEL );\n c.cbPartition( p );\n\n }", "public boolean createPartition(int pId) throws IOException {\n return TFS.createFile(RAW_TABLE.getPath() + Constants.PATH_SEPARATOR + \n MasterInfo.COL + COLUMN_INDEX + Constants.PATH_SEPARATOR + pId) > 0;\n }", "public Topic createTopicIfNotExists(ProjectTopicName topicName) {\n Topic topic = null;\n try {\n topic = adminClient.createTopic(topicName);\n log.info(\"Created topic {} for project {}\", topicName.getTopic(), topicName.getProject());\n } catch (ApiException e) {\n if (e.getStatusCode().getCode() != StatusCode.Code.ALREADY_EXISTS) {\n throw new RuntimeException(String.format(\"Error creating topic %s in project %s. Status code: %s. \"\n + \"IsRetryable: %s\",\n topicName.getTopic(),\n topicName.getProject(),\n e.getStatusCode().getCode(),\n e.isRetryable()));\n } else {\n log.info(\"Topic {} already exists in project {}\", topicName.getTopic(), topicName.getProject());\n }\n } catch (Exception e) {\n throw new RuntimeException(String.format(\"Error creating topic %s in project %s\",\n topicName.getTopic(),\n topicName.getProject()), e);\n }\n return topic;\n }", "public Builder setIsPartitionKey(boolean value) {\n\n isPartitionKey_ = value;\n onChanged();\n return this;\n }", "public static final String getTopicTableCreationSQL(String shortname) {\r\n\t\tString crTopicTableSQL = \"CREATE TABLE IF NOT EXISTS dblp_topic_\" +shortname +\r\n\t\t\"(tid varchar(50) NOT NULL, \" +\r\n\t\t\" keyword varchar(255) NOT NULL, \" + \r\n\t\t\" istop tinyint UNSIGNED ZEROFILL, \" + // Is this keyword a top keyword for this topic\r\n\t\t\" PRIMARY KEY (tid,keyword)) \";\r\n\t\treturn crTopicTableSQL;\r\n\t}", "public void addTopic(Topic topic) {\n\t\tString sql = \"insert into \"\n\t\t\t\t+ Constant.schema\n\t\t\t\t+ \".topic (topic_name, start_time, end_time, speaker_name, speaker_des, attachment, speaker_img, rating) values (?,?,?,?,?,?,?,?)\";\n\t\tList<String> paramList = new ArrayList<String>();\n\t\tparamList.add(topic.getTopicName());\n\t\tparamList.add(topic.getStartTime());\n\t\tparamList.add(topic.getEndTime());\n\t\tparamList.add(topic.getSpeakerName());\n\t\tparamList.add(topic.getSpeakerDesc());\n\t\tparamList.add(topic.getAttachment());\n\t\tparamList.add(topic.getSpeakerimg());\n\t\tparamList.add(String.valueOf(0));\n\n\t\tConnection conn = null;\n\t\tPreparedStatement pstmt = null;\n\t\ttry {\n\t\t\tconn = DBConUtil.getConn();\n\t\t\tpstmt = conn.prepareStatement(sql);\n\t\t\tconn.setAutoCommit(true);\n\t\t\tDBConUtil.executeUpdate(paramList, conn, pstmt);\n\t\t} catch (Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t} finally {\n\t\t\t// close connections.\n\t\t\tDBConUtil.close(conn, pstmt);\n\t\t}\n\t}", "WithReplicasAndCreate withBasicSku();", "public CreateStatementBuilder setPartitioning(Partitioning partitioning) {\n this.partitioning = partitioning;\n return this;\n }", "OutgoingStream<T> withTopic(String topic);", "private static KafkaProducer<String, String> createProducer(String a_broker) {\r\n\t\tProperties props = new Properties();\r\n\t\tprops.put(\"bootstrap.servers\", a_broker);\r\n\t\tprops.put(\"compression.type\", \"none\");\r\n\t\tprops.put(\"value.serializer\", StringSerializer.class.getName());\r\n\t\tprops.put(\"key.serializer\", StringSerializer.class.getName());\r\n\t\t\r\n\t\treturn new KafkaProducer<String, String>(props);\r\n\t}", "public TopicImpl(UUID identifier, Serializable version, String name, Taxonomy type) {\n\n super(identifier, version);\n this.name = name;\n this.type = type;\n }", "WithReplicasAndCreate withPartitionCount(int count);", "public boolean isTopic(String topic) {\n\t\treturn false;\n\t}", "public abstract void updateTopic(String topic);", "public void addTopicSubscription(String topicName, String mqttClientChannelID, String username, QOSLevel qos,\n boolean isCleanSession) throws MQTTException {\n\n UUID subscriptionChannelID = null;\n String subscriptionID = null;\n\n try {\n //Will extract out the topic information if the topic is created already\n MQTTopics topics = topicSubscriptions.get(mqttClientChannelID);\n //Will generate a unique identifier for the subscription\n subscriptionChannelID = MQTTUtils.generateSubscriptionChannelID(mqttClientChannelID, topicName,\n qos.getValue(), isCleanSession);\n //If the topic has not being created before\n if (null == topics) {\n //First the topic should be registered in the cluster\n //Once the cluster registration is successful the topic will be created\n topics = new MQTTopics(mqttClientChannelID,messageIdList);\n //Will set the topic specific subscription id generated\n topicSubscriptions.put(mqttClientChannelID, topics);\n\n } else {\n if (log.isDebugEnabled()) {\n log.debug(\"The topic \" + topics + \"has local subscriptions already\");\n }\n }\n\n // If clean session is set to true, existing subscriptions with the same client ID which are clean session\n // false should also be removed.\n //TODO we need to re think how we could solve this instead of having a DB lookup for existence of subs\n /* if (isCleanSession) {\n connector.removeSubscriber(this, topicName, mqttClientChannelID, username, subscriptionChannelID,\n false, mqttClientChannelID, qos);\n }*/\n\n //First the topic should be registered in the cluster\n subscriptionID = registerTopicSubscriptionInCluster(topicName, mqttClientChannelID, username, isCleanSession,\n qos, subscriptionChannelID);\n topics.addSubscriber(mqttClientChannelID, qos, isCleanSession, subscriptionID, subscriptionChannelID,\n topicName);\n\n // Send retained message for the subscriber if retained message exist.\n connector.sendRetainedMessagesToSubscriber(topicName,mqttClientChannelID,qos, subscriptionChannelID);\n\n } catch (SubscriptionAlreadyExistsException ignore) {\n //We do not throw this any further, the process should not stop due to this\n final String message = \"Error while adding the subscriber to the cluster\";\n log.error(message, ignore);\n } catch (MQTTException ex) {\n //In case if an error occurs we need to rollback the subscription created cluster wide\n connector.removeSubscriber(this, topicName, subscriptionID, username, subscriptionChannelID,\n isCleanSession, mqttClientChannelID, qos);\n final String message = \"Error while adding the subscriber to the cluster\";\n log.error(message, ex);\n throw ex;\n }\n }", "public void setTopic(String channel, String topic);", "public static void setTopic(String topic) {\n setTopic(Loader.channelId, topic);\n }", "@ApplicationScoped\n @Produces\n public ProducerActions<MessageKey, MessageValue> createKafkaProducer() {\n Properties props = (Properties) producerProperties.clone();\n\n // Configure kafka settings\n props.putIfAbsent(ProducerConfig.BOOTSTRAP_SERVERS_CONFIG, bootstrapServers);\n props.putIfAbsent(ProducerConfig.CLIENT_ID_CONFIG, \"Producer-\" + UUID.randomUUID().toString());\n props.putIfAbsent(ProducerConfig.ACKS_CONFIG, \"all\");\n props.putIfAbsent(ProducerConfig.LINGER_MS_CONFIG, 10);\n props.putIfAbsent(ProducerConfig.PARTITIONER_CLASS_CONFIG, KafkaSqlPartitioner.class);\n\n tryToConfigureSecurity(props);\n\n // Create the Kafka producer\n KafkaSqlKeySerializer keySerializer = new KafkaSqlKeySerializer();\n KafkaSqlValueSerializer valueSerializer = new KafkaSqlValueSerializer();\n return new AsyncProducer<MessageKey, MessageValue>(props, keySerializer, valueSerializer);\n }", "@ApiOperation(value = \"create or update\")\n\t@ApiResponses({\n\t\t\t@ApiResponse(code = ResponseStatusConstants.CREATED, message = \"create or update.\", response = TopicRO.class),\n\t\t\t@ApiResponse(code = ResponseStatusConstants.INTERNAL_SERVER_ERROR, message = ResponseStatusConstants.INTERNAL_SERVER_ERROR_MESSAGE, response = RestException.class),\n\t\t\t@ApiResponse(code = ResponseStatusConstants.BAD_REQUEST, message = ResponseStatusConstants.BAD_REQUEST_MESSAGE, response = RestException.class),\n\t\t\t@ApiResponse(code = ResponseStatusConstants.NOT_FOUND, message = ResponseStatusConstants.NOT_FOUND_MESSAGE, response = RestException.class),\n\t\t\t@ApiResponse(code = 412, message = \"Precondition Failed\", response = RestException.class),\n\t\t\t@ApiResponse(code = ResponseStatusConstants.FORBIDDEN, message = ResponseStatusConstants.FORBIDDEN_MESSAGE, response = RestException.class) })\n @PostMapping(\"/api/topic\")\n public ResponseEntity<TopicRO> createOrUpdateTopic(TopicRO topic)\n throws RestException {\n TopicRO updated = mTopicService.createOrUpdateTopic(topic);\n return new ResponseEntity<TopicRO>(updated, new HttpHeaders(), HttpStatus.OK);\n }", "public boolean hasTopic() {\r\n return false;\r\n }", "@Override\n\tpublic void takeLeadership(CuratorFramework curator) throws Exception\n\t{\n\n\t\tLOG.info(\"a new leader has been elected: kaboom.id={}\", config.getKaboomId());\n\t\n\t\tThread.sleep(30 * 1000);\n\n\t\twhile (true)\n\t\t{\n\t\t\tMap<String, String> partitionToHost = new HashMap<String, String>();\n\t\t\tMap<String, List<String>> hostToPartition = new HashMap<String, List<String>>();\n\t\t\tfinal Map<String, KaBoomNodeInfo> clients = new HashMap<String, KaBoomNodeInfo>();\n\t\t\tMap<String, List<String>> clientToPartitions = new HashMap<String, List<String>>();\n\t\t\tMap<String, String> partitionToClient = new HashMap<String, String>();\n\t\t\tList<String> topics = new ArrayList<String>();\n\n\t\t\t// Get a full set of metadata from Kafka\n\t\t\tStateUtils.readTopicsFromZooKeeper(config.getKafkaZkConnectionString(), topics);\n\n\t\t\t// Map partition to host and host to partition\n\t\t\tStateUtils.getPartitionHosts(config.getKafkaSeedBrokers(), topics, partitionToHost, hostToPartition);\n\n\t\t\t// Get a list of active clients from zookeeper\n\t\t\tStateUtils.getActiveClients(curator, clients);\n\n\t\t\t// Get a list of current assignments\n\t\t\t// Get a list of current assignments\n\t\t\t\n\t\t\tfor (String partition : partitionToHost.keySet())\n\t\t\t{\n\t\t\t\tStat stat = curator.checkExists().forPath(\"/kaboom/assignments/\" + partition);\n\t\t\t\t\n\t\t\t\tif (stat != null)\n\t\t\t\t{\n\t\t\t\t\t// check if the client is still connected, and delete node if it is not.\n\t\t\t\t\t\n\t\t\t\t\tString client = new String(curator.getData().forPath(\"/kaboom/assignments/\" + partition), UTF8);\n\t\t\t\t\t\n\t\t\t\t\tif (clients.containsKey(client))\n\t\t\t\t\t{\n\t\t\t\t\t\tLOG.debug(\"Partition {} : client {} is connected\", partition, client);\n\t\t\t\t\t\t\n\t\t\t\t\t\tpartitionToClient.put(partition, client);\t\t\t\t\t\t\n\t\t\t\t\t\tList<String> parts = clientToPartitions.get(client);\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (parts == null)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tparts = new ArrayList<String>();\n\t\t\t\t\t\t\tclientToPartitions.put(client, parts);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tparts.add(partition);\n\t\t\t\t\t} \n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tLOG.debug(\"Partition {} : client {} is not connected\", partition, client);\n\t\t\t\t\t\tcurator.delete().forPath(\"/kaboom/assignments/\" + partition);\n\t\t\t\t\t\tstat = null;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tStateUtils.calculateLoad(partitionToHost, clients, clientToPartitions);\n\n\t\t\t// If any node is over its target by at least one, then unassign partitions until it is at or below its target\n\t\t\t\n\t\t\tfor (Entry<String, KaBoomNodeInfo> e : clients.entrySet())\n\t\t\t{\n\t\t\t\tString client = e.getKey();\n\t\t\t\tKaBoomNodeInfo info = e.getValue();\n\n\t\t\t\tif (info.getLoad() >= info.getTargetLoad() + 1)\n\t\t\t\t{\n\t\t\t\t\tList<String> localPartitions = new ArrayList<String>();\n\t\t\t\t\tList<String> remotePartitions = new ArrayList<String>();\n\n\t\t\t\t\tfor (String partition : clientToPartitions.get(client))\n\t\t\t\t\t{\n\t\t\t\t\t\tif (partitionToHost.get(partition).equals(info.getHostname()))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tlocalPartitions.add(partition);\n\t\t\t\t\t\t} \n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tremotePartitions.add(partition);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\twhile (info.getLoad() > info.getTargetLoad())\n\t\t\t\t\t{\n\t\t\t\t\t\tString partitionToDelete;\n\t\t\t\t\t\tif (remotePartitions.size() > 0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tpartitionToDelete = remotePartitions.remove(rand.nextInt(remotePartitions.size()));\n\t\t\t\t\t\t} \n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tpartitionToDelete = localPartitions.remove(rand.nextInt(localPartitions.size()));\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tLOG.info(\"Unassgning {} from overloaded client {}\", partitionToDelete, client);\n\t\t\t\t\t\tpartitionToClient.remove(partitionToDelete);\n\t\t\t\t\t\tclientToPartitions.get(client).remove(partitionToDelete);\n\t\t\t\t\t\tinfo.setLoad(info.getLoad() - 1);\n\n\t\t\t\t\t\tcurator.delete().forPath(\"/kaboom/assignments/\" + partitionToDelete);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Sort the clients by percent load, then add unassigned clients to the lowest loaded client\t\t\t\n\t\t\t{\n\t\t\t\tList<String> sortedClients = new ArrayList<String>();\n\t\t\t\tComparator<String> comparator = new Comparator<String>()\n\t\t\t\t{\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic int compare(String a, String b)\n\t\t\t\t\t{\n\t\t\t\t\t\tKaBoomNodeInfo infoA = clients.get(a);\n\t\t\t\t\t\tdouble valA = infoA.getLoad() / infoA.getTargetLoad();\n\n\t\t\t\t\t\tKaBoomNodeInfo infoB = clients.get(b);\n\t\t\t\t\t\tdouble valB = infoB.getLoad() / infoB.getTargetLoad();\n\n\t\t\t\t\t\tif (valA == valB)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\treturn 0;\n\t\t\t\t\t\t} \n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif (valA > valB)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\treturn 1;\n\t\t\t\t\t\t\t} \n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\treturn -1;\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};\n\t\t\t\t\n\t\t\t\tsortedClients.addAll(clients.keySet());\n\n\t\t\t\tfor (String partition : partitionToHost.keySet())\n\t\t\t\t{\n\t\t\t\t\t// If it's already assigned, skip it\n\t\t\t\t\t\n\t\t\t\t\tif (partitionToClient.containsKey(partition))\n\t\t\t\t\t{\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tCollections.sort(sortedClients, comparator);\n\n\t\t\t\t\t/**\n\t\t\t\t\t * \n\t\t\t\t\t * Iterate through the list until we find either a local client below capacity, or we reach the ones that are \n\t\t\t\t\t * above capacity. If we reach clients above capacity, then just assign it to the first node.\n\t\t\t\t\t */\n\t\t\t\t\t\n\t\t\t\t\tLOG.info(\"Going to assign {}\", partition);\n\t\t\t\t\tString chosenClient = null;\n\t\t\t\t\t\n\t\t\t\t\tfor (String client : sortedClients)\n\t\t\t\t\t{\n\t\t\t\t\t\tLOG.info(\"- Checking {}\", client);\t\t\t\t\t\t\n\t\t\t\t\t\tKaBoomNodeInfo info = clients.get(client);\t\t\t\t\t\t\n\t\t\t\t\t\tLOG.info(\"- Current load = {}, Target load = {}\", info.getLoad(), info.getTargetLoad());\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (info.getLoad() >= info.getTargetLoad())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tchosenClient = sortedClients.get(0);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t} \n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif (clients.get(client).getHostname().equals(partitionToHost.get(partition)))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tchosenClient = client;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t} \n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tcontinue;\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\t\n\t\t\t\t\tif (chosenClient == null)\n\t\t\t\t\t{\n\t\t\t\t\t\tchosenClient = sortedClients.get(0);\n\t\t\t\t\t}\n\n\t\t\t\t\tLOG.info(\"Assigning partition {} to client {}\", partition, chosenClient);\n\n\t\t\t\t\tcurator\n\t\t\t\t\t\t .create()\n\t\t\t\t\t\t .withMode(CreateMode.PERSISTENT)\n\t\t\t\t\t\t .forPath(\"/kaboom/assignments/\" + partition,\n\t\t\t\t\t\t\t chosenClient.getBytes(UTF8));\n\n\t\t\t\t\tList<String> parts = clientToPartitions.get(chosenClient);\n\t\t\t\t\t\n\t\t\t\t\tif (parts == null)\n\t\t\t\t\t{\n\t\t\t\t\t\tparts = new ArrayList<String>();\n\t\t\t\t\t\tclientToPartitions.put(chosenClient, parts);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tparts.add(partition);\n\n\t\t\t\t\tpartitionToClient.put(partition, chosenClient);\n\n\t\t\t\t\tclients.get(chosenClient).setLoad(clients.get(chosenClient).getLoad() + 1);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t/*\n\t\t\t * Check to see if the kafka_ready flag writer thread exists and is alive:\n\t\t\t * \n\t\t\t * If it doesn't exist or isn't running, start it. This is designed to \n\t\t\t * work well when the load balancer sleeps for 10 minutes after assigning \n\t\t\t * work. If that behavior changes then additional logic will be required\n\t\t\t * to ensure this isn't executed too often \n\t\t\t */\n\t\t\t\n\t\t\tif (readyFlagThread == null || !readyFlagThread.isAlive())\n\t\t\t{\n\t\t\t\tLOG.info(\"[ready flag writer] thread doesn't exist or is not running\");\t\t\t\t\n\t\t\t\treadyFlagWriter = new ReadyFlagWriter(config, curator);\n\t\t\t\treadyFlagWriter.addListener(this);\n\t\t\t\treadyFlagThread = new Thread(readyFlagWriter);\n\t\t\t\treadyFlagThread.start();\n\t\t\t\tLOG.info(\"[ready flag writer] thread created and started\");\n\t\t\t}\n\n\t\t\tThread.sleep(10 * 60 * 1000);\n\t\t}\n\t}", "@Bean\r\n public KafkaTemplate<String, Object> kafkaTemplate() {\r\n return new KafkaTemplate<>(producerFactory());\r\n }", "public static void ensureReady(String fixtureName, String zkConnect, final String topic) {\n String[] addressArray = StringUtils.commaDelimitedListToStringArray(zkConnect);\n for (String address : addressArray) {\n String[] zkAddressArray = StringUtils.delimitedListToStringArray(address, \":\");\n Assert.isTrue(zkAddressArray.length == 2,\n \"zkConnect data was not properly formatted\");\n String host = zkAddressArray[0];\n int port = Integer.valueOf(zkAddressArray[1]);\n AvailableSocketPorts.ensureReady(fixtureName, host, port, 2000);\n }\n final ZkClient zkClient = new ZkClient(zkConnect, 6000, 6000, ZKStringSerializer$.MODULE$);\n AdminUtils.createTopic(zkClient, topic, 1, 1, new Properties());\n\n\t\tRetryTemplate retryTemplate = new RetryTemplate();\n\n\t\tCompositeRetryPolicy policy = new CompositeRetryPolicy();\n\t\tTimeoutRetryPolicy timeoutRetryPolicy = new TimeoutRetryPolicy();\n\t\ttimeoutRetryPolicy.setTimeout(METADATA_VERIFICATION_TIMEOUT);\n\t\tSimpleRetryPolicy simpleRetryPolicy = new SimpleRetryPolicy();\n\t\tsimpleRetryPolicy.setMaxAttempts(METADATA_VERIFICATION_RETRY_ATTEMPTS);\n\t\tpolicy.setPolicies(new RetryPolicy[]{timeoutRetryPolicy, simpleRetryPolicy});\n\t\tretryTemplate.setRetryPolicy(policy);\n\n\t\tExponentialBackOffPolicy backOffPolicy = new ExponentialBackOffPolicy();\n\t\tbackOffPolicy.setInitialInterval(METADATA_VERIFICATION_RETRY_INITIAL_INTERVAL);\n\t\tbackOffPolicy.setMultiplier(METADATA_VERIFICATION_RETRY_BACKOFF_MULTIPLIER);\n\t\tbackOffPolicy.setMaxInterval(METADATA_VERIFICATION_MAX_INTERVAL);\n\t\tretryTemplate.setBackOffPolicy(backOffPolicy);\n\n\t\ttry {\n\t\t\tretryTemplate.execute(new RetryCallback<Void, Exception>() {\n\t\t\t\t@Override\n\t\t\t\tpublic Void doWithRetry(RetryContext context) throws Exception {\n\t\t\t\t\tTopicMetadata topicMetadata = AdminUtils.fetchTopicMetadataFromZk(topic, zkClient);\n\t\t\t\t\tif (topicMetadata.errorCode() != ErrorMapping.NoError() || !topic.equals(topicMetadata.topic())) {\n\t\t\t\t\t\t// downcast to Exception because that's what the error throws\n\t\t\t\t\t\tthrow (Exception) ErrorMapping.exceptionFor(topicMetadata.errorCode());\n\t\t\t\t\t}\n\t\t\t\t\tList<PartitionMetadata> partitionMetadatas = new kafka.javaapi.TopicMetadata(topicMetadata).partitionsMetadata();\n\t\t\t\t\tfor (PartitionMetadata partitionMetadata : partitionMetadatas) {\n\t\t\t\t\t\tif (partitionMetadata.errorCode() != ErrorMapping.NoError()) {\n\t\t\t\t\t\t\tthrow (Error) ErrorMapping.exceptionFor(partitionMetadata.errorCode());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tthrow new IllegalStateException(\"Unable to create topic for kafka\", e);\n\t\t}\n\t}", "public Publisher createHierarchicalTopicPublisher(String topicName) {\n validateTopicName(topicName, true);\n\n String topicRootName;\n int pos = topicName.indexOf('.');\n if (pos == -1) {\n topicRootName = topicName;\n } else {\n topicRootName = topicName.substring(0, pos);\n }\n\n String source = String.format(\"%s.%s\", endpointId, topicRootName);\n CAMQPEndpointPolicy endpointPolicy = new CAMQPEndpointPolicy();\n endpointPolicy.setEndpointType(EndpointType.TOPIC);\n endpointPolicy.setTopicRouterType(TopicRouterType.Hierarchical);\n CAMQPSourceInterface sender = CAMQPEndpointManager.createSource(session, source, topicRootName, endpointPolicy);\n return new Publisher(topicName, sender);\n }", "@PostMapping(consumes = MediaType.APPLICATION_JSON_VALUE, produces = \"application/hal+json\")\n @ApiOperation(value = \"Creates a new request topic.\", produces = \"application/hal+json\")\n @ApiResponses({@ApiResponse(code = 200, message = \"Success!\"), @ApiResponse(code = 400, message = \"Request topic is invalid.\")})\n public ResponseEntity<EntityModel<RequestTopic>> create(@RequestBody RequestTopic requestTopic) throws EntityNotFoundException {\n RequestTopic createdRequestTopic = userEntityService.create(requestTopicRepository, requestTopic);\n\n //Return created request topic\n return ResponseEntity.ok(userEntityService.entityToEntityModel(createdRequestTopic));\n }", "private Partition addPartition(String partitionId, String partitionDn) throws Exception {\n // Create a new partition named 'foo'.\n Partition partition =\n factory.createPartition(service.getSchemaManager(), service.getDnFactory(), partitionId, partitionDn,\n 100, service.getInstanceLayout().getPartitionsDirectory());\n service.addPartition(partition);\n return partition;\n }", "public void advertise(final Topic t) {\r\n\r\n new Thread(new Runnable() {\r\n public void run() {\r\n int attempts = 0;\r\n while(++attempts < 20) {\r\n try {\r\n int uniqueID = server.addTopic(t);\r\n if (uniqueID != 0)\r\n pubTopics.add(t.setTopicID(uniqueID));\r\n else\r\n System.err.println(\"Topic already exists on server. Please Select Another Name...\");\r\n return;\r\n } catch(RemoteException e) {\r\n System.err.println(\"Could not connect to server. Retrying...\");\r\n try {\r\n Thread.sleep(800);\r\n } catch(Exception ex) {\r\n ex.printStackTrace();\r\n }\r\n }\r\n }\r\n System.err.println(\"Couldn't Advertise Topic: \" + t.getTopicID() + \" - \" + t.getTopicName());\r\n }\r\n }).start();\r\n }", "public String getTopic() {\n return topic;\n }", "@Test()\n public void doTestWithSuperPermission() throws Exception {\n doTestChangeTopic(\"admin\", \"123\");\n }", "private void subscribeMqttTopic(String t){\n\n String topic = \"secureIoT\" + t;\n\n int qos = 1;\n try {\n IMqttToken subToken = mqttClient.subscribe(topic, qos);\n subToken.setActionCallback(new IMqttActionListener() {\n @Override\n public void onSuccess(IMqttToken asyncActionToken) {\n // subscription successful\n\n mqttClient.setCallback(new MqttCallback() {\n @Override\n public void connectionLost(Throwable cause) {\n Log.d(LOG_TAG, \"Connection Lost\");\n }\n\n @Override\n public void messageArrived(String topic, MqttMessage message) throws Exception {\n\n Log.d(LOG_TAG, message.toString());\n handleMessage(message);\n }\n\n @Override\n public void deliveryComplete(IMqttDeliveryToken token) {\n Log.d(LOG_TAG, \"Delivery Complete\");\n }\n });\n\n }\n\n @Override\n public void onFailure(IMqttToken asyncActionToken,\n Throwable exception) {\n // The subscription could not be performed, maybe the user was not\n // authorized to subscribe on the specified topic e.g. using wildcards\n }\n\n\n });\n } catch (MqttException e) {\n e.printStackTrace();\n }\n\n }", "boolean reachedBeginning(TopicPartition partition);", "public String getTopic() {\n return this.topic;\n }", "interface WithPartnerTopicFriendlyDescription {\n /**\n * Specifies the partnerTopicFriendlyDescription property: Friendly description about the topic. This can be\n * set by the publisher/partner to show custom description for the customer partner topic. This will be\n * helpful to remove any ambiguity of the origin of creation of the partner topic for the customer..\n *\n * @param partnerTopicFriendlyDescription Friendly description about the topic. This can be set by the\n * publisher/partner to show custom description for the customer partner topic. This will be helpful to\n * remove any ambiguity of the origin of creation of the partner topic for the customer.\n * @return the next definition stage.\n */\n WithCreate withPartnerTopicFriendlyDescription(String partnerTopicFriendlyDescription);\n }", "public void destroyTopic(String topic) {\n\n\t}", "public synchronized TopicConnection createTopicConnection(String userName, String password)\n throws JMSException {\n TopicConnectionImpl qc = new TopicConnectionImpl(userName == null ? \"anonymous\" : userName, password, createReconnector());\n qc.assignClientId(clientId);\n qc.setSmqpProducerReplyInterval(smqpProducerReplyInterval);\n qc.setSmqpConsumerCacheSize(smqpConsumerCacheSize);\n qc.setJmsDeliveryMode(jmsDeliveryMode);\n qc.setJmsPriority(jmsPriority);\n qc.setJmsTTL(jmsTTL);\n qc.setJmsMessageIdEnabled(jmsMessageIdEnabled);\n qc.setJmsMessageTimestampEnabled(jmsMessageTimestampEnabled);\n qc.setUseThreadContextCL(useThreadContextCL);\n qc.setDuplicateMessageDetection(duplicateMessageDetection);\n qc.setDuplicateBacklogSize(duplicateBacklogSize);\n if (keepaliveInterval > 0)\n qc.startKeepAlive(keepaliveInterval);\n\n return (qc);\n }", "private void _writeTopic(final Topic topic) throws IOException {\n // Ignore the topic if it is the default name type and it has no further\n // characteristics\n if (topic.equals(_defaultNameType)) {\n return;\n }\n _out.startObject();\n _writeItemIdentifiers(topic);\n _writeLocators(\"subject_identifiers\", topic.getSubjectIdentifiers());\n _writeLocators(\"subject_locators\", topic.getSubjectLocators());\n Set<Name> names = topic.getNames();\n if (!names.isEmpty()) {\n _out.key(\"names\");\n _out.startArray();\n for (Name name: names) {\n _writeName(name);\n }\n _out.endArray();\n }\n Set<Occurrence> occs = topic.getOccurrences();\n if (!occs.isEmpty()) {\n _out.key(\"occurrences\");\n _out.startArray();\n for (Occurrence occ: occs) {\n _writeOccurrence(occ);\n }\n _out.endArray();\n }\n _out.endObject();\n }", "@Test\n\tpublic void createCluster() throws KeeperException, InterruptedException {\n\n\t\tclusterManager.createCluster(clusterResourceName);\n\n\t}", "public Topic getTopic() {\n return topic;\n }", "public String getTopic() {\n return topic;\n }", "public void addTopic(Topic topic) {\n\t\ttopicRepository.save(topic);\n\t}", "public Log createLog(TopicAndPartition topicAndPartition, LogConfig config) {\n synchronized (logCreationLock) {\n Log log = logs.get(topicAndPartition);\n\n // check if the log has already been created in another thread\n if (log != null)\n return log;\n\n // if not, create it\n File dataDir = nextLogDir();\n File dir = new File(dataDir, topicAndPartition.topic + \"-\" + topicAndPartition.partition);\n dir.mkdirs();\n log = new Log(dir, config, /*recoveryPoint = */0L, scheduler, time);\n logs.put(topicAndPartition, log);\n logger.info(\"Created log for partition [{},{}] in {} with properties {{}}.\", topicAndPartition.topic, topicAndPartition.partition, dataDir.getAbsolutePath(), config.toProps());\n return log;\n }\n }", "private Partition addPartition(String partitionId, String partitionDn, DnFactory dnFactory) throws Exception {\n JdbmPartition partition = new JdbmPartition(service.getSchemaManager(), dnFactory);\n partition.setId(partitionId);\n partition.setPartitionPath(new File(service.getInstanceLayout().getPartitionsDirectory(), partitionId).toURI());\n partition.setSuffixDn(new Dn(service.getSchemaManager(), partitionDn));\n return partition;\n }", "@Override\n public void modifyTopic(List<Topic> topics, int type) {\n\n\t}", "boolean hasTopic();", "public TopicObject(boolean deleted) {\n this.deleted = deleted;\n }", "public List<TopicPartition> kafkaTopics() {\n List<TopicPartition> topicPartitionList = new ArrayList<>();\n\n kafkaTopics.forEach((topicName, topicPartitions) -> {\n for (int partitionNumber = 0; partitionNumber < topicPartitions; partitionNumber++)\n topicPartitionList.add(new TopicPartition(topicName, partitionNumber));\n });\n\n return topicPartitionList;\n }", "@PostConstruct\n private void init() {\n Properties props = new Properties();\n props.put(\"oracle.user.name\", user);\n props.put(\"oracle.password\", pwd);\n props.put(\"oracle.service.name\", serviceName);\n //props.put(\"oracle.instance.name\", instanceName);\n props.put(\"oracle.net.tns_admin\", tnsAdmin); //eg: \"/user/home\" if ojdbc.properies file is in home \n props.put(\"security.protocol\", protocol);\n props.put(\"bootstrap.servers\", broker);\n //props.put(\"group.id\", group);\n props.put(\"enable.auto.commit\", \"true\");\n props.put(\"auto.commit.interval.ms\", \"10000\");\n props.put(\"linger.ms\", 1000);\n // Set how to serialize key/value pairs\n props.setProperty(\"key.serializer\", \"org.oracle.okafka.common.serialization.StringSerializer\");\n props.setProperty(\"value.serializer\", \"org.oracle.okafka.common.serialization.StringSerializer\");\n\n producer = new KafkaProducer<>(props);\n }", "public TopicDto(String topic) {\n String[] fields = topic.split(\"=\");\n key = fields[0];\n value = fields[1];\n }", "public void activateOptions() {\n TopicConnectionFactory topicConnectionFactory;\n\n try {\n Context jndi;\n\n LogLog.debug(\"Getting initial context.\");\n if(initialContextFactoryName != null) {\n\tProperties env = new Properties( );\n\tenv.put(Context.INITIAL_CONTEXT_FACTORY, initialContextFactoryName);\n\tif(providerURL != null) {\n\t env.put(Context.PROVIDER_URL, providerURL);\n\t} else {\n\t LogLog.warn(\"You have set InitialContextFactoryName option but not the \"\n\t\t +\"ProviderURL. This is likely to cause problems.\");\n\t}\n\tif(urlPkgPrefixes != null) {\n\t env.put(Context.URL_PKG_PREFIXES, urlPkgPrefixes);\n\t}\n\t\n\tif(securityPrincipalName != null) {\n\t env.put(Context.SECURITY_PRINCIPAL, securityPrincipalName);\n\t if(securityCredentials != null) {\n\t env.put(Context.SECURITY_CREDENTIALS, securityCredentials);\n\t } else {\n\t LogLog.warn(\"You have set SecurityPrincipalName option but not the \"\n\t\t\t+\"SecurityCredentials. This is likely to cause problems.\");\n\t }\n\t}\t\n\tjndi = new InitialContext(env);\n } else {\n\tjndi = new InitialContext();\n }\n\n LogLog.debug(\"Looking up [\"+tcfBindingName+\"]\");\n topicConnectionFactory = (TopicConnectionFactory) lookup(jndi, tcfBindingName);\n LogLog.debug(\"About to create TopicConnection.\");\n if(userName != null) {\n\ttopicConnection = topicConnectionFactory.createTopicConnection(userName, \n\t\t\t\t\t\t\t\t password); \n } else {\n\ttopicConnection = topicConnectionFactory.createTopicConnection();\n }\n\n LogLog.debug(\"Creating TopicSession, non-transactional, \"\n\t\t +\"in AUTO_ACKNOWLEDGE mode.\");\n topicSession = topicConnection.createTopicSession(false,\n\t\t\t\t\t\t\tSession.AUTO_ACKNOWLEDGE);\n\n LogLog.debug(\"Looking up topic name [\"+topicBindingName+\"].\");\n Topic topic = (Topic) lookup(jndi, topicBindingName);\n\n LogLog.debug(\"Creating TopicPublisher.\");\n topicPublisher = topicSession.createPublisher(topic);\n \n LogLog.debug(\"Starting TopicConnection.\");\n topicConnection.start();\n\n jndi.close();\n } catch(Exception e) {\n errorHandler.error(\"Error while activating options for appender named [\"+name+\n\t\t\t \"].\", e, ErrorCode.GENERIC_FAILURE);\n }\n }", "public void getTopicIdentForNameOrCreateNew(String completeText, AsyncCallback callback) {\r\n\t\tif (parent == null) {\r\n\t\t\ttopicService.createNewIfNonExistent(completeText, callback);\r\n\t\t} else {\r\n\t\t\ttopicService\r\n\t\t\t\t\t.createNewIfNonExistent(completeText, parent, lnglat, dateCreated, callback);\r\n\t\t}\r\n\t}", "private String registerTopicSubscriptionInCluster(String topicName, String mqttClientID, String username,\n boolean isCleanSession, QOSLevel qos, UUID subscriptionChannelID)\n throws MQTTException, SubscriptionAlreadyExistsException {\n if (log.isDebugEnabled()) {\n log.debug(\"Cluster wide topic connection was created with id \" + mqttClientID + \" for topic \" +\n topicName + \" with clean session \" + isCleanSession);\n }\n\n //Will register the topic cluster wide\n connector.addSubscriber(this, topicName, mqttClientID, username, isCleanSession,\n qos, subscriptionChannelID);\n\n return mqttClientID;\n }" ]
[ "0.7369884", "0.65778", "0.6439694", "0.63664746", "0.62905663", "0.6192863", "0.6117898", "0.6080505", "0.5797794", "0.5773436", "0.5731288", "0.56204206", "0.55762476", "0.5530196", "0.5515156", "0.55064195", "0.548062", "0.5478847", "0.54339033", "0.5419237", "0.54126924", "0.5370166", "0.5347978", "0.5332079", "0.53175366", "0.529789", "0.5260154", "0.52557606", "0.5246815", "0.5242159", "0.52178687", "0.52067083", "0.5196434", "0.518944", "0.518944", "0.51734245", "0.51658833", "0.5165692", "0.5161956", "0.5128974", "0.512538", "0.5109714", "0.5099969", "0.50881064", "0.5073872", "0.5070253", "0.50579554", "0.5029893", "0.50272536", "0.5022423", "0.50203973", "0.5016415", "0.5014692", "0.50107926", "0.49703062", "0.4961146", "0.49456334", "0.49455604", "0.49385163", "0.49237353", "0.4911779", "0.49008167", "0.48916662", "0.48608404", "0.48601827", "0.485615", "0.48546645", "0.48489824", "0.4847477", "0.48472235", "0.48421714", "0.48363164", "0.48308462", "0.48297188", "0.48275256", "0.48245358", "0.48132697", "0.47925743", "0.478505", "0.47805116", "0.47784492", "0.4775953", "0.47659853", "0.4764334", "0.4757793", "0.47562945", "0.47460145", "0.47428656", "0.47403914", "0.4739903", "0.47366324", "0.473513", "0.47322452", "0.47251564", "0.47195542", "0.47191387", "0.47024086", "0.4689943", "0.46832606", "0.46781203", "0.4673257" ]
0.0
-1
TODO Autogenerated method stub
@Override public void onUpgrade(SQLiteDatabase db, int arg1, int arg2) { db.execSQL("DROP TABLE IF EXIST" + TABLE_NAME); onCreate(db); }
{ "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 Autogenerated method stub
@Override public void elementAlreadyActiveEffect(Ship ship, Element activeElement) { }
{ "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 add test methods here.
public void prueba(){ //Float f = Float.parseFloat(jtfValor.getText()); String s = "100.000,5"; String d = s.replace(".",""); // s.replaceAll(",", "."); // s.trim(); System.out.println(d); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void test() {\n\t\t\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "private void test() {\n\n\t}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "private void getStatus() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "protected OpinionFinding() {/* intentionally empty block */}", "protected MetadataUGWD() {/* intentionally empty block */}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n protected void initialize() {\n\n \n }", "@Override\n\tprotected void interr() {\n\t}", "@Override\n public int describeContents() { return 0; }", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "private void poetries() {\n\n\t}", "@Override\n protected void initialize() \n {\n \n }", "private test5() {\r\n\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\n protected void init() {\n }", "@Override\n public void init() {\n\n }", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "private ReportGenerationUtil() {\n\t\t\n\t}", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void initialize() {}", "@Override\n public void initialize() {}", "@Override\n public void initialize() {}", "@Override\n void init() {\n }", "public final void mo51373a() {\n }", "private Util() { }", "@Override\n\tprotected void initialize() {\n\t}", "@Override\n\tprotected void initialize() {\n\t}", "@Override\n public void init() {\n }", "public void smell() {\n\t\t\n\t}", "@Override\n protected void prot() {\n }", "private FlyWithWings(){\n\t\t\n\t}", "public void method_4270() {}", "private void strin() {\n\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "private void kk12() {\n\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "public void testEntrySetIteratorHasProperMappings() {\n return;\r\n }", "@Override\n public void test() {\n \n }", "private void init() {\n\n\t}", "protected void mo6255a() {\n }", "public void identify() {\n\n\t}", "public void mo38117a() {\n }", "private MetallicityUtils() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n protected void setup() {\n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\r\n\tpublic void init() {}", "@Override public int describeContents() { return 0; }", "@Override\n public void func_104112_b() {\n \n }", "@SuppressWarnings(\"unused\")\n private void generateInfo()\n {\n }", "protected Doodler() {\n\t}", "private static void iterator() {\n\t\t\r\n\t}", "@Override\n public void initialize() { \n }", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "@Override\r\n\tpublic void dormir() {\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\tprotected void parseResult() {\n\t\t\n\t}", "@Test\r\n\tpublic void contents() throws Exception {\n\t}", "private static void cajas() {\n\t\t\n\t}", "@Override\n public void init() {}", "protected void initialize() {}", "protected void initialize() {}", "private RESTBackend()\n\t\t{\n\t\t\t\n\t\t}", "private Singletion3() {}", "private OMUtil() { }", "@Override\n @Before\n public void setUp() throws IOException {\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 }", "public void mo55254a() {\n }", "@Override\r\n protected void parseDocuments()\r\n {\n\r\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "zzafe mo29840Y() throws RemoteException;", "@Override\r\n \tpublic void process() {\n \t\t\r\n \t}" ]
[ "0.6027187", "0.6015595", "0.58184975", "0.5790676", "0.5673687", "0.5658679", "0.5657986", "0.5657986", "0.5657986", "0.5657986", "0.5657986", "0.5657986", "0.5652669", "0.56347215", "0.5613453", "0.5604656", "0.55772966", "0.55162644", "0.5501187", "0.5496982", "0.54841995", "0.5460454", "0.54483664", "0.5421648", "0.5421648", "0.54190725", "0.54185855", "0.53994423", "0.5397525", "0.5370455", "0.5349629", "0.53366953", "0.5322048", "0.5314817", "0.5314817", "0.5313851", "0.53073466", "0.53061414", "0.5303429", "0.5297249", "0.52913904", "0.52883923", "0.52883923", "0.52883923", "0.52876735", "0.5287663", "0.52860224", "0.5284599", "0.5284599", "0.5282284", "0.52820396", "0.5277284", "0.5266713", "0.52665395", "0.5261969", "0.5260926", "0.525997", "0.524614", "0.5243672", "0.52433723", "0.52415216", "0.52374923", "0.52350104", "0.52310103", "0.5228104", "0.52248555", "0.5224337", "0.52200705", "0.5218528", "0.52161133", "0.5215487", "0.5207706", "0.52050984", "0.52045786", "0.52034116", "0.520301", "0.520301", "0.5202481", "0.52019715", "0.52019715", "0.51979804", "0.5194771", "0.5186521", "0.51843643", "0.5175821", "0.5175821", "0.51755655", "0.51719743", "0.5171244", "0.5168669", "0.51677567", "0.51677567", "0.51677567", "0.51677567", "0.51677567", "0.51677567", "0.51677567", "0.5163834", "0.5162636", "0.51589227", "0.5157692" ]
0.0
-1
abro el reporte en un dialog
private void dialogoReporte(JasperPrint jasperPrint, String titulo) { JDialog dialogo = new JDialog(); dialogo.getContentPane().add(new JRViewer(jasperPrint)); dialogo.setModal(true); dialogo.setTitle(titulo); dialogo.setPreferredSize(Toolkit.getDefaultToolkit().getScreenSize()); dialogo.pack(); dialogo.setAlwaysOnTop(true); dialogo.setVisible(true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void crearReporte() {\n medirTiempoDeEnvio();\n SimpleDateFormat variableFecha = new SimpleDateFormat(\"dd-MM-yyyy\");\n Calendar cal = Calendar.getInstance();\n String dia = String.valueOf(cal.get(cal.DATE));\n String mes = String.valueOf(cal.get(cal.MONTH) + 1);\n String año = String.valueOf(cal.get(cal.YEAR));\n String fechainicio;\n String fechafin;\n Map parametro = new HashMap();\n cargando.setVisible(true);\n try {\n JasperViewer v;\n switch (listaTipoReporte.getSelectedIndex()) {\n case 0:\n if (rb_diario.isSelected() || this.reporte.getSelectedIndex() == 1) {\n if (this.reporte.getSelectedIndex() == 1) {\n fechafin = u.fechaCorrecta(variableFecha.format(this.fin.getDate()));\n fechainicio = u.fechaCorrecta(variableFecha.format(this.inicio.getDate()));\n parametro.put(\"fecha\",fechainicio+\" al \"+fechafin);\n } else {\n fechainicio = u.fechaCorrecta(variableFecha.format(this.dia.getDate()));\n fechafin = fechainicio;\n parametro.put(\"fecha\",\" dia \"+fechainicio);\n }\n \n String p = \"('\" + fechainicio + \"','\" + fechafin + \"')\";\n if (u.ejecutarSP(p, \"ordenes_procesadas_diarias\")) {\n v = u.runReporte(\"reporte_ordenes_procesadas_diario\", parametro);\n v.setTitle(\"Reporte de ordenes procesadas\");\n v.setVisible(true);\n } else {\n System.out.println(\"mal\");\n }\n } else {\n int mess = cb_mes.getSelectedIndex();\n mess = mess + 1;\n if (rb_mensual.isSelected()) {\n int dia2 = u.numero(mess);\n String fechanueva1 = año + \"-\" + mess + \"-\" + \"01\";\n String fechai1 = año + \"-\" + mess + \"-\" + \"15\";\n String fechai2 = año + \"-\" + mess + \"-\" + \"16\";\n String fechaf1 = año + \"-\" + mess + \"-\" + dia2;\n //----------------------------- ojo son 4 fechas finico-ffinal1 y fechafinal2 -a fechafinal2\n // String fechainicio = u.fechaCorrecta(variableFecha.format(jDateChooser1.getDate()));\n // String f = u.fechaCorrecta(variableFecha.format(jDateChooser2.getDate()));\n // String fechafin =fechainicio;\n String p = \"('\" + fechanueva1 + \"','\" + fechai1 + \"','\" + fechai2 + \"','\" + fechaf1 + \"')\";\n if (u.ejecutarSP(p, \"ordenes_procesadas_mensual\")) {\n v = u.runReporte(\"reporte_ordenes_procesadas_mensual\", parametro);\n v.setTitle(\"Reporte mensual de ordenes procesadas\");\n v.setVisible(true);\n } else {\n System.out.println(\"mal\");\n }\n } else {\n Reporte r = new Reporte();\n String nombreReporte = \"\";\n if (this.primera.isSelected()) {\n r.reporteQuincena(Integer.toString(mess), \"2014\", 1);\n parametro.put(\"periodo\", \"De la primera quincena del mes de \" + u.obtenerMes(mess));\n nombreReporte = \"procesadasQuincena\";\n } else {\n if (this.segunda.isSelected()) {\n r.reporteQuincena(Integer.toString(mess), \"2014\", 2);\n parametro.put(\"periodo\", \"De la segunda quincena del mes de \" + u.obtenerMes(mess));\n nombreReporte = \"procesadasQuincenaSegunda\";\n }\n }\n v = u.runReporte(nombreReporte, parametro);\n v.setTitle(\"Reporte quincenal de ordenes procesadas\");\n v.setVisible(true);\n u.ejecutarSQL(\"DROP TABLE IF EXISTS temporal1\");\n }\n }\n break;\n case 1:\n //RordeAuditada\n if (rb_mensual.isSelected()) {\n int mess = cb_mes.getSelectedIndex();\n mess = mess + 1;\n int dia2 = u.numero(mess);\n String fechanueva = año + \"-\" + mess + \"-\" + \"01\"; //calcular el anho\n String fechai = año + \"-\" + mess + \"-\" + \"15\";\n String fechaf = año + \"-\" + mess + \"-\" + dia2;\n String p1 = \"('\" + fechanueva + \"','\" + fechai + \"','\" + fechaf + \"')\";\n if (u.ejecutarSP(p1, \"Raudita_mensual\")) {\n parametro.put(\"fecha\", fechanueva);\n parametro.put(\"fecha_p\", fechai);\n parametro.put(\"fecha_s\", fechaf);\n parametro.put(\"año\", año);\n parametro.put(\"mes\", mes);\n v = u.runReporte(\"report7\", parametro);\n v.setTitle(\"Reporte mensual de ordenes auditadas\");\n v.setVisible(true);\n } else {\n System.out.println(\"mal\");\n }\n\n }\n if (rb_diario.isSelected() || this.reporte.getSelectedIndex() == 1) {\n if (this.reporte.getSelectedIndex() == 1) {\n fechafin = u.fechaCorrecta(variableFecha.format(this.fin.getDate()));\n fechainicio = u.fechaCorrecta(variableFecha.format(this.inicio.getDate()));\n } else {\n fechainicio = u.fechaCorrecta(variableFecha.format(this.dia.getDate()));\n fechafin = fechainicio;\n parametro.put(\"fecha1\", \"Del dia \" + fechainicio);\n }\n String p = \"('\" + fechainicio + \"','\" + fechafin + \"')\";\n if (u.ejecutarSP(p, \"reporteJoel\")) {\n v = u.runReporte(\"RordeAuditada\", parametro);\n v.setTitle(\"Reporte diario de ordenes auditadas\");\n v.setVisible(true);\n } else {\n System.out.println(\"mal\");\n }\n }\n if (rb_quincenal.isSelected()) {\n int mess = cb_mes.getSelectedIndex();\n mess = mess + 1;\n String ms = u.obtenerMes(mess);\n if (this.primera.isSelected()) {\n q = \"Primera\";\n String p = \"('\" + (año + \"-\" + mess + \"-\" + \"01\") + \"','\" + (año + \"-\" + mess + \"-\" + \"02\") + \"','\" + (año + \"-\" + mess + \"-\" + \"03\") + \"','\" + (año + \"-\" + mess + \"-\" + \"04\") + \"','\" + (año + \"-\" + mess + \"-\" + \"05\") + \"','\" + (año + \"-\" + mess + \"-\" + \"06\") + \"','\" + (año + \"-\" + mess + \"-\" + \"07\") + \"','\" + (año + \"-\" + mess + \"-\" + \"08\") + \"','\" + (año + \"-\" + mess + \"-\" + \"09\") + \"','\" + (año + \"-\" + mess + \"-\" + \"10\") + \"','\" + (año + \"-\" + mess + \"-\" + \"01\") + \"','\" + (año + \"-\" + mess + \"-\" + \"11\") + \"','\" + (año + \"-\" + mess + \"-\" + \"12\") + \"','\" + (año + \"-\" + mess + \"-\" + \"13\") + \"','\" + (año + \"-\" + mess + \"-\" + \"14\") + \"','\" + (año + \"-\" + mess + \"-\" + \"15\") + \"')\";\n if (u.ejecutarSP(p, \"Rauditada_quincenal\")) {\n parametro.put(\"d1\", ms);\n parametro.put(\"d2\", año);\n parametro.put(\"q\", q);\n v = u.runReporte(\"Raudita_quincenal\", parametro);\n v.setTitle(\"Reporte quincenal de ordenes auditadas\");\n v.setVisible(true);\n } else {\n System.out.println(\"mal\");\n }\n } else {\n if (this.segunda.isSelected()) {\n q = \"Segunda\";\n if (mess == 2) {\n String p = \"('\" + (año + \"-\" + mess + \"-\" + \"16\") + \"','\" + (año + \"-\" + mess + \"-\" + \"17\") + \"','\" + (año + \"-\" + mess + \"-\" + \"18\") + \"','\" + (año + \"-\" + mess + \"-\" + \"19\") + \"','\" + (año + \"-\" + mess + \"-\" + \"20\") + \"','\" + (año + \"-\" + mess + \"-\" + \"21\") + \"','\" + (año + \"-\" + mess + \"-\" + \"22\") + \"','\" + (año + \"-\" + mess + \"-\" + \"23\") + \"','\" + (año + \"-\" + mess + \"-\" + \"24\") + \"','\" + (año + \"-\" + mess + \"-\" + \"25\") + \"','\" + (año + \"-\" + mess + \"-\" + \"16\") + \"','\" + (año + \"-\" + mess + \"-\" + \"26\") + \"','\" + (año + \"-\" + mess + \"-\" + \"27\") + \"','\" + (año + \"-\" + mess + \"-\" + \"28\") + \"','\" + (año + \"-\" + mess + \"-\" + \"28\") + \"','\" + (año + \"-\" + mess + \"-\" + \"28\") + \"')\";\n if (u.ejecutarSP(p, \"Rauditada_quincenal\")) {\n\n parametro.put(\"d1\", ms);\n parametro.put(\"d2\", año);\n\n parametro.put(\"q\", q);\n v = u.runReporte(\"Raudita_quincenal\", parametro);\n v.setTitle(\"Reporte quincenal de ordenes auditadas\");\n v.setVisible(true);\n } else {\n System.out.println(\"mal\");\n }\n } else {\n String p = \"('\" + (año + \"-\" + mess + \"-\" + \"16\") + \"','\" + (año + \"-\" + mess + \"-\" + \"17\") + \"','\" + (año + \"-\" + mess + \"-\" + \"18\") + \"','\" + (año + \"-\" + mess + \"-\" + \"19\") + \"','\" + (año + \"-\" + mess + \"-\" + \"20\") + \"','\" + (año + \"-\" + mess + \"-\" + \"21\") + \"','\" + (año + \"-\" + mess + \"-\" + \"22\") + \"','\" + (año + \"-\" + mess + \"-\" + \"23\") + \"','\" + (año + \"-\" + mess + \"-\" + \"24\") + \"','\" + (año + \"-\" + mess + \"-\" + \"25\") + \"','\" + (año + \"-\" + mess + \"-\" + \"16\") + \"','\" + (año + \"-\" + mess + \"-\" + \"26\") + \"','\" + (año + \"-\" + mess + \"-\" + \"27\") + \"','\" + (año + \"-\" + mess + \"-\" + \"28\") + \"','\" + (año + \"-\" + mess + \"-\" + \"29\") + \"','\" + (año + \"-\" + mess + \"-\" + \"30\") + \"')\";\n if (u.ejecutarSP(p, \"Rauditada_quincenal\")) {\n parametro.put(\"d1\", ms);\n parametro.put(\"d2\", año);\n parametro.put(\"q\", q);\n v = u.runReporte(\"Raudita_quincenal\", parametro);\n v.setTitle(\"Reporte quincenal de ordenes auditadas\");\n v.setVisible(true);\n } else {\n System.out.println(\"mal\");\n }\n\n }\n }\n }\n }\n break;\n case 2:\n try {\n fechainicio = u.fechaCorrecta(variableFecha.format(this.inicio.getDate()));\n fechafin = u.fechaCorrecta(variableFecha.format(this.fin.getDate()));\n parametro.put(\"fechaInicio\", fechainicio);\n parametro.put(\"fechaFin\", fechafin);\n v = u.runReporte(\"reporte_errores_diarios\", parametro);\n v.setTitle(\"Reporte de Errores\");\n v.setVisible(true);\n } catch (Exception ex) {\n JOptionPane.showMessageDialog(null, \"No se pudo generar el reporte\", \"Reporte\", JOptionPane.ERROR_MESSAGE);\n ErroresSiapo.agregar(ex, \"codigo 39\");\n }\n break;\n case 3:\n \n if (this.reporte.getSelectedIndex() == 1) {\n fechafin = u.fechaCorrecta(variableFecha.format(this.fin.getDate()));\n fechainicio = u.fechaCorrecta(variableFecha.format(this.inicio.getDate()));\n parametro.put(\"PERIODO\", \"Del \" + u.fechaReves(fechainicio) + \" al \" + u.fechaReves(fechafin));\n } else {\n String m = Integer.toString(this.cb_mes.getSelectedIndex() + 1);\n fechafin = año + \"-\" + m + \"-\" + u.numero(this.cb_mes.getSelectedIndex() + 1);\n fechainicio = año + \"-\" + m + \"-01\";\n parametro.put(\"PERIODO\", \"Del mes de \" + u.obtenerMes(this.cb_mes.getSelectedIndex() + 1) + \" del año \" + año);\n }\n String p = \"('\" + fechainicio + \"','\" + fechafin + \"')\";\n if (u.ejecutarSP(p, \"ERRORES\")) {\n v = u.runReporte(\"analisisDeEficiencia\", parametro);\n v.setTitle(\"Reporte de Analisis de Eficiencia\");\n v.setVisible(true);\n } else {\n ErroresSiapo.agregar(null, \"codigo 39\");\n System.out.println(\"mal\");\n }\n break;\n case 4: \n try {\n fechainicio = u.fechaCorrecta(variableFecha.format(this.inicio.getDate()));\n fechafin = u.fechaCorrecta(variableFecha.format(this.fin.getDate()));\n parametro.put(\"fecha\", fechainicio);\n parametro.put(\"fechaFin\", fechafin);\n v = u.runReporte(\"reporteDiarioOrdenesRegreso\", parametro);\n v.setTitle(\"Reporte de Razones\");\n v.setVisible(true);\n } catch (Exception e) {\n ErroresSiapo.agregar(e, \"codigo 38\");\n JOptionPane.showMessageDialog(null, \"No se pudo generar el reporte\", \"Reporte\", JOptionPane.ERROR_MESSAGE);\n }\n break;\n }\n } catch (Exception e) {\n }\n\n }", "private void btnReporteActionPerformed(java.awt.event.ActionEvent evt) {\n HashMap parametros = new HashMap();\n parametros.put(\"Logo\", \".//src//Imagenes//BuscarComputadora.png\");\n parametros.put(\"Titulo\", \"Resultado de Análisis\");\n parametros.put(\"Subtitulo\", \"Documentos\");\n JasperPrint jprint = EvaluacionBL.generaReporte(\"rptReporteAnalisis\", parametros, null);\n\n try {\n JRViewer jrv = new JRViewer(jprint);\n JFrame frmReporteAnalisis = new JFrame();\n frmReporteAnalisis.getContentPane().add(jrv,BorderLayout.CENTER);\n frmReporteAnalisis.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n frmReporteAnalisis.setSize(706, 478);\n\n frmReporteAnalisis.setTitle(\"Pre - View de Resultado de Análisis\");\n frmReporteAnalisis.setVisible(true);\n\n }catch(Exception e){\n System.out.println(e.getMessage());\n }\n\n }", "public void verReporte(){\n //Guardamos en variables los valores de los parametros que pasaremos al reporte\n int cc = this.clienteTMP.getCodCliente();\n int cv = this.vendedor.getCodVendedor();\n int cf = this.facturaTMP.getCodFactura();\n \n System.out.println(\"Codigo cliente: \"+cc);\n System.out.println(\"Codigo vendedor: \"+cv);\n System.out.println(\"Codigo factura: \"+cf);\n \n //obtenemos la ruta en el sistema de archivos del archivo .jasper a\n //partir de la ruta relativa en el proyecto\n //Obtenemos el contexto de la aplicacion y lo depositamos en una variable\n //ServletContext\n ServletContext servletContext = \n (ServletContext)FacesContext.getCurrentInstance().getExternalContext().getContext();\n \n String rutaReporte = servletContext.getRealPath(\"/reportes/factura503.jasper\");\n System.out.println(\"Ruta del reporte: \"+rutaReporte);\n //Limpiamos la variables Temporales\n clienteTMP = new Cliente();\n facturaTMP = new Factura();\n \n //Creamos el reporte\n ReporteFactura.createReport(rutaReporte, cc, cv, cf);\n //exportamos el reporte a PDF\n ReporteFactura.exportReportToPdfWeb();\n \n //Cerramos el contexto\n FacesContext.getCurrentInstance().responseComplete();\n \n }", "void exportarLog() {\n try {\n JasperPrint rU = null;\n HashMap map = new HashMap();\n\n String arquivoJasper = \"/Sistema/relatorios/relatorioAcessos.jasper\";\n try{\n rU = JasperFillManager.fillReport(arquivoJasper, map, parametrosNS.con);\n }catch(Exception e){ \n JOptionPane.showMessageDialog(null, \"visualizar relatorio \" + e);\n JOptionPane.showMessageDialog(null, e.getMessage());\n }\n JasperViewer.viewReport(rU, false); \n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, \"o erro foi ao gerar relatorio \" + e);\n }\n }", "public void m36045a() {\n this.f29981a.showReportDialog();\n }", "@Override\r\n public void aceptarReporte() {\n if (rep_reporte.getReporteSelecionado().equals(\"Libro Diario\")) {\r\n if (rep_reporte.isVisible()) {\r\n parametro = new HashMap();\r\n rep_reporte.cerrar();\r\n sec_rango_reporte.setMultiple(true);\r\n sec_rango_reporte.dibujar();\r\n utilitario.addUpdate(\"rep_reporte,sec_rango_reporte\");\r\n\r\n } else if (sec_rango_reporte.isVisible()) {\r\n String estado = \"\" + utilitario.getVariable(\"p_con_estado_comprobante_normal\") + \",\" + utilitario.getVariable(\"p_con_estado_comp_inicial\") + \",\" + utilitario.getVariable(\"p_con_estado_comp_final\");\r\n parametro.put(\"fecha_inicio\", sec_rango_reporte.getFecha1());\r\n parametro.put(\"fecha_fin\", sec_rango_reporte.getFecha2());\r\n\r\n parametro.put(\"ide_cneco\", estado);\r\n parametro.put(\"ide_cnlap_haber\", p_con_lugar_haber);\r\n parametro.put(\"ide_cnlap_debe\", p_con_lugar_debe);\r\n sec_rango_reporte.cerrar();\r\n sel_rep.setSeleccionFormatoReporte(parametro, rep_reporte.getPath());\r\n sel_rep.dibujar();\r\n utilitario.addUpdate(\"sel_rep,sec_rango_reporte\");\r\n }\r\n } else if (rep_reporte.getReporteSelecionado().equals(\"Balance General Consolidado\")) {\r\n if (rep_reporte.isVisible()) {\r\n parametro = new HashMap();\r\n rep_reporte.cerrar();\r\n sec_rango_reporte.setMultiple(true);\r\n sec_rango_reporte.dibujar();\r\n utilitario.addUpdate(\"rep_reporte,sec_rango_reporte\");\r\n } else if (sec_rango_reporte.isVisible()) {\r\n if (sec_rango_reporte.getFecha1String() != null && !sec_rango_reporte.getFecha1String().isEmpty()) {\r\n if (sec_rango_reporte.getFecha2String() != null && !sec_rango_reporte.getFecha2String().isEmpty()) {\r\n fecha_fin = sec_rango_reporte.getFecha2String();\r\n fecha_inicio = con.getFechaInicialPeriodo(fecha_fin);\r\n if (fecha_inicio != null && !fecha_inicio.isEmpty()) {\r\n sec_rango_reporte.cerrar();\r\n sel_tab_nivel.dibujar();\r\n utilitario.addUpdate(\"sec_rango_reporte,sel_tab_nivel\");\r\n } else {\r\n utilitario.agregarMensajeError(\"Atencion\", \"El rango de fechas seleccionado no se encuentra en ningun Periodo Contable\");\r\n }\r\n } else {\r\n utilitario.agregarMensajeError(\"Atencion\", \"No ha seleccionado la fecha final\");\r\n }\r\n } else {\r\n utilitario.agregarMensajeError(\"Atencion\", \"No ha seleccionado la fecha inicial\");\r\n }\r\n } else if (sel_tab_nivel.isVisible()) {\r\n if (sel_tab_nivel.getValorSeleccionado() != null) {\r\n System.out.println(\"fecha fin \" + fecha_fin);\r\n parametro.put(\"p_activo\", utilitario.getVariable(\"p_con_tipo_cuenta_activo\"));\r\n parametro.put(\"p_pasivo\", utilitario.getVariable(\"p_con_tipo_cuenta_pasivo\"));\r\n parametro.put(\"p_patrimonio\", utilitario.getVariable(\"p_con_tipo_cuenta_patrimonio\"));\r\n TablaGenerica tab_datos = utilitario.consultar(\"SELECT * FROM sis_empresa e, sis_sucursal s where s.ide_empr=e.ide_empr and s.ide_empr=\" + utilitario.getVariable(\"ide_empr\") + \" and s.ide_sucu=\" + utilitario.getVariable(\"ide_sucu\"));\r\n if (tab_datos.getTotalFilas() > 0) {\r\n parametro.put(\"logo\", tab_datos.getValor(0, \"logo_empr\"));\r\n parametro.put(\"empresa\", tab_datos.getValor(0, \"nom_empr\"));\r\n parametro.put(\"sucursal\", tab_datos.getValor(0, \"nom_sucu\"));\r\n parametro.put(\"direccion\", tab_datos.getValor(0, \"direccion_sucu\"));\r\n parametro.put(\"telefono\", tab_datos.getValor(0, \"telefonos_sucu\"));\r\n parametro.put(\"ruc\", tab_datos.getValor(0, \"identificacion_empr\"));\r\n\r\n }\r\n parametro.put(\"fecha_inicio\", getFormatoFecha(fecha_inicio));\r\n parametro.put(\"fecha_fin\", getFormatoFecha(fecha_fin));\r\n TablaGenerica tab_balance = con.generarBalanceGeneral(true, fecha_inicio, fecha_fin, Integer.parseInt(sel_tab_nivel.getValorSeleccionado()));\r\n parametro.put(\"titulo\", \"BALANCE GENERAL CONSOLIDADO\");\r\n if (tab_balance.getTotalFilas() > 0) {\r\n List lis_totales = con.obtenerTotalesBalanceGeneral(true, fecha_inicio, fecha_fin);\r\n double tot_activo = Double.parseDouble(lis_totales.get(0) + \"\");\r\n double tot_pasivo = Double.parseDouble(lis_totales.get(1) + \"\");\r\n double tot_patrimonio = Double.parseDouble(lis_totales.get(2) + \"\");\r\n double utilidad_perdida = tot_activo - tot_pasivo - tot_patrimonio;\r\n double total = tot_pasivo + tot_patrimonio + utilidad_perdida;\r\n parametro.put(\"p_tot_activo\", tot_activo);\r\n parametro.put(\"p_total\", total);\r\n parametro.put(\"p_utilidad_perdida\", utilidad_perdida);\r\n parametro.put(\"p_tot_pasivo\", tot_pasivo);\r\n parametro.put(\"p_tot_patrimonio\", (tot_patrimonio));\r\n }\r\n sel_tab_nivel.cerrar();\r\n ReporteDataSource data = new ReporteDataSource(tab_balance);\r\n sel_rep.setSeleccionFormatoReporte(parametro, rep_reporte.getPath(), data);\r\n sel_rep.dibujar();\r\n\r\n utilitario.addUpdate(\"sel_rep,sel_tab_nivel\");\r\n }\r\n }\r\n } else if (rep_reporte.getReporteSelecionado().equals(\"Balance General\")) {\r\n if (rep_reporte.isVisible()) {\r\n parametro = new HashMap();\r\n rep_reporte.cerrar();\r\n sec_rango_reporte.setMultiple(true);\r\n sec_rango_reporte.dibujar();\r\n utilitario.addUpdate(\"rep_reporte,sec_rango_reporte\");\r\n } else if (sec_rango_reporte.isVisible()) {\r\n if (sec_rango_reporte.getFecha1String() != null && !sec_rango_reporte.getFecha1String().isEmpty()) {\r\n if (sec_rango_reporte.getFecha2String() != null && !sec_rango_reporte.getFecha2String().isEmpty()) {\r\n fecha_fin = sec_rango_reporte.getFecha2String();\r\n fecha_inicio = con.getFechaInicialPeriodo(fecha_fin);\r\n if (fecha_inicio != null && !fecha_inicio.isEmpty()) {\r\n sec_rango_reporte.cerrar();\r\n sel_tab_nivel.dibujar();\r\n utilitario.addUpdate(\"sec_rango_reporte,sel_tab_nivel\");\r\n } else {\r\n utilitario.agregarMensajeError(\"Atencion\", \"El rango de fechas seleccionado no se encuentra en ningun Periodo Contable\");\r\n }\r\n\r\n } else {\r\n utilitario.agregarMensajeError(\"Atencion\", \"No ha seleccionado la fecha final\");\r\n }\r\n } else {\r\n utilitario.agregarMensajeError(\"Atencion\", \"No ha seleccionado la fecha inicial\");\r\n }\r\n } else if (sel_tab_nivel.isVisible()) {\r\n if (sel_tab_nivel.getValorSeleccionado() != null) {\r\n System.out.println(\"fecha fin \" + fecha_fin);\r\n parametro.put(\"p_activo\", utilitario.getVariable(\"p_con_tipo_cuenta_activo\"));\r\n parametro.put(\"p_pasivo\", utilitario.getVariable(\"p_con_tipo_cuenta_pasivo\"));\r\n parametro.put(\"p_patrimonio\", utilitario.getVariable(\"p_con_tipo_cuenta_patrimonio\"));\r\n TablaGenerica tab_datos = utilitario.consultar(\"SELECT * FROM sis_empresa e, sis_sucursal s where s.ide_empr=e.ide_empr and s.ide_empr=\" + utilitario.getVariable(\"ide_empr\") + \" and s.ide_sucu=\" + utilitario.getVariable(\"ide_sucu\"));\r\n if (tab_datos.getTotalFilas() > 0) {\r\n parametro.put(\"logo\", tab_datos.getValor(0, \"logo_empr\"));\r\n parametro.put(\"empresa\", tab_datos.getValor(0, \"nom_empr\"));\r\n parametro.put(\"sucursal\", tab_datos.getValor(0, \"nom_sucu\"));\r\n parametro.put(\"direccion\", tab_datos.getValor(0, \"direccion_sucu\"));\r\n parametro.put(\"telefono\", tab_datos.getValor(0, \"telefonos_sucu\"));\r\n parametro.put(\"ruc\", tab_datos.getValor(0, \"identificacion_empr\"));\r\n\r\n }\r\n parametro.put(\"fecha_inicio\", getFormatoFecha(fecha_inicio));\r\n parametro.put(\"fecha_fin\", getFormatoFecha(fecha_fin));\r\n TablaGenerica tab_balance = con.generarBalanceGeneral(false, fecha_inicio, fecha_fin, Integer.parseInt(sel_tab_nivel.getValorSeleccionado()));\r\n parametro.put(\"titulo\", \"BALANCE GENERAL\");\r\n if (tab_balance.getTotalFilas() > 0) {\r\n List lis_totales = con.obtenerTotalesBalanceGeneral(false, fecha_inicio, fecha_fin);\r\n double tot_activo = Double.parseDouble(lis_totales.get(0) + \"\");\r\n double tot_pasivo = Double.parseDouble(lis_totales.get(1) + \"\");\r\n double tot_patrimonio = Double.parseDouble(lis_totales.get(2) + \"\");\r\n double utilidad_perdida = tot_activo - tot_pasivo - tot_patrimonio;\r\n double total = tot_pasivo + tot_patrimonio + utilidad_perdida;\r\n parametro.put(\"p_tot_activo\", tot_activo);\r\n parametro.put(\"p_total\", total);\r\n parametro.put(\"p_utilidad_perdida\", utilidad_perdida);\r\n parametro.put(\"p_tot_pasivo\", tot_pasivo);\r\n parametro.put(\"p_tot_patrimonio\", (tot_patrimonio));\r\n }\r\n sel_tab_nivel.cerrar();\r\n ReporteDataSource data = new ReporteDataSource(tab_balance);\r\n sel_rep.setSeleccionFormatoReporte(parametro, rep_reporte.getPath(), data);\r\n sel_rep.dibujar();\r\n\r\n utilitario.addUpdate(\"sel_rep,sel_tab_nivel\");\r\n }\r\n }\r\n } else if (rep_reporte.getReporteSelecionado().equals(\"Estado de Resultados Consolidado\")) {\r\n if (rep_reporte.isVisible()) {\r\n parametro = new HashMap();\r\n rep_reporte.cerrar();\r\n sec_rango_reporte.setMultiple(true);\r\n sec_rango_reporte.dibujar();\r\n utilitario.addUpdate(\"rep_reporte,sec_rango_reporte\");\r\n } else if (sec_rango_reporte.isVisible()) {\r\n if (sec_rango_reporte.getFecha1String() != null && !sec_rango_reporte.getFecha1String().isEmpty()) {\r\n if (sec_rango_reporte.getFecha2String() != null && !sec_rango_reporte.getFecha2String().isEmpty()) {\r\n fecha_fin = sec_rango_reporte.getFecha2String();\r\n fecha_inicio = con.getFechaInicialPeriodo(fecha_fin);\r\n if (fecha_inicio != null && !fecha_inicio.isEmpty()) {\r\n sec_rango_reporte.cerrar();\r\n sel_tab_nivel.dibujar();\r\n utilitario.addUpdate(\"sec_rango_reporte,sel_tab_nivel\");\r\n }\r\n } else {\r\n utilitario.agregarMensajeError(\"Atencion\", \"No ha seleccionado la fecha fin\");\r\n }\r\n } else {\r\n utilitario.agregarMensajeError(\"Atencion\", \"No ha seleccionado la fecha inicio\");\r\n }\r\n } else if (sel_tab_nivel.isVisible()) {\r\n if (sel_tab_nivel.getValorSeleccionado() != null) {\r\n parametro.put(\"p_ingresos\", utilitario.getVariable(\"p_con_tipo_cuenta_ingresos\"));\r\n parametro.put(\"p_gastos\", utilitario.getVariable(\"p_con_tipo_cuenta_gastos\"));\r\n parametro.put(\"p_costos\", utilitario.getVariable(\"p_con_tipo_cuenta_costos\"));\r\n TablaGenerica tab_datos = utilitario.consultar(\"SELECT * FROM sis_empresa e, sis_sucursal s where s.ide_empr=e.ide_empr and s.ide_empr=\" + utilitario.getVariable(\"ide_empr\") + \" and s.ide_sucu=\" + utilitario.getVariable(\"ide_sucu\"));\r\n if (tab_datos.getTotalFilas() > 0) {\r\n parametro.put(\"logo\", tab_datos.getValor(0, \"logo_empr\"));\r\n parametro.put(\"empresa\", tab_datos.getValor(0, \"nom_empr\"));\r\n parametro.put(\"sucursal\", tab_datos.getValor(0, \"nom_sucu\"));\r\n parametro.put(\"direccion\", tab_datos.getValor(0, \"direccion_sucu\"));\r\n parametro.put(\"telefono\", tab_datos.getValor(0, \"telefonos_sucu\"));\r\n parametro.put(\"ruc\", tab_datos.getValor(0, \"identificacion_empr\"));\r\n }\r\n\r\n parametro.put(\"fecha_inicio\", getFormatoFecha(fecha_inicio));\r\n parametro.put(\"fecha_fin\", getFormatoFecha(fecha_fin));\r\n TablaGenerica tab_estado = con.generarEstadoResultados(true, fecha_inicio, fecha_fin, Integer.parseInt(sel_tab_nivel.getValorSeleccionado()));\r\n if (tab_estado.getTotalFilas() > 0) {\r\n List lis_totales = con.obtenerTotalesEstadoResultados(true, fecha_inicio, fecha_fin);\r\n double tot_ingresos = Double.parseDouble(lis_totales.get(0) + \"\");\r\n double tot_gastos = Double.parseDouble(lis_totales.get(1) + \"\");\r\n double tot_costos = Double.parseDouble(lis_totales.get(2) + \"\");\r\n double utilidad_perdida = tot_ingresos - (tot_gastos + tot_costos);\r\n parametro.put(\"p_tot_ingresos\", tot_ingresos);\r\n parametro.put(\"p_tot_gastos\", tot_gastos);\r\n parametro.put(\"p_tot_costos\", tot_costos);\r\n parametro.put(\"p_utilidad\", utilidad_perdida);\r\n }\r\n parametro.put(\"titulo\", \"ESTADO DE RESULTADOS CONSOLIDADO\");\r\n ReporteDataSource data = new ReporteDataSource(tab_estado);\r\n sel_tab_nivel.cerrar();\r\n sel_rep.setSeleccionFormatoReporte(parametro, rep_reporte.getPath(), data);\r\n sel_rep.dibujar();\r\n utilitario.addUpdate(\"sel_rep,sel_tab_nivel\");\r\n }\r\n }\r\n\r\n } else if (rep_reporte.getReporteSelecionado().equals(\"Estado de Resultados\")) {\r\n if (rep_reporte.isVisible()) {\r\n parametro = new HashMap();\r\n rep_reporte.cerrar();\r\n sec_rango_reporte.setMultiple(true);\r\n sec_rango_reporte.dibujar();\r\n utilitario.addUpdate(\"rep_reporte,sec_rango_reporte\");\r\n } else if (sec_rango_reporte.isVisible()) {\r\n if (sec_rango_reporte.getFecha1String() != null && !sec_rango_reporte.getFecha1String().isEmpty()) {\r\n if (sec_rango_reporte.getFecha2String() != null && !sec_rango_reporte.getFecha2String().isEmpty()) {\r\n fecha_fin = sec_rango_reporte.getFecha2String();\r\n fecha_inicio = con.getFechaInicialPeriodo(fecha_fin);\r\n if (fecha_inicio != null && !fecha_inicio.isEmpty()) {\r\n sec_rango_reporte.cerrar();\r\n sel_tab_nivel.dibujar();\r\n utilitario.addUpdate(\"sec_rango_reporte,sel_tab_nivel\");\r\n }\r\n } else {\r\n utilitario.agregarMensajeError(\"Atencion\", \"No ha seleccionado la fecha fin\");\r\n }\r\n } else {\r\n utilitario.agregarMensajeError(\"Atencion\", \"No ha seleccionado la fecha inicio\");\r\n }\r\n } else if (sel_tab_nivel.isVisible()) {\r\n if (sel_tab_nivel.getValorSeleccionado() != null) {\r\n parametro.put(\"p_ingresos\", utilitario.getVariable(\"p_con_tipo_cuenta_ingresos\"));\r\n parametro.put(\"p_gastos\", utilitario.getVariable(\"p_con_tipo_cuenta_gastos\"));\r\n parametro.put(\"p_costos\", utilitario.getVariable(\"p_con_tipo_cuenta_costos\"));\r\n TablaGenerica tab_datos = utilitario.consultar(\"SELECT * FROM sis_empresa e, sis_sucursal s where s.ide_empr=e.ide_empr and s.ide_empr=\" + utilitario.getVariable(\"ide_empr\") + \" and s.ide_sucu=\" + utilitario.getVariable(\"ide_sucu\"));\r\n if (tab_datos.getTotalFilas() > 0) {\r\n parametro.put(\"logo\", tab_datos.getValor(0, \"logo_empr\"));\r\n parametro.put(\"empresa\", tab_datos.getValor(0, \"nom_empr\"));\r\n parametro.put(\"sucursal\", tab_datos.getValor(0, \"nom_sucu\"));\r\n parametro.put(\"direccion\", tab_datos.getValor(0, \"direccion_sucu\"));\r\n parametro.put(\"telefono\", tab_datos.getValor(0, \"telefonos_sucu\"));\r\n parametro.put(\"ruc\", tab_datos.getValor(0, \"identificacion_empr\"));\r\n }\r\n\r\n parametro.put(\"fecha_inicio\", getFormatoFecha(fecha_inicio));\r\n parametro.put(\"fecha_fin\", getFormatoFecha(fecha_fin));\r\n TablaGenerica tab_estado = con.generarEstadoResultados(false, fecha_inicio, fecha_fin, Integer.parseInt(sel_tab_nivel.getValorSeleccionado()));\r\n if (tab_estado.getTotalFilas() > 0) {\r\n List lis_totales = con.obtenerTotalesEstadoResultados(false, fecha_inicio, fecha_fin);\r\n double tot_ingresos = Double.parseDouble(lis_totales.get(0) + \"\");\r\n double tot_gastos = Double.parseDouble(lis_totales.get(1) + \"\");\r\n double tot_costos = Double.parseDouble(lis_totales.get(2) + \"\");\r\n double utilidad_perdida = tot_ingresos - (tot_gastos + tot_costos);\r\n parametro.put(\"p_tot_ingresos\", tot_ingresos);\r\n parametro.put(\"p_tot_gastos\", tot_gastos);\r\n parametro.put(\"p_tot_costos\", tot_costos);\r\n parametro.put(\"p_utilidad\", utilidad_perdida);\r\n }\r\n ReporteDataSource data = new ReporteDataSource(tab_estado);\r\n parametro.put(\"titulo\", \"ESTADO DE RESULTADOS\");\r\n sel_tab_nivel.cerrar();\r\n sel_rep.setSeleccionFormatoReporte(parametro, rep_reporte.getPath(), data);\r\n sel_rep.dibujar();\r\n utilitario.addUpdate(\"sel_rep,sel_tab_nivel\");\r\n }\r\n }\r\n\r\n } else if (rep_reporte.getReporteSelecionado().equals(\"Libro Mayor\")) {\r\n if (rep_reporte.isVisible()) {\r\n parametro = new HashMap();\r\n rep_reporte.cerrar();\r\n lis_ide_cndpc_sel.clear();\r\n lis_ide_cndpc_deseleccionados.clear();\r\n int_count_deseleccion = 0;\r\n int_count_seleccion = 0;\r\n sel_tab.getTab_seleccion().setSeleccionados(null);\r\n// utilitario.ejecutarJavaScript(sel_tab.getTab_seleccion().getId() + \".clearFilters();\");\r\n sel_tab.dibujar();\r\n utilitario.addUpdate(\"rep_reporte,sel_tab\");\r\n } else {\r\n if (sel_tab.isVisible()) {\r\n\r\n if (sel_tab.getSeleccionados() != null && !sel_tab.getSeleccionados().isEmpty()) {\r\n System.out.println(\"nn \" + sel_tab.getSeleccionados());\r\n parametro.put(\"ide_cndpc\", sel_tab.getSeleccionados());//lista sel \r\n sel_tab.cerrar();\r\n String estado = \"\" + utilitario.getVariable(\"p_con_estado_comprobante_normal\") + \",\" + utilitario.getVariable(\"p_con_estado_comp_inicial\") + \",\" + utilitario.getVariable(\"p_con_estado_comp_final\");\r\n parametro.put(\"ide_cneco\", estado);\r\n sec_rango_reporte.setMultiple(true);\r\n sec_rango_reporte.dibujar();\r\n utilitario.addUpdate(\"sel_tab,sec_rango_reporte\");\r\n\r\n } else {\r\n utilitario.agregarMensajeInfo(\"Debe seleccionar al menos una cuenta contable\", \"\");\r\n }\r\n// if (lis_ide_cndpc_deseleccionados.size() == 0) {\r\n// System.out.println(\"sel tab lis \" + sel_tab.getSeleccionados());\r\n// parametro.put(\"ide_cndpc\", sel_tab.getSeleccionados());//lista sel \r\n// } else {\r\n// System.out.println(\"sel tab \" + utilitario.generarComillasLista(lis_ide_cndpc_deseleccionados));\r\n// parametro.put(\"ide_cndpc\", utilitario.generarComillasLista(lis_ide_cndpc_deseleccionados));//lista sel \r\n// }\r\n } else if (sec_rango_reporte.isVisible()) {\r\n if (sec_rango_reporte.isFechasValidas()) {\r\n parametro.put(\"fecha_inicio\", sec_rango_reporte.getFecha1());\r\n parametro.put(\"fecha_fin\", sec_rango_reporte.getFecha2());\r\n parametro.put(\"ide_cnlap_haber\", p_con_lugar_haber);\r\n parametro.put(\"ide_cnlap_debe\", p_con_lugar_debe);\r\n sec_rango_reporte.cerrar();\r\n sel_rep.setSeleccionFormatoReporte(parametro, rep_reporte.getPath());\r\n sel_rep.dibujar();\r\n utilitario.addUpdate(\"sel_rep,sec_rango_reporte\");\r\n } else {\r\n utilitario.agregarMensajeInfo(\"Las fechas seleccionadas no son correctas\", \"\");\r\n }\r\n }\r\n }\r\n } else if (rep_reporte.getReporteSelecionado().equals(\"Balance de Comprobacion\")) {\r\n if (rep_reporte.isVisible()) {\r\n parametro = new HashMap();\r\n rep_reporte.cerrar();\r\n sec_rango_reporte.setMultiple(true);\r\n sec_rango_reporte.dibujar();\r\n utilitario.addUpdate(\"rep_reporte,sec_rango_reporte\");\r\n\r\n } else {\r\n if (sec_rango_reporte.isVisible()) {\r\n if (sec_rango_reporte.getFecha1String() != null && !sec_rango_reporte.getFecha1String().isEmpty()) {\r\n if (sec_rango_reporte.getFecha2String() != null && !sec_rango_reporte.getFecha2String().isEmpty()) {\r\n String fecha_fin1 = sec_rango_reporte.getFecha2String();\r\n String fecha_inicio1 = sec_rango_reporte.getFecha1String();\r\n System.out.println(\"fecha fin \" + fecha_fin1);\r\n sec_rango_reporte.cerrar();\r\n\r\n TablaGenerica tab_datos = utilitario.consultar(\"SELECT * FROM sis_empresa e, sis_sucursal s where s.ide_empr=e.ide_empr and s.ide_empr=\" + utilitario.getVariable(\"ide_empr\") + \" and s.ide_sucu=\" + utilitario.getVariable(\"ide_sucu\"));\r\n if (tab_datos.getTotalFilas() > 0) {\r\n parametro.put(\"logo\", tab_datos.getValor(0, \"logo_empr\"));\r\n parametro.put(\"empresa\", tab_datos.getValor(0, \"nom_empr\"));\r\n parametro.put(\"sucursal\", tab_datos.getValor(0, \"nom_sucu\"));\r\n parametro.put(\"direccion\", tab_datos.getValor(0, \"direccion_sucu\"));\r\n parametro.put(\"telefono\", tab_datos.getValor(0, \"telefonos_sucu\"));\r\n parametro.put(\"ruc\", tab_datos.getValor(0, \"identificacion_empr\"));\r\n }\r\n String fechaPeriodoActivo = con.obtenerFechaInicialPeriodoActivo();\r\n// if (fechaPeriodoActivo != null && !fechaPeriodoActivo.isEmpty()) {\r\n parametro.put(\"fecha_inicio\", getFormatoFecha(fecha_inicio1));\r\n parametro.put(\"fecha_fin\", getFormatoFecha(fecha_fin1));\r\n TablaGenerica tab_bal = con.generarBalanceComprobacion(fechaPeriodoActivo, fecha_fin1);\r\n double suma_debe = 0;\r\n double suma_haber = 0;\r\n double suma_deudor = 0;\r\n double suma_acreedor = 0;\r\n for (int i = 0; i < tab_bal.getTotalFilas() - 1; i++) {\r\n suma_debe = Double.parseDouble(tab_bal.getValor(i, \"debe\")) + suma_debe;\r\n suma_haber = Double.parseDouble(tab_bal.getValor(i, \"haber\")) + suma_haber;\r\n suma_deudor = Double.parseDouble(tab_bal.getValor(i, \"deudor\")) + suma_deudor;\r\n suma_acreedor = Double.parseDouble(tab_bal.getValor(i, \"acreedor\")) + suma_acreedor;\r\n }\r\n parametro.put(\"tot_debe\", suma_debe);\r\n parametro.put(\"tot_haber\", suma_haber);\r\n parametro.put(\"tot_deudor\", suma_deudor);\r\n parametro.put(\"tot_acreedor\", suma_acreedor);\r\n ReporteDataSource data = new ReporteDataSource(tab_bal);\r\n sel_rep.setSeleccionFormatoReporte(parametro, rep_reporte.getPath(), data);\r\n sel_rep.dibujar();\r\n utilitario.addUpdate(\"sel_rep,sec_rango_reporte\");\r\n }\r\n// }\r\n } else {\r\n utilitario.agregarMensajeError(\"Atencion\", \"No ha seleccionado la fecha fin\");\r\n }\r\n } else {\r\n utilitario.agregarMensajeError(\"Atencion\", \"No ha seleccionado la fecha inicio\");\r\n }\r\n }\r\n\r\n } else if (rep_reporte.getReporteSelecionado().equals(\"Comprobante Contabilidad\")) {\r\n if (rep_reporte.isVisible()) {\r\n if (tab_tabla1.getValor(\"ide_cnccc\") != null) {\r\n parametro = new HashMap();\r\n rep_reporte.cerrar();\r\n parametro.put(\"ide_cnccc\", Long.parseLong(tab_tabla1.getValor(\"ide_cnccc\")));\r\n parametro.put(\"ide_cnlap_haber\", p_con_lugar_haber);\r\n parametro.put(\"ide_cnlap_debe\", p_con_lugar_debe);\r\n sel_rep.setSeleccionFormatoReporte(parametro, rep_reporte.getPath());\r\n sel_rep.dibujar();\r\n utilitario.addUpdate(\"rep_reporte,sel_rep\");\r\n } else {\r\n utilitario.agregarMensajeInfo(\"No se puede generar el reporte\", \"La fila seleccionada no tiene compraqbante de contabilidad\");\r\n }\r\n\r\n }\r\n }\r\n }", "public void onClick(View v) {\n\t\t\tif(v == Print)\n\t\t\t{\n\t\t\t\tSaveFileDialog fileDialog = new SaveFileDialog(SeatDetailsbyAgentActivity.this);\n\t\t fileDialog.setCallbackListener(new SaveFileDialog.Callback() {\n\t\t\t\t\t\n\t\t\t\t\tpublic void onCancel() {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t}\n\n\t\t\t\t\tpublic void onSave(String filename, boolean PDFChecked,\n\t\t\t\t\t\t\tboolean ExcelChecked) {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\tif(PDFChecked){\n\t\t\t\t\t\t\tnew SeatbyAgentPDFUtility(seatReports).createPdf(filename);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(ExcelChecked){\n\t\t\t\t\t\t\tnew SeatbyAgentExcelUtility(seatReports, filename).write();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tSKToastMessage.showMessage(SeatDetailsbyAgentActivity.this, \"သင္၏ Report PDF ဖုိင္ အာ External SD Card လမ္းေၾကာင္းသို႕ ထုတ္ ျပီးျပီး ျဖစ္ ပါသည္ \", SKToastMessage.SUCCESS);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t fileDialog.show();\n\t\t return;\n\t\t\t\t\n\t\t\t}\n\t\t}", "public static void reportes(){\n try {\n /**Variable necesaria para abrir el archivo creado*/\n Desktop pc=Desktop.getDesktop();\n /**Variables para escribir el documento*/\n File f=new File(\"Reporte_salvajes.html\");\n FileWriter w=new FileWriter(f);\n BufferedWriter bw=new BufferedWriter(w);\n PrintWriter pw=new PrintWriter(bw);\n \n /**Se inicia el documento HTML*/\n pw.write(\"<!DOCTYPE html>\\n\");\n pw.write(\"<html>\\n\");\n pw.write(\"<head>\\n\");\n pw.write(\"<title>Reporte de los Pokemons Salvajes</title>\\n\");\n pw.write(\"<style type=\\\"text/css\\\">\\n\" +\n \"body{\\n\" +\n \"background-color:rgba(117, 235, 148, 1);\\n\" +\n \"text-align: center;\\n\" +\n \"font-family:sans-serif;\\n\" +\n \"}\\n\"\n + \"table{\\n\" +\n\"\t\t\tborder: black 2px solid;\\n\" +\n\"\t\t\tborder-collapse: collapse;\\n\" +\n\" }\\n\"\n + \"#td1{\\n\" +\n\" border: black 2px solid;\\n\"\n + \" background-color: skyblue;\\n\" +\n\" }\\n\" +\n\" #td2{\\n\" +\n\" border: black 2px solid;\\n\"\n + \" background-color: white;\\n\" +\n\" }\\n\"\n +\"</style>\");\n pw.write(\"<meta charset=\\\"utf-8\\\">\");\n pw.write(\"</head>\\n\");\n /**Inicio del cuerpo*/\n pw.write(\"<body>\\n\");\n /**Título del reporte*/\n pw.write(\"<h1>Reporte de los Pokemons Salvajes</h1>\\n\");\n /**Fecha en que se genero el reporte*/\n pw.write(\"<h3>Documento Creado el \"+fecha.get(Calendar.DAY_OF_MONTH)+\n \"/\"+((int)fecha.get(Calendar.MONTH)+1)+\"/\"+fecha.get(Calendar.YEAR)+\" a las \"\n +fecha.get(Calendar.HOUR)+\":\"+fecha.get(Calendar.MINUTE)+\":\"+fecha.get(Calendar.SECOND)+\"</h3>\\n\");\n \n pw.write(\"<table align=\\\"center\\\">\\n\");\n //Se escriben los títulos de las columnas\n pw.write(\"<tr>\\n\");\n pw.write(\"<td id=\\\"td1\\\">\"+pokemon.Titulo[0]+\"</td>\\n\");\n pw.write(\"<td id=\\\"td1\\\">\"+pokemon.Titulo[1]+\"</td>\\n\");\n pw.write(\"<td id=\\\"td1\\\">\"+pokemon.Titulo[2]+\"</td>\\n\");\n pw.write(\"<td id=\\\"td1\\\">\"+pokemon.Titulo[3]+\"</td>\\n\");\n pw.write(\"<td id=\\\"td1\\\">\"+pokemon.Titulo[4]+\"</td>\\n\");\n pw.write(\"<td id=\\\"td1\\\">\"+pokemon.Titulo[5]+\"</td>\\n\");\n pw.write(\"<td id=\\\"td1\\\">\"+pokemon.Titulo[6]+\"</td>\\n\");\n pw.write(\"</tr>\\n\");\n for (int i = 0; i < pokemon.ingresados; i++) {\n //Se determina si el pokemon es salvaje\n if(pokemon.Capturado[i]==false){\n pw.write(\"<tr>\\n\");\n pw.write(\"<td id=\\\"td2\\\">\"+pokemon.Id[i]+\"</td>\\n\");\n pw.write(\"<td id=\\\"td2\\\">\"+pokemon.Tipo[i]+\"</td>\\n\");\n pw.write(\"<td id=\\\"td2\\\">\"+pokemon.Nombre[i]+\"</td>\\n\");\n pw.write(\"<td id=\\\"td2\\\">\"+pokemon.Vida[i]+\"</td>\\n\");\n pw.write(\"<td id=\\\"td2\\\">\"+pokemon.ptAt[i]+\"</td>\\n\");\n pw.write(\"<td id=\\\"td2\\\">Salvaje</td>\\n\");\n //Se determina si el pokemon esta vivo o muerto\n String estado;\n if (pokemon.Estado[i]==true) {\n estado=\"Vivo\";\n }else{estado=\"Muerto\";}\n pw.write(\"<td id=\\\"td2\\\">\"+estado+\"</td>\\n\");\n pw.write(\"</tr>\\n\");\n }\n }\n pw.write(\"</table><br>\\n\");\n \n pw.write(\"</body>\\n\");\n pw.write(\"</html>\\n\");\n /**Se finaliza el documento HTML*/\n \n /**Se cierra la capacidad de escribir en el documento*/ \n pw.close();\n /**Se cierra el documento en el programa*/\n bw.close();\n /**Se abre el documento recien creado y guardado*/\n pc.open(f);\n } catch (Exception e) {\n System.err.println(\"Asegurese de haber realizado las actividades previas \"\n + \"relacionadas\");\n }\n }", "public void btnGenerarReporteDestruccionPDF() {\n try {\n byte[] bytesFile;\n bytesFile = null;\n Map parameters = new HashMap();\n\n parameters.put(\"rfc\", produccionCigarrosHelper.getTabacalera().getRfc());\n parameters.put(\"incidencia\", \"Desperdicios y destrucción\");\n parameters.put(\"fecha\", new Date());\n parameters.put(\"folio\", desperdiciosHelper.getIdAcuseRecibo());\n parameters.put(\"cadenaOriginal\", firmaFormHelper.getCadenaOriginal());\n parameters.put(\"selloDigital\", selloDigital.generaSelloDigital(firmaFormHelper.getCadenaOriginal()));\n parameters.put(\"codigo_qr\", QRCodeUtil.getQr(desperdiciosHelper.getIdAcuseRecibo(), produccionCigarrosHelper.getTabacalera().getRfc(), Constantes.CINCUENTA, Constantes.CINCUENTA, Constantes.ARCHIVO_PNG));\n\n if (reporterService != null) {\n bytesFile = reporterService.makeReport(ReportesTabacosEnum.REPORTE_ACUSE_DESPERDICIO_DESTRUCCION, ARCHIVO_PDF, parameters, null);\n if (bytesFile != null) {\n generaDocumento(bytesFile, MIMETypesEnum.PDF, \"AcuseDescargapDesperdiciosDestruccion_\" + desperdiciosHelper.getIdAcuseRecibo(), FileExtensionEnum.PDF);\n }\n }\n } catch (ReporterJasperException e) {\n super.addErrorMessage(ERROR, \"Error al generar el acuse\");\n LOGGER.error(\"Error al generar el Reporte en PDF\" + e.getMessage());\n } catch (QRCodeUtilException ex) {\n super.addErrorMessage(ERROR, \"Error al generar el acuse\");\n LOGGER.error(\"Error al generar el Reporte en PDF\" + ex.getMessage());\n } catch (SelloDigitalException ex) {\n super.addErrorMessage(ERROR, \"Error al generar el acuse\");\n LOGGER.error(\"Error al generar el Reporte en PDF\" + ex.getMessage());\n }\n\n }", "public void generarReporteGanancia(String destino,String fechainicial,String fechafinal)\n {\n \n if(destino.equals(\"Todos\"))\n {\n try\n {\n //File miDir = new File (Crear.class.getResource(\"/Reportes/ticket.jasper\").getFile());\n //File miDir=new File(\"/Reportes/ticket.jasper\");\n URL entrada=this.getClass().getResource(\"/Reportes/GananciaVentasGeneral.jasper\");\n JasperReport jasperReport;\n jasperReport=(JasperReport)JRLoader.loadObject(entrada);\n \n HashMap parametros = new HashMap<>();\n\n \n \n parametros.put(\"destino\", destino);\n parametros.put(\"fechainicial\", fechainicial);\n parametros.put(\"fechafinal\", fechafinal);\n \n \n \t\tJasperPrint jasperPrint =JasperFillManager.fillReport(jasperReport, parametros, Conexion.obtenerConexion());\n\t\t JasperViewer viewer = new JasperViewer(jasperPrint,false);\n viewer.setTitle(\"Movimientos de Ventas Credito/Contado\");\n viewer.setVisible(true);\n \n }\n catch(Exception er)\n {\n JOptionPane.showMessageDialog(null,\"Error al generar reporte\"+er.getCause()+\"\"+er.getLocalizedMessage());\n }\n }\n else\n { \n \n try\n {\n //File miDir = new File (Crear.class.getResource(\"/Reportes/ticket.jasper\").getFile());\n //File miDir=new File(\"/Reportes/ticket.jasper\");\n URL entrada=this.getClass().getResource(\"/Reportes/GananciaVentas.jasper\");\n JasperReport jasperReport;\n jasperReport=(JasperReport)JRLoader.loadObject(entrada);\n \n HashMap parametros = new HashMap<>();\n\n \n \n parametros.put(\"destino\", destino);\n parametros.put(\"fechainicial\", fechainicial);\n parametros.put(\"fechafinal\", fechafinal);\n \n \n \t\tJasperPrint jasperPrint =JasperFillManager.fillReport(jasperReport, parametros, Conexion.obtenerConexion());\n\t\t JasperViewer viewer = new JasperViewer(jasperPrint,false);\n viewer.setTitle(\"Movimientos de Insumos\");\n viewer.setVisible(true);\n \n }\n catch(Exception er)\n {\n JOptionPane.showMessageDialog(null,\"Error al generar reporte\"+er.getCause()+\"\"+er.getLocalizedMessage());\n }\n } \n }", "public void cargarReporte() throws Exception {\n ReporteLogica rpL = new ReporteLogica();\n int[][] entradas = rpL.reporteBasicoTransacciones(\"ENTRADA\");\n if (entradas.length > 0) {\n cincoMasEntradas(entradas);\n mayorMenorEntrada(entradas);\n totalEntradas(entradas);\n grafica(entradas);\n } else {\n JOptionPane.showMessageDialog(null, \"Datos insuficientes para generar reporte\");\n }\n }", "private void pdfActionPerformed(java.awt.event.ActionEvent evt) {\n\n try{\n prepareFile();\n relv.GeneratePDF(path, Client.getNom() + \" \" + Client.getPrenom(), Client.getCin(), operations, periode, from, to);\n JOptionPane.showMessageDialog(this,\"Votre relevé en format PDF a été généré avec Succes\",\"Succes\", JOptionPane.INFORMATION_MESSAGE); \n } catch (SQLException ex) {\n JOptionPane.showMessageDialog(this, \"Échec lors de l'écriture dans la base de données. Veuillez réessayer plus tard\", \"Echec de l'opération\", JOptionPane.ERROR_MESSAGE);\n } catch (Exception ex) {\n System.out.println(\"error \"+ex.getMessage());\n } \n }", "private void imprimirBotonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_imprimirBotonActionPerformed\n ReportPrinter printer = new ReportPrinter(ninno, \"Historico\");\n printer.imprimirPDF();\n JOptionPane.showMessageDialog(this, \"Reporte creado, ver Archivo pdf\", \"Reporte Creado\", JOptionPane.INFORMATION_MESSAGE);\n }", "private void openUserReporttWindow() {\r\n\t\tnew JFrameReport();\r\n\t}", "public viewReporteFis(javax.swing.JDialog parent, boolean modal) { \n super(parent, modal);\n initComponents();\n this.modeloTabla = (DefaultTableModel) tablaReporte.getModel();\n }", "public void ver() {\n Clases.Conexion cc = new Clases.Conexion();\n\n try {\n Reportes.Reportes r = new Reportes.Reportes(new JFrame(), true);\n File fichero = new File(\"test.txt\");\n System.out.println(\"La ruta del fichero es: \" + fichero.getAbsolutePath());\n String archivo = \"C:\\\\Users\\\\Jonathan\\\\Documents\\\\NetBeansProjects\\\\Ramy\\\\src\\\\Reportes\\\\Transportes.jasper\";\n// String archivo = \"Reportes/Transportes.jasper\";\n JasperReport jasperReport = (JasperReport) JRLoader.loadObject(new File(archivo));\n Map parametro = new HashMap();\n JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport, parametro, cc.conexion());\n\n JRViewer jrv = new JRViewer(jasperPrint);\n jrv.setZoomRatio((float) 0.95);\n r.contenedor.removeAll();\n\n r.contenedor.setLayout(new BorderLayout());\n r.contenedor.add(jrv, BorderLayout.CENTER);\n\n r.contenedor.repaint();\n r.contenedor.revalidate();\n jrv.setVisible(true);\n r.setVisible(true);\n } catch (JRException ex) {\n System.err.println(\"Error iReport: \" + ex.getMessage());\n }\n }", "@Override\r\n public void abrirListaReportes() {\n sec_rango_reporte.getCal_fecha1().setValue(null);\r\n sec_rango_reporte.getCal_fecha2().setValue(null);\r\n rep_reporte.dibujar();\r\n\r\n }", "void generar_dialog_preguntas();", "private void runDeleteReport() {\n showDialog(DIALOG_CONFIRM_DELETE_REPORT_ID);\n }", "public void onReportClick(){\r\n\t\tmyView.advanceToReport();\r\n\t}", "private void reportesButtonActionPerformed(java.awt.event.ActionEvent evt) {\n reportesView = null;\n reportesView = new ReportesView();\n \n this.contenedorPanel.removeAll();\n this.contenedorPanel.setVisible(false);\n reportesView.initializeControl(control);\n this.contenedorPanel.add(reportesView);\n this.contenedorPanel.setVisible(true); \n }", "public void dialog_exitSheet() {\n\n final Dialog dialog = new Dialog(ReportActivity.this);\n dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);\n dialog.setContentView(R.layout.dialog_exit_sheet);\n dialog.getWindow().setBackgroundDrawable(getResources().getDrawable(R.drawable.transparent));\n\n TextView tv_outgoingDialog = dialog.findViewById(R.id.tv_outgoingDialog);\n tv_outgoingDialog.setText(outgoing);\n DataBaseHandler dataBaseHandler = new DataBaseHandler(ReportActivity.this);\n ArrayList<ExitSheet> preExitSheetList = new ArrayList<>();\n preExitSheetList = dataBaseHandler.getAllExitSheet();\n\n TextView tv_Title = dialog.findViewById(R.id.tv_Title);\n if (preExitSheetList.size() == 0) {\n tv_Title.setText(no_outgoing_dialog);\n } else {\n tv_Title.setText(has_outgoing_dialog);\n }\n\n ListView lv_preExitSheet = dialog.findViewById(R.id.lv_preExitSheet);\n PreExitSheetAdapter preExitSheetAdapter = new PreExitSheetAdapter(ReportActivity.this, preExitSheetList, dialog);\n lv_preExitSheet.setAdapter(preExitSheetAdapter);\n\n Button bt_AddExitSheet = dialog.findViewById(R.id.bt_AddExitSheet);\n bt_AddExitSheet.setText(add_new_outgoing_process);\n bt_AddExitSheet.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n\n dialog_AddExitSheet();\n dialog.dismiss();\n dialog.cancel();\n }\n });\n\n dialog.setCancelable(true);\n dialog.show();\n }", "public void dialog_returnSheet() {\n final Dialog dialog = new Dialog(ReportActivity.this);\n dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);\n dialog.setContentView(R.layout.dialog_return_sheet);\n dialog.getWindow().setBackgroundDrawable(getResources().getDrawable(R.drawable.transparent));\n\n TextView tv_returnDialog = dialog.findViewById(R.id.tv_returnDialog);\n tv_returnDialog.setText(return_text);\n\n DataBaseHandler dataBaseHandler = new DataBaseHandler(ReportActivity.this);\n ArrayList<ReturnSheet> preReturnSheetList = new ArrayList<>();\n preReturnSheetList = dataBaseHandler.getAllReturnSheet();\n\n TextView tv_Title = dialog.findViewById(R.id.tv_Title);\n if (preReturnSheetList.size() == 0) {\n tv_Title.setText(no_return_dialog);\n } else {\n tv_Title.setText(has_return_dialog);\n }\n\n\n ListView lv_preReturnSheet = dialog.findViewById(R.id.lv_preReturnSheet);\n PreReturnSheetAdapter preEntranceSheetAdapter = new PreReturnSheetAdapter(ReportActivity.this, preReturnSheetList, dialog);\n lv_preReturnSheet.setAdapter(preEntranceSheetAdapter);\n\n Button bt_AddReturnSheet = dialog.findViewById(R.id.bt_AddReturnSheet);\n bt_AddReturnSheet.setText(add_new_return_process);\n bt_AddReturnSheet.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n\n dialog_AddReturnSheet();\n dialog.dismiss();\n dialog.cancel();\n }\n });\n\n dialog.setCancelable(true);\n dialog.show();\n }", "private void btnPrintPaymentActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnPrintPaymentActionPerformed\n if(searched == false){\n JOptionPane.showMessageDialog(rootPane, \"Please Perform a search on database first.\");\n return;\n }\n try {\n String report = \"IReports\\\\PaymentReport.jrxml\";\n JasperReport jReport = JasperCompileManager.compileReport(report);\n JasperPrint jPrint = JasperFillManager.fillReport(jReport, null, newHandler.getConnector());\n JasperViewer.viewReport(jPrint, false);\n } catch (JRException ex) {\n JOptionPane.showMessageDialog(rootPane, ex.getMessage());\n } \n }", "public void initiateReportWindow(View v) {\n\n cur_questionNo=tv_Qid.getText().toString();\n String[] s = { \"QUASTION\", \"ANSWER\", \"ADL_INFO\", \"GRP_INFO\",\"REV_INFO\",\"OTHERS\"};\n final ArrayAdapter<String> adp = new ArrayAdapter<String>(Activity_Lesson_Unit_Point_Display_FlashCardActivity.this,\n android.R.layout.simple_dropdown_item_1line, s);\n\n LayoutInflater factory = LayoutInflater.from(this);\n final View view = factory.inflate(R.layout.activity_alert_report, null);\n //View view = infl.inflate(R.layout.activity_alert_report, null);\n final android.app.AlertDialog alertDialog = new android.app.AlertDialog.Builder(Activity_Lesson_Unit_Point_Display_FlashCardActivity.this,R.style.NewDialog).create();\n\n TextView txt_question_id= (TextView) view.findViewById(R.id.txt_question_id);\n txt_question_id.setText(cur_questionNo);\n final EditText txt_reportMessage= (EditText) view.findViewById(R.id.txt_reportMessage);\n sp_report=view.findViewById(R.id.sp_report);\n //sp_report.setLayoutParams(new LinearLayout.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT));\n sp_report.setAdapter(adp);\n ImageView iv_close= (ImageView) view.findViewById(R.id.iv_close);\n alertDialog.setView(view);\n\n\n Button btn_report= (Button) view.findViewById(R.id.btn_report);\n\n btn_report.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n //txt_reportMessage.setText(\"CourseId:\"+courseid+\", SubjectId:\"+subjectId+\", PaperId:\"+paperid+\", ChapterId:\"+paperid);\n new AsyncCheckInternet(Activity_Lesson_Unit_Point_Display_FlashCardActivity.this,new INetStatus(){\n @Override\n public void inetSatus(Boolean netStatus) {\n if(netStatus){\n HashMap<String,String> hmap=new HashMap<>();\n hmap.put(\"QUASTION_ID\",cur_questionNo);\n hmap.put(\"COURSE_ID\",courseid);\n hmap.put(\"SUBJECT_ID\",subjectid);\n hmap.put(\"PAPER_ID\",paperid);\n hmap.put(\"CHAPTER_ID\",paperid);\n hmap.put(\"ACTIVITY_TYPE\",\"FLASH_CARD\");\n hmap.put(\"ISSUE_TYPE\",sp_report.getSelectedItem().toString());\n report_message=txt_reportMessage.getText().toString();\n hmap.put(\"ISSUE_MESSAGE\",report_message);\n hmap.put(\"REPORTED_BY\",studentid);\n\n new BagroundTask(URLClass.hosturl +\"insert_report.php\",hmap, Activity_Lesson_Unit_Point_Display_FlashCardActivity.this, new IBagroundListener() {\n\n @Override\n public void bagroundData(String json) {\n if(json.equalsIgnoreCase(\"Report_NOT_Inserted\")){\n Toast.makeText(getApplicationContext(),\"Report not submitted,please try again..\",Toast.LENGTH_SHORT).show();\n }else {\n alertDialog.cancel();\n Toast.makeText(getApplicationContext(),\"Report submitted,Thank you for your feedback..\",Toast.LENGTH_SHORT).show();\n }\n }\n }).execute();\n }else {\n Toast.makeText(getApplicationContext(),\"No internet,Please Check Your Connection\",Toast.LENGTH_SHORT).show();\n }\n }\n }).execute();\n }\n });\n iv_close.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n alertDialog.cancel();\n }\n });\n alertDialog.show();\n\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n try{\n if(e.getActionCommand().equalsIgnoreCase(\"Ok\")){\n// if(!SCRView.getBooleanIncludeAll()){\n// if(SCRView.getMenuId().isEmpty()){\n// JOptionPane.showMessageDialog(SCRView.DailogReport,\"Please Select Menu Name \");\n// return;\n// }\n// }\n if(SCRView.getDepartmentId() == 0){\n JOptionPane.showMessageDialog(SCRView.DailogReport,\"Please Select Department Name. \");\n return;\n }\n if(SCRView.getStartDate() == null){\n JOptionPane.showMessageDialog(SCRView.DailogReport,\"Please Select Start Date \");\n return;\n \n }\n if(SCRView.getEndDate() == null){\n JOptionPane.showMessageDialog(SCRView.DailogReport,\"Please Select End Date \");\n return;\n } \n Date[] date = SCRView.getServiceChargeReportDate();\n// String title = \"Service Charge Report\";\n// if(!SCRView.getBooleanIncludeAll()){\n// title += \" \\t of \\t\"+SCRView.getComboMenuName();\n// }\n// SCRView.setlblReportTitle(title);\n DateFormat df = DateFormat.getDateInstance(DateFormat.FULL);\n SCRView.setlblStartDate(df.format(date[0]));\n SCRView.setlblEndDate(df.format(date[1]));\n// SCRView.refreshTableReport(SCRModel.getServiceChargeList(date));\n// if(SCRView.getTableReport().getRowCount() <= 0){\n// JOptionPane.showMessageDialog(SCRView, \"Record Not Found\");\n// return;\n// }\n// \n \n /*\n * calculating the toal complimetary amount given\n// */\n// BigDecimal TotalServiceChargeAmount = BigDecimal.ZERO;\n// BigDecimal TotalAmount = BigDecimal.ZERO;\n// BigDecimal TotalServiceChargePercentage = BigDecimal.ZERO;\n// for(int i=0;i< SCRView.getTableReport().getRowCount();i++){\n// TotalAmount = TotalAmount.add(new BigDecimal(SCRView.getTableReport().getValueAt(i, 1).toString()));\n// TotalServiceChargeAmount = TotalServiceChargeAmount.add(new BigDecimal(SCRView.getTableReport().getValueAt(i, 2).toString()));\n// TotalServiceChargePercentage = TotalServiceChargeAmount.divide(TotalAmount).multiply(BigDecimal.valueOf(100));\n// }\n// SCRView.getTableReport().addRow(new Object[]{\"Total Service Charge Amount\",TotalAmount,TotalServiceChargeAmount,TotalServiceChargePercentage+\"(Average %)\"});\n// \n// SCRView.setVisible(false);\n //SCRView.DailogReport.pack();\n //SCRView.DailogReport.setVisible(true);\n String report = \"svcOnly.jrxml\";\n String title = \"SVC Report\";\n SVCReport r = new SVCReport(SCRView.getReportParam(),report,title);\n \n }\n if(e.getActionCommand().equalsIgnoreCase(\"ReportCancel\")){\n SCRView.DailogReport.setVisible(false);\n SCRView.setVisible(true);\n }\n if(e.getActionCommand().equalsIgnoreCase(\"Cancel\")){\n SCRView.setVisible(false);\n }\n }\n catch(Exception ce){\n JOptionPane.showMessageDialog(SCRView,ce+ \"From ServiceChargeListener\");\n }\n }", "public void mostrarDetallesCompra(View view) {\n AlertDialog alertDialog = new AlertDialog.Builder(context).create();\n LayoutInflater inflater = this.getLayoutInflater();\n View dialogView = inflater.inflate(R.layout.dialog_detalles_compra, null);\n alertDialog.setView(dialogView);\n TextView textViewTotal = (TextView) dialogView.findViewById(R.id.total);\n textViewTotal.append(compraEncontrada.getTotal());\n\n TextView textViewSubtotal = (TextView) dialogView.findViewById(R.id.subtotal);\n textViewSubtotal.append(compraEncontrada.getSubtotal());\n\n\n alertDialog.setButton(AlertDialog.BUTTON_NEUTRAL, \"OK\",\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }\n });\n alertDialog.show();\n\n }", "public void displayReport() {\n\t\treport = new ReportFrame(fitnessProg);\n\t\treport.buildReport();\n\t\treport.setVisible(true);\n\t}", "private void viewRepositoryCheckReportButtonActionPerformed() {\n ImportExportLogDialog logDialog = null;\n\n if(ascopyREC != null && checkRepositoryMismatch) {\n logDialog = new ImportExportLogDialog(null, ImportExportLogDialog.DIALOG_TYPE_IMPORT, ascopyREC.getCurrentRecordCheckMessage());\n logDialog.setTitle(\"Current Repository Mismatch Errors\");\n } else {\n logDialog = new ImportExportLogDialog(null, ImportExportLogDialog.DIALOG_TYPE_IMPORT, repositoryMismatchErrors);\n logDialog.setTitle(\"Repository Mismatch Errors\");\n }\n\n logDialog.showDialog();\n }", "void printReport();", "private void createDialog() {\r\n final AlertDialog dialog = new AlertDialog.Builder(getActivity()).setView(R.layout.dialog_recorder_details)\r\n .setTitle(\"Recorder Info\").setPositiveButton(\"Start\", (dialog1, which) -> {\r\n EditText width = (EditText) ((AlertDialog) dialog1).findViewById(R.id.dialog_recorder_resolution_width);\r\n EditText height = (EditText) ((AlertDialog) dialog1).findViewById(R.id.dialog_recorder_resolution_height);\r\n CheckBox audio = (CheckBox) ((AlertDialog) dialog1).findViewById(R.id.dialog_recorder_audio_checkbox);\r\n EditText fileName = (EditText) ((AlertDialog) dialog1).findViewById(R.id.dialog_recorder_filename_name);\r\n mServiceHandle.start(new RecordingInfo(Integer.parseInt(width.getText().toString()), Integer.parseInt(height.getText().toString()),\r\n audio.isChecked(), fileName.getText().toString()));\r\n dialog1.dismiss();\r\n }).setNegativeButton(\"Cancel\", (dialog1, which) -> {\r\n dialog1.dismiss();\r\n }).show();\r\n Point size = new Point();\r\n getActivity().getWindowManager().getDefaultDisplay().getRealSize(size);\r\n ((EditText) dialog.findViewById(R.id.dialog_recorder_resolution_width)).setText(Integer.toString(size.x));\r\n ((EditText) dialog.findViewById(R.id.dialog_recorder_resolution_height)).setText(Integer.toString(size.y));\r\n }", "private void showFinalInfoDialogue(boolean NEGATIVE_DUE, double dueAmnt, final SalesReturnReviewItem printList) {\n\n paymentDialog.dismiss();\n final Dialog lastDialog = new Dialog(this);\n\n lastDialog.setContentView(R.layout.pop_up_for_sale_and_payment_success);\n\n\n //SETTING SCREEN WIDTH\n lastDialog.getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));\n Window window = lastDialog.getWindow();\n window.setLayout(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT);\n //*************\n\n lastDialog.setOnDismissListener(new DialogInterface.OnDismissListener() {\n @Override\n public void onDismiss(DialogInterface dialog) {\n finish();\n }\n });\n\n Button okayButton = lastDialog.findViewById(R.id.pop_up_for_payment_okay);\n okayButton.setText(\"Done\");\n okayButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n lastDialog.dismiss();\n }\n });\n\n Button printBtn = lastDialog.findViewById(R.id.pop_up_for_payment_add_pay);\n printBtn.setText(\"Print\");\n printBtn.setVisibility(View.VISIBLE);\n printBtn.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n if (btsocket == null) {\n Intent BTIntent = new Intent(getApplicationContext(), DeviceList.class);\n startActivityForResult(BTIntent, DeviceList.REQUEST_CONNECT_BT);\n } else {\n BPrinter printer = new BPrinter(btsocket, SalesReviewDetail.this);\n FabizProvider provider = new FabizProvider(SalesReviewDetail.this, false);\n Cursor cursor = provider.query(FabizContract.Customer.TABLE_NAME, new String[]{FabizContract.Customer.COLUMN_SHOP_NAME,\n FabizContract.Customer.COLUMN_VAT_NO,\n FabizContract.Customer.COLUMN_ADDRESS_AREA,\n FabizContract.Customer.COLUMN_ADDRESS_ROAD,\n FabizContract.Customer.COLUMN_ADDRESS_BLOCK,\n FabizContract.Customer.COLUMN_ADDRESS_SHOP_NUM\n },\n FabizContract.Customer._ID + \"=?\", new String[]{custId}, null);\n if (cursor.moveToNext()) {\n String addressForInvoice = cursor.getString(cursor.getColumnIndex(FabizContract.Customer.COLUMN_ADDRESS_AREA));\n if (!cursor.getString(cursor.getColumnIndex(FabizContract.Customer.COLUMN_ADDRESS_ROAD)).matches(\"NA\")) {\n addressForInvoice += \", \" + cursor.getString(cursor.getColumnIndex(FabizContract.Customer.COLUMN_ADDRESS_ROAD));\n }\n if (!cursor.getString(cursor.getColumnIndex(FabizContract.Customer.COLUMN_ADDRESS_BLOCK)).matches(\"NA\")) {\n addressForInvoice += \", \" + cursor.getString(cursor.getColumnIndex(FabizContract.Customer.COLUMN_ADDRESS_BLOCK));\n }\n if (!cursor.getString(cursor.getColumnIndex(FabizContract.Customer.COLUMN_ADDRESS_SHOP_NUM)).matches(\"NA\")) {\n addressForInvoice += \", \" + cursor.getString(cursor.getColumnIndex(FabizContract.Customer.COLUMN_ADDRESS_SHOP_NUM));\n }\n\n printer.printSalesReturnReciept(printList, cdue + \"\",\n cursor.getString(cursor.getColumnIndex(FabizContract.Customer.COLUMN_SHOP_NAME)), addressForInvoice,\n cursor.getString(cursor.getColumnIndex(FabizContract.Customer.COLUMN_VAT_NO)));\n } else {\n showToast(\"Something went wrong, can't print right now\");\n }\n }\n }\n });\n\n final TextView dateV = lastDialog.findViewById(R.id.pop_up_for_payment_date);\n\n final TextView returnedAmntLabel = lastDialog.findViewById(R.id.pop_up_for_payment_label_ent_amt);\n returnedAmntLabel.setText(\"Returned Amount\");\n\n final TextView returnedAmntV = lastDialog.findViewById(R.id.pop_up_for_payment_ent_amt);\n\n final TextView dueAmtV = lastDialog.findViewById(R.id.pop_up_for_payment_due);\n\n TextView dueLabelText = lastDialog.findViewById(R.id.pop_up_for_payment_due_label);\n dueLabelText.setText(\"Bill Due Amount\");\n\n dateV.setText(\": \" + DcurrentTime);\n returnedAmntV.setText(\": \" + TruncateDecimal(printList.getTotal() + \"\"));\n\n dueAmtV.setText(\": \" + TruncateDecimal(dueAmnt + \"\"));\n\n lastDialog.show();\n }", "private void btnPrintReceiptActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnPrintReceiptActionPerformed\n \n if(searched == false){\n JOptionPane.showMessageDialog(rootPane, \"Please Perform a search on database first.\");\n return;\n }\n try {\n String report = \"IReports\\\\ReceiptReport.jrxml\";\n JasperReport jReport = JasperCompileManager.compileReport(report);\n JasperPrint jPrint = JasperFillManager.fillReport(jReport, null, newHandler.getConnector());\n JasperViewer.viewReport(jPrint, false);\n } catch (JRException ex) {\n JOptionPane.showMessageDialog(rootPane, ex.getMessage());\n }\n }", "public void dialog_entranceSheet() {\n final Dialog dialog = new Dialog(ReportActivity.this);\n dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);\n dialog.setContentView(R.layout.dialog_entrance_sheet);\n dialog.getWindow().setBackgroundDrawable(getResources().getDrawable(R.drawable.transparent));\n\n TextView tv_enterDialog = dialog.findViewById(R.id.tv_enterDialog);\n tv_enterDialog.setText(entrance_item);\n DataBaseHandler dataBaseHandler = new DataBaseHandler(ReportActivity.this);\n ArrayList<EntranceSheet> preEntranceSheetList = new ArrayList<>();\n preEntranceSheetList = dataBaseHandler.getAllEntranceSheet();\n\n TextView tv_Title = dialog.findViewById(R.id.tv_Title);\n if (preEntranceSheetList.size() == 0) {\n tv_Title.setText(no_entrace_data);\n } else {\n tv_Title.setText(has_entrance_data);\n }\n\n ListView lv_preEntranceSheet = dialog.findViewById(R.id.lv_preEntranceSheet);\n PreEntranceSheetAdapter preEntranceSheetAdapter = new PreEntranceSheetAdapter(ReportActivity.this, preEntranceSheetList, dialog);\n lv_preEntranceSheet.setAdapter(preEntranceSheetAdapter);\n\n Button bt_AddEntranceSheet = dialog.findViewById(R.id.bt_AddEntranceSheet);\n bt_AddEntranceSheet.setText(add_new_entrance_process);\n bt_AddEntranceSheet.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n\n dialog_AddEntranceSheet();\n dialog.dismiss();\n dialog.cancel();\n }\n });\n\n dialog.setCancelable(true);\n dialog.show();\n }", "public void verifyreport()\t\n{\n\tif(ReadPropertyFile.get(\"Application\").equalsIgnoreCase(\"Phonakpro\"))\n\t{\n\t\t// handling the windows tab using below code\n\t\t \n\t\tArrayList<String> newTab = new ArrayList<String>(DriverManager.getDriver().getWindowHandles());\n\t \n\t //if you traverse forward the next tab from the existing tab\n\t DriverManager.getDriver().switchTo().window(newTab.get(2));\n\t}\n\telse if(ReadPropertyFile.get(\"Application\").equalsIgnoreCase(\"Unitron\"))\n\t{\n\t\t// handling the windows tab using below code\n\t\t \n\t\tArrayList<String> newTab = new ArrayList<String>(DriverManager.getDriver().getWindowHandles());\n\t \n\t //if you traverse forward the next tab from the existing tab\n\t DriverManager.getDriver().switchTo().window(newTab.get(0));\n\t}\n\t\n\t//SELECT REPORT MENU ITEM\n\tjScriptClick(settingsMenuItem.get(1));\n\t//SELECT THE REPORT DROP DOWN\n\tjScriptClick(reportDropDownbutton.get(0));\n\t\n\t// ENTER THE SCREENER NAME\n\tsendkeys(reportDropDownInputText.get(1),\"automatescreener\");\n\t//SELECT THE FIRST SCREENER IF THE SCREENER HAS THE SAME NAME\n\tjScriptClick(reportDropDownScreenersListOptions.get(0));\n\tjScriptClick(dateReportDropDownbutton.get(1));\n\tjScriptClick(reportDropDownbutton.get(1));\n\tjScriptClick(dateReportDropDownoptionToday);\n\tjScriptClick(dateOptionOkButton);\n}", "public void limpiarReporte(){\n\n\t\tmodelo.setRowCount(0);\n\n\t}", "public void ReportarUnDiario(){\n f.registrarReporteDiario(new ReporteDiario(descripcionReporteDiario,prob));\n }", "@SneakyThrows\n private void pdfReport() {\n NotificationUtil.warningAlert(\"Warning\", \"Nothing to export\", NotificationUtil.SHORT);\n ServiceFactory.getPdfService().projectReport(table.getItems());\n }", "public SaleReportDialog(Window parent) {\n super(parent);\n initComponents();\n setLocationRelativeTo(parent);\n setModal(true);\n setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);\n }", "public void Report_User_alert(){\n final AlertDialog.Builder alert=new AlertDialog.Builder(context,R.style.DialogStyle);\n alert.setTitle(\"Report\")\n .setMessage(\"Are you sure to Report this user?\")\n .setNegativeButton(\"No\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n dialog.dismiss();\n }\n })\n .setPositiveButton(\"yes\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n Send_report();\n }\n });\n\n alert.setCancelable(true);\n alert.show();\n }", "private void mostrarDialogoCargar(){\n materialDialog = new MaterialDialog.Builder(this)\n .title(\"Validando datos\")\n .content(\"Por favor espere\")\n .progress(true, 0)\n .contentGravity(GravityEnum.CENTER)\n .widgetColorRes(R.color.colorPrimary)\n .show();\n\n materialDialog.setCancelable(false);\n materialDialog.setCanceledOnTouchOutside(false);\n }", "public void BotonExportarPDF(String nomRep) {\n //ABRIR CUADRO DE DIALOGO PARA GUARDAR EL ARCHIVO \n JFileChooser fileChooser = new JFileChooser();\n fileChooser.addChoosableFileFilter(new FileNameExtensionFilter(\"todos los archivos *.PDF\", \"pdf\", \"PDF\"));//filtro para ver solo archivos .pdf\n int seleccion = fileChooser.showSaveDialog(null);\n try {\n if (seleccion == JFileChooser.APPROVE_OPTION) {//comprueba si ha presionado el boton de aceptar\n File JFC = fileChooser.getSelectedFile();\n String PATH = JFC.getAbsolutePath();//obtenemos la direccion del archivo + el nombre a guardar\n try (PrintWriter printwriter = new PrintWriter(JFC)) {\n printwriter.print(\"src\\\\Reportes\\\\\" + nomRep + \".jasper\");\n }\n this.ReportePDF(\"src\\\\Reportes\\\\\" + nomRep + \".jasper\", PATH);//mandamos como parametros la ruta del archivo a compilar y el nombre y ruta donde se guardaran \n //comprobamos si a la hora de guardar obtuvo la extension y si no se la asignamos\n if (!(PATH.endsWith(\".pdf\"))) {\n File temp = new File(PATH + \".pdf\");\n JFC.renameTo(temp);//renombramos el archivo\n }\n JOptionPane.showMessageDialog(null, \"Esto puede tardar unos segundos, espere porfavor\", \"Estamos Generando el Reporte\", JOptionPane.WARNING_MESSAGE);\n JOptionPane.showMessageDialog(null, \"Documento Exportado Exitosamente!\", \"Guardado exitoso!\", JOptionPane.INFORMATION_MESSAGE);\n }\n } catch (FileNotFoundException | HeadlessException e) {//por alguna excepcion salta un mensaje de error\n JOptionPane.showMessageDialog(null, \"Error al Exportar el archivo!\", \"Oops! Error\", JOptionPane.ERROR_MESSAGE);\n }\n }", "protected void outputResultData (FinalReport report)\n {\n trc.show (\"outputResultData\", \"output simulation results\");\n\n\tmodelReport = report;\n\tnew HandleReportDialog (this);\n\n }", "private void jMenuReporteActionPerformed(java.awt.event.ActionEvent evt) {\n}", "public static JasperReportBuilder generateReport(ExportData metaData,HttpServletRequest request){\n session = request.getSession(false);\n report = report(); // Creer le rapport\n \n //Logo\n// logoImg = cmp.image(inImg).setStyle(DynamicReports.stl.style().setHorizontalAlignment(HorizontalAlignment.LEFT)); \n //logoImg.setDimension(80,80); \n \n //Definit le style des colonnes d'entàte\n report.setColumnTitleStyle(getHeaderStyle(metaData));\n \n \n \n LinkedHashMap <String,String> criteria = metaData.getCriteria(); \n //Ajout la date d'àdition au critere d'impression\n String valDateProperty = getDateTxt(metaData.getLang()) ;\n String keyDateProperty = \"\" ;\n if ( session.getAttribute(\"activedLocale\").equals(\"fr\") ) {\n keyDateProperty = \"Edité le \" ;\n }\n else {\n keyDateProperty = \"Printed on \" ;\n }\n criteria.put(keyDateProperty,valDateProperty);\n \n StyleBuilder titleStyle = stl.style(boldStyle).setFontSize(16).setForegroundColor(new Color(0, 0, 0)).setHorizontalAlignment(HorizontalAlignment.RIGHT).setRightIndent(20);\n ComponentBuilder<?, ?> logoComponent = cmp.horizontalList(\n //cmp.image(Templates.class.getResource(\"/logopalm.png\")).setFixedDimension(150, 50).setStyle(stl.style().setLeftIndent(20)),\n cmp.verticalList(\n cmp.text(metaData.getTitle()).setStyle(titleStyle)\n )\n ).newRow()\n .add(cmp.horizontalList().add(cmp.hListCell(createCriteriaComponent(criteria,metaData)).heightFixedOnTop()))\n .newRow(); \n \n report.noData(logoComponent, cmp.text(\"Aucun enregistrement trouvà\").setStyle(stl.style().setHorizontalAlignment(HorizontalAlignment.CENTER).setTopPadding(30)));\n\n \n \n lblStyle = stl.style(Templates.columnStyle).setForegroundColor(new Color(60, 91, 31)); // Couleur du text \n colStyle = stl.style(Templates.columnStyle).setHorizontalAlignment(HorizontalAlignment.CENTER);\n \n groupStyle = stl.style().setForegroundColor(new Color(60, 91, 31)) \n .setBold(Boolean.TRUE)\n .setPadding(5)\n .setFontSize(13)\n .setHorizontalAlignment(HorizontalAlignment.CENTER); \n \n\n \n if(metaData.getTitle().equals(ITitle.PARCEL)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.PARCEL_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.PLANTING)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.PLANTING_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.SECTOR)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.SECTOR_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.BLOCK)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.BLOCK_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.ATTACK_PHYTO)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.TREATMENT)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.TREATMENT_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.HARVEST)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.HARVEST_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.SERVICING)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.SERVICING_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.EVENT_PLANTING)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.EVENT_PLANTING_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.FERTILIZATION)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.FERTILIZATION_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.CONTROL_PHYTO)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.CONTROL_PHYTO_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.EVENT_FOLDING)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.EVENT_FOLDING_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.MORTALITY)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.MORTALITY_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.HARVESTING)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.HARVESTING_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.BUDGET)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.REPLACEMENT)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.REPLACEMENT_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.METEOROLOGY)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.METEOROLOGY_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.PLANTING_MATERIAL)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.PLANTING_MATERIAL_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.PLUVIOMETRY)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.PLUVIOMETRY_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.ETP)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.ETP_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.HYGROMETRY)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.HYGROMETRY_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.TEMPERATURE)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.TEMPERATURE_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.INSULATION)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.INSULATION_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.WORK)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }else if(metaData.getTitle().equals(ITitle.WORK_en)){\n report.setPageFormat(PageType.A4, PageOrientation.LANDSCAPE);\n }\n \n \n drColumns = new HashMap<String, TextColumnBuilder>(); \n groups = new ArrayList<String>();\n subtotals = new ArrayList<String>();\n \n //Definit la liste des colonnes du rapport\n ExportGenerator.getColumns(metaData); \n //Definit la liste des sous-totaux du rapport\n ExportGenerator.getSubTotals(metaData);\n \n \n //Genration des sous totaux\n for (String group : groups) {\n ColumnGroupBuilder group2 = grp.group(drColumns.get(group));\n report.groupBy(group2);\n for (String subtotal : subtotals) {\n report.subtotalsAtGroupFooter(group2,sbt.sum(drColumns.get(subtotal)));\n }\n }\n\n for (String subtotal : subtotals) {\n report.subtotalsAtSummary(sbt.sum(drColumns.get(subtotal))); \n }\n \n /*if(ExportGenerator.getColumnByNameField(\"plantingName\") != null){\n report.subtotalsAtSummary(sbt.aggregate(exp.text(\"TOTAL \"), ExportGenerator.getColumnByNameField(\"plantingName\"), Calculation.NOTHING));\n }*//*else if(ExportGenerator.getColumnByNameField(\"invoiceCode\") != null){\n report.subtotalsAtSummary(sbt.aggregate(exp.text(\"TOTAL GENERAL \"), ExportGenerator.getColumnByNameField(\"invoiceCode\"), Calculation.NOTHING));\n }else if(ExportGenerator.getColumnByNameField(\"planterCode\") != null){\n report.subtotalsAtSummary(sbt.aggregate(exp.text(\"TOTAL\"), ExportGenerator.getColumnByNameField(\"planterCode\"), Calculation.NOTHING));\n }else if(ExportGenerator.getColumnByNameField(\"transportTicket\") != null){\n report.subtotalsAtSummary(sbt.aggregate(exp.text(\"TOTAL GENERAL \"), ExportGenerator.getColumnByNameField(\"transportTicket\"), Calculation.NOTHING));\n }else if(ExportGenerator.getColumnByNameField(\"deliveryDate\") != null){\n report.subtotalsAtSummary(sbt.aggregate(exp.text(\"TOTAL GENERAL \"), ExportGenerator.getColumnByNameField(\"deliveryDate\"), Calculation.NOTHING));\n }\n else if(ExportGenerator.getColumnByNameField(\"arroundPlantingTicketNumber\") != null){\n report.subtotalsAtSummary(sbt.aggregate(exp.text(\"TOTAL GENERAL \"), ExportGenerator.getColumnByNameField(\"arroundPlantingTicketNumber\"), Calculation.NOTHING));\n }\n else if(ExportGenerator.getColumnByNameField(\"planterNumber\") != null){\n report.subtotalsAtSummary(sbt.aggregate(exp.text(\"TOTAL GENERAL \"), ExportGenerator.getColumnByNameField(\"planterNumber\"), Calculation.NOTHING));\n }else if(ExportGenerator.getColumnByNameField(\"startPaymentDate\") != null){\n report.subtotalsAtSummary(sbt.aggregate(exp.text(\"TOTAL GENERAL \"), ExportGenerator.getColumnByNameField(\"startPaymentDate\"), Calculation.NOTHING));\n }else if(ExportGenerator.getColumnByNameField(\"sectorCode\") != null){\n report.subtotalsAtSummary(sbt.aggregate(exp.text(\"TOTAL GENERAL \"), ExportGenerator.getColumnByNameField(\"sectorCode\"), Calculation.NOTHING));\n }else if(ExportGenerator.getColumnByNameField(\"month\") != null){\n report.subtotalsAtSummary(sbt.aggregate(exp.text(\"TOTAL \"), ExportGenerator.getColumnByNameField(\"month\"), Calculation.NOTHING));\n }*/\n \n\n \n \n //Genere la source de donnàes du rapport\n report.setDataSource(metaData.getData());\n \n report.highlightDetailEvenRows(); \n \n \n // Definition de l'entete : valable uniquement pour la 1ere page\n HorizontalListBuilder hlb= null;\n \n hlb = cmp.horizontalList().add(\n cmp.hListCell(createCriteriaComponent(criteria,metaData)).heightFixedOnTop()\n );\n\n \n report.title(\n createCustomTitleComponent(metaData.getTitle()), // Titre\n hlb,// Liste Horizontal des Critàres \n cmp.verticalGap(12) // Marge de 12 px entre chaque critàre\n ); \n \n \n \n report.setPageMargin(DynamicReports.margin().setLeft(15).setTop(30).setRight(15).setBottom(30));\n report.setPageFormat(PageType.A3, PageOrientation.LANDSCAPE);\n report.pageFooter(DynamicReports.cmp.pageXslashY());\n return report;\n \n }", "@Override\n\tpublic void actionPerformed (ActionEvent e)\n\t{\n\t\n\t\t// Create the File Save dialog.\n\t\tFileDialog fd = new FileDialog(\n\t\t\tAppContext.cartogramWizard, \n\t\t\t\"Save Computation Report As...\", \n\t\t\tFileDialog.SAVE);\n\n\t\tfd.setModal(true);\n\t\tfd.setBounds(20, 30, 150, 200);\n\t\tfd.setVisible(true);\n\t\t\n\t\t// Get the selected File name.\n\t\tif (fd.getFile() == null)\n\t\t\treturn;\n\t\t\n\t\tString path = fd.getDirectory() + fd.getFile();\n\t\tif (path.endsWith(\".txt\") == false)\n\t\t\tpath = path + \".txt\";\n\t\t\n\t\t\n\t\t// Write the report to the file.\n\t\ttry\n\t\t{\n\t\t\tBufferedWriter out = new BufferedWriter(new FileWriter(path));\n\t\t\tout.write(AppContext.cartogramWizard.getCartogram().getComputationReport());\n\t\t\tout.close();\n\t\t} \n\t\tcatch (IOException exc)\n\t\t{\n\t\t}\n\n\t\t\n\t\n\t}", "void displayReport ()\n {\n\tStatFrame statTable;\n String winTitle = new String (\"Statistical Results Window\");\n\n\tif (use_xml) {\n\t try {\n\t\tVector data = new Vector (); data.add (modelReport);\n\t\tString xmlStr = XMLSerializer.serialize (data);\n\t\tstatTable = new StatFrame (winTitle, xmlStr);\n\t } catch (Exception e) {\n\t\ttrc.tell (\"displayReport\", e.getMessage ());\n\t\te.printStackTrace ();\n\t\treturn;\n\t }\n\t} else {\n statTable = new StatFrame (winTitle, modelReport);\n\t}; // if\n\n statTable.showWin ();\n\n }", "public reporteAnual() {\n initComponents();\n btnLimpiar.setEnabled(false);\n }", "public void generateReport()\r\n {\r\n ProfilerGUI reportGUI = new ProfilerGUI(map,mapCountTracker);\r\n //reportGUI.\r\n }", "public void generarReporteFacturaPuntoVentas(String sAccionBusqueda,List<FacturaPuntoVenta> facturapuntoventasParaReportes) throws Exception {\n\t\tLong iIdUsuarioSesion=0L;\t\r\n\t\t\r\n\t\t\r\n\t\tif(usuarioActual==null) {\r\n\t\t\tthis.usuarioActual=new Usuario();\r\n\t\t}\r\n\t\t\r\n\t\tiIdUsuarioSesion=usuarioActual.getId();\r\n\t\t\r\n\t\tString sPathReportes=\"\";\r\n\t\t\r\n\t\tInputStream reportFile=null;\r\n\t\tInputStream imageFile=null;\r\n\t\t\t\r\n\t\timageFile=AuxiliarImagenes.class.getResourceAsStream(\"LogoReporte.jpg\");\t\t\t\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathReporteFinal=\"\";\r\n\t\t\r\n\t\tif(!esReporteAccionProceso) {\r\n\t\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\t\tif(!this.esReporteDinamico) {\r\n\t\t\t\t\tsPathReporteFinal=\"FacturaPuntoVenta\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsPathReporteFinal=this.sPathReporteDinamico;\r\n\t\t\t\t\treportFile = new FileInputStream(sPathReporteFinal);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"FacturaPuntoVentaMasterRelaciones\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\r\n\t\t\t\t//sPathReportes=reportFile.getPath().replace(\"FacturaPuntoVentaMasterRelacionesDesign.jasper\", \"\");\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"FacturaPuntoVenta\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t}\r\n\t\t\r\n\t\tif(reportFile==null) {\r\n\t\t\tthrow new JRRuntimeException(sPathReporteFinal+\" no existe\");\r\n\t\t}\r\n\t\t\r\n\t\tString sUsuario=\"\";\r\n\t\t\r\n\t\tif(usuarioActual!=null) {\r\n\t\t\tsUsuario=usuarioActual.getuser_name();\r\n\t\t}\r\n\t\t\r\n\t\tMap<String, Object> parameters = new HashMap<String, Object>();\r\n\t\tparameters.put(\"usuario\", sUsuario);\r\n\t\t\r\n\t\tparameters.put(\"titulo\", Funciones.GetTituloSistemaReporte(this.parametroGeneralSg,this.moduloActual,this.usuarioActual));\r\n\t\tparameters.put(\"subtitulo\", \"Reporte De Factura Punto Ventas\");\t\t\r\n\t\tparameters.put(\"busquedapor\", FacturaPuntoVentaConstantesFunciones.getNombreIndice(sAccionBusqueda)+sDetalleReporte);\r\n\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\tparameters.put(\"SUBREPORT_DIR\", sPathReportes);\r\n\t\t}\r\n\t\t\r\n\t\tparameters.put(\"con_grafico\", this.conGraficoReporte);\r\n\t\t\r\n\t\tJasperReport jasperReport = (JasperReport)JRLoader.loadObject(reportFile);\r\n\t\t\t\t\r\n\t\tthis.cargarDatosCliente();\r\n\t\t\r\n\t\tArrayList<Classe> classes=new ArrayList<Classe>();\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\t\r\n\t\t\tclasses.add(new Classe(FormaPagoPuntoVenta.class));\r\n\t\t\tclasses.add(new Classe(DetalleFacturaPuntoVenta.class));\r\n\t\t\t\r\n\t\t\t//ARCHITECTURE\r\n\t\t\tif(Constantes.ISUSAEJBLOGICLAYER) {\t\t\r\n\t\t\t\ttry\t{\r\n\t\t\t\t\t\r\n\t\t\t\t\tFacturaPuntoVentaLogic facturapuntoventaLogicAuxiliar=new FacturaPuntoVentaLogic();\r\n\t\t\t\t\tfacturapuntoventaLogicAuxiliar.setDatosCliente(facturapuntoventaLogic.getDatosCliente());\t\t\t\t\r\n\t\t\t\t\tfacturapuntoventaLogicAuxiliar.setFacturaPuntoVentas(facturapuntoventasParaReportes);\r\n\t\t\t\t\t\r\n\t\t\t\t\tfacturapuntoventaLogicAuxiliar.cargarRelacionesLoteForeignKeyFacturaPuntoVentaWithConnection(); //deepLoadsWithConnection(false, DeepLoadType.INCLUDE, classes, \"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tfacturapuntoventasParaReportes=facturapuntoventaLogicAuxiliar.getFacturaPuntoVentas();\r\n\t\t\t\t\t\r\n\t\t\t\t\t//facturapuntoventaLogic.getNewConnexionToDeep();\r\n\t\t\t\t\t\r\n\t\t\t\t\t//for (FacturaPuntoVenta facturapuntoventa:facturapuntoventasParaReportes) {\r\n\t\t\t\t\t//\tfacturapuntoventaLogic.deepLoad(facturapuntoventa, false, DeepLoadType.INCLUDE, classes);\r\n\t\t\t\t\t//}\t\t\t\t\t\t\r\n\t\t\t\t\t//facturapuntoventaLogic.commitNewConnexionToDeep();\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t} catch(Exception e) {\r\n\t\t\t\t\tthrow e;\r\n\t\t\t\t\t\r\n\t\t\t\t} finally {\r\n\t\t\t\t\t//facturapuntoventaLogic.closeNewConnexionToDeep();\r\n\t\t\t\t}\r\n\t\t\t} else if(Constantes.ISUSAEJBREMOTE) {\r\n\t\t\t} else if(Constantes.ISUSAEJBHOME) {\r\n\t\t\t}\r\n\t\t\t//ARCHITECTURE\t\t\r\n\t\t\t\r\n\t\t\r\n\t\t\t\r\n\t\t\t\r\n\r\n\t\t\tInputStream reportFileFormaPagoPuntoVenta = AuxiliarReportes.class.getResourceAsStream(\"FormaPagoPuntoVentaDetalleRelacionesDesign.jasper\");\r\n\t\t\tparameters.put(\"subreport_formapagopuntoventa\", reportFileFormaPagoPuntoVenta);\r\n\r\n\t\t\tInputStream reportFileDetalleFacturaPuntoVenta = AuxiliarReportes.class.getResourceAsStream(\"DetalleFacturaPuntoVentaDetalleRelacionesDesign.jasper\");\r\n\t\t\tparameters.put(\"subreport_detallefacturapuntoventa\", reportFileDetalleFacturaPuntoVenta);\r\n\t\t} else {\r\n\t\t\t//FK DEBERIA TRAERSE DE ANTEMANO\r\n\t\t\t\r\n\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\r\n\t\t//CLASSES PARA REPORTES OBJETOS RELACIONADOS\r\n\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\tclasses=new ArrayList<Classe>();\r\n\t\t}\r\n\t\t\r\n\t\tJRBeanArrayDataSource jrbeanArrayDataSourceFacturaPuntoVenta=null;\r\n\t\t\r\n\t\tif(this.sTipoReporteExtra!=null && !this.sTipoReporteExtra.equals(\"\")) {\r\n\t\t\tFacturaPuntoVentaConstantesFunciones.S_TIPOREPORTE_EXTRA=this.sTipoReporteExtra;\r\n\t\t} else {\r\n\t\t\tFacturaPuntoVentaConstantesFunciones.S_TIPOREPORTE_EXTRA=\"\";\r\n\t\t}\r\n\t\t\r\n\t\tjrbeanArrayDataSourceFacturaPuntoVenta=new JRBeanArrayDataSource(FacturaPuntoVentaJInternalFrame.TraerFacturaPuntoVentaBeans(facturapuntoventasParaReportes,classes).toArray());\r\n\t\t\r\n\t\tjasperPrint = JasperFillManager.fillReport(jasperReport,parameters,jrbeanArrayDataSourceFacturaPuntoVenta);\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathDest=Constantes.SUNIDAD_ARCHIVOS+\":/\"+Constantes.SCONTEXTSERVER+\"/\"+FacturaPuntoVentaConstantesFunciones.SCHEMA+\"/reportes\";\r\n\t\t\r\n\t\tFile filePathDest = new File(sPathDest);\r\n\t\t\r\n\t\tif(!filePathDest.exists()) {\r\n\t\t\tfilePathDest.mkdirs();\t\t\t\t\r\n\t\t}\r\n\t\t\t\t\r\n\t\tString sDestFileName=sPathDest+\"/\"+FacturaPuntoVentaConstantesFunciones.CLASSNAME;\r\n\t\t\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"VISUALIZAR\") {\r\n\t\t\tJasperViewer jasperViewer = new JasperViewer(jasperPrint,false) ;\r\n\t\t\tjasperViewer.setVisible(true) ; \r\n\r\n\t\t} else if(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\") {\t\r\n\t\t\t//JasperFillManager.fillReportToFile(reportFile.getAbsolutePath(),parameters, new JRBeanArrayDataSource(FacturaPuntoVentaBean.TraerFacturaPuntoVentaBeans(facturapuntoventasParaReportes).toArray()));\r\n\t\t\t\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"HTML\") {\r\n\t\t\t\tsDestFileName+=\".html\";\r\n\t\t\t\tJasperExportManager.exportReportToHtmlFile(jasperPrint,sDestFileName);\r\n\t\t\t\t\t\r\n\t\t\t} else if(this.sTipoArchivoReporte==\"PDF\") {\r\n\t\t\t\tsDestFileName+=\".pdf\";\r\n\t\t\t\tJasperExportManager.exportReportToPdfFile(jasperPrint,sDestFileName);\r\n\t\t\t} else {\r\n\t\t\t\tsDestFileName+=\".xml\";\r\n\t\t\t\tJasperExportManager.exportReportToXmlFile(jasperPrint,sDestFileName, false);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\r\n\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"WORD\") {\r\n\t\t\t\tsDestFileName+=\".rtf\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRRtfExporter exporter = new JRRtfExporter();\r\n\t\t\r\n\t\t\t\texporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\r\n\t\t\t\texporter.exportReport();\r\n\t\t\t\t\r\n\t\t\t} else\t{\r\n\t\t\t\tsDestFileName+=\".xls\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRXlsExporter exporterXls = new JRXlsExporter();\r\n\t\t\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\t\texporterXls.setParameter(JRXlsExporterParameter.IS_ONE_PAGE_PER_SHEET, Boolean.TRUE);\r\n\t\t\r\n\t\t\t\texporterXls.exportReport();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"EXCEL2\"||this.sTipoArchivoReporte==\"EXCEL2_2\") {\r\n\t\t\t//sDestFileName+=\".xlsx\";\r\n\t\t\t\r\n\t\t\tif(this.sTipoReporte.equals(\"NORMAL\")) {\r\n\t\t\t\tthis.generarExcelReporteFacturaPuntoVentas(sAccionBusqueda,sTipoArchivoReporte,facturapuntoventasParaReportes);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"FORMULARIO\")){\r\n\t\t\t\tthis.generarExcelReporteVerticalFacturaPuntoVentas(sAccionBusqueda,sTipoArchivoReporte,facturapuntoventasParaReportes,false);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"DINAMICO\")){\r\n\t\t\t\t\r\n\t\t\t\tif(this.sTipoReporteDinamico.equals(\"NORMAL\")) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tthis.jButtonGenerarExcelReporteDinamicoFacturaPuntoVentaActionPerformed(null);\r\n\t\t\t\t\t//this.generarExcelReporteFacturaPuntoVentas(sAccionBusqueda,sTipoArchivoReporte,facturapuntoventasParaReportes);\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"FORMULARIO\")){\r\n\t\t\t\t\tthis.generarExcelReporteVerticalFacturaPuntoVentas(sAccionBusqueda,sTipoArchivoReporte,facturapuntoventasParaReportes,true);\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"RELACIONES\")){\r\n\t\t\t\t\tthis.generarExcelReporteRelacionesFacturaPuntoVentas(sAccionBusqueda,sTipoArchivoReporte,facturapuntoventasParaReportes,true);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"RELACIONES\")){\r\n\t\t\t\tthis.generarExcelReporteRelacionesFacturaPuntoVentas(sAccionBusqueda,sTipoArchivoReporte,facturapuntoventasParaReportes,false);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\"||this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\t\t\t\t\r\n\t\t\tJOptionPane.showMessageDialog(this,\"REPORTE \"+sDestFileName+\" GENERADO SATISFACTORIAMENTE\",\"REPORTES \",JOptionPane.INFORMATION_MESSAGE);\r\n\t\t}\r\n\t}", "public ReporteNCND() {\n initComponents();\n c.conectar();\n this.setExtendedState(MAXIMIZED_BOTH);\n this.getContentPane().setBackground(Color.WHITE);\n this.setLocationRelativeTo(null);//en el centro\n \n \n \n// tbFacturacion.getTableHeader().setVisible(false);\n// tbFacturacion.setTableHeader(null);\n \n cbxBuscarDocumento.setBackground(Color.WHITE);\n cbxBuscarDocumentoD.setBackground(Color.WHITE);\n \n Paginas.setEnabled(false);\n Paginas.setEnabledAt(0,false);\n Paginas.setEnabledAt(1, false);\n //CREDITO\n CUENTAS_POR_PAGAR_NOTA_CREDITO_listar(0,0,\"\",\"1\");\n CUENTAS_POR_PAGAR_NOTA_CREDITO_formato();\n //DEBITO\n CUENTAS_POR_PAGAR_NOTA_DEBITO_listar(0,0,\"\",\"1\");\n CUENTAS_POR_PAGAR_NOTA_DEBITO_formato();\n //salir presionando escape\n getRootPane().getInputMap(javax.swing.JComponent.WHEN_IN_FOCUSED_WINDOW).put(\n javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_ESCAPE, 0), \"Cancel\");\n \n getRootPane().getActionMap().put(\"Cancel\", new javax.swing.AbstractAction(){\n @Override\n public void actionPerformed(java.awt.event.ActionEvent e){\n dispose();\n\n }\n });\n }", "public GenerateReport() {\n initComponents();\n displayLogs();\n }", "private void btnPrintEmployeeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnPrintEmployeeActionPerformed\n if(searched == false){\n JOptionPane.showMessageDialog(rootPane, \"Please Perform a search on database first.\");\n return;\n }\n try {\n String report = \"IReports\\\\Employee.jrxml\";\n JasperReport jReport = JasperCompileManager.compileReport(report);\n JasperPrint jPrint = JasperFillManager.fillReport(jReport, null, newHandler.getConnector());\n JasperViewer.viewReport(jPrint, false);\n } catch (JRException ex) {\n JOptionPane.showMessageDialog(rootPane, ex.getMessage());\n }\n }", "public void showReportAbuseSuccess() {\n try {\n AlertDialog.Builder builder = new AlertDialog.Builder(this.mContext);\n builder.setTitle(this.mContext.getResources().getString(R.string.consult_report_abuse_thanks));\n builder.setMessage(this.mContext.getResources().getString(R.string.consult_comment_report_abuse_success));\n builder.setPositiveButton(this.mContext.getResources().getString(R.string.alert_dialog_confirmation_ok_button_text), new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialogInterface, int i) {\n dialogInterface.dismiss();\n }\n });\n builder.show();\n } catch (Exception unused) {\n Trace.w(TAG, \"Failed to show disclaimer for consult photo editing\");\n }\n }", "private void showCheckDialog() {\n AlertDialog.Builder showAuditAlert = new AlertDialog.Builder(this); // Create Alert dialog\n showAuditAlert.setTitle(\"Total prize\"); // Set title\n showAuditAlert.setMessage(\"= \"+mydb.getResultDayAudit(year,month,day).intValue()+\"\"); // Set message\n\n showAuditAlert.setPositiveButton(\"Done\",\n new DialogInterface.OnClickListener()\n { // Can hear \"CLICK\"\n @Override\n public void onClick(DialogInterface dialog,int which)\n {\n \tdialog.dismiss(); // CLICK then disappear\n }\n }\n );\n showAuditAlert.show(); // Show dialog that created upper this line\n }", "public void generarReportePlantillaFacturas(String sAccionBusqueda,List<PlantillaFactura> plantillafacturasParaReportes) throws Exception {\n\t\tLong iIdUsuarioSesion=0L;\t\r\n\t\t\r\n\t\t\r\n\t\tif(usuarioActual==null) {\r\n\t\t\tthis.usuarioActual=new Usuario();\r\n\t\t}\r\n\t\t\r\n\t\tiIdUsuarioSesion=usuarioActual.getId();\r\n\t\t\r\n\t\tString sPathReportes=\"\";\r\n\t\t\r\n\t\tInputStream reportFile=null;\r\n\t\tInputStream imageFile=null;\r\n\t\t\t\r\n\t\timageFile=AuxiliarImagenes.class.getResourceAsStream(\"LogoReporte.jpg\");\t\t\t\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathReporteFinal=\"\";\r\n\t\t\r\n\t\tif(!esReporteAccionProceso) {\r\n\t\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\t\tif(!this.esReporteDinamico) {\r\n\t\t\t\t\tsPathReporteFinal=\"PlantillaFactura\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsPathReporteFinal=this.sPathReporteDinamico;\r\n\t\t\t\t\treportFile = new FileInputStream(sPathReporteFinal);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"PlantillaFacturaMasterRelaciones\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\r\n\t\t\t\t//sPathReportes=reportFile.getPath().replace(\"PlantillaFacturaMasterRelacionesDesign.jasper\", \"\");\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"PlantillaFactura\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t}\r\n\t\t\r\n\t\tif(reportFile==null) {\r\n\t\t\tthrow new JRRuntimeException(sPathReporteFinal+\" no existe\");\r\n\t\t}\r\n\t\t\r\n\t\tString sUsuario=\"\";\r\n\t\t\r\n\t\tif(usuarioActual!=null) {\r\n\t\t\tsUsuario=usuarioActual.getuser_name();\r\n\t\t}\r\n\t\t\r\n\t\tMap<String, Object> parameters = new HashMap<String, Object>();\r\n\t\tparameters.put(\"usuario\", sUsuario);\r\n\t\t\r\n\t\tparameters.put(\"titulo\", Funciones.GetTituloSistemaReporte(this.parametroGeneralSg,this.moduloActual,this.usuarioActual));\r\n\t\tparameters.put(\"subtitulo\", \"Reporte De Plantilla Facturas\");\t\t\r\n\t\tparameters.put(\"busquedapor\", PlantillaFacturaConstantesFunciones.getNombreIndice(sAccionBusqueda)+sDetalleReporte);\r\n\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\tparameters.put(\"SUBREPORT_DIR\", sPathReportes);\r\n\t\t}\r\n\t\t\r\n\t\tparameters.put(\"con_grafico\", this.conGraficoReporte);\r\n\t\t\r\n\t\tJasperReport jasperReport = (JasperReport)JRLoader.loadObject(reportFile);\r\n\t\t\t\t\r\n\t\tthis.cargarDatosCliente();\r\n\t\t\r\n\t\tArrayList<Classe> classes=new ArrayList<Classe>();\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\t\r\n\t\t\t\r\n\t\t} else {\r\n\t\t\t//FK DEBERIA TRAERSE DE ANTEMANO\r\n\t\t\t\r\n\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\r\n\t\t//CLASSES PARA REPORTES OBJETOS RELACIONADOS\r\n\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\tclasses=new ArrayList<Classe>();\r\n\t\t}\r\n\t\t\r\n\t\tJRBeanArrayDataSource jrbeanArrayDataSourcePlantillaFactura=null;\r\n\t\t\r\n\t\tif(this.sTipoReporteExtra!=null && !this.sTipoReporteExtra.equals(\"\")) {\r\n\t\t\tPlantillaFacturaConstantesFunciones.S_TIPOREPORTE_EXTRA=this.sTipoReporteExtra;\r\n\t\t} else {\r\n\t\t\tPlantillaFacturaConstantesFunciones.S_TIPOREPORTE_EXTRA=\"\";\r\n\t\t}\r\n\t\t\r\n\t\tjrbeanArrayDataSourcePlantillaFactura=new JRBeanArrayDataSource(PlantillaFacturaJInternalFrame.TraerPlantillaFacturaBeans(plantillafacturasParaReportes,classes).toArray());\r\n\t\t\r\n\t\tjasperPrint = JasperFillManager.fillReport(jasperReport,parameters,jrbeanArrayDataSourcePlantillaFactura);\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathDest=Constantes.SUNIDAD_ARCHIVOS+\":/\"+Constantes.SCONTEXTSERVER+\"/\"+PlantillaFacturaConstantesFunciones.SCHEMA+\"/reportes\";\r\n\t\t\r\n\t\tFile filePathDest = new File(sPathDest);\r\n\t\t\r\n\t\tif(!filePathDest.exists()) {\r\n\t\t\tfilePathDest.mkdirs();\t\t\t\t\r\n\t\t}\r\n\t\t\t\t\r\n\t\tString sDestFileName=sPathDest+\"/\"+PlantillaFacturaConstantesFunciones.CLASSNAME;\r\n\t\t\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"VISUALIZAR\") {\r\n\t\t\tJasperViewer jasperViewer = new JasperViewer(jasperPrint,false) ;\r\n\t\t\tjasperViewer.setVisible(true) ; \r\n\r\n\t\t} else if(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\") {\t\r\n\t\t\t//JasperFillManager.fillReportToFile(reportFile.getAbsolutePath(),parameters, new JRBeanArrayDataSource(PlantillaFacturaBean.TraerPlantillaFacturaBeans(plantillafacturasParaReportes).toArray()));\r\n\t\t\t\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"HTML\") {\r\n\t\t\t\tsDestFileName+=\".html\";\r\n\t\t\t\tJasperExportManager.exportReportToHtmlFile(jasperPrint,sDestFileName);\r\n\t\t\t\t\t\r\n\t\t\t} else if(this.sTipoArchivoReporte==\"PDF\") {\r\n\t\t\t\tsDestFileName+=\".pdf\";\r\n\t\t\t\tJasperExportManager.exportReportToPdfFile(jasperPrint,sDestFileName);\r\n\t\t\t} else {\r\n\t\t\t\tsDestFileName+=\".xml\";\r\n\t\t\t\tJasperExportManager.exportReportToXmlFile(jasperPrint,sDestFileName, false);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\r\n\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"WORD\") {\r\n\t\t\t\tsDestFileName+=\".rtf\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRRtfExporter exporter = new JRRtfExporter();\r\n\t\t\r\n\t\t\t\texporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\r\n\t\t\t\texporter.exportReport();\r\n\t\t\t\t\r\n\t\t\t} else\t{\r\n\t\t\t\tsDestFileName+=\".xls\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRXlsExporter exporterXls = new JRXlsExporter();\r\n\t\t\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\t\texporterXls.setParameter(JRXlsExporterParameter.IS_ONE_PAGE_PER_SHEET, Boolean.TRUE);\r\n\t\t\r\n\t\t\t\texporterXls.exportReport();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"EXCEL2\"||this.sTipoArchivoReporte==\"EXCEL2_2\") {\r\n\t\t\t//sDestFileName+=\".xlsx\";\r\n\t\t\t\r\n\t\t\tif(this.sTipoReporte.equals(\"NORMAL\")) {\r\n\t\t\t\tthis.generarExcelReportePlantillaFacturas(sAccionBusqueda,sTipoArchivoReporte,plantillafacturasParaReportes);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"FORMULARIO\")){\r\n\t\t\t\tthis.generarExcelReporteVerticalPlantillaFacturas(sAccionBusqueda,sTipoArchivoReporte,plantillafacturasParaReportes,false);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"DINAMICO\")){\r\n\t\t\t\t\r\n\t\t\t\tif(this.sTipoReporteDinamico.equals(\"NORMAL\")) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tthis.jButtonGenerarExcelReporteDinamicoPlantillaFacturaActionPerformed(null);\r\n\t\t\t\t\t//this.generarExcelReportePlantillaFacturas(sAccionBusqueda,sTipoArchivoReporte,plantillafacturasParaReportes);\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"FORMULARIO\")){\r\n\t\t\t\t\tthis.generarExcelReporteVerticalPlantillaFacturas(sAccionBusqueda,sTipoArchivoReporte,plantillafacturasParaReportes,true);\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"RELACIONES\")){\r\n\t\t\t\t\tthis.generarExcelReporteRelacionesPlantillaFacturas(sAccionBusqueda,sTipoArchivoReporte,plantillafacturasParaReportes,true);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"RELACIONES\")){\r\n\t\t\t\tthis.generarExcelReporteRelacionesPlantillaFacturas(sAccionBusqueda,sTipoArchivoReporte,plantillafacturasParaReportes,false);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\"||this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\t\t\t\t\r\n\t\t\tJOptionPane.showMessageDialog(this,\"REPORTE \"+sDestFileName+\" GENERADO SATISFACTORIAMENTE\",\"REPORTES \",JOptionPane.INFORMATION_MESSAGE);\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n SwingUtilities.invokeLater(new Runnable() {\n public void run() {\n JDialog d = new JDialog();\n TextualReportDialog inst = new TextualReportDialog(d, \"hello!\");\n inst.setVisible(true);\n }\n });\n }", "public void generarReporteTablaAmortiDetalles(String sAccionBusqueda,List<TablaAmortiDetalle> tablaamortidetallesParaReportes) throws Exception {\n\t\tLong iIdUsuarioSesion=0L;\t\r\n\t\t\r\n\t\t\r\n\t\tif(usuarioActual==null) {\r\n\t\t\tthis.usuarioActual=new Usuario();\r\n\t\t}\r\n\t\t\r\n\t\tiIdUsuarioSesion=usuarioActual.getId();\r\n\t\t\r\n\t\tString sPathReportes=\"\";\r\n\t\t\r\n\t\tInputStream reportFile=null;\r\n\t\tInputStream imageFile=null;\r\n\t\t\t\r\n\t\timageFile=AuxiliarImagenes.class.getResourceAsStream(\"LogoReporte.jpg\");\t\t\t\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathReporteFinal=\"\";\r\n\t\t\r\n\t\tif(!esReporteAccionProceso) {\r\n\t\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\t\tif(!this.esReporteDinamico) {\r\n\t\t\t\t\tsPathReporteFinal=\"TablaAmortiDetalle\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsPathReporteFinal=this.sPathReporteDinamico;\r\n\t\t\t\t\treportFile = new FileInputStream(sPathReporteFinal);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"TablaAmortiDetalleMasterRelaciones\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\r\n\t\t\t\t//sPathReportes=reportFile.getPath().replace(\"TablaAmortiDetalleMasterRelacionesDesign.jasper\", \"\");\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"TablaAmortiDetalle\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t}\r\n\t\t\r\n\t\tif(reportFile==null) {\r\n\t\t\tthrow new JRRuntimeException(sPathReporteFinal+\" no existe\");\r\n\t\t}\r\n\t\t\r\n\t\tString sUsuario=\"\";\r\n\t\t\r\n\t\tif(usuarioActual!=null) {\r\n\t\t\tsUsuario=usuarioActual.getuser_name();\r\n\t\t}\r\n\t\t\r\n\t\tMap<String, Object> parameters = new HashMap<String, Object>();\r\n\t\tparameters.put(\"usuario\", sUsuario);\r\n\t\t\r\n\t\tparameters.put(\"titulo\", Funciones.GetTituloSistemaReporte(this.parametroGeneralSg,this.moduloActual,this.usuarioActual));\r\n\t\tparameters.put(\"subtitulo\", \"Reporte De Tabla Amortizacion Detalles\");\t\t\r\n\t\tparameters.put(\"busquedapor\", TablaAmortiDetalleConstantesFunciones.getNombreIndice(sAccionBusqueda)+sDetalleReporte);\r\n\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\tparameters.put(\"SUBREPORT_DIR\", sPathReportes);\r\n\t\t}\r\n\t\t\r\n\t\tparameters.put(\"con_grafico\", this.conGraficoReporte);\r\n\t\t\r\n\t\tJasperReport jasperReport = (JasperReport)JRLoader.loadObject(reportFile);\r\n\t\t\t\t\r\n\t\tthis.cargarDatosCliente();\r\n\t\t\r\n\t\tArrayList<Classe> classes=new ArrayList<Classe>();\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\t\r\n\t\t\t\r\n\t\t} else {\r\n\t\t\t//FK DEBERIA TRAERSE DE ANTEMANO\r\n\t\t\t\r\n\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\r\n\t\t//CLASSES PARA REPORTES OBJETOS RELACIONADOS\r\n\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\tclasses=new ArrayList<Classe>();\r\n\t\t}\r\n\t\t\r\n\t\tJRBeanArrayDataSource jrbeanArrayDataSourceTablaAmortiDetalle=null;\r\n\t\t\r\n\t\tif(this.sTipoReporteExtra!=null && !this.sTipoReporteExtra.equals(\"\")) {\r\n\t\t\tTablaAmortiDetalleConstantesFunciones.S_TIPOREPORTE_EXTRA=this.sTipoReporteExtra;\r\n\t\t} else {\r\n\t\t\tTablaAmortiDetalleConstantesFunciones.S_TIPOREPORTE_EXTRA=\"\";\r\n\t\t}\r\n\t\t\r\n\t\tjrbeanArrayDataSourceTablaAmortiDetalle=new JRBeanArrayDataSource(TablaAmortiDetalleJInternalFrame.TraerTablaAmortiDetalleBeans(tablaamortidetallesParaReportes,classes).toArray());\r\n\t\t\r\n\t\tjasperPrint = JasperFillManager.fillReport(jasperReport,parameters,jrbeanArrayDataSourceTablaAmortiDetalle);\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathDest=Constantes.SUNIDAD_ARCHIVOS+\":/\"+Constantes.SCONTEXTSERVER+\"/\"+TablaAmortiDetalleConstantesFunciones.SCHEMA+\"/reportes\";\r\n\t\t\r\n\t\tFile filePathDest = new File(sPathDest);\r\n\t\t\r\n\t\tif(!filePathDest.exists()) {\r\n\t\t\tfilePathDest.mkdirs();\t\t\t\t\r\n\t\t}\r\n\t\t\t\t\r\n\t\tString sDestFileName=sPathDest+\"/\"+TablaAmortiDetalleConstantesFunciones.CLASSNAME;\r\n\t\t\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"VISUALIZAR\") {\r\n\t\t\tJasperViewer jasperViewer = new JasperViewer(jasperPrint,false) ;\r\n\t\t\tjasperViewer.setVisible(true) ; \r\n\r\n\t\t} else if(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\") {\t\r\n\t\t\t//JasperFillManager.fillReportToFile(reportFile.getAbsolutePath(),parameters, new JRBeanArrayDataSource(TablaAmortiDetalleBean.TraerTablaAmortiDetalleBeans(tablaamortidetallesParaReportes).toArray()));\r\n\t\t\t\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"HTML\") {\r\n\t\t\t\tsDestFileName+=\".html\";\r\n\t\t\t\tJasperExportManager.exportReportToHtmlFile(jasperPrint,sDestFileName);\r\n\t\t\t\t\t\r\n\t\t\t} else if(this.sTipoArchivoReporte==\"PDF\") {\r\n\t\t\t\tsDestFileName+=\".pdf\";\r\n\t\t\t\tJasperExportManager.exportReportToPdfFile(jasperPrint,sDestFileName);\r\n\t\t\t} else {\r\n\t\t\t\tsDestFileName+=\".xml\";\r\n\t\t\t\tJasperExportManager.exportReportToXmlFile(jasperPrint,sDestFileName, false);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\r\n\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"WORD\") {\r\n\t\t\t\tsDestFileName+=\".rtf\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRRtfExporter exporter = new JRRtfExporter();\r\n\t\t\r\n\t\t\t\texporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\r\n\t\t\t\texporter.exportReport();\r\n\t\t\t\t\r\n\t\t\t} else\t{\r\n\t\t\t\tsDestFileName+=\".xls\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRXlsExporter exporterXls = new JRXlsExporter();\r\n\t\t\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\t\texporterXls.setParameter(JRXlsExporterParameter.IS_ONE_PAGE_PER_SHEET, Boolean.TRUE);\r\n\t\t\r\n\t\t\t\texporterXls.exportReport();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"EXCEL2\"||this.sTipoArchivoReporte==\"EXCEL2_2\") {\r\n\t\t\t//sDestFileName+=\".xlsx\";\r\n\t\t\t\r\n\t\t\tif(this.sTipoReporte.equals(\"NORMAL\")) {\r\n\t\t\t\tthis.generarExcelReporteTablaAmortiDetalles(sAccionBusqueda,sTipoArchivoReporte,tablaamortidetallesParaReportes);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"FORMULARIO\")){\r\n\t\t\t\tthis.generarExcelReporteVerticalTablaAmortiDetalles(sAccionBusqueda,sTipoArchivoReporte,tablaamortidetallesParaReportes,false);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"DINAMICO\")){\r\n\t\t\t\t\r\n\t\t\t\tif(this.sTipoReporteDinamico.equals(\"NORMAL\")) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tthis.jButtonGenerarExcelReporteDinamicoTablaAmortiDetalleActionPerformed(null);\r\n\t\t\t\t\t//this.generarExcelReporteTablaAmortiDetalles(sAccionBusqueda,sTipoArchivoReporte,tablaamortidetallesParaReportes);\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"FORMULARIO\")){\r\n\t\t\t\t\tthis.generarExcelReporteVerticalTablaAmortiDetalles(sAccionBusqueda,sTipoArchivoReporte,tablaamortidetallesParaReportes,true);\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"RELACIONES\")){\r\n\t\t\t\t\tthis.generarExcelReporteRelacionesTablaAmortiDetalles(sAccionBusqueda,sTipoArchivoReporte,tablaamortidetallesParaReportes,true);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"RELACIONES\")){\r\n\t\t\t\tthis.generarExcelReporteRelacionesTablaAmortiDetalles(sAccionBusqueda,sTipoArchivoReporte,tablaamortidetallesParaReportes,false);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\"||this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\t\t\t\t\r\n\t\t\tJOptionPane.showMessageDialog(this,\"REPORTE \"+sDestFileName+\" GENERADO SATISFACTORIAMENTE\",\"REPORTES \",JOptionPane.INFORMATION_MESSAGE);\r\n\t\t}\r\n\t}", "public void dialog_AddExitSheet() {\n\n final Dialog dialog = new Dialog(ReportActivity.this);\n dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);\n dialog.setContentView(R.layout.dialog_add_exit_sheet);\n dialog.getWindow().setBackgroundDrawable(getResources().getDrawable(R.drawable.transparent));\n\n TextView tv_newOutgoing = dialog.findViewById(R.id.tv_newOutgoing);\n tv_newOutgoing.setText(new_outgoing_info);\n\n final EditText et_exitDate = dialog.findViewById(R.id.et_exitDate);\n final EditText et_DriverName = dialog.findViewById(R.id.et_DriverName);\n final EditText et_logistics_company = dialog.findViewById(R.id.et_logistics_company);\n final EditText et_VehicleNumber = dialog.findViewById(R.id.et_VehicleNumber);\n\n et_DriverName.setHint(driver_name);\n et_VehicleNumber.setHint(vehicle_number);\n\n\n\n final String date = (new SimpleDateFormat(\"yyyyMMdd_HHmmss\")).format(new Date());\n final String strDate = date.substring(0, 4) + \".\" + date.substring(4, 6) + \".\" + date.substring(6, 8) +\n \" \" + date.substring(9, 11) + \":\" + date.substring(11, 13);\n et_exitDate.setText(strDate);\n Button bt_add = dialog.findViewById(R.id.bt_add);\n bt_add.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n\n String DriverName = et_DriverName.getText().toString();\n String VehicleNumber = et_VehicleNumber.getText().toString();\n String exitDate = et_exitDate.getText().toString();\n String logisticscompany = et_logistics_company.getText().toString();\n if (DriverName.length() == 0 || VehicleNumber.length() == 0 || exitDate.length() != 16&&logisticscompany.length()==0) {\n Toast.makeText(ReportActivity.this, new_outgoing_data_error, Toast.LENGTH_LONG).show();\n } else {\n ExitSheet exitSheet = new ExitSheet(0, exitDate, VehicleNumber, DriverName, 0, \"\",0,logisticscompany);\n DataBaseHandler dataBaseHandler = new DataBaseHandler(ReportActivity.this);\n long exitSheetId = dataBaseHandler.addExitSheet(exitSheet);\n\n Toast.makeText(ReportActivity.this,add_outgoing_success, Toast.LENGTH_LONG).show();\n dialog.dismiss();\n dialog.cancel();\n Intent intent = new Intent(ReportActivity.this, ExitSheetPackageActivity.class);\n intent.putExtra(\"exitSheetId\", exitSheetId + \"\");\n intent.putExtra(\"exitSheetDriverName\", exitSheet.VehicleDriverName + \"\");\n intent.putExtra(\"exitSheetVehicleNumber\", exitSheet.VehicleNumber + \"\");\n intent.putExtra(\"exitSheetDate\", exitSheet.Date + \"\");\n intent.putExtra(\"exitSheetLogisticsCompany\", logisticscompany + \"\");\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK);\n intent.addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION);\n intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(intent);\n\n\n }\n }\n });\n\n dialog.setCancelable(true);\n dialog.show();\n }", "public EntradasView() throws Exception {\n initComponents();\n this.setDefaultCloseOperation(WindowConstants.HIDE_ON_CLOSE);\n cargarReporte();\n }", "public void dialog_countingSheet() {\n\n final Dialog dialog = new Dialog(ReportActivity.this);\n dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);\n dialog.setContentView(R.layout.dialog_counting_sheet);\n dialog.getWindow().setBackgroundDrawable(getResources().getDrawable(R.drawable.transparent));\n\n TextView tv_countingDialog = dialog.findViewById(R.id.tv_countingDialog);\n tv_countingDialog.setText(counting);\n\n DataBaseHandler dataBaseHandler = new DataBaseHandler(ReportActivity.this);\n ArrayList<CountingSheet> preCountingSheetList = new ArrayList<>();\n preCountingSheetList = dataBaseHandler.getAllCountingSheet();\n\n\n TextView tv_Title = dialog.findViewById(R.id.tv_Title);\n if (preCountingSheetList.size() == 0) {\n tv_Title.setText(no_counting_title);\n } else {\n tv_Title.setText(has_counting_dialog);\n }\n\n ListView lv_preCountingSheet = dialog.findViewById(R.id.lv_preCountingSheet);\n final PreCountingSheetAdapter preCountingSheetAdapter = new PreCountingSheetAdapter(ReportActivity.this, preCountingSheetList, dialog);\n lv_preCountingSheet.setAdapter(preCountingSheetAdapter);\n\n Button bt_AddCountingSheet = dialog.findViewById(R.id.bt_AddCountingSheet);\n bt_AddCountingSheet.setText(add_new_counting_process);\n bt_AddCountingSheet.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n\n dialog_AddCountingSheet();\n dialog.dismiss();\n dialog.cancel();\n }\n });\n\n dialog.setCancelable(true);\n dialog.show();\n }", "@Override\r\n\t\t\tpublic void reporte() {\n\r\n\t\t\t}", "public void onClickRecordarContra(View view){\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n\n // 2. Chain together various setter methods to set the dialog characteristics\n builder.setMessage(R.string.dialog_message);\n builder.setPositiveButton(R.string.ok, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n dialog.dismiss();\n Toast.makeText(LogeoActivity.this, \"Correo enviado! Mira tu bandeja de entrada\", Toast.LENGTH_SHORT).show();\n }\n });\n builder.setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n dialog.dismiss();\n }\n });\n // 3. Get the AlertDialog from create()\n AlertDialog dialog = builder.create();\n dialog.show();\n }", "void reporte(){\n //Variable para abrir el listado automaticamente\n Desktop pc=Desktop.getDesktop();\n //Se crea el documento\n Document doc=new Document();\n try {\n //Se crea el documento PDF\n FileOutputStream pdf=new FileOutputStream(\"ListadoCursos.pdf\");\n //El documento almacena la infomación del pdf.\n PdfWriter.getInstance(doc, pdf);\n \n //Se abre el documento para que se pueda modificar\n doc.open();\n \n //Se crea el título del documento y se configura\n Paragraph titulo=new Paragraph(\"Listado de Cursos\\n\\n\",\n FontFactory.getFont(\"Serif\",22,Font.PLAIN));\n //Se agrega el titulo al documento\n doc.add(titulo);\n \n //Se crea la tabla con la información\n PdfPTable tabla=new PdfPTable(5);\n //Se agregan los titulos a la tabla\n tabla.addCell(\"Codigo\");\n tabla.addCell(\"Nombre\");\n tabla.addCell(\"Creditos\");\n tabla.addCell(\"Alumnos\");\n tabla.addCell(\"Profesor\");\n \n //Se agregan los datos del los profesores\n for (int i = 0; i < datos.cantCur; i++) {\n tabla.addCell(datos.codigoC[i]+\"\");\n tabla.addCell(datos.nombreC[i]);\n tabla.addCell(datos.creditosC[i]+\"\");\n tabla.addCell(datos.alumnosC[i]+\"\");\n //Se busca al profesor\n String profesor=\"\";\n int a=0;\n while(a<datos.cantPro){\n if (datos.codigoPC[i]==datos.codigoP[a]) {\n profesor=datos.nombreP[a]+\" \"+datos.apellidoP[a];\n break;\n }\n a++;\n }\n tabla.addCell(profesor);\n }\n \n //Se agrega la tabla\n doc.add(tabla);\n //Se cierra el documento\n doc.close();\n //El documento creado se pasa a una variable tipo FILE\n File f=new File(\"ListadoCursos.pdf\");\n //Se abre el documento PDF\n pc.open(f);\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null,\"Error al crear el pdf\");\n }\n }", "public void generateReport() {\n ReportGenerator rg = ui.getReportGenerator();\n if (rg == null || !rg.isVisible()) {\n ui.openReportGenerator();\n rg = ui.getReportGenerator();\n }\n Image img = getImage();\n if (img == null) {\n return;\n }\n rg.addImage(img, \"Plot\");\n }", "public void generarReportePagosAutorizadoss(String sAccionBusqueda,List<PagosAutorizados> pagosautorizadossParaReportes) throws Exception {\n\t\tLong iIdUsuarioSesion=0L;\t\r\n\t\t\r\n\t\t\r\n\t\tif(usuarioActual==null) {\r\n\t\t\tthis.usuarioActual=new Usuario();\r\n\t\t}\r\n\t\t\r\n\t\tiIdUsuarioSesion=usuarioActual.getId();\r\n\t\t\r\n\t\tString sPathReportes=\"\";\r\n\t\t\r\n\t\tInputStream reportFile=null;\r\n\t\tInputStream imageFile=null;\r\n\t\t\t\r\n\t\timageFile=AuxiliarImagenes.class.getResourceAsStream(\"LogoReporte.jpg\");\t\t\t\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathReporteFinal=\"\";\r\n\t\t\r\n\t\tif(!esReporteAccionProceso) {\r\n\t\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\t\tif(!this.esReporteDinamico) {\r\n\t\t\t\t\tsPathReporteFinal=\"PagosAutorizados\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsPathReporteFinal=this.sPathReporteDinamico;\r\n\t\t\t\t\treportFile = new FileInputStream(sPathReporteFinal);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"PagosAutorizadosMasterRelaciones\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\r\n\t\t\t\t//sPathReportes=reportFile.getPath().replace(\"PagosAutorizadosMasterRelacionesDesign.jasper\", \"\");\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"PagosAutorizados\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t}\r\n\t\t\r\n\t\tif(reportFile==null) {\r\n\t\t\tthrow new JRRuntimeException(sPathReporteFinal+\" no existe\");\r\n\t\t}\r\n\t\t\r\n\t\tString sUsuario=\"\";\r\n\t\t\r\n\t\tif(usuarioActual!=null) {\r\n\t\t\tsUsuario=usuarioActual.getuser_name();\r\n\t\t}\r\n\t\t\r\n\t\tMap<String, Object> parameters = new HashMap<String, Object>();\r\n\t\tparameters.put(\"usuario\", sUsuario);\r\n\t\t\r\n\t\tparameters.put(\"titulo\", Funciones.GetTituloSistemaReporte(this.parametroGeneralSg,this.moduloActual,this.usuarioActual));\r\n\t\tparameters.put(\"subtitulo\", \"Reporte De Pagos Autorizadoses\");\t\t\r\n\t\tparameters.put(\"busquedapor\", PagosAutorizadosConstantesFunciones.getNombreIndice(sAccionBusqueda)+sDetalleReporte);\r\n\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\tparameters.put(\"SUBREPORT_DIR\", sPathReportes);\r\n\t\t}\r\n\t\t\r\n\t\tparameters.put(\"con_grafico\", this.conGraficoReporte);\r\n\t\t\r\n\t\tJasperReport jasperReport = (JasperReport)JRLoader.loadObject(reportFile);\r\n\t\t\t\t\r\n\t\tthis.cargarDatosCliente();\r\n\t\t\r\n\t\tArrayList<Classe> classes=new ArrayList<Classe>();\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\t\r\n\t\t\t\r\n\t\t} else {\r\n\t\t\t//FK DEBERIA TRAERSE DE ANTEMANO\r\n\t\t\t\r\n\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\r\n\t\t//CLASSES PARA REPORTES OBJETOS RELACIONADOS\r\n\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\tclasses=new ArrayList<Classe>();\r\n\t\t}\r\n\t\t\r\n\t\tJRBeanArrayDataSource jrbeanArrayDataSourcePagosAutorizados=null;\r\n\t\t\r\n\t\tif(this.sTipoReporteExtra!=null && !this.sTipoReporteExtra.equals(\"\")) {\r\n\t\t\tPagosAutorizadosConstantesFunciones.S_TIPOREPORTE_EXTRA=this.sTipoReporteExtra;\r\n\t\t} else {\r\n\t\t\tPagosAutorizadosConstantesFunciones.S_TIPOREPORTE_EXTRA=\"\";\r\n\t\t}\r\n\t\t\r\n\t\tjrbeanArrayDataSourcePagosAutorizados=new JRBeanArrayDataSource(PagosAutorizadosJInternalFrame.TraerPagosAutorizadosBeans(pagosautorizadossParaReportes,classes).toArray());\r\n\t\t\r\n\t\tjasperPrint = JasperFillManager.fillReport(jasperReport,parameters,jrbeanArrayDataSourcePagosAutorizados);\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathDest=Constantes.SUNIDAD_ARCHIVOS+\":/\"+Constantes.SCONTEXTSERVER+\"/\"+PagosAutorizadosConstantesFunciones.SCHEMA+\"/reportes\";\r\n\t\t\r\n\t\tFile filePathDest = new File(sPathDest);\r\n\t\t\r\n\t\tif(!filePathDest.exists()) {\r\n\t\t\tfilePathDest.mkdirs();\t\t\t\t\r\n\t\t}\r\n\t\t\t\t\r\n\t\tString sDestFileName=sPathDest+\"/\"+PagosAutorizadosConstantesFunciones.CLASSNAME;\r\n\t\t\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"VISUALIZAR\") {\r\n\t\t\tJasperViewer jasperViewer = new JasperViewer(jasperPrint,false) ;\r\n\t\t\tjasperViewer.setVisible(true) ; \r\n\r\n\t\t} else if(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\") {\t\r\n\t\t\t//JasperFillManager.fillReportToFile(reportFile.getAbsolutePath(),parameters, new JRBeanArrayDataSource(PagosAutorizadosBean.TraerPagosAutorizadosBeans(pagosautorizadossParaReportes).toArray()));\r\n\t\t\t\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"HTML\") {\r\n\t\t\t\tsDestFileName+=\".html\";\r\n\t\t\t\tJasperExportManager.exportReportToHtmlFile(jasperPrint,sDestFileName);\r\n\t\t\t\t\t\r\n\t\t\t} else if(this.sTipoArchivoReporte==\"PDF\") {\r\n\t\t\t\tsDestFileName+=\".pdf\";\r\n\t\t\t\tJasperExportManager.exportReportToPdfFile(jasperPrint,sDestFileName);\r\n\t\t\t} else {\r\n\t\t\t\tsDestFileName+=\".xml\";\r\n\t\t\t\tJasperExportManager.exportReportToXmlFile(jasperPrint,sDestFileName, false);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\r\n\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"WORD\") {\r\n\t\t\t\tsDestFileName+=\".rtf\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRRtfExporter exporter = new JRRtfExporter();\r\n\t\t\r\n\t\t\t\texporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\r\n\t\t\t\texporter.exportReport();\r\n\t\t\t\t\r\n\t\t\t} else\t{\r\n\t\t\t\tsDestFileName+=\".xls\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRXlsExporter exporterXls = new JRXlsExporter();\r\n\t\t\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\t\texporterXls.setParameter(JRXlsExporterParameter.IS_ONE_PAGE_PER_SHEET, Boolean.TRUE);\r\n\t\t\r\n\t\t\t\texporterXls.exportReport();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"EXCEL2\"||this.sTipoArchivoReporte==\"EXCEL2_2\") {\r\n\t\t\t//sDestFileName+=\".xlsx\";\r\n\t\t\t\r\n\t\t\tif(this.sTipoReporte.equals(\"NORMAL\")) {\r\n\t\t\t\tthis.generarExcelReportePagosAutorizadoss(sAccionBusqueda,sTipoArchivoReporte,pagosautorizadossParaReportes);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"FORMULARIO\")){\r\n\t\t\t\tthis.generarExcelReporteVerticalPagosAutorizadoss(sAccionBusqueda,sTipoArchivoReporte,pagosautorizadossParaReportes,false);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"DINAMICO\")){\r\n\t\t\t\t\r\n\t\t\t\tif(this.sTipoReporteDinamico.equals(\"NORMAL\")) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tthis.jButtonGenerarExcelReporteDinamicoPagosAutorizadosActionPerformed(null);\r\n\t\t\t\t\t//this.generarExcelReportePagosAutorizadoss(sAccionBusqueda,sTipoArchivoReporte,pagosautorizadossParaReportes);\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"FORMULARIO\")){\r\n\t\t\t\t\tthis.generarExcelReporteVerticalPagosAutorizadoss(sAccionBusqueda,sTipoArchivoReporte,pagosautorizadossParaReportes,true);\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"RELACIONES\")){\r\n\t\t\t\t\tthis.generarExcelReporteRelacionesPagosAutorizadoss(sAccionBusqueda,sTipoArchivoReporte,pagosautorizadossParaReportes,true);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"RELACIONES\")){\r\n\t\t\t\tthis.generarExcelReporteRelacionesPagosAutorizadoss(sAccionBusqueda,sTipoArchivoReporte,pagosautorizadossParaReportes,false);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\"||this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\t\t\t\t\r\n\t\t\tJOptionPane.showMessageDialog(this,\"REPORTE \"+sDestFileName+\" GENERADO SATISFACTORIAMENTE\",\"REPORTES \",JOptionPane.INFORMATION_MESSAGE);\r\n\t\t}\r\n\t}", "private void dialog() {\n\t\tGenericDialog gd = new GenericDialog(\"Bildart\");\n\t\t\n\t\tgd.addChoice(\"Bildtyp\", choices, choices[0]);\n\t\t\n\t\t\n\t\tgd.showDialog();\t// generiere Eingabefenster\n\t\t\n\t\tchoice = gd.getNextChoice(); // Auswahl uebernehmen\n\t\t\n\t\tif (gd.wasCanceled())\n\t\t\tSystem.exit(0);\n\t}", "public Reportes() {\n initComponents();\n }", "public void generarReporteAnalisisTransaClientes(String sAccionBusqueda,List<AnalisisTransaCliente> analisistransaclientesParaReportes) throws Exception {\n\t\tLong iIdUsuarioSesion=0L;\t\r\n\t\t\r\n\t\t\r\n\t\tif(usuarioActual==null) {\r\n\t\t\tthis.usuarioActual=new Usuario();\r\n\t\t}\r\n\t\t\r\n\t\tiIdUsuarioSesion=usuarioActual.getId();\r\n\t\t\r\n\t\tString sPathReportes=\"\";\r\n\t\t\r\n\t\tInputStream reportFile=null;\r\n\t\tInputStream imageFile=null;\r\n\t\t\t\r\n\t\timageFile=AuxiliarImagenes.class.getResourceAsStream(\"LogoReporte.jpg\");\t\t\t\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathReporteFinal=\"\";\r\n\t\t\r\n\t\tif(!esReporteAccionProceso) {\r\n\t\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\t\tif(!this.esReporteDinamico) {\r\n\t\t\t\t\tsPathReporteFinal=\"AnalisisTransaCliente\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsPathReporteFinal=this.sPathReporteDinamico;\r\n\t\t\t\t\treportFile = new FileInputStream(sPathReporteFinal);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"AnalisisTransaClienteMasterRelaciones\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\r\n\t\t\t\t//sPathReportes=reportFile.getPath().replace(\"AnalisisTransaClienteMasterRelacionesDesign.jasper\", \"\");\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"AnalisisTransaCliente\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t}\r\n\t\t\r\n\t\tif(reportFile==null) {\r\n\t\t\tthrow new JRRuntimeException(sPathReporteFinal+\" no existe\");\r\n\t\t}\r\n\t\t\r\n\t\tString sUsuario=\"\";\r\n\t\t\r\n\t\tif(usuarioActual!=null) {\r\n\t\t\tsUsuario=usuarioActual.getuser_name();\r\n\t\t}\r\n\t\t\r\n\t\tMap<String, Object> parameters = new HashMap<String, Object>();\r\n\t\tparameters.put(\"usuario\", sUsuario);\r\n\t\t\r\n\t\tparameters.put(\"titulo\", Funciones.GetTituloSistemaReporte(this.parametroGeneralSg,this.moduloActual,this.usuarioActual));\r\n\t\tparameters.put(\"subtitulo\", \"Reporte De Analisis Transaccion Clientees\");\t\t\r\n\t\tparameters.put(\"busquedapor\", AnalisisTransaClienteConstantesFunciones.getNombreIndice(sAccionBusqueda)+sDetalleReporte);\r\n\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\tparameters.put(\"SUBREPORT_DIR\", sPathReportes);\r\n\t\t}\r\n\t\t\r\n\t\tparameters.put(\"con_grafico\", this.conGraficoReporte);\r\n\t\t\r\n\t\tJasperReport jasperReport = (JasperReport)JRLoader.loadObject(reportFile);\r\n\t\t\t\t\r\n\t\tthis.cargarDatosCliente();\r\n\t\t\r\n\t\tArrayList<Classe> classes=new ArrayList<Classe>();\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\t\r\n\t\t\t\r\n\t\t} else {\r\n\t\t\t//FK DEBERIA TRAERSE DE ANTEMANO\r\n\t\t\t\r\n\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\r\n\t\t//CLASSES PARA REPORTES OBJETOS RELACIONADOS\r\n\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\tclasses=new ArrayList<Classe>();\r\n\t\t}\r\n\t\t\r\n\t\tJRBeanArrayDataSource jrbeanArrayDataSourceAnalisisTransaCliente=null;\r\n\t\t\r\n\t\tif(this.sTipoReporteExtra!=null && !this.sTipoReporteExtra.equals(\"\")) {\r\n\t\t\tAnalisisTransaClienteConstantesFunciones.S_TIPOREPORTE_EXTRA=this.sTipoReporteExtra;\r\n\t\t} else {\r\n\t\t\tAnalisisTransaClienteConstantesFunciones.S_TIPOREPORTE_EXTRA=\"\";\r\n\t\t}\r\n\t\t\r\n\t\tjrbeanArrayDataSourceAnalisisTransaCliente=new JRBeanArrayDataSource(AnalisisTransaClienteJInternalFrame.TraerAnalisisTransaClienteBeans(analisistransaclientesParaReportes,classes).toArray());\r\n\t\t\r\n\t\tjasperPrint = JasperFillManager.fillReport(jasperReport,parameters,jrbeanArrayDataSourceAnalisisTransaCliente);\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathDest=Constantes.SUNIDAD_ARCHIVOS+\":/\"+Constantes.SCONTEXTSERVER+\"/\"+AnalisisTransaClienteConstantesFunciones.SCHEMA+\"/reportes\";\r\n\t\t\r\n\t\tFile filePathDest = new File(sPathDest);\r\n\t\t\r\n\t\tif(!filePathDest.exists()) {\r\n\t\t\tfilePathDest.mkdirs();\t\t\t\t\r\n\t\t}\r\n\t\t\t\t\r\n\t\tString sDestFileName=sPathDest+\"/\"+AnalisisTransaClienteConstantesFunciones.CLASSNAME;\r\n\t\t\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"VISUALIZAR\") {\r\n\t\t\tJasperViewer jasperViewer = new JasperViewer(jasperPrint,false) ;\r\n\t\t\tjasperViewer.setVisible(true) ; \r\n\r\n\t\t} else if(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\") {\t\r\n\t\t\t//JasperFillManager.fillReportToFile(reportFile.getAbsolutePath(),parameters, new JRBeanArrayDataSource(AnalisisTransaClienteBean.TraerAnalisisTransaClienteBeans(analisistransaclientesParaReportes).toArray()));\r\n\t\t\t\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"HTML\") {\r\n\t\t\t\tsDestFileName+=\".html\";\r\n\t\t\t\tJasperExportManager.exportReportToHtmlFile(jasperPrint,sDestFileName);\r\n\t\t\t\t\t\r\n\t\t\t} else if(this.sTipoArchivoReporte==\"PDF\") {\r\n\t\t\t\tsDestFileName+=\".pdf\";\r\n\t\t\t\tJasperExportManager.exportReportToPdfFile(jasperPrint,sDestFileName);\r\n\t\t\t} else {\r\n\t\t\t\tsDestFileName+=\".xml\";\r\n\t\t\t\tJasperExportManager.exportReportToXmlFile(jasperPrint,sDestFileName, false);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\r\n\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"WORD\") {\r\n\t\t\t\tsDestFileName+=\".rtf\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRRtfExporter exporter = new JRRtfExporter();\r\n\t\t\r\n\t\t\t\texporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\r\n\t\t\t\texporter.exportReport();\r\n\t\t\t\t\r\n\t\t\t} else\t{\r\n\t\t\t\tsDestFileName+=\".xls\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRXlsExporter exporterXls = new JRXlsExporter();\r\n\t\t\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\t\texporterXls.setParameter(JRXlsExporterParameter.IS_ONE_PAGE_PER_SHEET, Boolean.TRUE);\r\n\t\t\r\n\t\t\t\texporterXls.exportReport();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"EXCEL2\"||this.sTipoArchivoReporte==\"EXCEL2_2\") {\r\n\t\t\t//sDestFileName+=\".xlsx\";\r\n\t\t\t\r\n\t\t\tif(this.sTipoReporte.equals(\"NORMAL\")) {\r\n\t\t\t\tthis.generarExcelReporteAnalisisTransaClientes(sAccionBusqueda,sTipoArchivoReporte,analisistransaclientesParaReportes);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"FORMULARIO\")){\r\n\t\t\t\tthis.generarExcelReporteVerticalAnalisisTransaClientes(sAccionBusqueda,sTipoArchivoReporte,analisistransaclientesParaReportes,false);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"DINAMICO\")){\r\n\t\t\t\t\r\n\t\t\t\tif(this.sTipoReporteDinamico.equals(\"NORMAL\")) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tthis.jButtonGenerarExcelReporteDinamicoAnalisisTransaClienteActionPerformed(null);\r\n\t\t\t\t\t//this.generarExcelReporteAnalisisTransaClientes(sAccionBusqueda,sTipoArchivoReporte,analisistransaclientesParaReportes);\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"FORMULARIO\")){\r\n\t\t\t\t\tthis.generarExcelReporteVerticalAnalisisTransaClientes(sAccionBusqueda,sTipoArchivoReporte,analisistransaclientesParaReportes,true);\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"RELACIONES\")){\r\n\t\t\t\t\tthis.generarExcelReporteRelacionesAnalisisTransaClientes(sAccionBusqueda,sTipoArchivoReporte,analisistransaclientesParaReportes,true);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"RELACIONES\")){\r\n\t\t\t\tthis.generarExcelReporteRelacionesAnalisisTransaClientes(sAccionBusqueda,sTipoArchivoReporte,analisistransaclientesParaReportes,false);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\"||this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\t\t\t\t\r\n\t\t\tJOptionPane.showMessageDialog(this,\"REPORTE \"+sDestFileName+\" GENERADO SATISFACTORIAMENTE\",\"REPORTES \",JOptionPane.INFORMATION_MESSAGE);\r\n\t\t}\r\n\t}", "void btnGenReport_actionPerformed(ActionEvent e) {\n JButtonQueryButtonAction(e);\r\n }", "public void crearReporte() {\r\n\t\tJFileChooser chooser = new JFileChooser(\"reporte.doc\");\r\n\t\tchooser.addChoosableFileFilter(new FileFilter() {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic String getDescription() {\r\n\t\t\t\treturn \"*.doc\";\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic boolean accept(File f) {\r\n\t\t\t\t if (f.isDirectory())\r\n\t\t {\r\n\t\t return false;\r\n\t\t }\r\n\r\n\t\t String s = f.getName();\r\n\r\n\t\t return s.endsWith(\".doc\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tint res = chooser.showSaveDialog(this);\r\n\t\tif(res == JFileChooser.APPROVE_OPTION)\r\n\t\t{\r\n\t\t\tFile file = chooser.getSelectedFile();\r\n\t\t\t\r\n\t\t\t@SuppressWarnings(\"unused\")\r\n\t\t\tJava2Word word = new Java2Word(this, file);\r\n\t\t}\r\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tframe.setVisible(false);\r\n\t\t\t\tnew ReportPage(value);\r\n\t\t\t}", "public void displayReport()\n\t{\n\t\t//use arrays util to sort the array alphabetically \n\t\tArrays.sort(passengersAndSeats);\n\t\t\n\t\t//Learned about Jlist from this stack overflow: http://stackoverflow.com/questions/10869374/how-can-i-print-an-array-in-joptionpane\n\t\tJOptionPane.showMessageDialog(null, new JList<Object>(passengersAndSeats));\n\t\t\n\t\tpromptExit();\n\t\t\n\t}", "public void actionPerformed(ActionEvent ae) {\n\n //\n // Process the action command\n //\n // \"create report\" - Create the report\n // \"done\" - All done\n //\n try {\n switch (ae.getActionCommand()) {\n case \"create report\":\n AccountRecord account;\n SecurityRecord security;\n int index = accountField.getSelectedIndex();\n if (index < 0) {\n JOptionPane.showMessageDialog(this, \"You must specify an investment account\",\n \"Error\", JOptionPane.ERROR_MESSAGE);\n } else {\n account = (AccountRecord)accountModel.getDBElementAt(index);\n index = securityField.getSelectedIndex();\n if (index >= 0)\n security = (SecurityRecord)securityModel.getDBElementAt(index);\n else\n security = null;\n\n securityField.setSelectedIndex(-1);\n generateReport(account, security);\n }\n break;\n \n case \"done\":\n setVisible(false);\n dispose();\n break;\n }\n } catch (ReportException exc) {\n Main.logException(\"Exception while generating report\", exc);\n } catch (Exception exc) {\n Main.logException(\"Exception while processing action event\", exc);\n }\n }", "private void cmdExcelReportWidgetSelected() {\n\n\t}", "public void showReport() throws FileNotFoundException{\n String reportName = \"configuration_site\";\n String reportDefFileName=\"report/defination\"+File.separator+reportName+\".jasper\";\n \n try {\n \t\n \t//Get a stream to read the file\n // InputStream is = new FileInputStream(reportDefFileName);\n \n //Fill the report with parameter, connection and the stream reader \n JasperPrint jp = JasperFillManager.fillReport(reportDefFileName, null, conn);\n \n //Viewer for JasperReport\n JRViewer jv = new JRViewer(jp);\n \n //Insert viewer to a JFrame to make it showable\n JFrame jf = new JFrame();\n jf.getContentPane().add(jv);\n jf.validate();\n jf.setVisible(true);\n jf.setSize(new Dimension(800,600));\n jf.setLocation(300,100);\n jf.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n } catch (JRException ex) {\n ex.printStackTrace();\n }\n }", "public ElegirFechasImprimirReportes(java.awt.Frame _parent, boolean _modal, Connection _connectionDB, String _idUsuario, int _modoOperacion) {\n super(_parent, _modal);\n this.parent = _parent;\n initComponents();\n this.connectionDB = _connectionDB;\n this.idUsuario = _idUsuario;\n this.modal = _modal;\n this.modoOperacion = _modoOperacion;\n switch (this.modoOperacion) {\n case REPORTE_UNO:\n this.setTitle(\"Reporte Uno\");\n break;\n case REPORTE_DOS:\n this.setTitle(\"Reporte Dos\");\n break;\n case REPORTE_TRES:\n this.setTitle(\"Reporte Tres\");\n break;\n }\n }", "public void generarReporteTipoDetalleMovimientoInventarios(String sAccionBusqueda,List<TipoDetalleMovimientoInventario> tipodetallemovimientoinventariosParaReportes) throws Exception {\n\t\tLong iIdUsuarioSesion=0L;\t\r\n\t\t\r\n\t\t\r\n\t\tif(usuarioActual==null) {\r\n\t\t\tthis.usuarioActual=new Usuario();\r\n\t\t}\r\n\t\t\r\n\t\tiIdUsuarioSesion=usuarioActual.getId();\r\n\t\t\r\n\t\tString sPathReportes=\"\";\r\n\t\t\r\n\t\tInputStream reportFile=null;\r\n\t\tInputStream imageFile=null;\r\n\t\t\t\r\n\t\timageFile=AuxiliarImagenes.class.getResourceAsStream(\"LogoReporte.jpg\");\t\t\t\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathReporteFinal=\"\";\r\n\t\t\r\n\t\tif(!esReporteAccionProceso) {\r\n\t\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\t\tif(!this.esReporteDinamico) {\r\n\t\t\t\t\tsPathReporteFinal=\"TipoDetalleMovimientoInventario\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsPathReporteFinal=this.sPathReporteDinamico;\r\n\t\t\t\t\treportFile = new FileInputStream(sPathReporteFinal);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"TipoDetalleMovimientoInventarioMasterRelaciones\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\r\n\t\t\t\t//sPathReportes=reportFile.getPath().replace(\"TipoDetalleMovimientoInventarioMasterRelacionesDesign.jasper\", \"\");\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"TipoDetalleMovimientoInventario\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t}\r\n\t\t\r\n\t\tif(reportFile==null) {\r\n\t\t\tthrow new JRRuntimeException(sPathReporteFinal+\" no existe\");\r\n\t\t}\r\n\t\t\r\n\t\tString sUsuario=\"\";\r\n\t\t\r\n\t\tif(usuarioActual!=null) {\r\n\t\t\tsUsuario=usuarioActual.getuser_name();\r\n\t\t}\r\n\t\t\r\n\t\tMap<String, Object> parameters = new HashMap<String, Object>();\r\n\t\tparameters.put(\"usuario\", sUsuario);\r\n\t\t\r\n\t\tparameters.put(\"titulo\", Funciones.GetTituloSistemaReporte(this.parametroGeneralSg,this.moduloActual,this.usuarioActual));\r\n\t\tparameters.put(\"subtitulo\", \"Reporte De Tipo Costos\");\t\t\r\n\t\tparameters.put(\"busquedapor\", TipoDetalleMovimientoInventarioConstantesFunciones.getNombreIndice(sAccionBusqueda)+sDetalleReporte);\r\n\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\tparameters.put(\"SUBREPORT_DIR\", sPathReportes);\r\n\t\t}\r\n\t\t\r\n\t\tparameters.put(\"con_grafico\", this.conGraficoReporte);\r\n\t\t\r\n\t\tJasperReport jasperReport = (JasperReport)JRLoader.loadObject(reportFile);\r\n\t\t\t\t\r\n\t\tthis.cargarDatosCliente();\r\n\t\t\r\n\t\tArrayList<Classe> classes=new ArrayList<Classe>();\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\t\r\n\t\t\tclasses.add(new Classe(DetalleMovimientoInventario.class));\r\n\t\t\t\r\n\t\t\t//ARCHITECTURE\r\n\t\t\tif(Constantes.ISUSAEJBLOGICLAYER) {\t\t\r\n\t\t\t\ttry\t{\r\n\t\t\t\t\t\r\n\t\t\t\t\tTipoDetalleMovimientoInventarioLogic tipodetallemovimientoinventarioLogicAuxiliar=new TipoDetalleMovimientoInventarioLogic();\r\n\t\t\t\t\ttipodetallemovimientoinventarioLogicAuxiliar.setDatosCliente(tipodetallemovimientoinventarioLogic.getDatosCliente());\t\t\t\t\r\n\t\t\t\t\ttipodetallemovimientoinventarioLogicAuxiliar.setTipoDetalleMovimientoInventarios(tipodetallemovimientoinventariosParaReportes);\r\n\t\t\t\t\t\r\n\t\t\t\t\ttipodetallemovimientoinventarioLogicAuxiliar.cargarRelacionesLoteForeignKeyTipoDetalleMovimientoInventarioWithConnection(); //deepLoadsWithConnection(false, DeepLoadType.INCLUDE, classes, \"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\ttipodetallemovimientoinventariosParaReportes=tipodetallemovimientoinventarioLogicAuxiliar.getTipoDetalleMovimientoInventarios();\r\n\t\t\t\t\t\r\n\t\t\t\t\t//tipodetallemovimientoinventarioLogic.getNewConnexionToDeep();\r\n\t\t\t\t\t\r\n\t\t\t\t\t//for (TipoDetalleMovimientoInventario tipodetallemovimientoinventario:tipodetallemovimientoinventariosParaReportes) {\r\n\t\t\t\t\t//\ttipodetallemovimientoinventarioLogic.deepLoad(tipodetallemovimientoinventario, false, DeepLoadType.INCLUDE, classes);\r\n\t\t\t\t\t//}\t\t\t\t\t\t\r\n\t\t\t\t\t//tipodetallemovimientoinventarioLogic.commitNewConnexionToDeep();\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t} catch(Exception e) {\r\n\t\t\t\t\tthrow e;\r\n\t\t\t\t\t\r\n\t\t\t\t} finally {\r\n\t\t\t\t\t//tipodetallemovimientoinventarioLogic.closeNewConnexionToDeep();\r\n\t\t\t\t}\r\n\t\t\t} else if(Constantes.ISUSAEJBREMOTE) {\r\n\t\t\t} else if(Constantes.ISUSAEJBHOME) {\r\n\t\t\t}\r\n\t\t\t//ARCHITECTURE\t\t\r\n\t\t\t\r\n\t\t\r\n\t\t\t\r\n\t\t\t\r\n\r\n\t\t\tInputStream reportFileDetalleMovimientoInventario = AuxiliarReportes.class.getResourceAsStream(\"DetalleMovimientoInventarioDetalleRelacionesDesign.jasper\");\r\n\t\t\tparameters.put(\"subreport_detallemovimientoinventario\", reportFileDetalleMovimientoInventario);\r\n\t\t} else {\r\n\t\t\t//FK DEBERIA TRAERSE DE ANTEMANO\r\n\t\t\t\r\n\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\r\n\t\t//CLASSES PARA REPORTES OBJETOS RELACIONADOS\r\n\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\tclasses=new ArrayList<Classe>();\r\n\t\t}\r\n\t\t\r\n\t\tJRBeanArrayDataSource jrbeanArrayDataSourceTipoDetalleMovimientoInventario=null;\r\n\t\t\r\n\t\tif(this.sTipoReporteExtra!=null && !this.sTipoReporteExtra.equals(\"\")) {\r\n\t\t\tTipoDetalleMovimientoInventarioConstantesFunciones.S_TIPOREPORTE_EXTRA=this.sTipoReporteExtra;\r\n\t\t} else {\r\n\t\t\tTipoDetalleMovimientoInventarioConstantesFunciones.S_TIPOREPORTE_EXTRA=\"\";\r\n\t\t}\r\n\t\t\r\n\t\tjrbeanArrayDataSourceTipoDetalleMovimientoInventario=new JRBeanArrayDataSource(TipoDetalleMovimientoInventarioJInternalFrame.TraerTipoDetalleMovimientoInventarioBeans(tipodetallemovimientoinventariosParaReportes,classes).toArray());\r\n\t\t\r\n\t\tjasperPrint = JasperFillManager.fillReport(jasperReport,parameters,jrbeanArrayDataSourceTipoDetalleMovimientoInventario);\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathDest=Constantes.SUNIDAD_ARCHIVOS+\":/\"+Constantes.SCONTEXTSERVER+\"/\"+TipoDetalleMovimientoInventarioConstantesFunciones.SCHEMA+\"/reportes\";\r\n\t\t\r\n\t\tFile filePathDest = new File(sPathDest);\r\n\t\t\r\n\t\tif(!filePathDest.exists()) {\r\n\t\t\tfilePathDest.mkdirs();\t\t\t\t\r\n\t\t}\r\n\t\t\t\t\r\n\t\tString sDestFileName=sPathDest+\"/\"+TipoDetalleMovimientoInventarioConstantesFunciones.CLASSNAME;\r\n\t\t\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"VISUALIZAR\") {\r\n\t\t\tJasperViewer jasperViewer = new JasperViewer(jasperPrint,false) ;\r\n\t\t\tjasperViewer.setVisible(true) ; \r\n\r\n\t\t} else if(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\") {\t\r\n\t\t\t//JasperFillManager.fillReportToFile(reportFile.getAbsolutePath(),parameters, new JRBeanArrayDataSource(TipoDetalleMovimientoInventarioBean.TraerTipoDetalleMovimientoInventarioBeans(tipodetallemovimientoinventariosParaReportes).toArray()));\r\n\t\t\t\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"HTML\") {\r\n\t\t\t\tsDestFileName+=\".html\";\r\n\t\t\t\tJasperExportManager.exportReportToHtmlFile(jasperPrint,sDestFileName);\r\n\t\t\t\t\t\r\n\t\t\t} else if(this.sTipoArchivoReporte==\"PDF\") {\r\n\t\t\t\tsDestFileName+=\".pdf\";\r\n\t\t\t\tJasperExportManager.exportReportToPdfFile(jasperPrint,sDestFileName);\r\n\t\t\t} else {\r\n\t\t\t\tsDestFileName+=\".xml\";\r\n\t\t\t\tJasperExportManager.exportReportToXmlFile(jasperPrint,sDestFileName, false);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\r\n\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"WORD\") {\r\n\t\t\t\tsDestFileName+=\".rtf\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRRtfExporter exporter = new JRRtfExporter();\r\n\t\t\r\n\t\t\t\texporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\r\n\t\t\t\texporter.exportReport();\r\n\t\t\t\t\r\n\t\t\t} else\t{\r\n\t\t\t\tsDestFileName+=\".xls\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRXlsExporter exporterXls = new JRXlsExporter();\r\n\t\t\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\t\texporterXls.setParameter(JRXlsExporterParameter.IS_ONE_PAGE_PER_SHEET, Boolean.TRUE);\r\n\t\t\r\n\t\t\t\texporterXls.exportReport();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"EXCEL2\"||this.sTipoArchivoReporte==\"EXCEL2_2\") {\r\n\t\t\t//sDestFileName+=\".xlsx\";\r\n\t\t\t\r\n\t\t\tif(this.sTipoReporte.equals(\"NORMAL\")) {\r\n\t\t\t\tthis.generarExcelReporteTipoDetalleMovimientoInventarios(sAccionBusqueda,sTipoArchivoReporte,tipodetallemovimientoinventariosParaReportes);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"FORMULARIO\")){\r\n\t\t\t\tthis.generarExcelReporteVerticalTipoDetalleMovimientoInventarios(sAccionBusqueda,sTipoArchivoReporte,tipodetallemovimientoinventariosParaReportes,false);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"DINAMICO\")){\r\n\t\t\t\t\r\n\t\t\t\tif(this.sTipoReporteDinamico.equals(\"NORMAL\")) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tthis.jButtonGenerarExcelReporteDinamicoTipoDetalleMovimientoInventarioActionPerformed(null);\r\n\t\t\t\t\t//this.generarExcelReporteTipoDetalleMovimientoInventarios(sAccionBusqueda,sTipoArchivoReporte,tipodetallemovimientoinventariosParaReportes);\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"FORMULARIO\")){\r\n\t\t\t\t\tthis.generarExcelReporteVerticalTipoDetalleMovimientoInventarios(sAccionBusqueda,sTipoArchivoReporte,tipodetallemovimientoinventariosParaReportes,true);\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"RELACIONES\")){\r\n\t\t\t\t\tthis.generarExcelReporteRelacionesTipoDetalleMovimientoInventarios(sAccionBusqueda,sTipoArchivoReporte,tipodetallemovimientoinventariosParaReportes,true);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"RELACIONES\")){\r\n\t\t\t\tthis.generarExcelReporteRelacionesTipoDetalleMovimientoInventarios(sAccionBusqueda,sTipoArchivoReporte,tipodetallemovimientoinventariosParaReportes,false);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\"||this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\t\t\t\t\r\n\t\t\tJOptionPane.showMessageDialog(this,\"REPORTE \"+sDestFileName+\" GENERADO SATISFACTORIAMENTE\",\"REPORTES \",JOptionPane.INFORMATION_MESSAGE);\r\n\t\t}\r\n\t}", "public void dialog_AddEntranceSheet() {\n\n final Dialog dialog = new Dialog(ReportActivity.this);\n dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);\n dialog.setContentView(R.layout.dialog_add_entrance_sheet);\n dialog.getWindow().setBackgroundDrawable(getResources().getDrawable(R.drawable.transparent));\n\n TextView tv_newEntrance = dialog.findViewById(R.id.tv_newEntrance);\n final EditText et_UserName = dialog.findViewById(R.id.et_UserName);\n final EditText et_logistics_company = dialog.findViewById(R.id.et_logistics_company);\n final EditText et_entranceDate = dialog.findViewById(R.id.et_entranceDate);\n\n tv_newEntrance.setText(new_entrance_info);\n et_UserName.setHint(user_name);\n\n\n\n final String date = (new SimpleDateFormat(\"yyyyMMdd_HHmmss\")).format(new Date());\n final String strDate = date.substring(0, 4) + \".\" + date.substring(4, 6) + \".\" + date.substring(6, 8) +\n \" \" + date.substring(9, 11) + \":\" + date.substring(11, 13);\n et_entranceDate.setText(strDate);\n Button bt_add = dialog.findViewById(R.id.bt_add);\n bt_add.setText(done);\n bt_add.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n\n String UserName = et_UserName.getText().toString();\n String logisticsCompany = et_logistics_company.getText().toString();\n// String Description = et_Description.getText().toString();\n String entranceDate = et_entranceDate.getText().toString();\n if (UserName.length() == 0 || entranceDate.length() != 16||logisticsCompany.length()==0) {\n Toast.makeText(ReportActivity.this, entrance_data_error, Toast.LENGTH_LONG).show();\n } else {\n EntranceSheet entranceSheet = new EntranceSheet(0, entranceDate, UserName, \"\", 0, \"\",0,logisticsCompany);\n DataBaseHandler dataBaseHandler = new DataBaseHandler(ReportActivity.this);\n long entranceSheetId = dataBaseHandler.addEntranceSheet(entranceSheet);\n\n Toast.makeText(ReportActivity.this, add_entrance_success, Toast.LENGTH_LONG).show();\n dialog.dismiss();\n dialog.cancel();\n Intent intent = new Intent(ReportActivity.this, EntranceSheetPackageActivity.class);\n intent.putExtra(\"entranceSheetId\", entranceSheetId + \"\");\n intent.putExtra(\"entranceSheetUserName\", entranceSheet.UserName + \"\");\n intent.putExtra(\"entranceSheetDescription\", entranceSheet.Description + \"\");\n intent.putExtra(\"entranceSheetDate\", entranceSheet.Date + \"\");\n intent.putExtra(\"entranceSheetLogisticsCompany\", entranceSheet.LogisticsCompany + \"\");\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK);\n intent.addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION);\n intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(intent);\n\n\n }\n }\n });\n\n dialog.setCancelable(true);\n dialog.show();\n }", "public ReportGUI() {\n // Adding GUI components\n JFrame reportF = new JFrame();\n reportF.setTitle(\"Game Results\");\n reportF.setSize(500,110);\n reportF.setLocation(200,150);\n\n reportDisplay = new JTextArea();\n dbConnection = new DatabaseConnection();\n\n // Calls the method to build the report content\n buildReport();\n\n // Adds the text area to the report frame and makes it visible\n reportDisplay.setEditable(false);\n reportDisplay.setText(reportContent);\n saveTxtReport = new JButton(\"Save Report\");\n\n JPanel reportPan = new JPanel();\n JPanel buttonPan = new JPanel();\n\n reportPan.add(reportDisplay);\n buttonPan.add(saveTxtReport);\n\n reportF.add(reportPan, \"North\");\n reportF.add(buttonPan, \"South\");\n\n saveTxtReport.addActionListener(this);\n reportF.setVisible(true);\n }", "public void onClick(DialogInterface dialog,int id) {\n ref_number = userInput.getText().toString();\n from_date = fromDateBox.getText().toString();\n to_date = toDateBox.getText().toString();\n new PostGetDepositsReportsClass(context).execute();\n }", "private void reportType() {\n\t\tVerticalLayout vReportLayout = new VerticalLayout();\n\t\tvReportLayout.addStyleName(Reindeer.PANEL_LIGHT);\n\t\tvReportLayout.setWidth(\"150px\");\n\t\tVerticalLayout bSpace = new VerticalLayout();\n\t\tbSpace.setHeight(\"25px\");\n\t\troot.addComponent(bSpace);\n\t\t\n\t\tButton todayButton = new Button(\"TODAY\");\n\t\ttodayButton.setWidth(\"100%\");\n\t\ttodayButton.addClickListener(new Button.ClickListener() {\n\t\t /**\n\t\t\t * \n\t\t\t */\n\t\t\tprivate static final long serialVersionUID = 1L;\n\n\t\t\tpublic void buttonClick(ClickEvent event) {\n\t\t //Notification.show(event.getButton().getCaption());\n\t\t \tif (event.getButton().getCaption() != null) {\n\t\t\t\t\tupdateReportLayout(event.getButton().getCaption());\n\t\t\t\t}\n\t\t \n\t\t }\n\t\t \n\t\t});\n\t\tvReportLayout.addComponent(todayButton);\n\t\t\n\t\tButton last30DaysButton = new Button(\"LAST 30 DAYS\");\n\t\tlast30DaysButton.setWidth(\"100%\");\n\t\tlast30DaysButton.addClickListener(new Button.ClickListener() {\n\t\t /**\n\t\t\t * \n\t\t\t */\n\t\t\tprivate static final long serialVersionUID = 1L;\n\n\t\t\tpublic void buttonClick(ClickEvent event) {\n\t\t \tif (event.getButton().getCaption() != null) {\n\t\t\t\t\tupdateReportLayout(event.getButton().getCaption());\n\t\t\t\t}\n\t\t \n\t\t }\n\t\t \n\t\t});\n\t\tvReportLayout.addComponent(last30DaysButton);\n\t\t\n\t\ttReportPanel.setContent(vReportLayout);\n\t\ttReportPanel.addStyleName(Reindeer.PANEL_LIGHT);\n\t\thorLayout.addComponent(tReportPanel);\n\t\troot.addComponent(horLayout);\n\t}", "public void generarReporteCierreCajas(String sAccionBusqueda,List<CierreCaja> cierrecajasParaReportes) throws Exception {\n\t\tLong iIdUsuarioSesion=0L;\t\r\n\t\t\r\n\t\t\r\n\t\tif(usuarioActual==null) {\r\n\t\t\tthis.usuarioActual=new Usuario();\r\n\t\t}\r\n\t\t\r\n\t\tiIdUsuarioSesion=usuarioActual.getId();\r\n\t\t\r\n\t\tString sPathReportes=\"\";\r\n\t\t\r\n\t\tInputStream reportFile=null;\r\n\t\tInputStream imageFile=null;\r\n\t\t\t\r\n\t\timageFile=AuxiliarImagenes.class.getResourceAsStream(\"LogoReporte.jpg\");\t\t\t\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathReporteFinal=\"\";\r\n\t\t\r\n\t\tif(!esReporteAccionProceso) {\r\n\t\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\t\tif(!this.esReporteDinamico) {\r\n\t\t\t\t\tsPathReporteFinal=\"CierreCaja\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsPathReporteFinal=this.sPathReporteDinamico;\r\n\t\t\t\t\treportFile = new FileInputStream(sPathReporteFinal);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"CierreCajaMasterRelaciones\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\r\n\t\t\t\t//sPathReportes=reportFile.getPath().replace(\"CierreCajaMasterRelacionesDesign.jasper\", \"\");\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"CierreCaja\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t}\r\n\t\t\r\n\t\tif(reportFile==null) {\r\n\t\t\tthrow new JRRuntimeException(sPathReporteFinal+\" no existe\");\r\n\t\t}\r\n\t\t\r\n\t\tString sUsuario=\"\";\r\n\t\t\r\n\t\tif(usuarioActual!=null) {\r\n\t\t\tsUsuario=usuarioActual.getuser_name();\r\n\t\t}\r\n\t\t\r\n\t\tMap<String, Object> parameters = new HashMap<String, Object>();\r\n\t\tparameters.put(\"usuario\", sUsuario);\r\n\t\t\r\n\t\tparameters.put(\"titulo\", Funciones.GetTituloSistemaReporte(this.parametroGeneralSg,this.moduloActual,this.usuarioActual));\r\n\t\tparameters.put(\"subtitulo\", \"Reporte De Cierre Cajas\");\t\t\r\n\t\tparameters.put(\"busquedapor\", CierreCajaConstantesFunciones.getNombreIndice(sAccionBusqueda)+sDetalleReporte);\r\n\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\tparameters.put(\"SUBREPORT_DIR\", sPathReportes);\r\n\t\t}\r\n\t\t\r\n\t\tparameters.put(\"con_grafico\", this.conGraficoReporte);\r\n\t\t\r\n\t\tJasperReport jasperReport = (JasperReport)JRLoader.loadObject(reportFile);\r\n\t\t\t\t\r\n\t\tthis.cargarDatosCliente();\r\n\t\t\r\n\t\tArrayList<Classe> classes=new ArrayList<Classe>();\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\t\r\n\t\t\t\r\n\t\t} else {\r\n\t\t\t//FK DEBERIA TRAERSE DE ANTEMANO\r\n\t\t\t\r\n\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\r\n\t\t//CLASSES PARA REPORTES OBJETOS RELACIONADOS\r\n\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\tclasses=new ArrayList<Classe>();\r\n\t\t}\r\n\t\t\r\n\t\tJRBeanArrayDataSource jrbeanArrayDataSourceCierreCaja=null;\r\n\t\t\r\n\t\tif(this.sTipoReporteExtra!=null && !this.sTipoReporteExtra.equals(\"\")) {\r\n\t\t\tCierreCajaConstantesFunciones.S_TIPOREPORTE_EXTRA=this.sTipoReporteExtra;\r\n\t\t} else {\r\n\t\t\tCierreCajaConstantesFunciones.S_TIPOREPORTE_EXTRA=\"\";\r\n\t\t}\r\n\t\t\r\n\t\tjrbeanArrayDataSourceCierreCaja=new JRBeanArrayDataSource(CierreCajaJInternalFrame.TraerCierreCajaBeans(cierrecajasParaReportes,classes).toArray());\r\n\t\t\r\n\t\tjasperPrint = JasperFillManager.fillReport(jasperReport,parameters,jrbeanArrayDataSourceCierreCaja);\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathDest=Constantes.SUNIDAD_ARCHIVOS+\":/\"+Constantes.SCONTEXTSERVER+\"/\"+CierreCajaConstantesFunciones.SCHEMA+\"/reportes\";\r\n\t\t\r\n\t\tFile filePathDest = new File(sPathDest);\r\n\t\t\r\n\t\tif(!filePathDest.exists()) {\r\n\t\t\tfilePathDest.mkdirs();\t\t\t\t\r\n\t\t}\r\n\t\t\t\t\r\n\t\tString sDestFileName=sPathDest+\"/\"+CierreCajaConstantesFunciones.CLASSNAME;\r\n\t\t\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"VISUALIZAR\") {\r\n\t\t\tJasperViewer jasperViewer = new JasperViewer(jasperPrint,false) ;\r\n\t\t\tjasperViewer.setVisible(true) ; \r\n\r\n\t\t} else if(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\") {\t\r\n\t\t\t//JasperFillManager.fillReportToFile(reportFile.getAbsolutePath(),parameters, new JRBeanArrayDataSource(CierreCajaBean.TraerCierreCajaBeans(cierrecajasParaReportes).toArray()));\r\n\t\t\t\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"HTML\") {\r\n\t\t\t\tsDestFileName+=\".html\";\r\n\t\t\t\tJasperExportManager.exportReportToHtmlFile(jasperPrint,sDestFileName);\r\n\t\t\t\t\t\r\n\t\t\t} else if(this.sTipoArchivoReporte==\"PDF\") {\r\n\t\t\t\tsDestFileName+=\".pdf\";\r\n\t\t\t\tJasperExportManager.exportReportToPdfFile(jasperPrint,sDestFileName);\r\n\t\t\t} else {\r\n\t\t\t\tsDestFileName+=\".xml\";\r\n\t\t\t\tJasperExportManager.exportReportToXmlFile(jasperPrint,sDestFileName, false);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\r\n\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"WORD\") {\r\n\t\t\t\tsDestFileName+=\".rtf\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRRtfExporter exporter = new JRRtfExporter();\r\n\t\t\r\n\t\t\t\texporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\r\n\t\t\t\texporter.exportReport();\r\n\t\t\t\t\r\n\t\t\t} else\t{\r\n\t\t\t\tsDestFileName+=\".xls\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRXlsExporter exporterXls = new JRXlsExporter();\r\n\t\t\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\t\texporterXls.setParameter(JRXlsExporterParameter.IS_ONE_PAGE_PER_SHEET, Boolean.TRUE);\r\n\t\t\r\n\t\t\t\texporterXls.exportReport();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"EXCEL2\"||this.sTipoArchivoReporte==\"EXCEL2_2\") {\r\n\t\t\t//sDestFileName+=\".xlsx\";\r\n\t\t\t\r\n\t\t\tif(this.sTipoReporte.equals(\"NORMAL\")) {\r\n\t\t\t\tthis.generarExcelReporteCierreCajas(sAccionBusqueda,sTipoArchivoReporte,cierrecajasParaReportes);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"FORMULARIO\")){\r\n\t\t\t\tthis.generarExcelReporteVerticalCierreCajas(sAccionBusqueda,sTipoArchivoReporte,cierrecajasParaReportes,false);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"DINAMICO\")){\r\n\t\t\t\t\r\n\t\t\t\tif(this.sTipoReporteDinamico.equals(\"NORMAL\")) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tthis.jButtonGenerarExcelReporteDinamicoCierreCajaActionPerformed(null);\r\n\t\t\t\t\t//this.generarExcelReporteCierreCajas(sAccionBusqueda,sTipoArchivoReporte,cierrecajasParaReportes);\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"FORMULARIO\")){\r\n\t\t\t\t\tthis.generarExcelReporteVerticalCierreCajas(sAccionBusqueda,sTipoArchivoReporte,cierrecajasParaReportes,true);\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"RELACIONES\")){\r\n\t\t\t\t\tthis.generarExcelReporteRelacionesCierreCajas(sAccionBusqueda,sTipoArchivoReporte,cierrecajasParaReportes,true);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"RELACIONES\")){\r\n\t\t\t\tthis.generarExcelReporteRelacionesCierreCajas(sAccionBusqueda,sTipoArchivoReporte,cierrecajasParaReportes,false);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\"||this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\t\t\t\t\r\n\t\t\tJOptionPane.showMessageDialog(this,\"REPORTE \"+sDestFileName+\" GENERADO SATISFACTORIAMENTE\",\"REPORTES \",JOptionPane.INFORMATION_MESSAGE);\r\n\t\t}\r\n\t}", "void createReport(Report report);", "Report createReport();", "public static void mostrarAfirmacionDeCreacion(JDialog dialogo) {\n JOptionPane.showMessageDialog(dialogo, afirmacionDeCreacion, \"BancoSoft: Mensaje\", JOptionPane.INFORMATION_MESSAGE);\n }", "public static void main(String args[]) throws Exception{\n \trmk.gui.HtmlReportDialog rpt = new rmk.gui.HtmlReportDialog();\r\n \trpt.exitOnCancel=true;\r\n \t\r\n\tjava.util.GregorianCalendar date = new java.util.GregorianCalendar(2003, 11, 1);\r\n \trmk.reports.TaxShipped tst = new rmk.reports.TaxShipped(date);\r\n\ttst.setFormat(ReportDataInvoicesList.FORMAT_TAX_SHIPPED); // FORMAT_TAX_SHIPPED FORMAT_MINIS\r\n\r\n \trpt.setReport(tst);\r\n// \tErrorLogger.getInstance().logMessage(tst.getInvoice());\r\n// \trpt.setInvoice(60001); // 42496, 42683, 50000, 42684\r\n \trpt.setVisible(true);\r\n }", "void openDialog()\n {\n if(main.copyCmd.listEvCopy.size() >0){\n widgCopy.setBackColor(GralColor.getColor(\"rd\"), 0);\n } else {\n widgCopy.setBackColor(GralColor.getColor(\"wh\"), 0);\n }\n \n windStatus.setFocus(); //setWindowVisible(true);\n\n }", "private void dibujar() {\n\n\t\tdiv.setWidth(\"99%\");\n\t\tdiv.setHeight(\"99%\");\n\t\treporte.setWidth(\"99%\");\n\t\treporte.setHeight(\"99%\");\n\t\treporte.setType(type);\n\t\treporte.setSrc(url);\n\t\treporte.setParameters(parametros);\n\t\treporte.setDatasource(dataSource);\n\n\t\tdiv.appendChild(reporte);\n\n\t\tthis.appendChild(div);\n\n\t}", "public static void showDialog(JFrame parent) {\n try {\n JDialog dialog = new InvestmentReportDialog(parent);\n dialog.pack();\n dialog.setLocationRelativeTo(parent);\n dialog.setVisible(true);\n } catch (Exception exc) {\n Main.logException(\"Exception while displaying dialog\", exc);\n }\n }", "public void actionPerformed(ActionEvent ae) {\n\n //\n // Process the action command\n //\n // \"create report\" - Create the report\n // \"cancel\" - All done\n //\n try {\n switch (ae.getActionCommand()) {\n case \"create report\":\n Date startDate, endDate;\n CategoryRecord category;\n int sortMode;\n if (!startField.isEditValid() || !endField.isEditValid()) {\n JOptionPane.showMessageDialog(this, \"You must specify start and end dates\",\n \"Error\", JOptionPane.ERROR_MESSAGE);\n } else {\n startDate = (Date)startField.getValue();\n endDate = (Date)endField.getValue();\n if (endDate.compareTo(startDate) < 0) {\n JOptionPane.showMessageDialog(this, \"The end date is before the start date\",\n \"Error\", JOptionPane.ERROR_MESSAGE);\n } else {\n int index = categoryField.getSelectedIndex();\n if (index > 0)\n category = (CategoryRecord)categoryModel.getDBElementAt(index);\n else\n category = null;\n\n if (sortAccountField.isSelected())\n sortMode = SORT_BY_ACCOUNT;\n else if (sortNameField.isSelected())\n sortMode = SORT_BY_NAME;\n else if (sortCategoryField.isSelected())\n sortMode = SORT_BY_CATEGORY;\n else\n sortMode = SORT_BY_DATE;\n\n generateReport(startDate, endDate, category, sortMode);\n }\n }\n break;\n \n case \"cancel\":\n setVisible(false);\n dispose();\n break;\n }\n } catch (ReportException exc) {\n Main.logException(\"Exception while generating transaction report\", exc);\n } catch (Exception exc) {\n Main.logException(\"Exception while processing action event\", exc);\n }\n }", "public void crearDialogo() {\r\n final PantallaCompletaDialog a2 = PantallaCompletaDialog.a(getString(R.string.hubo_error), getString(R.string.no_hay_internet), getString(R.string.cerrar).toUpperCase(), R.drawable.ic_error);\r\n a2.f4589b = new a() {\r\n public void onClick(View view) {\r\n a2.dismiss();\r\n }\r\n };\r\n a2.show(getParentFragmentManager(), \"TAG\");\r\n }", "public void generarReporteLibroContables(String sAccionBusqueda,List<LibroContable> librocontablesParaReportes) throws Exception {\n\t\tLong iIdUsuarioSesion=0L;\t\r\n\t\t\r\n\t\t\r\n\t\tif(usuarioActual==null) {\r\n\t\t\tthis.usuarioActual=new Usuario();\r\n\t\t}\r\n\t\t\r\n\t\tiIdUsuarioSesion=usuarioActual.getId();\r\n\t\t\r\n\t\tString sPathReportes=\"\";\r\n\t\t\r\n\t\tInputStream reportFile=null;\r\n\t\tInputStream imageFile=null;\r\n\t\t\t\r\n\t\timageFile=AuxiliarImagenes.class.getResourceAsStream(\"LogoReporte.jpg\");\t\t\t\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathReporteFinal=\"\";\r\n\t\t\r\n\t\tif(!esReporteAccionProceso) {\r\n\t\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\t\tif(!this.esReporteDinamico) {\r\n\t\t\t\t\tsPathReporteFinal=\"LibroContable\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsPathReporteFinal=this.sPathReporteDinamico;\r\n\t\t\t\t\treportFile = new FileInputStream(sPathReporteFinal);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"LibroContableMasterRelaciones\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\r\n\t\t\t\t//sPathReportes=reportFile.getPath().replace(\"LibroContableMasterRelacionesDesign.jasper\", \"\");\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"LibroContable\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t}\r\n\t\t\r\n\t\tif(reportFile==null) {\r\n\t\t\tthrow new JRRuntimeException(sPathReporteFinal+\" no existe\");\r\n\t\t}\r\n\t\t\r\n\t\tString sUsuario=\"\";\r\n\t\t\r\n\t\tif(usuarioActual!=null) {\r\n\t\t\tsUsuario=usuarioActual.getuser_name();\r\n\t\t}\r\n\t\t\r\n\t\tMap<String, Object> parameters = new HashMap<String, Object>();\r\n\t\tparameters.put(\"usuario\", sUsuario);\r\n\t\t\r\n\t\tparameters.put(\"titulo\", Funciones.GetTituloSistemaReporte(this.parametroGeneralSg,this.moduloActual,this.usuarioActual));\r\n\t\tparameters.put(\"subtitulo\", \"Reporte De Libro Contables\");\t\t\r\n\t\tparameters.put(\"busquedapor\", LibroContableConstantesFunciones.getNombreIndice(sAccionBusqueda)+sDetalleReporte);\r\n\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\tparameters.put(\"SUBREPORT_DIR\", sPathReportes);\r\n\t\t}\r\n\t\t\r\n\t\tparameters.put(\"con_grafico\", this.conGraficoReporte);\r\n\t\t\r\n\t\tJasperReport jasperReport = (JasperReport)JRLoader.loadObject(reportFile);\r\n\t\t\t\t\r\n\t\tthis.cargarDatosCliente();\r\n\t\t\r\n\t\tArrayList<Classe> classes=new ArrayList<Classe>();\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\t\r\n\t\t\tclasses.add(new Classe(ParametroFactuPrincipal.class));\r\n\t\t\tclasses.add(new Classe(Definicion.class));\r\n\t\t\t\r\n\t\t\t//ARCHITECTURE\r\n\t\t\tif(Constantes.ISUSAEJBLOGICLAYER) {\t\t\r\n\t\t\t\ttry\t{\r\n\t\t\t\t\t\r\n\t\t\t\t\tLibroContableLogic librocontableLogicAuxiliar=new LibroContableLogic();\r\n\t\t\t\t\tlibrocontableLogicAuxiliar.setDatosCliente(librocontableLogic.getDatosCliente());\t\t\t\t\r\n\t\t\t\t\tlibrocontableLogicAuxiliar.setLibroContables(librocontablesParaReportes);\r\n\t\t\t\t\t\r\n\t\t\t\t\tlibrocontableLogicAuxiliar.cargarRelacionesLoteForeignKeyLibroContableWithConnection(); //deepLoadsWithConnection(false, DeepLoadType.INCLUDE, classes, \"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tlibrocontablesParaReportes=librocontableLogicAuxiliar.getLibroContables();\r\n\t\t\t\t\t\r\n\t\t\t\t\t//librocontableLogic.getNewConnexionToDeep();\r\n\t\t\t\t\t\r\n\t\t\t\t\t//for (LibroContable librocontable:librocontablesParaReportes) {\r\n\t\t\t\t\t//\tlibrocontableLogic.deepLoad(librocontable, false, DeepLoadType.INCLUDE, classes);\r\n\t\t\t\t\t//}\t\t\t\t\t\t\r\n\t\t\t\t\t//librocontableLogic.commitNewConnexionToDeep();\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t} catch(Exception e) {\r\n\t\t\t\t\tthrow e;\r\n\t\t\t\t\t\r\n\t\t\t\t} finally {\r\n\t\t\t\t\t//librocontableLogic.closeNewConnexionToDeep();\r\n\t\t\t\t}\r\n\t\t\t} else if(Constantes.ISUSAEJBREMOTE) {\r\n\t\t\t} else if(Constantes.ISUSAEJBHOME) {\r\n\t\t\t}\r\n\t\t\t//ARCHITECTURE\t\t\r\n\t\t\t\r\n\t\t\r\n\t\t\t\r\n\t\t\t\r\n\r\n\t\t\tInputStream reportFileParametroFactuPrincipal = AuxiliarReportes.class.getResourceAsStream(\"ParametroFactuPrincipalDetalleRelacionesDesign.jasper\");\r\n\t\t\tparameters.put(\"subreport_parametrofactuprincipal\", reportFileParametroFactuPrincipal);\r\n\r\n\t\t\tInputStream reportFileDefinicion = AuxiliarReportes.class.getResourceAsStream(\"DefinicionDetalleRelacionesDesign.jasper\");\r\n\t\t\tparameters.put(\"subreport_definicion\", reportFileDefinicion);\r\n\t\t} else {\r\n\t\t\t//FK DEBERIA TRAERSE DE ANTEMANO\r\n\t\t\t\r\n\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\r\n\t\t//CLASSES PARA REPORTES OBJETOS RELACIONADOS\r\n\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\tclasses=new ArrayList<Classe>();\r\n\t\t}\r\n\t\t\r\n\t\tJRBeanArrayDataSource jrbeanArrayDataSourceLibroContable=null;\r\n\t\t\r\n\t\tif(this.sTipoReporteExtra!=null && !this.sTipoReporteExtra.equals(\"\")) {\r\n\t\t\tLibroContableConstantesFunciones.S_TIPOREPORTE_EXTRA=this.sTipoReporteExtra;\r\n\t\t} else {\r\n\t\t\tLibroContableConstantesFunciones.S_TIPOREPORTE_EXTRA=\"\";\r\n\t\t}\r\n\t\t\r\n\t\tjrbeanArrayDataSourceLibroContable=new JRBeanArrayDataSource(LibroContableJInternalFrame.TraerLibroContableBeans(librocontablesParaReportes,classes).toArray());\r\n\t\t\r\n\t\tjasperPrint = JasperFillManager.fillReport(jasperReport,parameters,jrbeanArrayDataSourceLibroContable);\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathDest=Constantes.SUNIDAD_ARCHIVOS+\":/\"+Constantes.SCONTEXTSERVER+\"/\"+LibroContableConstantesFunciones.SCHEMA+\"/reportes\";\r\n\t\t\r\n\t\tFile filePathDest = new File(sPathDest);\r\n\t\t\r\n\t\tif(!filePathDest.exists()) {\r\n\t\t\tfilePathDest.mkdirs();\t\t\t\t\r\n\t\t}\r\n\t\t\t\t\r\n\t\tString sDestFileName=sPathDest+\"/\"+LibroContableConstantesFunciones.CLASSNAME;\r\n\t\t\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"VISUALIZAR\") {\r\n\t\t\tJasperViewer jasperViewer = new JasperViewer(jasperPrint,false) ;\r\n\t\t\tjasperViewer.setVisible(true) ; \r\n\r\n\t\t} else if(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\") {\t\r\n\t\t\t//JasperFillManager.fillReportToFile(reportFile.getAbsolutePath(),parameters, new JRBeanArrayDataSource(LibroContableBean.TraerLibroContableBeans(librocontablesParaReportes).toArray()));\r\n\t\t\t\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"HTML\") {\r\n\t\t\t\tsDestFileName+=\".html\";\r\n\t\t\t\tJasperExportManager.exportReportToHtmlFile(jasperPrint,sDestFileName);\r\n\t\t\t\t\t\r\n\t\t\t} else if(this.sTipoArchivoReporte==\"PDF\") {\r\n\t\t\t\tsDestFileName+=\".pdf\";\r\n\t\t\t\tJasperExportManager.exportReportToPdfFile(jasperPrint,sDestFileName);\r\n\t\t\t} else {\r\n\t\t\t\tsDestFileName+=\".xml\";\r\n\t\t\t\tJasperExportManager.exportReportToXmlFile(jasperPrint,sDestFileName, false);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\r\n\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"WORD\") {\r\n\t\t\t\tsDestFileName+=\".rtf\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRRtfExporter exporter = new JRRtfExporter();\r\n\t\t\r\n\t\t\t\texporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\r\n\t\t\t\texporter.exportReport();\r\n\t\t\t\t\r\n\t\t\t} else\t{\r\n\t\t\t\tsDestFileName+=\".xls\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRXlsExporter exporterXls = new JRXlsExporter();\r\n\t\t\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\t\texporterXls.setParameter(JRXlsExporterParameter.IS_ONE_PAGE_PER_SHEET, Boolean.TRUE);\r\n\t\t\r\n\t\t\t\texporterXls.exportReport();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"EXCEL2\"||this.sTipoArchivoReporte==\"EXCEL2_2\") {\r\n\t\t\t//sDestFileName+=\".xlsx\";\r\n\t\t\t\r\n\t\t\tif(this.sTipoReporte.equals(\"NORMAL\")) {\r\n\t\t\t\tthis.generarExcelReporteLibroContables(sAccionBusqueda,sTipoArchivoReporte,librocontablesParaReportes);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"FORMULARIO\")){\r\n\t\t\t\tthis.generarExcelReporteVerticalLibroContables(sAccionBusqueda,sTipoArchivoReporte,librocontablesParaReportes,false);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"DINAMICO\")){\r\n\t\t\t\t\r\n\t\t\t\tif(this.sTipoReporteDinamico.equals(\"NORMAL\")) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tthis.jButtonGenerarExcelReporteDinamicoLibroContableActionPerformed(null);\r\n\t\t\t\t\t//this.generarExcelReporteLibroContables(sAccionBusqueda,sTipoArchivoReporte,librocontablesParaReportes);\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"FORMULARIO\")){\r\n\t\t\t\t\tthis.generarExcelReporteVerticalLibroContables(sAccionBusqueda,sTipoArchivoReporte,librocontablesParaReportes,true);\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"RELACIONES\")){\r\n\t\t\t\t\tthis.generarExcelReporteRelacionesLibroContables(sAccionBusqueda,sTipoArchivoReporte,librocontablesParaReportes,true);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"RELACIONES\")){\r\n\t\t\t\tthis.generarExcelReporteRelacionesLibroContables(sAccionBusqueda,sTipoArchivoReporte,librocontablesParaReportes,false);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\"||this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\t\t\t\t\r\n\t\t\tJOptionPane.showMessageDialog(this,\"REPORTE \"+sDestFileName+\" GENERADO SATISFACTORIAMENTE\",\"REPORTES \",JOptionPane.INFORMATION_MESSAGE);\r\n\t\t}\r\n\t}", "public void onClick(DialogInterface dialog,int id) {\n ref_number = userInput.getText().toString();\n from_date = fromDateBox.getText().toString();\n to_date = toDateBox.getText().toString();\n new PostGetSavingsReportsClass(context).execute();\n }", "@Override\n protected void onPrepareDialog(int id, Dialog dialog) {\n \tToast.makeText(this, dialog.toString(), Toast.LENGTH_SHORT).show();\n }", "public String generarReporte (HttpServletRequest request,\n HttpServletResponse response) throws IOException {\n Empresa empresaSesion = (Empresa)request.getSession().getAttribute(\"emp\");\n String simbolo_moneda;\n \n if (empresaSesion != null && empresaSesion.getSimboloMoneda() != null && \n !empresaSesion.getSimboloMoneda().isEmpty()) {\n simbolo_moneda = empresaSesion.getSimboloMoneda();\n } else {\n simbolo_moneda = \"$\";\n }\n \n // Se restauran variables iniciadas\n ReporteUtil.restaurarValores();\n \n String tipoReporte = request.getParameter(\"tipoReporte\");\n String fechaInicio = request.getParameter(\"fechaInicio\");\n String fechaFinal = request.getParameter(\"fechaFinal\");\n String placa = request.getParameter(\"splaca\"); // id,placa,numInterno\n String mplaca = request.getParameter(\"smplaca_v\");\n String esteDia = request.getParameter(\"esteDia\");\n String tipoArchivo = request.getParameter(\"tipoArchivo\");\n String ruta = request.getParameter(\"sruta\");\n String mruta = request.getParameter(\"smruta_v\");\n String malarma = request.getParameter(\"smalarma_v\");\n String base = request.getParameter(\"sbase\");\n String idLiquidador = request.getParameter(\"sliquidador\");\n String meta = request.getParameter(\"smeta\");\n String mconductor = request.getParameter(\"smconductor_v\"); \n \n boolean dia_actual = verificarDiaActual(fechaInicio, fechaFinal);\n \n// Etiquetas etiquetas = null;\n// etiquetas = LiquidacionBD.searchTags();\n ConfiguracionLiquidacion etiquetas = obtenerEtiquetasLiquidacionPerfil(request);\n \n if (etiquetas != null) {\n ReporteUtil.establecerEtiquetas(etiquetas);\n } \n \n //String reportesPath = \"D:\\\\rdw\\\\\"; \n \n // En caso de estar sobre un SO_WIN, se quita ultimo delimitador\n String reportesPath = getServletContext().getRealPath(\"\");\n if (reportesPath.endsWith(\"\\\\\")) {\n reportesPath = reportesPath.substring(0, reportesPath.length()-1); \n }\n \n Map<String,String> h = new HashMap<String,String>();\n \n h.put(\"tipoReporte\", tipoReporte);\n h.put(\"fechaInicio\", fechaInicio);\n h.put(\"fechaFinal\", fechaFinal); \n h.put(\"tipoArchivo\", tipoArchivo);\n h.put(\"path\", reportesPath); \n \n \n // Informacion de usuario en sesion\n HttpSession session = request.getSession(); \n Usuario u = (Usuario) session.getAttribute(\"login\");\n \n h.put(\"idUsuario\", \"\" + u.getId());\n h.put(\"nombreUsuario\", u.getNombre() +\" \"+ u.getApellido());\n h.put(\"usuarioPropietario\", (u.esPropietario()) ? \"1\" : \"0\");\n \n // Nombre y titulo del reporte\n String nt[] = nombreReporte(tipoReporte, dia_actual).split(\":\");\n \n // Verifica si se considera una o todas las rutas\n // para reportes nivel_ocupacion, despachador, descripcion ruta,\n // cumplimiento ruta por conductor\n int ntp = Integer.parseInt(tipoReporte);\n if (ntp == 5 || ntp == 14 || ntp == 16) {\n if (!ruta.equals(\"0\")) { // Se elige una ruta\n nt[0] += \"_X1Ruta\";\n h.put(\"unaRuta\", \"t\");\n } else {\n h.put(\"unaRuta\", \"f\");\n }\n } \n if (ntp == 25) {\n String una_ruta = (!ruta.equals(\"0\")) ? \"t\" : \"f\";\n h.put(\"unaRuta\", una_ruta);\n }\n \n h.put(\"nombreReporte\", nt[0]);\n h.put(\"tituloReporte\", nt[1]);\n \n // Verifica si es reporte gerencia, gerencia x vehiculo para incluir\n // todos los vehiculos o todas las rutas\n ReporteUtil.incluirTotalidadRutas = false;\n ReporteUtil.incluirTotalidadVehiculos = false;\n ReporteUtil.incluirVehiculosPropietario = false;\n \n if (ntp == 15) {\n ReporteUtil.incluirTotalidadVehiculos = true; \n } else if (ntp == 18) {\n ReporteUtil.incluirTotalidadRutas = true;\n } else if (ntp == 11) {\n if (u.esPropietario()) { \n ReporteUtil.incluirVehiculosPropietario = true;\n } else {\n ReporteUtil.incluirTotalidadVehiculos = true; \n }\n }\n \n // Verifica si es reporte ruta x vehiculo para generar\n // reporte desde codigo\n if (ntp == 3) { \n ReporteUtil.desdeCodigo = true;\n } else {\n ReporteUtil.desdeCodigo = false;\n }\n \n // Verifica si es reporte ruta x vehiculo, vehiculo x ruta, despachador\n // para establecer un dia en parametro fecha y no un rango\n if (ntp == 3 || ntp == 11 || ntp == 16) {\n h.put(\"fechaFinal\", fechaInicio);\n } \n \n // No se necesitan fechas para reporte estadistico y descripcion ruta\n if (ntp == 13 || ntp == 14) {\n h.put(\"fechaInicio\", \"\");\n h.put(\"fechaFinal\", \"\");\n }\n \n // Eleccion de reportes gerencia segun empresa\n if (ntp == 15 || ntp == 18) {\n String empresa = u.getNombreEmpresa();\n String nombre_reporte = h.get(\"nombreReporte\");\n if (ReporteUtil.esEmpresa(empresa, ReporteUtil.EMPRESA_FUSACATAN)) {\n nombre_reporte += \"Fusa\";\n h.put(\"nombreReporte\", nombre_reporte);\n } \n }\n \n // Reportes de liquidacion\n if (ntp == 19 || ntp == 20 || ntp == 21 || ntp == 22) { \n h.put(\"fechaInicio\", fechaInicio + \" 00:00:00\");\n h.put(\"fechaFinal\", fechaFinal + \" 23:59:59\");\n \n //System.out.println(\"---> \"+EtiquetasLiquidacion.getEtq_total1() );\n /*SI EL REPORTE ES LIQUIDACION POR LIQUIDADOR SE MODIFICA EL NOMBRE SI LA EMPRESA ES DIFERENTE DE NEIVA*/\n if (ntp == 21) {\n if ((u.getNombreEmpresa().equalsIgnoreCase(\"FUSACATAN\")) || \n (u.getNombreEmpresa().equalsIgnoreCase(\"TIERRA GRATA\")) || \n (u.getNombreEmpresa().equalsIgnoreCase(\"Tierragrata\"))) {\n h.put(\"nombreReporte\", \"Reporte_LiquidacionXLiquidador_new_dcto\"); \n }\n }\n \n if (tipoArchivo.equals(\"w\")) {\n Usuario liquidador = UsuarioBD.getById(Restriction.getNumber(idLiquidador));\n if (liquidador != null) { \n String nom = liquidador.getNombre();\n String ape = liquidador.getApellido(); \n h.put(\"idUsuarioLiquidador\", idLiquidador);\n h.put(\"nombresUsuarioLiquidador\", ape + \" \" + nom);\n }\n } else {\n h.put(\"idUsuario\", idLiquidador);\n }\n } \n \n if (ntp == 23 || ntp == 24 || ntp == 25) {\n h.put(\"meta\", \"\" + meta);\n if (tipoArchivo.equals(\"r\")) {\n ReporteUtil.reporteWeb = true;\n }\n }\n \n if (ntp == 26 || ntp == 27) {\n h.put(\"fechaInicio\", fechaInicio);\n h.put(\"fechaFinal\", fechaFinal);\n ReporteUtil.reporteWeb = true;\n } \n \n // ======================= Verificacion de campos ======================\n \n // Id, placa, numeroInterno vehiculo\n if (placa.indexOf(\",\") >= 0) {\n h.put(\"idVehiculo\", placa.split(\",\")[0]);\n h.put(\"placa\", placa.split(\",\")[1]);\n h.put(\"numInterno\", placa.split(\",\")[2]);\n h.put(\"capacidad\", placa.split(\",\")[3]);\n ReporteUtil.incluirVehiculo = true;\n } else\n ReporteUtil.incluirVehiculo = false;\n \n // Id de multiples vehiculos\n if (mplaca != \"\" || mplaca.indexOf(\",\") >= 0) {\n h.put(\"strVehiculos\", mplaca);\n h.put(\"strVehiculosPlaca\", id2placa(mplaca));\n ReporteUtil.incluirVehiculos = true;\n } else\n ReporteUtil.incluirVehiculos = false;\n \n // Id ruta y nombre ruta\n if (ruta.indexOf(\",\") >= 0) {\n String arrayRuta[] = ruta.split(\",\");\n h.put(\"idRuta\", arrayRuta[0]);\n h.put(\"nombreRuta\", arrayRuta[1]);\n ReporteUtil.incluirRuta = true;\n } else \n ReporteUtil.incluirRuta = false;\n \n // Id ruta \n if (mruta != \"\" || mruta.indexOf(\",\") >= 0) {\n h.put(\"strRutas\", mruta);\n ReporteUtil.incluirRutas = true;\n } else\n ReporteUtil.incluirRutas = false;\n \n // Id alarma\n if (malarma != \"\" || malarma.indexOf(\",\") >= 0) {\n h.put(\"strAlarmas\", malarma);\n ReporteUtil.incluirAlarma = true;\n } else \n ReporteUtil.incluirAlarma = false; \n \n // Id base, nombre\n if (base.indexOf(\",\") >= 0) {\n String arrayBase[] = base.split(\",\");\n h.put(\"idBase\", arrayBase[0]);\n h.put(\"nombreBase\", arrayBase[1]);\n ReporteUtil.incluirBase = true;\n } else \n ReporteUtil.incluirBase = false; \n \n // Se verifica y establece parametros de empresa\n Empresa emp = EmpresaBD.getById(u.getIdempresa()); \n if (emp != null) {\n h.put(\"nombreEmpresa\", emp.getNombre());\n h.put(\"nitEmpresa\", emp.getNit());\n h.put(\"idEmpresa\", \"\" + emp.getId());\n } else {\n request.setAttribute(\"msg\", \"* Usuario no tiene relaci&oacute;n y/o permisos adecuados con la empresa.\");\n request.setAttribute(\"msgType\", \"alert alert-warning\");\n return \"/app/reportes/generaReporte.jsp\";\n }\n \n int id_ruta = Restriction.getNumber(h.get(\"idRuta\")); \n String pplaca = \"'\" + h.get(\"placa\") + \"'\";\n \n // Se verifica si existe despacho para cruzar sus datos,\n // en caso contrario se extrae los datos unicamente desde tabla info. registradora\n if (ntp == 3) {\n if (!DespachoBD.existe_planilla_en(fechaInicio, pplaca)) {\n ReporteUtil.desdeCodigo = true; \n h.put(\"nombreReporte\", \"reporte_RutaXVehiculo2\");\n h.put(\"cruzarDespacho\", \"0\"); \n } else {\n ReporteUtil.desdeCodigo = false; // Reporte con cruce despacho es dinamico\n h.put(\"cruzarDespacho\", \"1\"); \n }\n }\n if (ntp == 11) {\n if (!DespachoBD.existe_planilla_en(fechaInicio, id_ruta)) {\n h.put(\"nombreReporte\", \"reporte_VehiculosXRuta\");\n h.put(\"cruzarDespacho\", \"0\"); \n } else {\n h.put(\"cruzarDespacho\", \"1\");\n }\n }\n \n if (ntp == 30) {\n h.put(\"fechaInicio\", fechaInicio);\n h.put(\"fechaFinal\", fechaFinal);\n h.put(\"strConductores\", mconductor);\n ReporteUtil.reporteWeb = true;\n \n // Se verifica que exista una configuracion de desempeno activa\n ConfCalificacionConductor ccc = CalificacionConductorBD.confCalificacionConductor();\n if (ccc == null) {\n request.setAttribute(\"msg\", \"* No existe ninguna configuraci&oacute;n de desempe&ntilde;o registrada. Por favor registre una.\");\n request.setAttribute(\"msgType\", \"alert alert-warning\");\n request.setAttribute(\"result_error\", \"1\");\n return \"/app/reportes/generaReporte.jsp\";\n }\n }\n \n // Creacion de reporte\n JasperPrint print = null;\n if (tipoArchivo.equals(\"r\")) {\n \n // Reporte de solo lectura << PDF / Web >>\n ReporteUtil rpt;\n \n if (ReporteUtil.reporteWeb) { \n ReporteWeb rptw = new ReporteWeb(h, request, response);\n return rptw.generarReporteWeb(ntp); \n \n } else if (ReporteUtil.desdeCodigo) {\n rpt = new ReporteUtil(h);\n print = rpt.generarReporteDesdeCodigo(Integer.parseInt(h.get(\"tipoReporte\")), simbolo_moneda);\n \n } else {\n rpt = new ReporteUtil(h);\n print = rpt.generarReporte(simbolo_moneda);\n }\n \n } else {\n \n // Reporte editable << XLS >>\n ReporteUtilExcel rue = new ReporteUtilExcel();\n MakeExcel rpte = rue.crearReporte(ntp, dia_actual, h, u, etiquetas);\n \n // Restablece placa de reportes que no necesitan\n restablecerParametro(\"placa\", ntp, h);\n String splaca = h.get(\"placa\");\n splaca = (splaca == null || splaca == \"\") ? \"\" : \"_\" + splaca;\n String nombreArchivo = h.get(\"nombreReporte\") + splaca + \".xls\";\n \n //response.setContentType(\"application/vnd.ms-excel\");\n response.setContentType(\"application/ms-excel\"); \n response.setHeader(\"Content-Disposition\", \"attachment; filename=\"+nombreArchivo);\n \n HSSFWorkbook file = rpte.getExcelFile();\n file.write(response.getOutputStream()); \n response.flushBuffer();\n response.getOutputStream().close();\n \n return \"/app/reportes/generaReporte.jsp\";\n }\n \n // Impresion de reporte de solo lectura PDF\n if (print != null) {\n \n try { \n // Se comprueba existencia de datos en el reporte obtenido\n boolean hayDatos = true;\n List<JRPrintPage> pp = print.getPages(); \n if (pp.size() > 0) {\n JRPrintPage ppp = pp.get(0);\n if (ppp.getElements().size() <= 0) \n hayDatos = false; \n } else \n hayDatos = false;\n \n if (!hayDatos) {\n request.setAttribute(\"msg\", \"* Ning&uacute;n dato obtenido en el reporte.\");\n request.setAttribute(\"msgType\", \"alert alert-warning\");\n request.setAttribute(\"data_reporte\", \"1\");\n return \"/app/reportes/generaReporte.jsp\";\n }\n \n byte[] bytes = JasperExportManager.exportReportToPdf(print);\n \n // Inicia descarga del reporte\n response.setContentType(\"application/pdf\");\n response.setContentLength(bytes.length);\n ServletOutputStream outStream = response.getOutputStream();\n outStream.write(bytes, 0, bytes.length);\n outStream.flush();\n outStream.close();\n \n } catch (JRException e) {\n System.err.println(e);\n } catch (IOException e) {\n System.err.println(e);\n } \n }\n return \"/app/reportes/generaReporte.jsp\";\n }", "public String report() throws Exception{\r\n\t\tForm16MisReportModel model = new Form16MisReportModel();\r\n\t\tmodel.initiate(context, session);\r\n\t\tif(bulkForm16.getEmpId().equals(\"\")){\r\n\t\t\tString str=model.generateUrlList(request, response,bulkForm16);\r\n\t\t\tif(!str.equals(\"1\"))\r\n\t\t\t\taddActionMessage(str);\r\n\t\t\treturn SUCCESS;\r\n\t\t} //end of if\r\n\t\telse{\r\n\t\t\tmodel.generateReport(request, response, bulkForm16);\r\n\t\t\tmodel.terminate();\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "void onActionFromExport() {\n\t\ttry {\n\t\t\tHSSFWorkbook document = new HSSFWorkbook();\n\t\t\tHSSFSheet sheet = ReportUtil.createSheet(document);\n\n\t\t\tsheet.setMargin((short) 0, 0.5);\n\t\t\tReportUtil.setColumnWidths(sheet, 0, 0.5, 1, 0.5, 2, 2, 3, 2, 3, 2, 4, 3, 5, 2, 6, 2, 7, 2, 8, 3, 9, 3, 10,\n\t\t\t\t\t3, 11, 2, 12, 2);\n\n\t\t\tMap<String, HSSFCellStyle> styles = ReportUtil.createStyles(document);\n\n\t\t\tint sheetNumber = 0;\n\t\t\tint rowIndex = 1;\n\t\t\tint colIndex = 1;\n\t\t\tLong index = 1L;\n\n\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2, messages.get(\"empList\"), styles.get(\"title\"), 5);\n\n\t\t\tExcelAPI.setCellValue(document, sheetNumber, ++rowIndex, 1,\n\t\t\t\t\tmessages.get(\"date\") + \": \" + format.format(new Date()), styles.get(\"plain-left-wrap\"), 5);\n\t\t\trowIndex += 2;\n\n\t\t\t/* column headers */\n\n\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 1, messages.get(\"number-label\"),\n\t\t\t\t\tstyles.get(\"header-wrap\"));\n\n\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2, messages.get(\"firstname-label\"),\n\t\t\t\t\tstyles.get(\"header-wrap\"));\n\n\t\t\tif (lastname) {\n\t\t\t\ti++;\n\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2 + i, messages.get(\"lastname-label\"),\n\t\t\t\t\t\tstyles.get(\"header-wrap\"));\n\t\t\t}\n\n\t\t\tif (origin1) {\n\t\t\t\ti++;\n\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2 + i, messages.get(\"persuasion-label\"),\n\t\t\t\t\t\tstyles.get(\"header-wrap\"));\n\t\t\t}\n\n\t\t\tif (register) {\n\t\t\t\ti++;\n\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2 + i, messages.get(\"register-label\"),\n\t\t\t\t\t\tstyles.get(\"header-wrap\"));\n\t\t\t}\n\n\t\t\tif (status) {\n\t\t\t\ti++;\n\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2 + i, messages.get(\"status-label\"),\n\t\t\t\t\t\tstyles.get(\"header-wrap\"));\n\t\t\t}\n\n\t\t\tif (gender) {\n\t\t\t\ti++;\n\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2 + i, messages.get(\"gender-label\"),\n\t\t\t\t\t\tstyles.get(\"header-wrap\"));\n\t\t\t}\n\n\t\t\tif (occ) {\n\t\t\t\ti++;\n\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2 + i, messages.get(\"occupation-label\"),\n\t\t\t\t\t\tstyles.get(\"header-wrap\"));\n\t\t\t}\n\t\t\tif (birthday) {\n\t\t\t\ti++;\n\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2 + i, messages.get(\"birthDate-label\"),\n\t\t\t\t\t\tstyles.get(\"header-wrap\"));\n\t\t\t}\n\t\t\tif (phoneNo) {\n\t\t\t\ti++;\n\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2 + i, messages.get(\"phoneNo-label\"),\n\t\t\t\t\t\tstyles.get(\"header-wrap\"));\n\t\t\t}\n\t\t\tif (email) {\n\t\t\t\ti++;\n\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2 + i, messages.get(\"email-label\"),\n\t\t\t\t\t\tstyles.get(\"header-wrap\"));\n\t\t\t}\n\t\t\tif (org) {\n\t\t\t\ti++;\n\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2 + i, messages.get(\"organization-label\"),\n\t\t\t\t\t\tstyles.get(\"header-wrap\"));\n\t\t\t}\n\t\t\tif (appointment) {\n\t\t\t\ti++;\n\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2 + i, messages.get(\"appointment-label\"),\n\t\t\t\t\t\tstyles.get(\"header-wrap\"));\n\t\t\t}\n\t\t\tif (militaryDegree) {\n\t\t\t\ti++;\n\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2 + i, \"Цэргийн цол\", styles.get(\"header-wrap\"));\n\t\t\t}\n\t\t\tif (militaryDegreeStatus) {\n\t\t\t\ti++;\n\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2 + i, \"Цолны статус\",\n\t\t\t\t\t\tstyles.get(\"header-wrap\"));\n\t\t\t}\n\t\t\tif (militaryDegreeDate) {\n\t\t\t\ti++;\n\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2 + i, \"Цол авсан огноо\",\n\t\t\t\t\t\tstyles.get(\"header-wrap\"));\n\t\t\t}\n\t\t\tif (TotalWorkedYear) {\n\t\t\t\ti++;\n\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2 + i, messages.get(\"TotalOrgWorkedYear-label\"),\n\t\t\t\t\t\tstyles.get(\"header-wrap\"));\n\t\t\t}\n\n\t\t\tif (StateWorkedYear) {\n\t\t\t\ti++;\n\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2 + i, messages.get(\"stateWorkedYear-label\"),\n\t\t\t\t\t\tstyles.get(\"header-wrap\"));\n\t\t\t}\n\n\t\t\tif (CourtWorkedYear) {\n\t\t\t\ti++;\n\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2 + i,\n\t\t\t\t\t\tmessages.get(\"courtOrgTotalWorkedYear-label\"), styles.get(\"header-wrap\"));\n\t\t\t}\n\n\t\t\tif (CourtMilitaryWorkedYear) {\n\t\t\t\ti++;\n\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2 + i,\n\t\t\t\t\t\tmessages.get(\"CourtMilitaryWorkedYear-label\"), styles.get(\"header-wrap\"));\n\t\t\t}\n\n\t\t\tif (CourtSimpleWorkedYear) {\n\t\t\t\ti++;\n\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2 + i,\n\t\t\t\t\t\tmessages.get(\"CourtSimpleWorkedYear-label\"), styles.get(\"header-wrap\"));\n\t\t\t}\n\n\t\t\tif (familyCount) {\n\t\t\t\ti++;\n\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2 + i, messages.get(\"familyCount-label\"),\n\t\t\t\t\t\tstyles.get(\"header-wrap\"));\n\t\t\t}\n\t\t\tif (childCount) {\n\t\t\t\ti++;\n\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 2 + i, messages.get(\"childCount-label\"),\n\t\t\t\t\t\tstyles.get(\"header-wrap\"));\n\t\t\t}\n\n\t\t\tReportUtil.setRowHeight(sheet, rowIndex, 3);\n\n\t\t\trowIndex++;\n\t\t\tif (listEmployee != null)\n\t\t\t\tfor (Employee empDTO : listEmployee) {\n\n\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, colIndex++,\n\t\t\t\t\t\t\tlistEmployee.indexOf(empDTO) + 1 + \"\", styles.get(\"plain-left-wrap-border\"));\n\n\t\t\t\t\tif (lastname) {\n\t\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, colIndex++,\n\t\t\t\t\t\t\t\t(empDTO.getLastname() != null) ? empDTO.getLastname() : \"\",\n\t\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t}\n\n\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, colIndex++, empDTO.getFirstName(),\n\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t\n\t\t\t\t\tif (origin1) {\n\t\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, colIndex++,\n\t\t\t\t\t\t\t\t(empDTO.getOrigin().getName() != null) ? empDTO.getOrigin().getName() : \"\",\n\t\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t}\n\t\t\t\t\tif (register) {\n\t\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, colIndex++,\n\t\t\t\t\t\t\t\t(empDTO.getRegisterNo() != null) ? empDTO.getRegisterNo() : \"\",\n\t\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t}\n\n\t\t\t\t\tif (status) {\n\t\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, colIndex++,\n\t\t\t\t\t\t\t\t(empDTO.getEmployeeStatus() != null) ? empDTO.getEmployeeStatus().name() : \"\",\n\t\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t}\n\n\t\t\t\t\tif (gender) {\n\t\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, colIndex++,\n\t\t\t\t\t\t\t\tmessages.get((empDTO.getGender() != null) ? empDTO.getGender().toString() : \"\"),\n\t\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t}\n\n\t\t\t\t\tif (occ) {\n\t\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, colIndex++,\n\t\t\t\t\t\t\t\t(empDTO.getOccupation() != null) ? empDTO.getOccupation().getName() : \"\",\n\t\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t}\n\n\t\t\t\t\tif (birthday) {\n\t\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, colIndex++,\n\t\t\t\t\t\t\t\t((empDTO.getBirthDate() != null) ? format.format(empDTO.getBirthDate()) : \"\"),\n\t\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t}\n\n\t\t\t\t\tif (phoneNo) {\n\t\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, colIndex++,\n\t\t\t\t\t\t\t\t((empDTO.getPhoneNo() != null) ? empDTO.getPhoneNo() : \"\"),\n\t\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t}\n\n\t\t\t\t\tif (email) {\n\t\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, colIndex++,\n\t\t\t\t\t\t\t\t((empDTO.geteMail() != null) ? empDTO.geteMail() : \"\"),\n\t\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t}\n\n\t\t\t\t\tif (org) {\n\t\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, colIndex++,\n\t\t\t\t\t\t\t\t((empDTO.getOrganization() != null) ? empDTO.getOrganization().getName() : \"\"),\n\t\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t}\n\n\t\t\t\t\tif (appointment) {\n\t\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, colIndex++,\n\t\t\t\t\t\t\t\t((empDTO.getAppointment() != null) ? empDTO.getAppointment().getAppointmentName() : \"\"),\n\t\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t}\n\t\t\t\t\tif (militaryDegree) {\n\t\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, colIndex++,\n\t\t\t\t\t\t\t\t((dao.getEmployeeMilitary(empDTO.getId()) != null)\n\t\t\t\t\t\t\t\t\t\t? dao.getEmployeeMilitary(empDTO.getId()).getMilitary().getMilitaryName() : \"\"),\n\t\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t}\n\t\t\t\t\tif (militaryDegreeStatus) {\n\t\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, colIndex++,\n\t\t\t\t\t\t\t\t((dao.getEmployeeMilitary(empDTO.getId()) != null)\n\t\t\t\t\t\t\t\t\t\t? dao.getEmployeeMilitary(empDTO.getId()).getDegreeStatus().name() : \"\"),\n\t\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t}\n\t\t\t\t\tif (militaryDegreeDate) {\n\t\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, colIndex++,\n\t\t\t\t\t\t\t\t((dao.getEmployeeMilitary(empDTO.getId()) != null)\n\t\t\t\t\t\t\t\t\t\t? format.format(dao.getEmployeeMilitary(empDTO.getId()).getOlgosonOgnoo())\n\t\t\t\t\t\t\t\t\t\t: \"\"),\n\t\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t}\n\t\t\t\t\tif (TotalWorkedYear) {\n\t\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, colIndex++,\n\t\t\t\t\t\t\t\t((getTotalOrgWorkedYearExport(empDTO.getId()) != null)\n\t\t\t\t\t\t\t\t\t\t? getTotalOrgWorkedYearExport(empDTO.getId()).toString() : \"\"),\n\t\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t\tif (StateWorkedYear) {\n\t\t\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, colIndex++,\n\t\t\t\t\t\t\t\t\t((getStateWorkedYearExport(empDTO.getId()) != null)\n\t\t\t\t\t\t\t\t\t\t\t? getStateWorkedYearExport(empDTO.getId()).toString() : \"\"),\n\t\t\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (CourtWorkedYear) {\n\t\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, colIndex++,\n\t\t\t\t\t\t\t\t((getCourtOrgTotalWorkedYearExport(empDTO.getId()) != null)\n\t\t\t\t\t\t\t\t\t\t? getCourtOrgTotalWorkedYearExport(empDTO.getId()).toString() : \"\"),\n\t\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t}\n\t\t\t\t\tif (CourtMilitaryWorkedYear) {\n\t\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, colIndex++,\n\t\t\t\t\t\t\t\t((getCourtMilitaryWorkedYearExport(empDTO.getId()) != null)\n\t\t\t\t\t\t\t\t\t\t? getCourtMilitaryWorkedYearExport(empDTO.getId()).toString() : \"\"),\n\t\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t}\n\n\t\t\t\t\tif (CourtSimpleWorkedYear) {\n\t\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, colIndex++,\n\t\t\t\t\t\t\t\t((getCourtSimpleWorkedYearExport(empDTO.getId()) != null)\n\t\t\t\t\t\t\t\t\t\t? getCourtSimpleWorkedYearExport(empDTO.getId()).toString() : \"\"),\n\t\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t}\n\n\t\t\t\t\tif (familyCount) {\n\t\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex,\n\t\t\t\t\t\t\t\tcolIndex++, ((getFamilyCountExport(empDTO.getId()) != null)\n\t\t\t\t\t\t\t\t\t\t? getFamilyCountExport(empDTO.getId()) : \"0\"),\n\t\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t}\n\n\t\t\t\t\tif (childCount) {\n\t\t\t\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex,\n\t\t\t\t\t\t\t\tcolIndex++, ((getChildCountExport(empDTO.getId()) != null)\n\t\t\t\t\t\t\t\t\t\t? getChildCountExport(empDTO.getId()) : \"0\"),\n\t\t\t\t\t\t\t\tstyles.get(\"plain-left-wrap-border\"));\n\t\t\t\t\t}\n\n\t\t\t\t\tReportUtil.setRowHeight(sheet, rowIndex, 3);\n\t\t\t\t\trowIndex++;\n\t\t\t\t\tindex++;\n\t\t\t\t\tcolIndex = 1;\n\n\t\t\t\t}\n\n\t\t\trowIndex += 2;\n\n\t\t\tExcelAPI.setCellValue(document, sheetNumber, rowIndex, 1,\n\t\t\t\t\t\"ТАЙЛАН ГАРГАСАН: \" + \"..................................... / \"\n\t\t\t\t\t\t\t+ loginState.getEmployee().getLastname().charAt(0) + \".\"\n\t\t\t\t\t\t\t+ loginState.getEmployee().getFirstName() + \" /\",\n\t\t\t\t\tstyles.get(\"plain-left-wrap\"), 8);\n\t\t\trowIndex++;\n\n\t\t\tOutputStream out = response.getOutputStream(\"application/vnd.ms-excel\");\n\t\t\tresponse.setHeader(\"Content-Disposition\", \"attachment; filename=\\\"employeeList.xls\\\"\");\n\n\t\t\tdocument.write(out);\n\t\t\tout.close();\n\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void onClick(DialogInterface dialog, int which) {\n CalculosCadastro calculosCadastro = new CalculosCadastro(context);\n calculosCadastro.saveCalculo(\"Volume Corrente\", \"Ml\", String.valueOf(result));\n\n\n dialog.dismiss();\n }", "public static void mostrarAdvertenciaDeCreacion(JDialog dialogo) {\n JOptionPane.showMessageDialog(dialogo, advertenciaDeCreacion, \"BancoSoft: Advertencia\", JOptionPane.WARNING_MESSAGE);\n }" ]
[ "0.7278333", "0.6984007", "0.6966168", "0.6779904", "0.66607726", "0.6649649", "0.65659606", "0.65513134", "0.65152097", "0.65143484", "0.6499894", "0.64786786", "0.64603084", "0.64521456", "0.64468646", "0.6437858", "0.64000696", "0.63571644", "0.6340514", "0.6338353", "0.631344", "0.6307697", "0.62877303", "0.6270651", "0.6263471", "0.62560564", "0.62519854", "0.62434965", "0.62385637", "0.6213702", "0.61537635", "0.6138691", "0.61329716", "0.613109", "0.6128487", "0.6127532", "0.6126373", "0.6121274", "0.60907406", "0.60848075", "0.60757995", "0.60573685", "0.6053917", "0.60517424", "0.60317373", "0.6027427", "0.59932405", "0.59912366", "0.599061", "0.5975945", "0.5970566", "0.59571433", "0.5955112", "0.5953732", "0.59366345", "0.5926912", "0.59254205", "0.592109", "0.59103143", "0.5908514", "0.59020764", "0.58984643", "0.5891436", "0.5869008", "0.586889", "0.5868188", "0.58490473", "0.5846826", "0.5845645", "0.5833045", "0.58241874", "0.58239394", "0.5823505", "0.58227557", "0.5816135", "0.58105576", "0.5807148", "0.57855475", "0.5778386", "0.5778027", "0.5769478", "0.57647777", "0.57621914", "0.5747468", "0.5746712", "0.5739061", "0.5712848", "0.57126194", "0.5712544", "0.57056206", "0.5704315", "0.5699683", "0.56946856", "0.5693107", "0.5691004", "0.56797284", "0.56770533", "0.5661212", "0.5658688", "0.5652174" ]
0.75179154
0
Tencent.onActivityResultData(requestCode, resultCode, data, mUiListener);
public void onActivityResult(int requestCode, int resultCode, Intent data) { if(requestCode == Constants.REQUEST_QQ_SHARE || requestCode == Constants.REQUEST_QZONE_SHARE){ if (resultCode == Constants.ACTIVITY_OK) { Tencent.handleResultData(data, listener); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void onActivityResult(int requestCode, int resultCode, Intent data) {\n }", "@Override\n public void OnActivityResultReceived(int requestCode, int resultCode, Intent data) {\n\n }", "@Override\r\n\tpublic void onActivityResult(int requestCode, int resultCode, Intent data) {\r\n\t\t// TODO - fill in here\r\n\r\n\r\n\r\n\t}", "@Override\n\tpublic void resultActivityCall(int requestCode, int resultCode, Intent data) {\n\n\t}", "@Override\n public void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n\n }", "@Override\n public void onActivityResult(int requestCode, int resultCode, Intent data) {\n if(resultCode!= Activity.RESULT_OK){\n return;\n }\n\n }", "@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\t\t\n\t}", "@Override\n public void onActivityResult(int requestCode, int resultCode,\n Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n uiHelper.onActivityResult(requestCode, resultCode, data);\n }", "@Override\n public void onActivityResult(int requestCode, int resultCode, Intent intent) {\n// switch (resultCode) { //resultCode为回传的标记,我在第二个Activity中回传的是RESULT_OK\n// case Activity.RESULT_OK:\n// Bundle b=intent.getExtras(); //data为第二个Activity中回传的Intent\n// barCode = b.getString(\"code\");//str即为回传的值\n// mCallbackContext.success(barCode);\n// break;\n// default:\n// break;\n// }\n }", "@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\t}", "@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\t}", "@Override\n\tpublic void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\t}", "@Override\n\tpublic void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\t}", "@Override\n\tpublic void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\t}", "@Override\n protected void onActivityResult(final int requestCode, final int resultCode, final Intent data)\n {\n super.onActivityResult(requestCode, resultCode, data);\n callbackManager.onActivityResult(requestCode, resultCode, data);\n }", "public void onActivityResult(int requestCode, int resultCode, Intent data) {\n this.mCallBackManager.onActivityResult(requestCode, resultCode, data);\n super.onActivityResult(requestCode, resultCode, data);\n }", "@Override\r\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tXSDK.getInstance().onActivityResult(requestCode, resultCode, data);\r\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\r\n\t}", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n\n uiHelper.onActivityResult(requestCode, resultCode, data, new FacebookDialog.Callback() {\n @Override\n public void onError(FacebookDialog.PendingCall pendingCall, Exception error, Bundle data) {\n Log.e(\"Activity\", String.format(\"Error: %s\", error.toString()));\n }\n\n @Override\n public void onComplete(FacebookDialog.PendingCall pendingCall, Bundle data) {\n Log.i(\"Activity\", \"Success!\");\n }\n });\n }", "@Override\r\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\r\n\t\tswitch(requestCode){\r\n\t\tcase QUERYACTIVITYCODE:{\r\n\t\t\tif(resultCode==Activity.RESULT_OK){\r\n\r\n\t\t\t\ttv_query.setText(data.getStringExtra(\"codestr\"));\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t\t//Toast.makeText(CircleActivity.this, \"未登录\", Toast.LENGTH_LONG).show();;\r\n\t\t\t\t;\r\n\t\t}\r\n\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}", "@Override\n public void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n\n switch (requestCode) {\n default:\n break;\n }\n\n }", "@Override\n public void handleResult(Intent data) {\n }", "@Override\n public void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (requestCode == PayuConstants.PAYU_REQUEST_CODE) {\n getActivity().setResult(resultCode, data);\n getActivity().finish();\n }\n }", "public void onActivityResult(int resultCode, Intent data, AppCompatActivity activity) {\n this.resultCode = resultCode;\n this.data = data;\n this.activity = activity;\n }", "public boolean onActivityResult (int requestCode, int resultCode, Intent data) {\n\t\t\n\t\treturn true;\n\t\t\n\t}", "@Override\n public void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n\n switch (iPositionSelected) {\n\n case TAG_LOGIN_FACEBOOK:\n callbackManager.onActivityResult(requestCode, resultCode, data);\n break;\n case TAG_LOGIN_TWITTER:\n Log.e(\"Activity Result: \", \"onActivityResult requestCode:\" + requestCode + \" resultCode:\" + resultCode);\n\n loginTwitter.onActivityResult(requestCode, resultCode, data);\n\n break;\n }\n }", "@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\n\t\tif (requestCode == 1 && resultCode == RESULT_OK) {\n\n\t\t}\n\t}", "@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\t\t Session.getActiveSession().onActivityResult(this, requestCode, resultCode, data);\n\t}", "public interface IntentResultListener {\n void gotIntentResult(int requestCode, int resultCode, Intent resultData);\n}", "@SuppressWarnings({\"unchecked\", \"deprecation\", \"all\"})\npublic static interface OnActivityResultListener {\n\n/**\n * See Activity's onActivityResult.\n *\n * @return Whether the request code was handled (in which case\n * subsequent listeners will not be called.\n */\n\npublic boolean onActivityResult(int requestCode, int resultCode, android.content.Intent data);\n}", "@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\t\tif (requestCode == REQUEST_CODE) {\n\t\t\tif (null != data) {\n\t\t\t\tString n = data.getStringExtra(\"result_nick\");\n\t\t\t\tString re = data.getStringExtra(\"result_name\");\n\t\t\t\t// String se = data.getStringExtra(\"result_sex\");\n\t\t\t\tString s = data.getStringExtra(\"result_sign\");\n\t\t\t\tString t = data.getStringExtra(\"result_tel\");\n\t\t\t\tString q = data.getStringExtra(\"result_qq\");\n\t\t\t\tString e = data.getStringExtra(\"result_email\");\n\t\t\t\tString l = data.getStringExtra(\"result_level\");\n\t\t\t\tnick.setText(n);\n\t\t\t\tname.setText(re);\n\t\t\t\t// sex.setText(se);\n\t\t\t\ttel.setText(t);\n\t\t\t\tqq.setText(q);\n\t\t\t\temail.setText(e);\n\t\t\t\tlevel.setText(l);\n\t\t\t}\n\t\t}\n\t}", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n ParseFacebookUtils.onActivityResult(requestCode, resultCode, data);\n }", "@Override\n public void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode,resultCode,data);\n\n if (requestCode == RES_CODE_SIGN_IN) {\n GoogleSignInResult result = Auth.GoogleSignInApi.getSignInResultFromIntent(data);\n signInResultHandler(result);\n }\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if(requestCode == 78 && resultCode == RESULT_OK ){\n\n user = data.getExtras().getString(\"usuarioP\");\n pass = data.getExtras().getString(\"contraseñaP\");\n correo = data.getExtras().getString(\"correoP\");\n\n // tTemporal2.setText(\"vengo de perfil\" + user + \"\\n\" + pass);\n }\n\n super.onActivityResult(requestCode, resultCode, data);\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (requestCode == 10 && resultCode == Activity.RESULT_OK) {\n //Bundle extras = data.getExtras();\n //if (extras != null) {\n // String name = extras.getString(User.USER_NAME);\n updateUI();\n }\n }", "@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\n\t\tif (20 == resultCode) {\n\t\t\tString msg = data.getExtras().getString(\"msg\");\n\t\t\tString action = data.getExtras().getString(\"action\");\n\n\t\t\tif (action.equals(\"1056\")) {// 姓名\n\t\t\t\t// messageItem.get(0).setContent(msg);\n\t\t\t} else if (action.equals(\"1042\")) {// 球龄\n\t\t\t\t// messageItem.get(4).setContent(msg);\n\n\t\t\t} else if (action.equals(\"1008\")) {// 场上位置\n\t\t\t\tmessageItem.get(3).setContent(msg);\n\t\t\t} else if (action.equals(\"1044\")) {// 个人标签\n\t\t\t\tmessageItem.get(5).setContent(msg);\n\t\t\t} else if (action.equals(\"1057\")) {// 性别\n\t\t\t\t// String sex = \"\";\n\t\t\t\t// if (msg.equals(\"1\"))\n\t\t\t\t// sex = \"男\";\n\t\t\t\t// else if (msg.equals(\"2\"))\n\t\t\t\t// sex = \"女\";\n\t\t\t\t// messageItem.get(7).setContent(sex);\n\t\t\t} else if (action.equals(\"1012\")) {// 生日\n\t\t\t\tmessageItem.get(2).setContent(msg);\n\t\t\t} else if (action.equals(\"1047\")) {// 个人签名\n\t\t\t\tmessageItem.get(6).setContent(msg);\n\n\t\t\t} else if (action.equals(\"1046\")) {// 工作行业\n\t\t\t\tmessageItem.get(4).setContent(msg);\n\n\t\t\t} else if (action.equals(\"1013\")) {// 居住地 籍贯\n\t\t\t\tint type = data.getExtras().getInt(\"type\");\n\t\t\t\tif (type == 0) {// 籍贯\n\t\t\t\t\tmessageItem.get(1).setContent(msg);\n\t\t\t\t} else if (type == 1) {// 居住地\n\t\t\t\t\tmessageItem.get(0).setContent(msg);\n\t\t\t\t}\n\t\t\t}\n\t\t\t// adapter.setItem(messageItem);\n\t\t}\n\n\t\tswitch (requestCode) {\n\t\tcase TAKE_PICTURE:\n\t\t\tif (Bimp.tempSelectBitmap.size() < 9 && resultCode == RESULT_OK) {\n\n\t\t\t\tString fileName = String.valueOf(System.currentTimeMillis());\n\t\t\t\tbm = (Bitmap) data.getExtras().get(\"data\");\n\t\t\t\tFileUtils.saveBitmap(bm, fileName);\n\n\t\t\t\tpicPath = Environment.getExternalStorageDirectory()\n\t\t\t\t\t\t+ \"/Photo_She/\" + fileName + \".JPEG\";\n\t\t\t\t// f = new File(Environment.getExternalStorageDirectory()\n\t\t\t\t// + \"/Photo_She/\", fileName + \".JPEG\");\n\t\t\t\tfName = fileName + \".JPEG\";\n\n\t\t\t\tbmpUpload(fName, picPath);\n\t\t\t}\n\t\t\tbreak;\n\n\t\tcase REQUEST_CODE_LOCAL:\n\t\t\tif (data != null) {\n\t\t\t\tUri selectedImage = data.getData();\n\t\t\t\tif (selectedImage != null) {\n\t\t\t\t\tsendPicByUri(selectedImage);\n\t\t\t\t}\n\t\t\t}\n\t\t\tbreak;\n\t\t}\n\t}", "@Override\r\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\r\n if (resultCode == Activity.RESULT_OK) {\r\n //更新数据\r\n this.getChnDangerData();\r\n adapter.notifyDataSetChanged();\r\n }\r\n }", "@Override\r\n public void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\r\n if (resultCode == Activity.RESULT_OK) {\r\n switch (requestCode) {\r\n\r\n case GO_LOGIN:\r\n initPersonalInfo();\r\n logout.setText(\"退出登录\");\r\n break;\r\n default:\r\n break;\r\n }\r\n }\r\n }", "@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\ttry\n\t\t{\n\t\t\tif ( requestCode == Constants.REQUEST_CODE_COMMON &&\n\t\t\t\t\tresultCode == RESULT_OK )\n\t\t\t{\n\t\t\t\tsetResult(RESULT_OK);\n\t\t\t\tfinish();\n\t\t\t}\n\t\t\t\n\t\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\t\t}\n\t\tcatch( Exception ex )\n\t\t{\n\t\t\twriteLog( ex.getMessage());\n\t\t}\n\t}", "@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\t\tif(requestCode == 1){\n\t\t\tif(resultCode == RESULT_OK){\n\t\t\t\tsetResult(RESULT_OK);\n\t\t\t\tfinish();\n\t\t\t}\n\t\t}\n\t}", "@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\t\tIntent reintent = new Intent();\n\t\tsetResult(601, reintent);\n\t\tfinish();\n\t}", "@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\t\ttry {\n\t\t\tfacebookIntegration.onActivityResultForFacebook(requestCode,\n\t\t\t\t\tresultCode, data);\n\t\t} catch (Exception e) {\n\n\t\t}\n\t}", "@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\t\tmediaManager.onActivityResult(requestCode, resultCode, data);\n\t}", "public void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n permissionHelper.onActivityForResult(requestCode);\n }", "@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tSystem.out.println(\"On activity result start\");\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\t\tSystem.out.println(\"on activity result\");\n\t\tif (Manager.iab != null) {\n\t\t\t((IABManagerAndroid) Manager.iab).handleActivityResult(requestCode, resultCode, data);\n\t\t}\n\t\tif (Manager.fb != null) {\n\t\t\t((SocialMediaFacebook) Manager.fb).onActivityResult(requestCode, resultCode, data);\n\t\t}\n\t}", "protected void onActivityResult(int requestCode, int resultCode, Intent data){\n finish();\n startActivity(getIntent());\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n if (resultCode == RESULT_OK) {\n switch (requestCode) {\n case 0:\n searchDate();\n break;\n case 1://客户类型选择\n lxEditText.setText(data.getExtras().getString(\"name\"));\n mTypes = data.getExtras().getString(\"id\");\n if (mTypes.equals(\"0\") || mTypes.equals(\"5\")) {\n llDj.setVisibility(View.GONE);\n } else {\n llDj.setVisibility(View.VISIBLE);\n }\n typeid = \"\";\n tvDj.setText(\"\");\n String name = data.getExtras().getString(\"name\");\n if (name.equals(\"客户\") || name.equals(\"渠道\")) {\n xmjdCheckBox.setEnabled(true);\n } else {\n xmjdCheckBox.setEnabled(false);\n }\n break;\n case 2:\n jdEditText.setText(data.getExtras().getString(\"dictmc\"));\n jdId = data.getExtras().getString(\"id\");\n break;\n case 3://客户等级\n typeid = data.getStringExtra(\"CHOICE_RESULT_ID\");\n tvDj.setText(data.getStringExtra(\"CHOICE_RESULT_TEXT\"));\n break;\n case 4://区域\n areatypeid = data.getStringExtra(\"id\");\n tvQy.setText(data.getStringExtra(\"name\"));\n break;\n case 5:\n tvDq.setText(data.getStringExtra(\"text\"));\n /*areaid 省ID\n cityid 市ID\n countyid 县区ID*/\n areaid = data.getStringExtra(\"provinceId\");\n cityid = data.getStringExtra(\"cityId\");\n countyid = data.getStringExtra(\"areaId\");\n break;\n\n }\n\n }\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent intent) {\n // TODO Auto-generated method stub\n if ((requestCode == request_code) && (resultCode == RESULT_OK)) {\n\n // Toast.makeText(this, intent.getStringExtra(\"resultado\"), Toast.LENGTH_LONG).show();\n inEquipo.setText(intent.getStringExtra(\"resultado\"));\n }\n }", "@Override\r\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\r\n if(resultCode == ACTIVITY_FOR_RESULT_ID){\r\n setResult(ACTIVITY_FOR_RESULT_ID);\r\n finish();\r\n }\r\n }", "public void onActivityResult(int requestCode, int resultCode, Intent data) {\n mUserCommentView.setText(mEmailSmsComment.getText());\n \n // Email and SMS intents are returning 0, 0, null\n Log.d(TAG, \"[onActivityResult]: requestCode=\" + requestCode + \" resultCode=\" + resultCode\n + \" data=\" + data);\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (requestCode == 27) {\n // Make sure the request was successful\n // Log.e(\"add rofo\",\" ad\"+adRofo);\n if (resultCode == RESULT_OK) {\n // Log.e(\"add rofo\",\" ad\"+adRofo);\n adRofo = true;\n }\n }else{\n super.onActivityResult(requestCode, resultCode, data);\n }\n }", "@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\n\t\t\t//for facebook share dialog responses\n\t\t\tuiHelper.onActivityResult(requestCode, resultCode, data, new FacebookDialog.Callback() {\n\t\t\t@Override\n\t\t\tpublic void onError(FacebookDialog.PendingCall pendingCall, Exception error, Bundle data) {\n\t\t\t\tLog.e(TAG, String.format(\"Error: %s\", error.toString()));\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onComplete(FacebookDialog.PendingCall pendingCall, Bundle data) {\n\t\t\t\tLog.i(TAG, \"Success!\");\n\t\t\t}\n\t\t});\n\t}", "@Override\n public void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n if (currentSession != null) {\n currentSession.onActivityResult(this, requestCode, resultCode, data);\n }\n }", "@Override\n public void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n if (requestCode == 11){\n // request code tu HomeWhereFragment -> SelectCityActivity\n if (data.getBooleanExtra(\"isCityChanged\",false)){\n changeCity(data.getIntExtra(\"selectedCityId\",1), data.getStringExtra(\"selectedCityName\"));\n }\n }\n }", "@Override\r\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\r\n\t\t// if (resultCode == RESULT_OK) {\r\n\t\t// if (requestCode == editRequest) { //修改成功后的状态一定是审核状态\r\n\t\t// m_nstatus = HeadhunterPublic.TASK_STATUS_AUDIT;\r\n\t\t// rewardInfo.setTask_status(String.valueOf(m_nstatus));\r\n\t\t// refresh();\r\n\t\t// setResult(RESULT_OK);\r\n\t\t// }\r\n\t\t// }\r\n\t}", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (requestCode == 1) {\n if (resultCode == RESULT_OK) {\n //String result = data.getStringExtra(\"retValue\");\n //tvResult.setText(result);\n listCodes.add(data.getStringExtra(\"courseCode\"));\n listCredits.add(Integer.parseInt(data.getStringExtra(\"Credit\")));\n listGrades.add(data.getStringExtra(\"Grade\"));\n\n //Toast t = Toast.makeText(this,\"Hello\",Toast.LENGTH_SHORT);\n //t.show();\n\n tvCredit.setText(sumCredit()+\"\");\n tvGp.setText(sumGradePoint()+\"\");\n tvGPA.setText(calculateGPA()+\"\");\n }\n else if (resultCode == RESULT_CANCELED) {\n //tvResult.setText(\"CANCELED\");\n }\n }\n }", "protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n try {\n String parametro = data.getStringExtra(\"parametro\");\n String valor = data.getStringExtra(\"valor\");\n Id = valor;\n String descripcion = data.getStringExtra(\"descripcion\");\n if (requestCode == 1) {\n EditText tecnico = (EditText) findViewById(R.id.tecnico);\n tecnico.setText(descripcion);\n }\n }catch (Exception e){\n e.printStackTrace();\n }\n }", "@Override\n\tpublic void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\t\t// GameHelper handles some of the cases with sign-in's etc\n\t\t// automatically.\n\t\tgameHelper.onActivityResult(requestCode, resultCode, data);\n\t\tif (requestCode == RC_SELECT_PLAYERS) {\n\t\t\thandleInvitePlayerActivityResult(resultCode, data);\n\t\t} else if (requestCode == RC_INVITATION_BOX) {\n\t\t\thandleGameInboxActivityResult(resultCode, data);\n\t\t}\n\t}", "@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\n\t\tif (requestCode == CODE_OK) {\n\t\t\tString result = data.getExtras().getString(\"result\");\n\t\t\tif (!result.equals(\"null\")) {\n\t\t\t\tMSShow.show(getApplicationContext(), result);\n\t\t\t\tLog.e(\"result\", result);\n\t\t\t}\n\n\t\t}\n\t}", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n IntentResult result = IntentIntegrator.parseActivityResult(requestCode, resultCode, data);\n if (result != null) {\n //if qrcode has nothing in it\n if (result.getContents() == null) {\n Toast.makeText(this, \"Result Not Found\", Toast.LENGTH_LONG).show();\n } else {\n //if qr contains data\n try {\n //converting the data to json\n JSONObject obj = new JSONObject(result.getContents());\n //setting values to textviews\n textViewName.setText(obj.getString(\"name\"));\n textViewAddress.setText(obj.getString(\"address\"));\n } catch (JSONException e) {\n e.printStackTrace();\n //if control comes here\n //that means the encoded format not matches\n //in this case you can display whatever data is available on the qrcode\n //to a toast\n Toast.makeText(this, result.getContents(), Toast.LENGTH_LONG).show();\n }\n }\n } else {\n super.onActivityResult(requestCode, resultCode, data);\n }\n }", "protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\t\tif (resultCode == RESULT_OK)\n\t\t\tfinish();\n\t}", "public void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n finish(resultCode, data);\n }", "@Override\n public void onActivityResult(int requestCode, int responseCode,\n android.content.Intent data) {\n super.onActivityResult(requestCode, responseCode, data);\n if (loginType.equals(TYPE_FACEBOOK)) {\n // For Facebook\n FaceBookManager.onActivityResult(requestCode, responseCode, data);\n } else {\n if (loginType.equals(TYPE_GOOGLEPLUS)) {\n googlePlusManager.onActivityResult(requestCode, data);\n }\n }\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n if (requestCode == 2 && resultCode != RESULT_OK) {\n update(2);\n }\n }", "@Override\r\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tif (data == null)\r\n\t\t\treturn;\r\n\t\tBundle bundle = data.getExtras();\r\n\r\n\t\tswitch (requestCode) {\r\n\t\tcase 0:\r\n\t\t\t// String otherneed = bundle.getString(\"otherneed\");\r\n\t\t\tticketnumber = bundle.getStringArray(\"ticketnumber\");\r\n\t\t\ttickettype = bundle.getStringArray(\"tickettype\");\r\n\t\t\tnumberofticket = bundle.getIntArray(\"numberofticket\");\r\n\t\t\tnumberposition = bundle.getInt(\"numberposition\");\r\n\t\t\t// tickettypecode = bundle.getInt(\"tickettypecode\");\r\n\t\t\tshowTextView_show_number();\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n if(resultCode==RESULT_OK){\n try{\n String returnLogin = data.getStringExtra(\"LOGIN\");\n String returnPass = data.getStringExtra(\"PASSWORD\");\n setExisting(returnLogin, returnPass);\n }catch (NullPointerException e){\n Log.d(\"ACTIVITY_TRANSITION\",\"Register Activity return null data.\");\n }\n }else if(resultCode==RESULT_CANCELED){\n Log.d(\"ACTIVITY_TRANSITION\", \"Registration cancelled\");\n }\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n\n if(resultCode != RESULT_OK){\n return;\n }\n\n if(requestCode == intent_request_code){\n if (data ==null){\n return;\n }\n }\n mIsCheater = CheatActivity.wasAnswerShown(data) ;\n }", "public void setResult(int resultCode, Intent data) {\n this.mResultCode = resultCode;\n this.mResultData = data;\n }", "@Override\r\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\r\n\t\tif (mPlugin != null) {\r\n//\t\t\tmPlugin.Iona\r\n\t\t}\r\n\t}", "@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\n\t\tif (requestCode == 1) { // startActivityForResult回傳值\n\t\t\tif (resultCode == RESULT_OK) {\n\t\t\t\tString contents = data.getStringExtra(\"SCAN_RESULT\"); // 取得QR\n\t\t\t\t// Code內容\n\t\t\t\t// 以下開始處理資料\n\t\t\t\tgetPlaceUrl(contents.split(\" \")[0], contents.split(\" \")[1]);\n\t\t\t} else if (resultCode == RESULT_CANCELED) {\n\t\t\t\t// Handle cancel\n\t\t\t}\n\t\t}\n\t}", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n if (requestCode == 1 && resultCode == RESULT_OK) {\n fade(rlMap);\n Map<String, Object> params = User.getToken(this);\n WebBridge.send(\"webservices.php?task=getStatusMap\", params, \"Cargando\", this, this);\n } else if (requestCode == 1 && resultCode != RESULT_OK) {\n clickBack(null);\n }\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n if (requestCode == 4 && resultCode == 4) {\n setResult(4);\n finish();\n } else if (requestCode == 4 && resultCode == 3) {\n setResult(3);\n finish();\n }\n }", "@Override\r\n\tprotected void onActivityResult(int arg0, int arg1, Intent arg2) {\n\t\tsuper.onActivityResult(arg0, arg1, arg2);\r\n\t\tif(arg0 == REQUEST_CODE_SUCCESS && arg1 == RESULT_OK){\r\n\t\t\tthis.finish();\r\n\t\t}\r\n\t}", "@Override\n protected void onReceiveResult(int resultCode, Bundle resultData)\n {\n if (resultCode == Constants.SUCCESS_RESULT) {\n //showToast(getString(R.string.address_found));\n }\n\n }", "@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tif (requestCode == ACTION_WEB_VIEW) {\n\t\t\ttry {\n\t\t\t\t\n\t\t\t\t//Log.i(\">>>>>>ON ACTIVITY RESULT<<<<<\", \"This is Test for On ActivityResult\");\n\t\t\t\t\n\t\t\t\t//String jsonResponse=getIntent().getStringExtra(\"jsvalue\");\n\t\t\t\tCitrusGetWebClientJSResponse citrusGetWebClientJSResponse=new CitrusGetWebClientJSResponse(citrusSSLLibrary.getWebClientJsResponse());//optional\n\t\t\t\t authIdCode = citrusGetWebClientJSResponse.getAuthIdCode();\n\t\t\t\t TxId = citrusGetWebClientJSResponse.getTxId();\n\t\t\t\t TxStatus = citrusGetWebClientJSResponse.getTxStatus();\n\t\t\t\t pgTxnNo = citrusGetWebClientJSResponse.getPgTxnNo();\n\t\t\t\t issuerRefNo = citrusGetWebClientJSResponse.getIssuerRefNo();\n\t\t\t\t TxMsg = citrusGetWebClientJSResponse.getTxMsg();\n\t\t\t\t// Log.i(\">>>>>> RESULT IS <<<<<\", \"s\"+authIdCode+\" \"+TxId+\" \"+TxStatus);\n\t\t\t\t \n\t\t\t\t// Utils.log(\"Response\",\"is\"+TxMsg);\n\t\t\t\t \n\t\t\t\t /*authIdCode = \"064486\";\n\t\t\t\t TxId = \"DSSV000000004167NB\";\n\t\t\t\t TxStatus = \"SUCCESS\";\n\t\t\t\t pgTxnNo = \"201312991999\";\n\t\t\t\t issuerRefNo = \"201312991999\";\n\t\t\t\t TxMsg = \"Transaction Successful\";*/\n\t\t\t\t//authIdCode = citrusGetWebClientJSResponse.getAuthIdCode();\n\t\t\t\t//TxId = citrusGetWebClientJSResponse.getTxId();\n\t\t\t\t/*if(citrusGetWebClientJSResponse.get)\n\t\t\t\tmTranscationIdOrderId.setText(\"Transaction Number: \"+citrusGetWebClientJSResponse.getTranssactionId()+\" | Order Amount: \"+ citrusGetWebClientJSResponse.getAmount()+\" \"+citrusGetWebClientJSResponse.getCurrency());\n\t\t\t\tmTextMessage.setText(citrusGetWebClientJSResponse.getTxMsg());\n\t\t\t\tmTxRefNo.setText(citrusGetWebClientJSResponse.getTxRefNo());\n\t\t\t\tmTxStatus.setText(citrusGetWebClientJSResponse.getTxStatus());*/\n\t\t\t\t\n\t\t\t\t//getTransactionResponse = citrusGetWebClientJSResponse.getTxRefNo();\n\t\t\t\t\n\t\t\t\t/*Intent intent = new Intent(MakeMyPayments.this,\n\t\t\t\t\t\tTransResponse.class);\n\t\t\t\tintent.putExtra(\"jsvalue\", citrusSSLLibrary.getWebClientJsResponse());\n\t\t\t\tstartActivity(intent);\n\t\t\t\tMakeMyPayments.this.finish();*/\n\t\t\t\t \n\t\t\t\t InsertAfterPayemnt = new InsertAfterPayemnt();\n\t\t\t\t InsertAfterPayemnt.execute((String) null);\n\t\t\t\t \n\t\t\t\t \n\t\t\t} catch (Exception e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\n\t}", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (requestCode == 1) {\n if (resultCode == RESULT_OK) {\n this.finish();\n }\n }\n }", "@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\n\t\tif (requestCode == 333 && resultCode == RESULT_OK) {\n\t\t\tDtb_OneNewsObject c = (Dtb_OneNewsObject) data.getExtras().get(\n\t\t\t\t\t\"congviec\");\n\t\t\t// sua lai thong tin sqlite\n\t\t\tqlb.editNews(c);\n\t\t\t// hien thi lai tin\n\t\t\tdisplayDataUpListView();\n\t\t}\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\t}", "public void onActivityResult(int requestCode, int resultCode, Intent intent) {\n Log.d(LOG_TAG, \"onActivityResult\");\n if (resultCode == Activity.RESULT_OK) {\n Log.d(LOG_TAG, \"requestCode: \" + requestCode);\n switch (requestCode) {\n case 300:\n AdobeSelection selection = getSelection(intent);\n\n Intent data = new Intent();\n data.putExtras(intent);\n setResult(Activity.RESULT_OK,data);\n finish();\n\n break;\n }\n } else if (resultCode == Activity.RESULT_CANCELED) {\n //this.callbackContext.error(\"Asset Browser Canceled\");\n Log.d(LOG_TAG, \"Asset Browser Canceled\");\n finish();\n }\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n\n if (requestCode == REQUEST_CODE_LOGIN) {\n if (resultCode == RESULT_OK) {\n Intent mainIntent = new Intent(getApplicationContext(), MainActivity.class);\n startActivity(mainIntent);\n } else {\n String action = getApplicationContext().getResources().getString(R.string.message_action_failure, \"login\");\n Toast.makeText(this, action, Toast.LENGTH_SHORT).show();\n }\n }\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (!mHelper.handleActivityResult(requestCode, resultCode, data)) {\n // not handled, so handle it ourselves (here's where you'd\n // perform any handling of activity results not related to in-app\n // billing...\n super.onActivityResult(requestCode, resultCode, data);\n }\n else {\n// System.out.println(\"onActivityResult handled by IABUtil.\");\n }\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n\n // Check that the result was from the autocomplete widget.\n if (requestCode == REQUEST_CODE_AUTOCOMPLETE) {\n if (resultCode == RESULT_OK) {\n // Get the user's selected place from the Intent.\n Place place = PlaceAutocomplete.getPlace(this, data);\n Log.i(LOG_TAG, \"Place Selected: \" + place.getName());\n\n if(place!=null) {\n setMarkerPosition(place.getLatLng());\n if (tvLokasiUsaha != null) {\n tvLokasiUsaha.setText(place.getAddress());\n } else {\n tvLokasiUsaha.setText(\"\");\n }\n }\n\n } else if (resultCode == PlaceAutocomplete.RESULT_ERROR) {\n Status status = PlaceAutocomplete.getStatus(this, data);\n Log.e(LOG_TAG, \"Error: Status = \" + status.toString());\n } else if (resultCode == RESULT_CANCELED) {\n // Indicates that the activity closed before a selection was made. For example if\n // the user pressed the back button.\n }\n }\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent returnData) {\n\n // Remove loading image\n loadingGIF.setVisibility(View.GONE);\n\n if(resultCode == RESULT_OK && requestCode == REQUEST_CODE_QAQC) {\n appData.Notify(\"Information\",\"File successfully saved.\", this);\n } else {\n appData.Notify(\"An error has occurred\",\"An error has occurred. Please check your file for any errors. Contact us for more information.\",this);\n }\n\n }", "public void onActivityResult(int requestCode, int resultCode, Intent data) {\n\n if (requestCode == 1001) {\n if (resultCode == getActivity().RESULT_OK) {\n //fetch the integer we passed into the dialog result which corresponds to the list position\n\n int nResult = data.getIntExtra(ResultsDialogActivity.POSITION, -99);\n\n\n if (nResult != -99) {\n try {\n mStrImageUrl = \"\";\n YelpResultsData.Business biz = mYelpResultsData.businesses.get(nResult);\n mNameField.setText(biz.name);\n mAddressField.setText(biz.location.address.get(0));\n mPhoneField.setText(PhoneNumberUtils.formatNumber(biz.phone));\n mYelpField.setText(biz.url);\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n fetchPhoto(mPhotoView);\n }\n }\n if (resultCode == getActivity().RESULT_CANCELED) {\n //do nothing\n }\n }\n }", "@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\n\t\tif (requestCode == 1234) {\n\t\t\tLog.d(\"inapp\", \"inapp\");\n\t\t\tif (resultCode == RESULT_OK) {\n\t\t\t\tsetResult(RESULT_OK);\n\t\t\t\tfinish();\n\t\t\t}\n\t\t}\n\n\t\tif (requestCode == 000) {\n\t\t\tLog.d(\"inapp\", \"inapp\");\n\t\t\tif (resultCode == RESULT_OK) {\n\t\t\t\tsetResult(RESULT_OK);\n\t\t\t\tfinish();\n\t\t\t}\n\t\t}\n\n\t\tif (requestCode == 111) {\n\t\t\tLog.d(\"inapp\", \"inapp\");\n\t\t\tif (resultCode == RESULT_OK) {\n\t\t\t\tsetResult(RESULT_OK);\n\t\t\t\tfinish();\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (requestCode == 789) {\n\t\t\tLog.d(\"inapp\", \"inapp\");\n\t\t\tif (resultCode == RESULT_OK) {\n\t\t\t\tsetResult(RESULT_OK);\n\t\t\t\tfinish();\n\t\t\t}\n\t\t}\n\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\t}", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent intent) {\n settingsManager.onActivityResult(requestCode, resultCode);\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n getApplications().getFacebookLoginManager().onActivityResult(requestCode, resultCode, data);\n super.onActivityResult(requestCode, resultCode, data);\n }", "@Override\n\tpublic void onActivityResult(int requestCode, int resultCode, Intent intent) {\n\t\t/*\n\t\t * returning from ZXing\n\t\t */\n\t\tif (requestCode == QR_INTENT_CODE) {\n\t\t\tif (resultCode == RESULT_OK) {\n\t\t\t\tRequestActivity.onQRScanned(this, intent);\n\t\t\t}\n\t\t}\n\t}", "@Override\n public void onActivityResult(int requestCode, int resultCode, Intent data) {\n\n super.onActivityResult(requestCode, resultCode, data);\n\n if (resultCode == Activity.RESULT_OK) {\n\n if (requestCode == REQUEST_CAMERA) {\n\n onCaptureImageResult(data);\n\n }\n\n }\n\n }", "@Override\n public void onSuccess(int arg0, Header[] arg1, byte[] arg2) {\n CustomDialog.closeProgressDialog();\n JSONObject jsonObject;\n try {\n postState = true;\n jsonObject = new JSONObject(new String(arg2));\n String code = (String) jsonObject.get(\"code\");\n String str = (String) jsonObject.get(\"retinfo\");\n if (Constant.RESULT_CODE.equals(code)) {\n CustomToast.showShortToast(mContext, str);\n Intent i = new Intent();\n i.putExtra(\"flage\", true);\n setResult(2016, i);\n CrmVisitorSignAddInfoActivity.this.finish();\n } else {\n CustomToast.showShortToast(mContext, str);\n }\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }", "@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tswitch (requestCode) {\n\t\tcase 0:\n\t\t\tif (resultCode != Activity.RESULT_OK || data == null) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tfinal String code = data.getStringExtra(FIELD_NAME_CODE);\n\t\t\tfinal String state = data.getStringExtra(FIELD_NAME_STATE);\n\t\t\tif (code != null) {\n\t\t\t\tThread th = new Thread(new Runnable() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\tgetAccessTokenFromGoogle(code);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t});\n\t\t\t\tth.start();\n\t\t\t} else {\n\t\t\t\tToast.makeText(this, \"�ڵ� ȹ�� ����\", Toast.LENGTH_SHORT).show();\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\t}", "@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\t\tif (requestCode == 01 && resultCode == 01) {\n\t\t\tif (homeFragment != null) {\n\t\t\t\thomeFragment.onActivityResult(requestCode, resultCode, data);\n\t\t\t}\n\t\t}\n\t\tif (requestCode == 02 && resultCode == 02) {\n\t\t\tif (cartFragment != null) {\n\t\t\t\tcartFragment.onActivityResult(requestCode, resultCode, data);\n\t\t\t}\n\t\t}\n\t\tif (requestCode == 03 && resultCode == 03) {\n\t\t\tif (memberFragment != null) {\n\t\t\t\tmemberFragment.onActivityResult(requestCode, resultCode, data);\n\t\t\t}\n\t\t}\n\t\tif (requestCode == 04 && resultCode == 04) {\n\t\t\tif (mycenterFragment != null) {\n\t\t\t\tmycenterFragment\n\t\t\t\t\t\t.onActivityResult(requestCode, resultCode, data);\n\t\t\t}\n\t\t}\n\t}", "@Override\r\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\r\n //jika image picker membawa sebuah data berupa foto maka\r\n if (ImagePicker.shouldHandle(requestCode, resultCode, data)) {\r\n //ambil data foto yang dipilih\r\n Image image = ImagePicker.getFirstImageOrNull(data);\r\n //ambil path/lokasi dari foto/gambar yang dipilih\r\n File imgFile = new File(image.getPath());\r\n if (imgFile.exists()) {\r\n //convert path ke bitmap dan tampilkan pada imageview\r\n Bitmap myBitmap = BitmapFactory.decodeFile(imgFile.getAbsolutePath());\r\n imgTranscript.setImageBitmap(myBitmap);\r\n\r\n //set variabel change true karena gambar telah diupdate\r\n isPicChange = true;\r\n }\r\n }\r\n\r\n super.onActivityResult(requestCode, resultCode, data);\r\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n IntentResult result = IntentIntegrator.parseActivityResult(requestCode, resultCode, data);\n if (result != null) {\n if (result.getContents() == null) {\n Log.d(\"MainActivity\", \"Cancelled scan\");\n makeToast(this, \"Cancelado\");\n } else {\n Log.d(\"MainActivity\", \"Scanned\");\n makeToast(this, \"Contactando con Salesforce, ISBN: \" + result.getContents());\n scanResult = result.getContents();\n\n if (scanResult != null) {\n try {\n getProducto(scanResult);\n } catch (Exception e) {\n Log.e(\"RequestError\", e.toString());\n makeToast(this, \"Ha ocurrido un error, intente nuevamente...\");\n } finally {\n sfResult = null;\n }\n }\n }\n } else {\n Log.d(\"MainActivity\", \"Weird\");\n // This is important, otherwise the result will not be passed to the fragment\n super.onActivityResult(requestCode, resultCode, data);\n }\n }", "@Override\n\tpublic void onActivityResult( int requestCode, \n\t\t\tint resultCode, Intent mIntent ) {\n\t\tif( requestCode == 0 && resultCode == 0 ) {\n\t\t\tBundle mBundle = mIntent.getExtras();\n\t\t\tString strResult = mBundle.getString(\"city\");\n\t\t\t\n\t\t\tEditText etCity = (EditText) findViewById( R.id.et_input_city_register);\n\t\t\tetCity.setText(strResult);\n\n\t\t}\n\t}", "@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\tsetContentView(R.layout.result);\r\n\t\t//设置标题\r\n\t\tsetTitle(\"注册成功\");\r\n\t\t//接收数据\r\n\t\tIntent intent=this.getIntent();\r\n\t\tBundle bundle=intent.getBundleExtra(\"info\");\r\n\t\tString strUsername=bundle.getString(\"username\");\r\n\t\tString strMail=bundle.getString(\"mail\");\r\n\t\tString strFrom=bundle.getString(\"from\");\r\n\t\tString strNotify=bundle.getBoolean(\"notify\")? \"是\":\"否\";\r\n\t\tString strSex=bundle.getInt(\"sexFlag\") ==0 ? \"男\":\"女\";\r\n\t\t\r\n\t\tTextView username=(TextView) findViewById(R.id.username);\r\n\t\tusername.setText(strUsername);\r\n\t\tTextView mail=(TextView) findViewById(R.id.mail);\r\n\t\tmail.setText(strMail);\r\n\t\tTextView from=(TextView) findViewById(R.id.from);\r\n\t\tfrom.setText(strFrom);\r\n\t\tTextView notify=(TextView) findViewById(R.id.notify);\r\n\t\tnotify.setText(strNotify);\r\n\t\tTextView sex=(TextView) findViewById(R.id.sex);\r\n\t\tsex.setText(strSex);\r\n\t\tButton doneBt=(Button) findViewById(R.id.done);\r\n\t\tdoneBt.setOnClickListener(new OnClickListener() {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View arg0) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tResultActivity.this.finish();\r\n\t\t\t}\r\n\t\t});\r\n\t}", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (requestCode == RC_SIGN_IN) {\n GoogleSignInResult result = Auth.GoogleSignInApi.getSignInResultFromIntent(data);\n\n System.out.println(\"result status code\" + result.getStatus());\n if (result.isSuccess()) {\n onSucessGoogleLogin(result);\n\n } else {\n // Google Sign In failed, update UI appropriately\n Utility.logData(\"Login unsuccessful\");\n Utility.showShortToast(\"Login unsuccessful\");\n }\n\n }\n super.onActivityResult(requestCode, resultCode, data);\n }", "@Override\n public void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n if (resultCode == Activity.RESULT_OK) {\n if (requestCode == 1) {\n onSelectDocumentResult(data);\n } else if (requestCode == SELECT_GALLERY_PIC_FILE) {\n onSelectFromGalleryResult(data);\n } else if (requestCode == REQUEST_CAMERA_PIC_FILE) {\n onCaptureImageResult(data);\n }\n }\n }", "@Override\n public void handleResult(Result result) {\n Log.w(\"handleResult\", result.getText());\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"Scan result\");\n builder.setMessage(result.getText());\n AlertDialog alertDialog = builder.create();\n alertDialog.show();\n\n\n //Resume scanning\n //mScannerView.resumeCameraPreview(this);\n }", "@Override\n protected void onActivityResult(\n int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n switch(requestCode) {\n case REQUEST_GOOGLE_PLAY_SERVICES:\n if (resultCode != RESULT_OK) {\n mOutputText.setText(\n \"This app requires Google Play Services. Please install \" +\n \"Google Play Services on your device and relaunch this app.\");\n } else {\n getResultsFromApi();\n }\n break;\n case REQUEST_ACCOUNT_PICKER:\n if (resultCode == RESULT_OK && data != null &&\n data.getExtras() != null) {\n String accountName =\n data.getStringExtra(AccountManager.KEY_ACCOUNT_NAME);\n if (accountName != null) {\n\n\n userId = accountName;\n //save User Email Id\n SharedPreferences mPrefs = getSharedPreferences(\"label\", 0);SharedPreferences.Editor mEditor = mPrefs.edit();mEditor.putString(\"UserId\", userId).apply();\n\n SharedPreferences settings =\n getPreferences(Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = settings.edit();\n editor.putString(PREF_ACCOUNT_NAME, accountName);\n editor.apply();\n mCredential.setSelectedAccountName(accountName);\n getResultsFromApi();\n }\n }\n break;\n case REQUEST_AUTHORIZATION:\n if (resultCode == RESULT_OK) {\n getResultsFromApi();\n }\n break;\n }\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (resultCode == RESULT_OK && requestCode == REQUEST_CODE) {\n \t settings_params = data.getExtras().getString(\"api_params\");\n Toast.makeText(this, settings_params,\n Toast.LENGTH_LONG).show();\n\n }\n \n }", "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tif(isSuccesfull()){\r\n\t\t\t\t\tIntent intent=new Intent();\r\n\t\t\t\t\tintent.putExtra(\"region\", regionText);\r\n\t\t\t\t\tintent.putExtra(\"tree\", treeText);\r\n\t\t\t\t\tintent.putExtra(\"ar\", iar);\r\n\t\t\t\t\tintent.putExtra(\"db\", idb);\r\n\t\t\t\t\tintent.putExtra(\"dm\", idm);\r\n\t\t\t\t\tintent.putExtra(\"dw\", idw);\r\n\t\t\t\t\tintent.putExtra(\"de\", ide);\r\n\t\t\t\t\tintent.putExtra(\"calV\", Calculate.CalV(transformStringToInt(regionText), transformStringToInt(treeText), idb, idm, idw, ide, iar));\r\n\t\t\t\t\tsetResult(RESULT_OK, intent);\r\n\t\t\t\t\tfinish();\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tAlertDialog.Builder builder=new AlertDialog.Builder(InputDialog.this);\r\n\t\t\t\t\tbuilder.setTitle(R.string.app_name).setNegativeButton(\"知道了\", new DialogInterface.OnClickListener() {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\r\n\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\t \r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}).setMessage(\"请按规定输入\");\r\n\t\t\t\t\tDialog dialog=builder.create();\r\n\t\t\t\t\tdialog.show();\r\n\t\t\t\t}\r\n\t\t\t}" ]
[ "0.8545473", "0.8435956", "0.817456", "0.7962317", "0.7908593", "0.7858017", "0.7855952", "0.7733272", "0.77091277", "0.7638681", "0.7638681", "0.7593366", "0.7593366", "0.7593366", "0.7539356", "0.75309753", "0.7477154", "0.7472997", "0.72836554", "0.72391057", "0.7201195", "0.71709275", "0.7131861", "0.7128657", "0.7057414", "0.7042027", "0.7039261", "0.7037289", "0.70114744", "0.7000511", "0.6960692", "0.6933096", "0.69058883", "0.6863111", "0.6861176", "0.6852145", "0.68094045", "0.680843", "0.679855", "0.67979455", "0.67783105", "0.6773421", "0.6769094", "0.6751666", "0.6744748", "0.67385453", "0.67370373", "0.6729091", "0.6719233", "0.67168164", "0.67153776", "0.6703089", "0.66925174", "0.66867775", "0.66615033", "0.66564727", "0.6641338", "0.66321", "0.6630271", "0.6625129", "0.66223645", "0.66193944", "0.66141176", "0.6613171", "0.6610803", "0.6610099", "0.66050106", "0.6590808", "0.65796626", "0.6578071", "0.6552042", "0.65498143", "0.6540242", "0.65257215", "0.65233314", "0.65164274", "0.65137005", "0.64933693", "0.64911574", "0.64866877", "0.6476932", "0.647053", "0.6469465", "0.6464747", "0.6462854", "0.6453949", "0.64518124", "0.6450715", "0.64505386", "0.6448137", "0.64292526", "0.6421358", "0.6406068", "0.6404566", "0.6398389", "0.6391938", "0.63871455", "0.63806534", "0.63793945", "0.6379026" ]
0.66944003
52
EFFECTS: returns JSON representation of tag
public static JSONObject tagToJson(Tag tag) { JSONObject tagJson = new JSONObject(); tagJson.put("name", tag.getName()); return tagJson; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String tagAsString();", "@JsonGetter(\"tag\")\r\n public String getTag() {\r\n return tag;\r\n }", "public NBTTagCompound writeToNBT(NBTTagCompound tag)\r\n/* 158: */ {\r\n/* 159:159 */ tag.setByte(\"Id\", (byte)getID());\r\n/* 160:160 */ tag.setByte(\"Amplifier\", (byte)getAmplifier());\r\n/* 161:161 */ tag.setInt(\"Duration\", getDuration());\r\n/* 162:162 */ tag.setBoolean(\"Ambient\", getAmbient());\r\n/* 163:163 */ tag.setBoolean(\"ShowParticles\", getShowParticles());\r\n/* 164:164 */ return tag;\r\n/* 165: */ }", "public String getToTag();", "@JsonGetter(\"tags\")\n public Object getTags ( ) { \n return this.tags;\n }", "@JsonGetter(\"tags\")\n public String getTags ( ) { \n return this.tags;\n }", "public byte[] tag();", "public Object getTagValue(String tagName){\n\t\t\n\t\treturn getPicture().getMainDisplay().\n\t\t\tgetAnimationsHandler().getData(tagName);\n\t}", "String getJSON();", "String toJSON();", "public String getJson();", "@Override\n\tpublic JsonElement serialize(Dog src, Type typeOfT,\n\t\t\tJsonSerializationContext context) {\n\t\tJsonObject obj = new JsonObject();\n\t\tobj.addProperty(\"name\", src.name());\n\t\tobj.addProperty(\"ferocity\", src.ferocity());\n\t\treturn obj;\n\t}", "public String getAsJson() {\n StringBuffer sb = new StringBuffer();\n sb.append(\"{\\\"code\\\": \\\"\").append(this.code).append(\"\\\", \");\n sb.append(\"\\\"color\\\": \\\"\").append(this.color).append(\"\\\", \");\n\n /* Append a size only if the product has a Size */\n if (this.size.getClass() != NoSize.class) {\n sb.append(\"\\\"size\\\": \\\"\").append(this.size).append(\"\\\", \");\n }\n\n sb.append(\"\\\"price\\\": \").append(this.price).append(\", \");\n sb.append(\"\\\"currency\\\": \\\"\").append(this.currency).append(\"\\\"}, \");\n\n return sb.toString();\n }", "String getTag();", "public String getTag();", "public String getFromTag();", "@Path(\"/tags\")\n\t@GET\n\t@Produces(\"application/json\")\n\tpublic Response getTagsList() {\n\t\tList<String> tags = PhotoDB.getTags();\n\t\t\n\t\tGson gson = new Gson();\n\t\tString jsonText = gson.toJson(tags);\n\t\t\n\t\treturn Response.status(Status.OK).entity(jsonText).build();\n\t}", "public Object getTag(String tagName);", "String getJson();", "String getJson();", "String getJson();", "java.lang.String getTag();", "java.lang.String getTag();", "private String addEffect() {\n\t\t// One Parameter: EffectName\n\t\tStringBuilder tag = new StringBuilder();\n\t\ttag.append(\"|effect:\" + parameters[0]);\n\t\treturn tag.toString();\n\n\t}", "java.lang.String getMetadataJson();", "@Override\n\tpublic String onData() {\n\t\tMap<String, Object> mapObj = new HashMap<String, Object>();\n\t\tfor (BasicNameValuePair pair : pairs) {\n\t\t\tmapObj.put(pair.getName(), pair.getValue());\n\t\t}\n\t\tGson gson = new Gson();\n\t\tString json = gson.toJson(mapObj);\n\t\treturn json;\n\t}", "String evel_json_encode_event()\r\n\t {\r\n\t\tEVEL_ENTER();\r\n\t\t\r\n\t\tassert(event_domain == EvelHeader.DOMAINS.EVEL_DOMAIN_THRESHOLD_CROSSING);\r\n\t \r\n\t JsonObject obj = Json.createObjectBuilder()\r\n\t \t .add(\"event\", Json.createObjectBuilder()\r\n\t\t \t .add( \"commonEventHeader\",eventHeaderObject() )\r\n\t\t \t .add( \"thresholdCrossingAlert\",evelThresholdCrossingObject() )\r\n\t\t \t ).build();\r\n\r\n\t EVEL_EXIT();\r\n\t \r\n\t return obj.toString();\r\n\r\n\t }", "@Override\n\tprotected String toJSON()\n\t{\n\t\treturn getJSON(null);\n\t}", "public JsonElement serialize(hv paramhv, Type paramType, JsonSerializationContext paramJsonSerializationContext)\r\n/* 82: */ {\r\n/* 83:344 */ if (paramhv.g()) {\r\n/* 84:345 */ return null;\r\n/* 85: */ }\r\n/* 86:347 */ JsonObject localJsonObject1 = new JsonObject();\r\n/* 87:349 */ if (hv.b(paramhv) != null) {\r\n/* 88:350 */ localJsonObject1.addProperty(\"bold\", hv.b(paramhv));\r\n/* 89: */ }\r\n/* 90:352 */ if (hv.c(paramhv) != null) {\r\n/* 91:353 */ localJsonObject1.addProperty(\"italic\", hv.c(paramhv));\r\n/* 92: */ }\r\n/* 93:355 */ if (hv.d(paramhv) != null) {\r\n/* 94:356 */ localJsonObject1.addProperty(\"underlined\", hv.d(paramhv));\r\n/* 95: */ }\r\n/* 96:358 */ if (hv.e(paramhv) != null) {\r\n/* 97:359 */ localJsonObject1.addProperty(\"strikethrough\", hv.e(paramhv));\r\n/* 98: */ }\r\n/* 99:361 */ if (hv.f(paramhv) != null) {\r\n/* 100:362 */ localJsonObject1.addProperty(\"obfuscated\", hv.f(paramhv));\r\n/* 101: */ }\r\n/* 102:364 */ if (hv.g(paramhv) != null) {\r\n/* 103:365 */ localJsonObject1.add(\"color\", paramJsonSerializationContext.serialize(hv.g(paramhv)));\r\n/* 104: */ }\r\n/* 105:367 */ if (hv.h(paramhv) != null) {\r\n/* 106:368 */ localJsonObject1.add(\"insertion\", paramJsonSerializationContext.serialize(hv.h(paramhv)));\r\n/* 107: */ }\r\n/* 108: */ JsonObject localJsonObject2;\r\n/* 109:371 */ if (hv.i(paramhv) != null)\r\n/* 110: */ {\r\n/* 111:372 */ localJsonObject2 = new JsonObject();\r\n/* 112:373 */ localJsonObject2.addProperty(\"action\", hv.i(paramhv).a().b());\r\n/* 113:374 */ localJsonObject2.addProperty(\"value\", hv.i(paramhv).b());\r\n/* 114:375 */ localJsonObject1.add(\"clickEvent\", localJsonObject2);\r\n/* 115: */ }\r\n/* 116:378 */ if (hv.j(paramhv) != null)\r\n/* 117: */ {\r\n/* 118:379 */ localJsonObject2 = new JsonObject();\r\n/* 119:380 */ localJsonObject2.addProperty(\"action\", hv.j(paramhv).a().b());\r\n/* 120:381 */ localJsonObject2.add(\"value\", paramJsonSerializationContext.serialize(hv.j(paramhv).b()));\r\n/* 121:382 */ localJsonObject1.add(\"hoverEvent\", localJsonObject2);\r\n/* 122: */ }\r\n/* 123:385 */ return localJsonObject1;\r\n/* 124: */ }", "protected String toJSONFragment() {\n StringBuffer json = new StringBuffer();\n boolean first = true;\n if (isSetProductCategoryId()) {\n if (!first) json.append(\", \");\n json.append(quoteJSON(\"ProductCategoryId\"));\n json.append(\" : \");\n json.append(quoteJSON(getProductCategoryId()));\n first = false;\n }\n if (isSetProductCategoryName()) {\n if (!first) json.append(\", \");\n json.append(quoteJSON(\"ProductCategoryName\"));\n json.append(\" : \");\n json.append(quoteJSON(getProductCategoryName()));\n first = false;\n }\n if (isSetParent()) {\n if (!first) json.append(\", \");\n json.append(\"\\\"Parent\\\" : {\");\n Categories parent = getParent();\n\n\n json.append(parent.toJSONFragment());\n json.append(\"}\");\n first = false;\n }\n return json.toString();\n }", "protected abstract String getJSON(B bean);", "@Override\r\n\tpublic JSONObject getJSON() {\n\t\treturn tenses;\r\n\t}", "@Override\n public String toString() {\n return tags.toString();\n }", "java.lang.String getTagValue();", "public abstract String toJson();", "com.google.protobuf.ByteString\n getTagBytes();", "public String toJSON(){\n Map<String, Object> foo = new HashMap<String, Object>();\n foo.put(\"message\", \"Audit message generated\");\n foo.put(\"eventIndex\", index);\n foo.put(\"eventTimestamp\", Instant.now().toEpochMilli());\n try {\n // Convert the Map to JSON and send the raw JSON as the message.\n // The Audit appender formatter picks that json up and pubishes just the JSON to the topic\n return new ObjectMapper().writeValueAsString(foo);\n } catch (JsonProcessingException e) {\n // should never happen in this example\n throw new RuntimeException(\"impossible error \", e);\n }\n\n }", "public String toJSON() throws JSONException;", "TagResourceResult tagResource(TagResourceRequest tagResourceRequest);", "@Override\n final public String getTransform() {\n String transform = ScijavaGsonHelper.getGson(context).toJson(rt, RealTransform.class);\n //logger.debug(\"Serialization result = \"+transform);\n return transform;\n }", "@JsonSetter(\"tags\")\n public void setTags (Object value) { \n this.tags = value;\n }", "public native Object parse( Object json, String texturePath );", "public Map<String, Object> getTagMap();", "@Override\r\n public String toString() {\r\n return tagName;\r\n }", "public abstract String getTag();", "public String loadJSONFromAsset(Context context) {\n String json = null;\n try {\n InputStream is;\n int id = context.getResources().getIdentifier(\"sentiment\", \"raw\", context.getPackageName());\n is = context.getResources().openRawResource(id);\n\n int size = is.available();\n\n byte[] buffer = new byte[size];\n\n is.read(buffer);\n\n is.close();\n\n json = new String(buffer, \"UTF-8\");\n\n\n } catch (IOException ex) {\n ex.printStackTrace();\n return null;\n }\n return json;\n\n }", "public static String toString(final Object object, final String tagName) throws JSONException {\n StringBuilder sb = new StringBuilder();\n JSONArray ja;\n JSONObject jo;\n String string;\n\n if (object instanceof JSONObject) {\n\n // Prepend with tagName.\n if (tagName != null) {\n sb.append('<');\n sb.append(tagName);\n sb.append('>');\n }\n\n // Loop through the keys.\n jo = (JSONObject) object;\n for (final String key : jo.keySet()) {\n // Sanitize the key using restricted version of the XML spec.\n final String sanitizedKey = key.replaceFirst(invalidFirstCharacterRegex, \"\").replaceAll(invalidCharacterRegex, \"\");\n\n // Get the value; convert if not JSONObject.\n Object value = jo.get(key);\n if (value == null) {\n value = \"\";\n } else if (value.getClass().isArray()) {\n value = new JSONArray(value);\n }\n\n // Emit content in body.\n if (\"content\".equals(key)) {\n if (value instanceof JSONArray) {\n ja = (JSONArray) value;\n int i = 0;\n for (Object val : ja) {\n if (i > 0) {\n sb.append('\\n');\n }\n sb.append(escape(val.toString()));\n i++;\n }\n } else {\n sb.append(escape(value.toString()));\n }\n\n // Emit an array of similar keys.\n } else if (value instanceof JSONArray) {\n ja = (JSONArray) value;\n for (Object val : ja) {\n if (val instanceof JSONArray) {\n sb.append('<');\n sb.append(sanitizedKey);\n sb.append('>');\n sb.append(toString(val));\n sb.append(\"</\");\n sb.append(sanitizedKey);\n sb.append('>');\n } else {\n sb.append(toString(val, sanitizedKey));\n }\n }\n // Give us a />'d version of the tag if the value is empty.\n } else if (\"\".equals(value)) {\n sb.append('<');\n sb.append(sanitizedKey);\n sb.append(\"/>\");\n\n // Emit a new tag using the sanitized key.\n } else {\n sb.append(toString(value, sanitizedKey));\n }\n }\n\n // Close the tag if we must.\n if (tagName != null) {\n sb.append(\"</\");\n sb.append(tagName);\n sb.append('>');\n }\n\n // Return the XML string we've built.\n return sb.toString();\n }\n\n // If this is a JSONArray, create an array of elements.\n if (object != null && (object instanceof JSONArray || object.getClass().isArray())) {\n if (object.getClass().isArray()) {\n ja = new JSONArray(object);\n } else {\n ja = (JSONArray) object;\n }\n for (Object val : ja) {\n // XML does not have good support for arrays. If an array\n // appears in a place where XML is lacking, synthesize an\n // <array> element.\n sb.append(toString(val, tagName == null ? \"array\" : tagName));\n }\n // Return the XML string we've built.\n return sb.toString();\n }\n\n // If this is just a string, we've hit the bottom of the iterator and can\n // just write an element.\n string = (object == null) ? \"null\" : escape(object.toString());\n return (tagName == null) ? \"\\\"\" + string + \"\\\"\"\n : (string.length() == 0) ? \"<\" + tagName + \"/>\" : \"<\" + tagName\n + \">\" + string + \"</\" + tagName + \">\";\n }", "public abstract JsonElement serialize();", "private static ArrayList<JSONObject> getJsonTagSet(Task task) {\n ArrayList<JSONObject> myArray = new ArrayList<>();\n Set<Tag> myTags = task.getTags();\n for (Tag t : myTags) {\n JSONObject myOb = tagToJson(t);\n myArray.add(myOb);\n }\n return myArray;\n }", "@Override\r\n \tpublic JsonElement serialize(ItemStack src, Type typeOfSrc, JsonSerializationContext context)\r\n \t{\r\n \t\treturn erialize(src);\r\n \t}", "public Object getValue() {\n return tags.toString();\n }", "@NonNull\n public byte[] getTagData() {\n return mImpl.getTagData().toByteArray();\n }", "JSONObject toJson();", "JSONObject toJson();", "public List getTags();", "@Test\n public void canRepresentAsJson() throws Exception {\n final RtReleaseAsset asset = new RtReleaseAsset(\n new FakeRequest().withBody(\"{\\\"asset\\\":\\\"release\\\"}\"),\n release(),\n 1\n );\n MatcherAssert.assertThat(\n asset.json().getString(\"asset\"),\n Matchers.equalTo(\"release\")\n );\n }", "@Override\n\tpublic String toString() {\n\t\tString tagString = \"\";\n\t\tfor (String tag : tagToImg.keySet())\n\t\t\ttagString += tag + \"\\n\";\n\n\t\treturn tagString;\n\t}", "public String toJson() {\n if (text.length() != 0) {\n JsonBuilder result = new JsonBuilder();\n result.add(\"text\", text.toString());\n result.add(\"color\", chatColor.asBungee().getName());\n\n result.add(\"bold\", bold);\n result.add(\"italic\", italic);\n result.add(\"underlined\", underlined);\n result.add(\"strikethrough\", strikethrough);\n result.add(\"obfuscated\", obfuscated);\n\n if (!clickEvent.equals(ClickAction.NONE)) {\n if (customClickEvent) {\n result.addCustomClickEvent(clickEvent, clickEventValue);\n } else {\n result.addClickEvent(clickEvent, clickEventValue);\n }\n }\n\n if (!hoverEvent.equals(HoverAction.NONE)) {\n if (customHoverEvent) {\n result.addCustomHoverEvent(hoverEvent, hoverEventValue);\n } else {\n result.addHoverEvent(hoverEvent, hoverEventValue);\n }\n }\n\n return result.get();\n\n } else {\n return \"\";\n }\n }", "@JsonSetter(\"tag\")\r\n public void setTag(String tag) {\r\n this.tag = tag;\r\n }", "public String retrieveFilterAsJson() {\n return FilterMarshaller.toJson(getFilter());\n }", "@Override\n\tpublic String toJSON() {\n\t\t// TODO Auto-generated method stub\n\t\treturn null;\n\t}", "public abstract Object toJson();", "@GET\n @Produces(\"application/json\")\n public String getJson() {\n MultivaluedMap<String, String> params = context.getQueryParameters();\n String catId = params.getFirst(Propuesta.FIELDS.CATEGORYID);\n// MultivaluedMap<String, String> params = context.getQueryParameters();\n// for (String param : params.keySet()) {\n// String val = params.getFirst(param);\n// System.out.println(\"Param:\"+param+\", value:\"+val);\n// }\n //System.out.println(headers.getRequestHeader(HttpHeaders.AUTHORIZATION).get(0));\n return getProposalsJSON(catId);\n }", "public Object getTags() {\n return this.tags;\n }", "public String jsonify() {\n return gson.toJson(this);\n }", "@Override\n\tprotected void writeEntityToNBT(NBTTagCompound tag) {\n\t\ttag.setByte(\"Fuse\", (byte)this.fuse);\n\t\ttag.setByte(\"Variant\", (byte)this.variant);\n\t}", "void generateJSON(JSONObject object, String name);", "@Override\n @SuppressWarnings(\"unchecked\")\n public JSONObject toJSON() {\n JSONObject main = new JSONObject();\n JSONObject pocJSON = new JSONObject();\n pocJSON.put(JSON_NAME, this.getName());\n pocJSON.put(JSON_DESCRIPTION, this.getDescription());\n pocJSON.put(JSON_COLOR,this.colorConstraint.getColor().name());\n main.put(SharedConstants.TYPE, SharedConstants.PRIVATE_OBJECTIVE_CARD);\n main.put(SharedConstants.BODY,pocJSON);\n return main;\n }", "public String getTag() {\n return tag;\n }", "public String getTag() {\n return tag;\n }", "@AutoEscape\n\tpublic String getTagProperty();", "public String toJson() { return new Gson().toJson(this); }", "@JsonSetter(\"tags\")\n public void setTags (String value) { \n this.tags = value;\n }", "@Override\n public String toString()\n {\n return \"Tag \" + code;\n }", "public String getStandardTag();", "public abstract String toJsonString();", "String getTag() {\n return tag;\n }", "@GET\n @Produces(\"application/json\")\n public String getJson() {\n //TODO return proper representation object\n throw new UnsupportedOperationException();\n }", "String toJSONString(Object data);", "@Path(\"/productos\")\n @GET\n @Produces(MediaType.APPLICATION_JSON) //Por que una track si la aceptaba (ejemplo) pero un producto no?\n public String productos(){\n return test.getProductos().get(\"Leche\").toString();\n\n }", "@Override\n public String toString() {\n return jsonString;\n }", "public String toJSON(){\n Gson gson = new Gson();\n return gson.toJson(this);\n }", "public String getTag() {\r\n return tag;\r\n }", "@Override\n\tpublic String toJSON()\n\t{\n\t\tStringJoiner json = new StringJoiner(\", \", \"{\", \"}\")\n\t\t.add(\"\\\"name\\\": \\\"\" + this.name + \"\\\"\")\n\t\t.add(\"\\\"id\\\": \" + this.getId());\n\t\tString locationJSON = \"\"; \n\t\tif(this.getLocation() == null)\n\t\t{\n\t\t\tlocationJSON = null;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tlocationJSON = this.getLocation().toJSON(); \n\t\t}\n\t\tjson.add(\"\\\"location\\\": \" + locationJSON);\n\t\tStringJoiner carsJSON = new StringJoiner(\", \", \"[\", \"]\");\n\t\tfor(Object r : cars)\n\t\t{\n\t\t\tcarsJSON.add(((RollingStock) r).toJSON());\n\t\t}\n\t\tjson.add(\"\\\"cars\\\": \" + carsJSON.toString());\n\t\treturn json.toString(); \n\t}", "public String convert2json(DataSetInfo ds){\n String out = \"{\\n\";\n out += \"\\\"lags\\\" : \\\"\" + ds.getLags() + \"\\\",\\n\";\n out += \"\\\"derivative\\\" : \\\"\" + ds.getDerivative() + \"\\\",\\n\";\n out += \"\\\"classSize\\\" : \\\"\" + ds.getClassSize() + \"\\\"\\n\";\n out += \"}\\n\";\n return out;\n }", "@GET\n @Produces(MediaType.APPLICATION_JSON)\n public String getJson() {\n //TODO return proper representation object\n throw new UnsupportedOperationException();\n }", "@GET\n @Produces(MediaType.APPLICATION_JSON)\n public String getJson() {\n //TODO return proper representation object\n throw new UnsupportedOperationException();\n }", "@GET\n @Produces(MediaType.APPLICATION_JSON)\n public String getJson() {\n //TODO return proper representation object\n throw new UnsupportedOperationException();\n }", "public int tag () { return MyTag; }", "public String getTag() {\n return tag;\n }", "@Override\n public String toJson() {\n return \"{'content':'\" + this.content + \"'}\";\n }", "public void onTagsReceived(Map<String, Object> tags);", "@Override\r\n\tpublic void translateToJSON(ParsedJSONContainer jsonContainer) {\t\tjsonContainer.put(\"id\",getId());\r\n\t\tjsonContainer.put(\"labels\",getLabels());\r\n\t\tjsonContainer.put(\"version\",getVersion());\r\n\t}", "public StringBuilder getTags () {\n return tags;\n }", "public String getTag()\n {\n return this.tag;\n }", "@GET\n @Produces(MediaType.APPLICATION_JSON)\n public String getJSON() {\n throw new UnsupportedOperationException();\n }", "Map<String, String> tags();", "Map<String, String> tags();", "Map<String, String> tags();", "Map<String, String> tags();" ]
[ "0.5740857", "0.5719212", "0.56868684", "0.5644439", "0.55787516", "0.55665797", "0.5516389", "0.55112207", "0.54885834", "0.54861057", "0.5463646", "0.5449831", "0.5415627", "0.53618836", "0.5359099", "0.5356455", "0.53368694", "0.5299523", "0.5294087", "0.5294087", "0.5294087", "0.5224034", "0.5224034", "0.5206344", "0.5183564", "0.5166161", "0.5163943", "0.5149453", "0.5138336", "0.51313597", "0.5110821", "0.51077294", "0.5102985", "0.50997436", "0.50867647", "0.50681317", "0.5051614", "0.5046407", "0.50450456", "0.50142115", "0.5008581", "0.50061387", "0.4994924", "0.4986411", "0.49844694", "0.49662986", "0.49358785", "0.49274233", "0.49224293", "0.49215388", "0.49167696", "0.4913865", "0.491147", "0.491147", "0.4907801", "0.49073395", "0.490501", "0.490498", "0.4895609", "0.48864198", "0.48789555", "0.487156", "0.4871517", "0.48678952", "0.48602778", "0.4858816", "0.4849302", "0.4838111", "0.48359928", "0.48359928", "0.48331237", "0.48257202", "0.48040327", "0.47970766", "0.47967228", "0.47847167", "0.478419", "0.47828618", "0.47509956", "0.47487754", "0.47485265", "0.47467923", "0.4745621", "0.47348058", "0.4732317", "0.4730191", "0.4730191", "0.4730191", "0.47296125", "0.47286522", "0.47271332", "0.47205865", "0.47144714", "0.47107905", "0.4707163", "0.47058204", "0.47009495", "0.47009495", "0.47009495", "0.47009495" ]
0.53960717
13
EFFECTS: returns JSON representation of priority
public static JSONObject priorityToJson(Priority priority) { JSONObject priorityJson = new JSONObject(); priorityJson.put("important", priority.isImportant()); priorityJson.put("urgent", priority.isUrgent()); return priorityJson; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static JSONObject getJsonPriority(Task task) {\n Priority myPriority = task.getPriority();\n return priorityToJson(myPriority);\n }", "String getPriority();", "String getPriority();", "String getPriority();", "public int getPriority();", "public int getPriority();", "String getSpecifiedPriority();", "int getPriority();", "int getPriority();", "int getPriority();", "int getPriority();", "int getPriority();", "int getPriority();", "int getPriority();", "int getPriority();", "public abstract double getPriority();", "@JsonGetter(\"priority\")\r\n public String getPriority() {\r\n return priority;\r\n }", "public Priority getPriority();", "public int getPriority(){\n return priority;\n }", "int priority();", "int priority();", "public String getPriority() {\r\n return priority;\r\n }", "public Priority getPriority() ;", "public int getPriority() \n {\n return priority;\n }", "public int getPriority() \n {\n return priority;\n }", "public double getPriority() {\n\t\treturn priority;\n\t}", "public int getPriority(){\n return 2;\n }", "public abstract int priority();", "public abstract int getPriority();", "public abstract int getPriority();", "public abstract int getPriority();", "public String getPriority() {\n return priority;\n }", "public Integer getPriority() {\n return priority;\n }", "public Integer getPriority() {\n return priority;\n }", "public int getPriority() {\n return priority;\n }", "public int getPriority(){\n\t\treturn priority;\n\t}", "public int getPriority()\n {\n return priority;\n }", "@java.lang.Override\n public int getPriority() {\n return priority_;\n }", "@java.lang.Override\n public int getPriorityValue() {\n return priority_;\n }", "public Integer getPriority() {\n return priority;\n }", "public int getPriority() {\n return priority;\n }", "public int getPriority() {\n return priority;\n }", "public int getPriority() {\n return priority;\n }", "public int getPriority() {\n return priority;\n }", "public int getPriority() {\n return priority;\n }", "public int getPriority() {\n return priority;\n }", "public java.lang.Object getPriority() {\n return priority;\n }", "public int priority(){\n return 0; //TODO codavaj!!\n }", "int getPriority( int priority );", "public void generatePriority() {\n\t\tpriority = .25 * frequency + .25 * age + .25 * links + .25 * money;\n\t}", "public int getPriority() {\n return priority;\n }", "@Override\n public int getPriority() {\n return priority;\n }", "@Override\n public int getPriority() {\n return priority;\n }", "@java.lang.Override\n public int getPriority() {\n return priority_;\n }", "@Override\r\n\tpublic String toString() {\n\t\treturn \"Process priority=\" + priority + \", type=\" + type;\r\n\t}", "public int getPriority() {\n return this.priority;\n }", "@JsonSetter(\"priority\")\r\n public void setPriority(String priority) {\r\n this.priority = priority;\r\n }", "public int getPriority()\n\t{\n\treturn level;\n\t}", "public void setPriority(int priority){\n this.priority = priority;\n }", "public int getPriority(){\n\t\t\n\t\treturn this.priority;\n\t}", "public int getPriority() {\n\t\treturn priority;\n\t}", "public int getPriority() {\n\t\treturn priority;\n\t}", "public int getPriority() {\n\t\treturn priority;\n\t}", "public int getPriority() {\n\t\treturn priority;\n\t}", "@java.lang.Override\n public int getPriorityValue() {\n return priority_;\n }", "public String getPriority() {\n\t\treturn (String) get_Value(\"Priority\");\n\t}", "public void updatePriority(){\n\t\tpriority = (int) priority / 2;\n\t}", "default byte getPriority() {\n\t\treturn 0;\n\t}", "com.nhcsys.webservices.getmessages.getmessagestypes.v1.PriorityType xgetPriority();", "public final String getPriority() {\n return this.priority;\n }", "public BigDecimal getPriority() {\n\t\treturn priority;\n\t}", "@Override\r\n\tpublic int getPriority() {\n\t\treturn 0;\r\n\t}", "@Override\r\n\tpublic int getPriority() {\n\t\treturn 0;\r\n\t}", "public Priority getPriority() {\r\n return this.priority;\r\n }", "ResponseEntity<List<Priority>> findTaskPriorities();", "public void setPriority(String priority) {\r\n this.priority = priority;\r\n }", "public CodeableConcept priority() {\n return getObject(CodeableConcept.class, FhirPropertyNames.PROPERTY_PRIORITY);\n }", "public void setPriority(Priority priority);", "public int priority()\n\t{\n\t\treturn priority;\n\t}", "public int getPriority() {\n return this.mPriority;\n }", "@Override\n public int getPriority() {\n return 1;\n }", "public int getPriority()\n\t{\n\t\treturn mPriority;\n\t}", "@JsonProperty(\"priority\")\r\n @JacksonXmlProperty(localName = \"priority\", isAttribute = true)\r\n public String getPriority() {\r\n return priority;\r\n }", "public void setPriority(int priority) {\n this.priority = priority;\n }", "public void setPriority(int priority) {\n this.priority = priority;\n }", "public void setPriority(int priority){\n\t\tthis.priority = priority;\n\t}", "public void setPriority(Priority priority) {\r\n this.priority = priority;\r\n }", "public Priority getPriority() {\n\t\treturn priority;\n\t}", "@Override\n\tpublic TemplateEffect changePriority(int priority) {\n\t\treturn new TemplateEffect(labelTemplate, valueTemplate, type, priority);\t\n\t}", "com.nhcsys.webservices.getmessages.getmessagestypes.v1.PriorityType.Enum getPriority();", "@Override\r\n\tpublic int getPriority() throws NotesApiException {\n\t\treturn 0;\r\n\t}", "@Stub\n\tpublic int getPriority()\n\t{\n\t\treturn PRIO_DEFAULT;\n\t}", "public void setPriority(int data) {\n priority = data;\n }", "default int getPriority() {\n return 0;\n }", "public void setPriority(double priority) {\n\t\tthis.priority = priority;\n\t}", "@java.lang.Override\n public com.google.cloud.recommender.v1.Recommendation.Priority getPriority() {\n com.google.cloud.recommender.v1.Recommendation.Priority result =\n com.google.cloud.recommender.v1.Recommendation.Priority.forNumber(priority_);\n return result == null\n ? com.google.cloud.recommender.v1.Recommendation.Priority.UNRECOGNIZED\n : result;\n }", "private int getPriority(Order order) {\n if (order.getVip()) {\n return vipPriority;\n } else if (order.getFood()) {\n return foodPriority;\n } else {\n return otherPriority;\n }\n }", "public void setPriority(int value) {\n this.priority = value;\n }", "public void setPriority(java.lang.Object priority) {\n this.priority = priority;\n }", "@DISPID(3)\r\n\t// = 0x3. The runtime will prefer the VTID if present\r\n\t@VTID(9)\r\n\tint queuePriority();" ]
[ "0.67553777", "0.66723615", "0.66723615", "0.66723615", "0.6467086", "0.6467086", "0.6390393", "0.6351953", "0.6351953", "0.6351953", "0.6351953", "0.6351953", "0.6351953", "0.6351953", "0.6351953", "0.63476807", "0.6345672", "0.6309438", "0.62392163", "0.6238022", "0.6238022", "0.62357175", "0.6208733", "0.62019986", "0.6186748", "0.61752474", "0.61560416", "0.61519164", "0.61458075", "0.61458075", "0.61458075", "0.6129506", "0.61021346", "0.61021346", "0.609676", "0.6093639", "0.60493624", "0.60320884", "0.60125715", "0.60105973", "0.5999387", "0.5999387", "0.5999387", "0.5999387", "0.5999387", "0.5999387", "0.59975797", "0.5966139", "0.5962558", "0.5948519", "0.59484357", "0.5909791", "0.5909791", "0.5877557", "0.58436495", "0.58288294", "0.58135456", "0.58113176", "0.5811102", "0.5808722", "0.57959515", "0.57959515", "0.57959515", "0.57959515", "0.5774427", "0.5771938", "0.57701105", "0.5754391", "0.5753452", "0.5751261", "0.57368386", "0.57034725", "0.57034725", "0.57030636", "0.56979465", "0.567103", "0.56288123", "0.56248856", "0.5619089", "0.5608138", "0.5602555", "0.55945444", "0.55647224", "0.55546075", "0.55546075", "0.5536929", "0.55368227", "0.5524787", "0.55185133", "0.55156887", "0.5514429", "0.5513288", "0.54987115", "0.54958034", "0.54595107", "0.5456058", "0.5422717", "0.54083973", "0.5403948", "0.5398588" ]
0.62731427
18
EFFECTS: returns JSON respresentation of dueDate
public static JSONObject dueDateToJson(DueDate dueDate) { if (dueDate == null) { return null; } JSONObject dueDateJson = new JSONObject(); Date myDate = dueDate.getDate(); Calendar myCal = Calendar.getInstance(); myCal.setTime(myDate); dueDateJson.put("year", myCal.get(Calendar.YEAR)); dueDateJson.put("month", myCal.get(Calendar.MONTH)); dueDateJson.put("day", myCal.get(Calendar.DAY_OF_MONTH)); dueDateJson.put("hour", myCal.get(Calendar.HOUR_OF_DAY)); dueDateJson.put("minute", myCal.get(Calendar.MINUTE)); return dueDateJson; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static JSONObject getJsonDate(Task task) {\n DueDate myDueDate = task.getDueDate();\n return dueDateToJson(myDueDate);\n }", "public String getDueDate()\r\n {\r\n return dueDate;\r\n }", "public Date getDue() {\n return this.due;\n }", "Date getDueDate();", "Date getDueDate();", "public Calendar getDueDate(){\n return dueDate;\n }", "public LocalDate get_raw_due_date()\n {\n return task_due_date;\n }", "public LocalDate getDue() {\n return this.due;\n }", "public Date getDueDate() {\n\t\treturn date; //changed DaTe to date\r\n\t}", "public Date getDueDate() {\r\n\t\treturn dueDate;\r\n\t}", "public Date getDueDate() {\n\t\treturn dueDate;\n\t}", "public java.util.Date getDateDue() {\n return this.dateDue;\n }", "public void setDueDate(Date d){dueDate = d;}", "public void setDueDate(String dueDate) {\n }", "public Date getDateResponsed();", "public String get_task_due_date()\n {\n return task_due_date.toString();\n }", "@ApiModelProperty(required = true, value = \"payment order due date\")\n public DateTime getDueDate() {\n return dueDate;\n }", "@JsonFormat(pattern=\"yyyyMMddHHmmss\",timezone = \"GMT+8\")\n\tpublic Date getOverdueTs() {\n\t\treturn overdueTs;\n\t}", "public void setDueDate(String dueDate)\n {\n this.dueDate = dueDate;\n }", "@JsonGetter(\"dateCanceled\")\r\n public String getDateCanceled ( ) { \r\n return this.dateCanceled;\r\n }", "public String getDueDate() {\n\t\tDateFormat df = new SimpleDateFormat(\"MM-dd-yyyy\");\n\t\tif (dueDate != null) {\n\t\t\treturn df.format(dueDate);\t\t\t\n\t\t} else {\n\t\t\treturn null;\n\t\t}\t\n\t}", "@Override\n public String toString() {\n String strDate = \"null\";\n if (due != null) {\n strDate = DATE_FORMAT.format(due);\n }\n return\n \"\\\"\" + text + '\\\"' +\n \",\" + \"\\\"\" +completed +\"\\\"\"+\n \",\" +\"\\\"\"+ strDate + \"\\\"\"+\n \",\" + \"\\\"\"+ priority+ \"\\\"\" +\n \",\" + \"\\\"\"+category + \"\\\"\" +\n System.lineSeparator();\n }", "@javax.annotation.Nullable\n @ApiModelProperty(value = \"Due date for the document, use in conjunction with Auto Expire.\")\n @JsonIgnore\n\n public OffsetDateTime getDueDateField() {\n return dueDateField.orElse(null);\n }", "@Override\n public String toString() {\n return \"[D]\" + super.toString() + \"(by:\" + dueDate + \")\";\n }", "public void setDue(LocalDate due) {\n this.due = due;\n }", "public String getDate(){\n return date;\n }", "public String getDate()\n {\n SimpleDateFormat newDateFormat = new SimpleDateFormat(\"EE d MMM yyyy\");\n String MySDate = newDateFormat.format(this.dueDate);\n return MySDate;\n }", "public String getReturnDate();", "Date getInvoicedDate();", "public String getDate(){\n return date;\n }", "@Override\n public Date getDate() {\n return date;\n }", "public void setDateDue(java.util.Date dateDue) {\n this.dateDue = dateDue;\n }", "@JsonGetter(\"dateAdded\")\r\n public String getDateAdded ( ) { \r\n return this.dateAdded;\r\n }", "public void setDueDate(Date dueDate) {\r\n\t\tthis.dueDate = dueDate;\r\n\t}", "public String Get_date() \n {\n \n return date;\n }", "public String getDate(){\n\n return this.date;\n }", "public char getDueDate(){\n\t\treturn this.dueDate;\n\t}", "public Date getFechaInclusion()\r\n/* 150: */ {\r\n/* 151:170 */ return this.fechaInclusion;\r\n/* 152: */ }", "public static void dateDue() {\n Date date = new Date();\r\n SimpleDateFormat formatter = new SimpleDateFormat(\"dd/MM/yyyy\");\r\n String strDate = formatter.format(date);\r\n NewProject.due_date = getInput(\"Please enter the due date for this project(dd/mm/yyyy): \");\r\n\r\n UpdateData.updateDueDate();\r\n updateMenu();\t//Return back to previous menu.\r\n }", "@Override\n\tpublic List<String> getListDueDate() {\n\t\ttry{\n\t\t\t\n\t\t\tbegin();\n\t\t\tString sql = \"SELECT DISTINCT mo.O_DueDate\"\n\t\t\t\t\t+ \" FROM mOrders mo\"\n\t\t\t\t\t+ \"\tWHERE mo.O_Status_Code='\"+Constants.ORDER_STATUS_NOT_IN_ROUTE+\"' \"\n\t\t\t\t\t\t\t+ \"OR mo.O_Status_Code='\"+Constants.ORDER_STATUS_ARRIVED_BUT_NOT_DELIVERIED+\"'\"\n\t\t\t\t\t+ \" ORDER BY mo.O_DueDate ASC\";\n\t\t\tList<String> lstOrDate = getSession().createQuery(sql).list();\n\t\t\t//System.out.println(name()+\"::getListDueDate--lstOrDate: \"+lstOrDate.toString());\n\t\t\tcommit();\n\t\t\t\n\t\t\treturn lstOrDate;\n\t\t\t\n\t\t}catch(HibernateException e){\n\t\t\te.printStackTrace();\n\t\t\trollback();\n\t\t\tclose();\n\t\t\treturn null;\n\t\t}finally{\n\t\t\tflush();\n\t\t\tclose();\n\t\t}\n\t}", "public Date getDealingTime()\n/* */ {\n/* 159 */ return this.dealingTime;\n/* */ }", "public void setDueDate(Date dueDate) {\n\t\tthis.dueDate = dueDate;\n\t}", "public void setDueDate(Date dueDate) {\n\t\tthis.dueDate = dueDate;\n\t}", "String getCoverageExpirationDate(Record inputRecord);", "public String getDate() {\n return date;\n }", "java.lang.String getOrderDate();", "public Date getDepartureDate();", "public Date getRequestDate();", "@Override\n public int getDate() {\n return this.deadline.getDay();\n }", "public Calendar getReturnDate()\n {\n /*New Calendar for Return Date*/\n Calendar dueDate = Calendar.getInstance();\n\n /*Month is Current Month*/\n dueDate.set(today.MONTH, today.get(today.MONTH));\n /*Year is Current Year*/\n dueDate.set(today.YEAR, today.get(today.YEAR));\n /*Due Date is 21 Days Later*/\n dueDate.set(today.DATE, today.get(today.DATE + 21));\n\n return dueDate;\n }", "String getDueDateofTransmission(Long transmissionid);", "private void getDate() {\t// use the date service to get the date\r\n String currentDateTimeText = theDateService.getDateAndTime();\r\n this.send(currentDateTimeText);\r\n }", "public String getDateString(){\n return Utilities.dateToString(date);\n }", "@Override\n public LocalDate getReturnDate() {\n return returnDate;\n }", "private String formatDueDate(Date date) {\n\t\t//TODO locale formatting via ResourceLoader\n\t\t\n\t\tif(date == null) {\n\t\t\treturn getString(\"label.studentsummary.noduedate\");\n\t\t}\n\t\t\n\t\tSimpleDateFormat df = new SimpleDateFormat(\"dd/MM/yy\");\n \treturn df.format(date);\n\t}", "java.lang.String getDate();", "@Override\n public LocalDate getDate() {\n return null;\n }", "String getSpokenDateString(Context context) {\n int flags = DateUtils.FORMAT_SHOW_TIME | DateUtils.FORMAT_SHOW_DATE;\n return DateUtils.formatDateTime(context, mDeliveryTime, flags);\n }", "public IssueBuilderAbstract dueDate(Calendar dueDate){\n fieldDueDate = dueDate;\n return this;\n }", "@Override\n\tpublic Date getStatusDate();", "public CisaData withDateDue(java.util.Date dateDue) {\n setDateDue(dateDue);\n return this;\n }", "public String getPurchaseDate()\n {\n return purchaseDate;\n }", "public String getPayDue(){\n return payDue;\n }", "public String retornaData(){\n\t\tCalendar calendar = new GregorianCalendar();\n\t\tSimpleDateFormat df = new SimpleDateFormat(\"dd/MM/yyyy\");\n\t\tDate date = new Date();\n\t\tcalendar.setTime(date);\n\t\treturn df.format(calendar.getTime());\n\t}", "public Date getDeadlineDate() {\r\n return deadlineDate;\r\n }", "public int getDate(){\n return date;\n }", "public String getDate() {\r\n return date;\r\n }", "public String getDate() {\n return date;\n }", "public String getDate() {\n return date;\n }", "public String getDate() {\n return date;\n }", "public String getDate() {\n return date;\n }", "public String getDate() {\n return date;\n }", "public LocalDate getDateOfPurchase() {\n return dateOfPurchase;\n }", "public String getDate(){ return this.start_date;}", "@gw.internal.gosu.parser.ExtendedProperty\n public java.util.Date getEffectiveDate();", "public int getDueDatePriority(){\n\t return duedate_priority;\n\t}", "public String getDate(){\n\t\treturn toString();\n\t}", "public LocalDate getDate() {\n return date;\n }", "public String getDate() {\n return this.date;\n }", "public String getDate() {\n return this.date;\n }", "public String getEmotionDate() {\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss\", Locale.CANADA);\n return dateFormat.format(emotionDate);\n }", "protected String getRentDateString() { return \"\" + dateFormat.format(this.rentDate); }", "String getDate();", "String getDate();", "@Override\n\tpublic java.util.Date getStatusDate() {\n\t\treturn _scienceApp.getStatusDate();\n\t}", "@Override\n public Date getManufactureDate() {\n return manufacturedOn;\n }", "@FXML\r\n\tString getDate() {\r\n\t\t\tLocalDate creditCardExpiryDate = dpCreditCardExpiryDate.getValue();\r\n\t\t\tDateTimeFormatter formattedExpiryDate = DateTimeFormatter.ofPattern(\"yyyy-MM-dd\");\r\n\t\t\treturn formattedExpiryDate.format(creditCardExpiryDate);\r\n\t}", "@Override\n\tpublic Date getStatusDate() {\n\t\treturn model.getStatusDate();\n\t}", "public List<Map<String, Object>> getSubscriptionsDueForBilling();", "@Override\r\n public String toString()\r\n {\r\n return taskName + \",\" + dueDate + \"\";\r\n }", "public String getMyDatePosted() {\n SimpleDateFormat format = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'\", Locale.US);\n try {\n Date date = format.parse(myDatePosted);\n Calendar cal = Calendar.getInstance();\n cal.setTime(date);\n cal.add(Calendar.HOUR, -7);\n Date temp = cal.getTime();\n format.applyPattern(\"MMM dd, yyyy hh:mm a\");\n return format.format(temp);\n } catch (ParseException e) {\n return myDatePosted;\n }\n }", "Date getRequestedAt();", "String getCloseDate();", "public LocalDate getViewDate();", "public LocalDate GetFechaActual() throws RemoteException;", "public String getReturningDate() {\r\n return returningDate;\r\n }", "public Date getDueDate(String s){\r\n Date today = new Date();\r\n if (dueDate.after(today)){\r\n\r\n System.out.println(s);\r\n }\r\n return dueDate;\r\n }", "public String getBorrowStatement(int dueInDays)\r\n\t{\n\t\treturn \"The item \"+title+\" costs $\"+fee+\" and is due on: \"+ new DateTime(dueInDays).getFormattedDate();\r\n\t}", "public String getDate(){\n return mDate;\n }", "public int getDate() {\n return date ;\n }" ]
[ "0.69587445", "0.6670341", "0.65565497", "0.6514107", "0.6514107", "0.640204", "0.6322109", "0.6310993", "0.6294984", "0.6275303", "0.62281597", "0.61862016", "0.61111385", "0.609561", "0.6063883", "0.60506237", "0.6034223", "0.595518", "0.59416366", "0.5936964", "0.59295946", "0.59262615", "0.5873632", "0.583891", "0.5791438", "0.5703804", "0.57033116", "0.5703013", "0.56990975", "0.5646392", "0.5593926", "0.55893564", "0.55740184", "0.5533297", "0.5529358", "0.5512173", "0.55002105", "0.5489083", "0.5480173", "0.5452785", "0.5438057", "0.5437761", "0.5437761", "0.54328585", "0.5427303", "0.541863", "0.54185545", "0.54153407", "0.5412617", "0.5403311", "0.53929186", "0.5391106", "0.5390577", "0.53857243", "0.5378655", "0.5373129", "0.537248", "0.5359467", "0.5358374", "0.53525794", "0.53475374", "0.53409404", "0.53383416", "0.5313066", "0.5302589", "0.5300611", "0.52988374", "0.5293909", "0.5293909", "0.5293909", "0.5293909", "0.5293909", "0.52932346", "0.5283327", "0.52831", "0.5280559", "0.52684563", "0.52648574", "0.52642065", "0.52642065", "0.52601457", "0.5259092", "0.52322245", "0.52322245", "0.52319264", "0.5228814", "0.52284414", "0.5227525", "0.5223641", "0.5220898", "0.521734", "0.5216212", "0.5213408", "0.52126086", "0.52124774", "0.5205925", "0.5204758", "0.52041185", "0.5201981", "0.5197843" ]
0.6674537
1
EFFECTS: returns JSON representation of task
public static JSONObject taskToJson(Task task) { JSONObject taskJson = new JSONObject(); taskJson.put("description", task.getDescription()); taskJson.put("tags", getJsonTagSet(task)); if (getJsonDate(task) == null) { taskJson.put("due-date", JSONObject.NULL); } else { taskJson.put("due-date", getJsonDate(task)); } taskJson.put("priority", getJsonPriority(task)); taskJson.put("status", getStatus(task)); return taskJson; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public String getTask(String id) {\n JSONObject response = new JSONObject();\n try {\n ITaskInstance task = dataAccessTosca.getTaskInstance(id);\n if (task != null) {\n //get the belonging work item\n List<IWorkItem> workItem = dataAccessTosca.getWorkItems(id);\n //get the presentationDetails\n JSONObject presentation = new JSONObject();\n presentation.put(\"title\", task.getPresentationName());\n presentation.put(\"subject\", task.getPresentationSubject());\n presentation.put(\"description\", task.getPresentationDescription());\n //get inputParameters\n Set<IInputParameter> inputParameters = dataAccessTosca.getInputParametersByTask(task.getId());\n\n //get outputParameters\n Set<IOutputParameter> outputParameters = dataAccessTosca.getOutputParametersByTask(task.getId());\n //put information in response\n response.put(\"id\", task.getId());\n response.put(\"name\", task.getName());\n JSONArray taskTypes = new JSONArray();\n taskTypes.addAll(dataAccessTosca.getTaskTypeByTask(task.getId()));\n response.put(\"taskTypes\", taskTypes);\n response.put(\"priority\", task.getPriority());\n response.put(\"status\", task.getStatus().name().toLowerCase());\n if (workItem.get(0).getAssignee() != null) {\n response.put(\"claimedBy\", workItem.get(0).getAssignee().getUserId());\n }\n response.put(\"presentationDetails\",presentation);\n if (inputParameters != null) {\n JSONArray inputs = new JSONArray();\n for (IInputParameter input : inputParameters) {\n JSONObject i = new JSONObject();\n i.put(\"label\", input.getLabel());\n i.put(\"value\", input.getValue());\n inputs.add(i);\n }\n response.put(\"inputParameters\", inputs);\n }\n if (outputParameters != null) {\n JSONArray outputs = new JSONArray();\n for (IOutputParameter output : outputParameters) {\n JSONObject i = new JSONObject();\n i.put(\"label\", output.getLabel());\n i.put(\"value\", output.getValue());\n outputs.add(i);\n }\n response.put(\"outputParameters\",outputs);\n }\n\n return response.toString();\n }\n } catch (DatabaseException e) {\n e.printStackTrace();\n }\n return null;\n }", "public interface JsonTask extends Task {\n}", "@GET(\"/task/.json\")\n Call<Map<String, Task>> getAllTasks();", "public Task getTask() { return task; }", "@Override\n public String getAllTaskTaskType(String typeId) {\n try {\n Set<ITaskInstance> allTasks = dataAccessTosca.getTasksByTaskType(typeId);\n JSONArray fullResponse = new JSONArray();\n //if allTasks is null, then no tasks for this user was found\n if (allTasks != null) {\n // create a JSON-Object for every task and add it to fullresponse\n for (ITaskInstance task : allTasks) {\n JSONObject response = new JSONObject();\n //get the belonging work item\n List<IWorkItem> workItem = dataAccessTosca.getWorkItems(task.getId());\n //get the presentationDetails\n JSONObject presentation = new JSONObject();\n presentation.put(\"title\", task.getPresentationName());\n presentation.put(\"subject\", task.getPresentationSubject());\n presentation.put(\"description\", task.getPresentationDescription());\n //get inputParameters\n Set<IInputParameter> inputParameters = dataAccessTosca.getInputParametersByTask(task.getId());\n\n //get outputParameters\n Set<IOutputParameter> outputParameters = dataAccessTosca.getOutputParametersByTask(task.getId());\n //put information in response\n response.put(\"id\", task.getId());\n response.put(\"name\", task.getName());\n JSONArray taskTypes = new JSONArray();\n taskTypes.addAll(dataAccessTosca.getTaskTypeByTask(task.getId()));\n response.put(\"taskTypes\", taskTypes);\n response.put(\"priority\", task.getPriority());\n response.put(\"status\", task.getStatus().name().toLowerCase());\n if (workItem.get(0).getAssignee() != null) {\n response.put(\"claimedBy\", workItem.get(0).getAssignee().getUserId());\n }\n response.put(\"presentationDetails\",presentation);\n if (inputParameters != null) {\n JSONArray inputs = new JSONArray();\n for (IInputParameter input : inputParameters) {\n JSONObject i = new JSONObject();\n i.put(\"label\", input.getLabel());\n i.put(\"value\", input.getValue());\n inputs.add(i);\n }\n response.put(\"inputParameters\", inputs);\n }\n if (outputParameters != null) {\n JSONArray outputs = new JSONArray();\n for (IOutputParameter output : outputParameters) {\n JSONObject i = new JSONObject();\n i.put(\"label\", output.getLabel());\n i.put(\"value\", output.getValue());\n outputs.add(i);\n }\n response.put(\"outputParameters\",outputs);\n }\n fullResponse.add(response);\n }\n return fullResponse.toString();\n }\n } catch (DatabaseException e) {\n e.printStackTrace();\n }\n return null;\n }", "private static JSONObject getJsonPriority(Task task) {\n Priority myPriority = task.getPriority();\n return priorityToJson(myPriority);\n }", "public abstract String[] formatTask();", "private static JSONObject getJsonDate(Task task) {\n DueDate myDueDate = task.getDueDate();\n return dueDateToJson(myDueDate);\n }", "public String getTask(){\n\treturn task;\n}", "public String getTask() {\n return task;\n }", "public String getTask() {\n return task;\n }", "@Override\n public String getAllTaskUser(String userId) {\n try {\n Set<ITaskInstance> allTasks = dataAccessTosca.getTasksByUser(userId);\n JSONArray fullResponse = new JSONArray();\n //if allTasks is null, then no tasks for this user was found\n if (allTasks != null) {\n // create a JSON-Object for every task and add it to fullresponse\n for (ITaskInstance task : allTasks) {\n JSONObject response = new JSONObject();\n //get the belonging work item\n List<IWorkItem> workItem = dataAccessTosca.getWorkItems(task.getId());\n //get the presentationDetails\n JSONObject presentation = new JSONObject();\n presentation.put(\"title\", task.getPresentationName());\n presentation.put(\"subject\", task.getPresentationSubject());\n presentation.put(\"description\", task.getPresentationDescription());\n //get inputParameters\n Set<IInputParameter> inputParameters = dataAccessTosca.getInputParametersByTask(task.getId());\n\n //get outputParameters\n Set<IOutputParameter> outputParameters = dataAccessTosca.getOutputParametersByTask(task.getId());\n //put information in response\n response.put(\"id\", task.getId());\n response.put(\"name\", task.getName());\n JSONArray taskTypes = new JSONArray();\n taskTypes.addAll(dataAccessTosca.getTaskTypeByTask(task.getId()));\n response.put(\"taskTypes\", taskTypes);\n //response.put(\"taskType\", \"Noch einfügen\");\n response.put(\"priority\", task.getPriority());\n response.put(\"status\", task.getStatus().name().toLowerCase());\n if (workItem.get(0).getAssignee() != null) {\n response.put(\"claimedBy\", workItem.get(0).getAssignee().getUserId());\n }\n response.put(\"presentationDetails\",presentation);\n if (inputParameters != null) {\n JSONArray inputs = new JSONArray();\n for (IInputParameter input : inputParameters) {\n JSONObject i = new JSONObject();\n i.put(\"label\", input.getLabel());\n i.put(\"value\", input.getValue());\n inputs.add(i);\n }\n response.put(\"inputParameters\", inputs);\n }\n if (outputParameters != null) {\n JSONArray outputs = new JSONArray();\n for (IOutputParameter output : outputParameters) {\n JSONObject i = new JSONObject();\n i.put(\"label\", output.getLabel());\n i.put(\"value\", output.getValue());\n outputs.add(i);\n }\n response.put(\"outputParameters\",outputs);\n }\n fullResponse.add(response);\n }\n return fullResponse.toString();\n }\n } catch (DatabaseException e) {\n e.printStackTrace();\n }\n return null;\n }", "List<Task> getTaskdetails();", "@Override\n\tpublic String getResult(Map<String, String> params) throws Exception {\n\t\tlong playerId = Long.valueOf(params.get(\"playerId\"));\n\t\tint taskId = Integer.parseInt(params.get(\"taskId\"));//ID\n\t\tint process = Integer.parseInt(params.get(\"process\"));\n\t\t\n\t\tGamePlayer player = WorldMgr.getPlayerFromCache(playerId);\n\t\tif (player != null && player.getPlayerState() == PlayerState.ONLINE) {\n\t\t\tRealTask task = player.getTaskInventory().getTaskInfos().get(taskId);\n\t\t\tif(task!=null){\n\t\t\t\ttask.updateProcess(process);\n\t\t\t}else{\n\t\t\t\tTaskCfg cfg = TaskTemplateMgr.getTaskCfg(taskId);\n\t\t\t\t\n\t\t\t\tif(cfg!=null){\n\t\t\t\t\tList<Integer> ids = new ArrayList<>();\n\t\t\t\t\tfor (RealTask t: player.getTaskInventory().getTaskInfos().values()) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(t.getConfig().getTaskLink() == cfg.getTaskLink()){\n\t\t\t\t\t\t\tids.add(t.getInfo().getTaskId());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tfor (int id : ids) {\n\t\t\t\t\t\tplayer.getTaskInventory().del(id);\n\t\t\t\t\t\tTaskOperateRespMsg.Builder resp = TaskOperateRespMsg.newBuilder();\n\t\t\t\t\t\tresp.setTaskId(id);\n\t\t\t\t\t\tresp.setOperate(3);\n\t\t\t\t\t\tPBMessage pkg = MessageUtil.buildMessage(Protocol.U_RESP_TASKOPERATE, resp);\n\t\t\t\t\t\tplayer.sendPbMessage(pkg);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tTaskInfo updateT = new TaskInfo();\n\t\t\t\t\tupdateT.setPlayerId(player.getPlayerId());\n\t\t\t\t\tupdateT.setProcess(0);\n\t\t\t\t\tupdateT.setTaskId(cfg.getTaskId());\n\t\t\t\t\tupdateT.setState(TaskInfo.UN_ACCEPT);\n\t\t\t\t\tupdateT.setUpdateTime(new Date());\n\t\t\t\t\tupdateT.setCreateTime(new Date());\n\t\t\t\t\tupdateT.setOp(Option.Insert);\n\t\t\t\t\tRealTask newTask = new RealTask(cfg, updateT, player);\n\t\t\t\t\tplayer.getTaskInventory().add(newTask);\n\t\t\t\t\tnewTask.doAccept();\n\t\t\t\t\tnewTask.updateProcess(process);\n\t\t\t\t\treturn HttpResult.getResult(Code.SUCCESS, \"*_*taskGm exec success*_*\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\treturn HttpResult.getResult(Code.SUCCESS, \"*_*taskGm exec fail*_*\");\n\t}", "public Task getTask() {\n return task;\n }", "@RequestMapping(method = RequestMethod.POST, value = \"/add-task\",consumes = MediaType.APPLICATION_JSON_VALUE,headers = {\r\n \"content-type=application/json\" })\r\n\tpublic Task addTask(@RequestBody Task task) {\r\n\t\tinvokeNotification();\r\n\t\treturn task;\r\n\r\n\t}", "public String GiveTask(){\n return \"[\" + getStatusIcon() + \"] \" + this.description;\n }", "@Override\n public String toString() {\n return \"Task no \"+id ;\n }", "public abstract String taskToText();", "public Task getTask(){\n return punchTask;\n }", "Task getAggregatedTask();", "void completeTask(String userId, Long taskId, Map<String, Object> results);", "int getTask() {\n return task;\n }", "public String getType() {\n return \"Task\";\n }", "Task createTask();", "Task createTask();", "Task createTask();", "private String formatTask(Task task) {\n String identifier = task.getType();\n String completionStatus = task.isComplete() ? \"1\" : \"0\";\n String dateString = \"\";\n if (task instanceof Deadline) {\n Deadline d = (Deadline) task;\n LocalDateTime date = d.getDate();\n dateString = date.format(FORMATTER);\n }\n if (task instanceof Event) {\n Event e = (Event) task;\n LocalDateTime date = e.getDate();\n dateString = date.format(FORMATTER);\n }\n return String.join(\"|\", identifier, completionStatus, task.getName(), dateString);\n }", "@Override\n public String getOutputParameter(String task) {\n try {\n Set<IOutputParameter> outputParameters = dataAccessTosca.getOutputParametersByTask(task);\n JSONArray response = new JSONArray();\n if (outputParameters != null) {\n for (IOutputParameter output : outputParameters) {\n JSONObject i = new JSONObject();\n i.put(\"id\",output.getId());\n i.put(\"label\", output.getLabel());\n i.put(\"value\", output.getValue());\n i.put(\"tiid\", task);\n response.add(i);\n }\n return response.toString();\n }\n } catch (DatabaseException e) {\n e.printStackTrace();\n }\n return null;\n }", "public Task gatherTaskInfo() {\n \t\n \tString title;\n \t\n \tEditText getTitle = (EditText)findViewById(R.id.titleTextBox);\n \t//EditText itemNum = (EditText)findViewById(R.id.showCurrentItemNum);\n \t \t\n \t//gathering the task information\n \ttitle = getTitle.getText().toString();\n\n \t//validate input \n \tboolean valid = validateInput(title);\n \t\n \t//if valid input and we have the properties create a task and return it\n \tif(valid && propertiesGrabbed) {\n \t\t\n\t \t//creating a task\n\t \tTask t = new TfTask();\n\t \tt.setTitle(title);\n\t \t\n\t \t//setting the visibility enum\n\t \tif(taskVisibility.equals(\"Public\")) { \t\t\n\t \t\tt.setVisibility(Visibility.PUBLIC); \t\t\n\t \t}else{\n\t \t\tt.setVisibility(Visibility.PRIVATE); \t\t\n\t \t}\n\t \t\n\t \t//creating each individual item\n\t \taddItemsToTask(t);\n\t \t\t \t\n\t \t//set the description\n\t \tt.setDescription(taskDescription);\n\n\t \t//set the email to respond to\n\t \tt.setEmail(taskResponseString);\n\t \t\n\t \t//return the task\t \t\n\t \treturn t;\n\t \t\n \t}else{\n \t\t//task not correct\n \t\treturn null;\n \t}\n }", "String addTask(Task task);", "public Task getTask(Integer tid);", "public JSONObject ownGetView()\n {\n JSONObject jsonObject = new JSONObject();\n try\n {\n jsonObject.put(\"task\", currentTask.getTask());\n jsonObject.put(\"location\", currentTask.getLocation());\n jsonObject.put(\"starttime\", currentTask.getStartTime());\n currentTask.setStopStime(currentTask.getCurrentTime());\n jsonObject.put(\"stoptime\", currentTask.getStopStime());\n currentTask.recalculateTime();\n jsonObject.put(\"time\",currentTask.getTime());\n jsonObject.put(\"timeinseconds\",currentTask.getTimeInSeconds());\n jsonObject.put(\"gps\", currentTask.getGps());\n jsonObject.put(\"notes\", currentTask.getNotes());\n jsonObject.put(\"inmotion\", currentTask.isInMotion());\n jsonObject.put(\"edited\", currentTask.isEdited());\n }\n\n catch (JSONException e)\n {\n e.printStackTrace();\n }\n return jsonObject;\n }", "@GetMapping(value=\"/{taskId}\",produces= { MediaType.APPLICATION_JSON_VALUE })\n\tpublic TaskDTO getTask(@PathVariable(\"taskId\") Integer taskId)\n\t{\n\t\treturn taskService.getTaskDTO(taskId);\n\t}", "public void run(Task task) {\n try {\n // inject before serializing, to check that all fields are serializable as JSON\n injectionService.injectMembers(task);\n\n String s = objectMapper.writeValueAsString(task);\n log.info(\"Executing \" + s);\n\n // inject after deserializing, for proper execution\n AbstractTask deserialized = objectMapper.readValue(s, AbstractTask.class);\n injectionService.injectMembers(deserialized);\n setupTask(task);\n\n try {\n ((AbstractTask)deserialized).run(this);\n incCompletedTaskCount(task.getQueueName());\n } finally {\n teardownTask(task);\n }\n\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }", "public String getTaskName();", "Object getTaskId();", "public ITask getTask() {\n \t\treturn task;\n \t}", "@PostMapping(\"/tasks\")\n public List<Task> postTasks(@RequestBody Task task) {\n if (task.getAssignee().equals(\"\")) {\n task.setStatus(\"Available\");\n }else {\n task.setStatus(\"Assigned\");\n sentSMS(task.getTitle());\n }\n taskRepository.save(task);\n List<Task> allTask = (List) taskRepository.findAll();\n return allTask;\n }", "public String get_task_description()\n {\n return task_description;\n }", "@RequestMapping(method = RequestMethod.GET, value = \"/get-tasks\")\r\n\tpublic List<Task> getTasks() {\r\n\t\tList<Task> dummyTasks = new ArrayList<Task>();\r\n\t\treturn dummyTasks;\r\n\t}", "@Override\n public String toString() {\n return \"[\" + this.getStatusIcon() + \"] \" + this.taskDescription;\n }", "@Override\n public String toString() {\n return \"[\" + this.getStatusIcon() + \"] \" + this.taskDescription;\n }", "@Override\n public String getTaskType() {\n return \"T\";\n }", "public String createTask(JSONRequest request, long delay, boolean interval, boolean sequential);", "public String toString() {\n\n\t\tString output = \"\";\n\n\t\tfor (Task i : tasks) {\n\t\t\toutput += i.toString() + \"\\n \\n\";\n\t\t}\n\n\t\treturn output;\n\t}", "@Override\n\tpublic void executeTask(Task task) {\n\t\tif (task.getMethodName().equals(\"upload\")) {\n\t\t\tString[] parameterArrays = task.getParameters().split(\";\");\n\t\t\t\n\t\t}\n\t}", "List<Task> getAllTasks();", "public Task(){}", "@Override\n public String toString() {\n if (timeEnd == null) {\n stop();\n }\n return task + \" in \" + (timeEnd - timeStart) + \"ms\";\n }", "String getTaskId();", "@Override\n public JSONObject toJson() {\n JSONObject json = new JSONObject();\n json.put(\"name\", name);\n json.put(\"startingTime\", startingTime);\n json.put(\"endingTime\", endingTime);\n json.put(\"event\", eventToJson());\n json.put(\"duration\", duration);\n return json;\n }", "@Override\n public void onTaskSubmit() {\n TaskInput taskInput = new TaskInput();\n taskInput.setTaskId(mTaskId);\n taskInput.setRatings(ratings);\n\n Callback<TaskInputResponse> taskInputCallback = new Callback<TaskInputResponse>() {\n @Override\n public void success(TaskInputResponse taskInputResponse, Response response) {\n ((GameActivity)mCtx).hideProgress();\n ((GameActivity) mCtx).finish();\n }\n\n @Override\n public void failure(RetrofitError error) {\n ((GameActivity)mCtx).hideProgress();\n ((GameActivity) mCtx).finish();\n }\n };\n\n // The multipart content that will be sent to server when the task is submitted\n MultipartTypedOutput attachments = new MultipartTypedOutput();\n\n // Populate a TypedFile list with all the recordings made during the current task\n ArrayList<TypedFile> typedFiles = new ArrayList<>();\n for(TaskInputAnswer answer : answers) {\n ArrayList<String> fileNames = answer.getFileNames();\n for(String fileName : fileNames) {\n typedFiles.add(new TypedFile(\"multipart/form-data\", new File(fileName)));\n }\n }\n\n // Get rid of the absolute path and keep only the file name for the recorded files list that\n //will be stored in the json\n for(int i = 0; i < answers.size(); ++i) {\n ArrayList<String> newFileNames = new ArrayList<>();\n for(int j = 0; j < answers.get(i).getFileNames().size(); ++j) {\n File file = new File(answers.get(i).getFileNames().get(j));\n newFileNames.add(file.getName());\n }\n answers.get(i).setFileNames(newFileNames);\n }\n taskInput.setAnswers(answers);\n\n // Convert TaskInput into JSON using Gson library\n Gson gson = new Gson();\n String taskInputJson = gson.toJson(taskInput);\n TypedString inputs = new TypedString(taskInputJson);\n\n // Add the json to the multipart objects as text/plain using the key \"Inputs\"\n attachments.addPart(\"Inputs\", inputs);\n\n // Add each file to the multipart object using the key \"file\"\n for(TypedFile typedFile : typedFiles) {\n attachments.addPart(\"file\", typedFile);\n }\n\n ((GameActivity)mCtx).showProgress();\n // Execute the POST request\n ((GameApi) SpeechApp.getApiOfType(ApiTypes.GAME_API)).taskInput(attachments, taskInputCallback);\n }", "List<ReadOnlyTask> getTaskList();", "List<ReadOnlyTask> getTaskList();", "public List<TempWTask> getTaskList(){return taskList;}", "@GetMapping(value=\"/all\",produces= { MediaType.APPLICATION_JSON_VALUE })\n\tpublic List<TaskDTO> getAllTasks()\n\t{ \t\n\t\treturn taskService.getAllTasks();\n\t}", "@RequestMapping(value = \"/get-task/{taskName}\", method = RequestMethod.GET)\r\n\tpublic Task getTask(@PathVariable(\"taskName\") String taskName) {\r\n\t\tTask dumyTask = new Task();\r\n\t\tdumyTask.setTaskName(taskName);\r\n\t\treturn dumyTask;\r\n\t}", "@POST(\"pomodorotasks\")\n Call<PomodoroTask> pomodorotasksPost(\n @Body PomodoroTask pomodoroTask\n );", "public String getPlayerTaskProgressText(int task) {\n\t\tString questtype = taskType.get(task);\n\t\tint taskprogress = getPlayerTaskProgress(task);\n\t\tint taskmax = getTaskAmount(task);\n\t\tString taskID = getTaskID(task);\n\t\tString message = null;\n\t\t\n\t\t//Convert stuff to task specifics\n\t\t//Quest types: Collect, Kill, Killplayer, Killanyplayer, Destroy, Place, Levelup, Enchant, Tame, Goto\n\t\tif(questtype.equalsIgnoreCase(\"killplayer\")){ questtype = \"Kill\"; }\n\t\tif(questtype.equalsIgnoreCase(\"killanyplayer\")){ questtype = \"Kill\"; }\n\t\tif(questtype.equalsIgnoreCase(\"levelup\")){ questtype = \"Level up\"; }\n\t\tif(questtype.equalsIgnoreCase(\"goto\")){ questtype = \"Go to\"; }\n\t\t\n\t\tif(questtype.equalsIgnoreCase(\"level up\")){ taskID = \"times\"; }\n\t\tif(questtype.equalsIgnoreCase(\"Go to\")){ taskID = getTaskID(task).split(\"=\")[2]; }\n\t\tif(questtype.equalsIgnoreCase(\"collect\")||\n\t\t\t\tquesttype.equalsIgnoreCase(\"destroy\")||\n\t\t\t\tquesttype.equalsIgnoreCase(\"place\")||\n\t\t\t\tquesttype.equalsIgnoreCase(\"enchant\")||\n\t\t\t\tquesttype.equalsIgnoreCase(\"craft\")||\n\t\t\t\tquesttype.equalsIgnoreCase(\"smelt\")){ \n\t\t\ttaskID = taskID.toLowerCase().replace(\"_\", \" \");\n\t\t}\n\t\t\n\t\t//Capitalize first letter (questtype)\n\t\tquesttype = WordUtils.capitalize(questtype);\n\t\t\n\t\t//Change certain types around for grammatical purposes\n\t\tif(getPlayerTaskCompleted(task)){\n\t\t\tif(questtype.equalsIgnoreCase(\"collect\")){ questtype = \"Collected\"; }\n\t\t\tif(questtype.equalsIgnoreCase(\"kill\")){ questtype = \"Killed\"; }\n\t\t\tif(questtype.equalsIgnoreCase(\"killplayer\")){ questtype = \"Killed\"; }\n\t\t\tif(questtype.equalsIgnoreCase(\"killanyplayer\")){ questtype = \"Killed\"; }\n\t\t\tif(questtype.equalsIgnoreCase(\"destroy\")){ questtype = \"Destroyed\"; }\n\t\t\tif(questtype.equalsIgnoreCase(\"place\")){ questtype = \"Placed\"; }\n\t\t\tif(questtype.equalsIgnoreCase(\"levelup\")){ questtype = \"Leveled up\"; }\n\t\t\tif(questtype.equalsIgnoreCase(\"enchant\")){ questtype = \"Enchant\"; }\n\t\t\tif(questtype.equalsIgnoreCase(\"tame\")){ questtype = \"Tamed\"; }\n\t\t\tif(questtype.equalsIgnoreCase(\"craft\")){ questtype = \"Crafted\"; }\n\t\t\tif(questtype.equalsIgnoreCase(\"smelt\")){ questtype = \"Smelted\"; }\n\t\t\tif(questtype.equalsIgnoreCase(\"goto\")){ questtype = \"Went to\"; }\n\t\t\t\n\t\t\t//Create the message if the task is finished\n\t\t\tif(!questtype.equalsIgnoreCase(\"go to\")){\n\t\t\t\tmessage = ChatColor.GREEN + questtype + \" \" + taskmax + \" \" + taskID + \".\";\n\t\t\t} else {\n\t\t\t\tmessage = ChatColor.GREEN + questtype + \" \" + taskID + \".\";\n\t\t\t}\n\t\t}else{\n\t\t\tif(!questtype.equalsIgnoreCase(\"go to\")){\n\t\t\t\tmessage = ChatColor.RED + questtype + \" \" + taskprogress + \"/\" + taskmax + \" \" + taskID + \".\";\n\t\t\t}else{\n\t\t\t\tmessage = ChatColor.RED + questtype + \" \" + taskID + \".\";\n\t\t\t}\n\t\t}\n\t\t\n\t\t//Return message\n\t\treturn message;\n\t}", "public String toData(int taskId) {\n String dataLine = taskId + \", Task\";\n return dataLine;\n }", "Task(String name) {\n this.name = name;\n }", "public interface ITask {\n\n String getId();\n boolean isComplete();\n\n}", "public ArrayList<Task> retrieveTaskList() {\r\n\r\n\r\n return taskList;\r\n }", "void completeTask(String userId, List<TaskSummary> taskList, Map<String, Object> results);", "public String getTaskId() {\n return this.taskId;\n }", "public interface Task {\n\n /**\n * Getter for the conversaitonal object concerned with this task.\n * @return the conversational object owning this task\n */\n ConversationalObject getTaskOwner();\n\n /**\n * Stter for the conversaitonal object concerned with this task.\n * @param taskOwner the task owner to set.\n */\n void setTaskOwner(ConversationalObject taskOwner);\n\n /**\n * Getter for the status of this task\n * @return the current status of this task\n */\n TaskStatus getStatus();\n\n /**\n * Setter for the status of this task\n * @param status\n */\n void setStatus(TaskStatus status);\n\n /**\n * Getter for the stage of this task. It is strongly recomended that concrete\n * task classes declare static final string variables to refer to there\n * possible stages.\n * @return The current stage of this task\n */\n String getStage();\n\n /**\n * Getter for the result of this task.\n * @return the result of this task, or {@code null} if the task is not\n * finished.\n */\n TaskResult getResult();\n\n /**\n * Getter for the set of tasks that depend from this task\n * @return The set of dependent tasks (can be null)\n */\n Set<Task> getDependentTasks();\n\n /**\n * Setter for the set of tasks that depend from this task\n * @param dependentTasks the set of dependent tasks to set\n */\n void setDependentTasks(Set<Task> dependentTasks);\n\n /**\n * Getter for the aggregated task this task has generated and is dependent on.\n * @return The aggregated task, if any (can be null)\n */\n Task getAggregatedTask();\n\n /**\n * Setter for the aggregated task this task has generated and is dependent on.\n * @param aggregatedTask the aggregated task to set\n */\n void setAggregatedTask(Task aggregatedTask);\n\n // TODO Other references could be added to extend the tasks model: e.g.\n // (1) subtasks: list of tasks composing this task, i.e. that should be\n // executed\n // in sequence in order to complete this task, and\n // (2) supertask: reversely, task this task is a subtask of.\n\n /**\n * Getter for the set of conversations this task generated and is now\n * dependent on.\n * @return the set of generated conversations\n */\n Set<OnGoingConversation> getGeneratedConversations();\n\n /**\n * Setter for generatedConversations.\n * @param generatedConversations the set of generatedConversations to set\n */\n void setGeneratedConversations(\n Set<OnGoingConversation> generatedConversations);\n\n /**\n * Cuts all references to other objects so that the garbage collector can\n * destroy them after having destroyed this task, if they are not referenced\n * by other objects than this task. Should be executed before removing the\n * last reference to this task (usually before removing this task from the set\n * of tasks of a conversational object)\n */\n void clean();\n\n /**\n * Executes the task. Specific to each concrete task class.\n */\n void execute();\n}", "public String pendingToString() {\n InterruptibleTask interruptibleTask = this.task;\n if (interruptibleTask == null) {\n return super.pendingToString();\n }\n StringBuilder stringBuilder = new StringBuilder(\"task=[\");\n stringBuilder.append(interruptibleTask);\n stringBuilder.append(\"]\");\n return stringBuilder.toString();\n }", "@Override\r\n @SuppressWarnings(\"empty-statement\")\r\n public Object createTaskData(int taskid) { \r\n List curPara = new ArrayList();\r\n ArrayList<String[]> regArgs1=new ArrayList<String[]>();\r\n String [] regArgs2 = null;\r\n synchronized(lock){\r\n curPara = paramList.get(taskid); \r\n }\r\n \r\n String _taskType = curPara.get(2).toString();\r\n String _info1 = curPara.get(4).toString();\r\n String _info2 = curPara.get(5).toString();\r\n if(_taskType.equals(\"c4c\")){ \r\n String _tupleTag = curPara.get(1).toString();\r\n HashMap<String,Object> requestArgs ;\r\n if (_info2.equals(\"MET\")) {\r\n try {\r\n Thread.sleep(100);\r\n System.out.println(\"[Notification-createTaskData] metadata array to send \"+C4CHelper.regArgs2.size());\r\n Thread.sleep(100);\r\n regArgs1=C4CHelper.regArgs2;\r\n Thread.sleep(10000);\r\n System.out.println(\"[Notification-createTaskData] metadata completed\");\r\n C4CHelper.uploadModel=true;\r\n } catch (Exception ex) {\r\n Logger.getLogger(FedMeteorPublisherMaster.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n } else if (_info2.equals(\"VER\")){\r\n try {\r\n Thread.sleep(100);\r\n System.out.println(\"[Notification-createTaskData] version array to send \"+C4CHelper.regArgs1.size());\r\n Thread.sleep(100);\r\n regArgs1=C4CHelper.regArgs1;\r\n Thread.sleep(10000);\r\n System.out.println(\"[Notification-createTaskData] version completed\");\r\n } catch (InterruptedException ex) {\r\n Logger.getLogger(FedMeteorPublisherMaster.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n } else if (_info1.equals(\"CONFIG\")){\r\n try {\r\n ArrayList<String[]> result=new ArrayList<String[]>();\r\n String[] res=new String[10];\r\n System.out.println(\"[Notification-createTaskData] config array to send: \"+C4CHelper.resultConfig.length());\r\n Thread.sleep(100);\r\n Pattern pattern = Pattern.compile(\"<IPAddress>(.*?)</IPAddress>\");\r\n Pattern pattern2 = Pattern.compile(\"<Port>(.*?)</Port>\");\r\n Matcher matcher = pattern.matcher(C4CHelper.resultConfig);\r\n Matcher matcher2 = pattern2.matcher(C4CHelper.resultConfig);\r\n while ((matcher.find()) && (matcher2.find())){\r\n res[0]=matcher.group(1);\r\n res[1]=matcher2.group(1);\r\n //System.out.println(\"[Notification-createTaskData] 1111 config completed \"+res[0] +\"-\"+res[1]);\r\n result.add(new String[] {res[0],res[1]});\r\n \r\n } \r\n regArgs1=result;\r\n //System.out.println(\"[Socket getInterfaceData] configuring ...end \"+result.get(0)[0]);\r\n //System.out.println(\"[Socket getInterfaceData] configuring ...end \"+result.get(0)[1]);\r\n System.out.println(\"[Notification-createTaskData] config completed\");\r\n \r\n } catch (InterruptedException ex) {\r\n Logger.getLogger(FedMeteorPublisherMaster.class.getName()).log(Level.SEVERE, null, ex);\r\n } \r\n } else { \r\n \r\n System.out.println(\"[Notification-createTaskData] fetch received\");\r\n }\r\n return (Object) regArgs1;\r\n \r\n }else if(_taskType.equals(\"C4C\")){\r\n String _tupleTag = curPara.get(1).toString();\r\n HashMap<String,Object> requestArgs ;\r\n if(_tupleTag.equals(\"CPT\")){\r\n requestArgs = (HashMap<String,Object>)curPara.get(9);\r\n }else{\r\n regArgs1 = null;\r\n }\r\n return (Object) regArgs1;\r\n }else{\r\n return null;\r\n } \r\n }", "@Override\n public String toString()\n {\n\n // IF TASK IS MARKED AS COMPLETE\n if(task_completion_boolean)\n {\n // IF THERE'S NO TASK DESCRIPTION\n if(task_description.isBlank() || task_description.equals(null))\n {\n return \"*** \" + String.format(\"[%s] %s\", task_due_date, task_title);\n } // END if\n\n return \"*** \" + String.format(\"[%s] %s | %s\", task_due_date, task_title, task_description);\n } // END if\n\n /***********************************************************/\n\n // OTHERWISE, TASK IS NOT COMPLETE\n else\n {\n // IF THERE'S NO TASK DESCRIPTION\n if(task_description.isBlank() || task_description.equals(null))\n {\n return String.format(\"[%s] %s\", task_due_date, task_title);\n } // END if\n\n return String.format(\"[%s] %s | %s\", task_due_date, task_title, task_description);\n } // END else\n\n }", "public String taskName() {\n return this.taskName;\n }", "@TransactionAttribute(TransactionAttributeType.NOT_SUPPORTED)\n public void completeTask(Long taskId, Map<String, Object> outboundTaskVars, String userId, boolean disposeKsession) {\n TaskServiceSession taskSession = null;\n try {\n taskSession = taskService.createSession();\n Task taskObj = taskSession.getTask(taskId);\n int sessionId = taskObj.getTaskData().getProcessSessionId();\n long pInstanceId = taskObj.getTaskData().getProcessInstanceId();\n if(taskObj.getTaskData().getStatus() != Status.InProgress) {\n log.warn(\"completeTask() task with following id will be changed to status of InProgress: \"+taskId);\n taskSession.taskOperation(Operation.Start, taskId, userId, null, null, null);\n eventSupport.fireTaskStarted(taskId, userId);\n }\n \n if(outboundTaskVars == null)\n outboundTaskVars = new HashMap<String, Object>(); \n \n //~~ Nick: intelligent mapping the task input parameters as the results map\n // that said, copy the input parameters to the result map\n Map<String, Object> newOutboundTaskVarMap = null;\n if (isEnableIntelligentMapping()) {\n long documentContentId = taskObj.getTaskData().getDocumentContentId();\n if(documentContentId == -1)\n throw new RuntimeException(\"completeTask() documentContent must be created with addTask invocation\");\n \n // 1) constructure a purely empty new HashMap, as the final results map, which will be mapped out to the process instance\n newOutboundTaskVarMap = new HashMap<String, Object>();\n // 2) put the original input parameters first\n newOutboundTaskVarMap.putAll(populateHashWithTaskContent(documentContentId, \"documentContent\"));\n // 3) put the user modified into the final result map, replace the original values with the user modified ones if any\n newOutboundTaskVarMap.putAll(outboundTaskVars);\n } //~~ intelligent mapping\n else {\n newOutboundTaskVarMap = outboundTaskVars;\n }\n \n ContentData contentData = this.convertTaskVarsToContentData(newOutboundTaskVarMap, null);\n taskSession.taskOperation(Operation.Complete, taskId, userId, null, contentData, null);\n eventSupport.fireTaskCompleted(taskId, userId);\n \n StringBuilder sBuilder = new StringBuilder(\"completeTask()\");\n this.dumpTaskDetails(taskObj, sBuilder);\n \n // add TaskChangeDetails to outbound variables so that downstream branches can route accordingly\n TaskChangeDetails changeDetails = new TaskChangeDetails();\n changeDetails.setNewStatus(Status.Completed);\n changeDetails.setReason(TaskChangeDetails.NORMAL_COMPLETION_REASON);\n changeDetails.setTaskId(taskId);\n newOutboundTaskVarMap.put(TaskChangeDetails.TASK_CHANGE_DETAILS, changeDetails);\n \n kSessionProxy.completeWorkItem(taskObj.getTaskData().getWorkItemId(), newOutboundTaskVarMap, pInstanceId, sessionId);\n \n if(disposeKsession)\n kSessionProxy.disposeStatefulKnowledgeSessionAndExtras(taskObj.getTaskData().getProcessSessionId());\n }catch(org.jbpm.task.service.PermissionDeniedException x) {\n rollbackTrnx();\n throw x;\n }catch(RuntimeException x) {\n rollbackTrnx();\n if(x.getCause() != null && (x.getCause() instanceof javax.transaction.RollbackException) && (x.getMessage().indexOf(\"Could not commit transaction\") != -1)) {\n String message = \"completeTask() RollbackException thrown most likely because the following task object is dirty : \"+taskId;\n log.error(message);\n throw new PermissionDeniedException(message);\n }else {\n throw x;\n }\n }catch(Exception x) {\n throw new RuntimeException(x);\n }finally {\n if(taskSession != null)\n taskSession.dispose();\n }\n }", "String getTaskName();", "String getTaskName();", "public String getTaskName(){\r\n\t\treturn this.taskName;\r\n\t}", "public List<WTask> getTaskList(){return taskList;}", "public abstract void task();", "public String getTaskName() {\n return taskName;\n }", "public String getTaskName() {\n return taskName;\n }", "public String getTaskName() {\n return taskName;\n }", "public String getTaskName() {\n return taskName;\n }", "@Override\n public String getInputParameter(String task) {\n try {\n Set<IInputParameter> inputParameters = dataAccessTosca.getInputParametersByTask(task);\n JSONArray response = new JSONArray();\n if (inputParameters != null) {\n for (IInputParameter input : inputParameters) {\n JSONObject i = new JSONObject();\n i.put(\"id\", input.getId());\n i.put(\"label\", input.getLabel());\n i.put(\"value\", input.getValue());\n i.put(\"tiid\", task);\n response.add(i);\n }\n return response.toString();\n }\n return null;\n\n } catch (DatabaseException e) {\n e.printStackTrace();\n }\n return null;\n }", "TaskResult() {\n super();\n this.results = new LinkedHashMap<>();\n this.taskDetails = new HashMap<>();\n }", "public Task(){\n super();\n }", "public abstract String getTaskName();", "public String addTask(Task t) {\n tasks.add(t);\n return tasks.get(tasks.size() - 1).toString();\n }", "@Override\n protected String doInBackground(String... params) {\n\n\n jsonResponseString = httpRequestProcessor.gETRequestProcessor(getproject);\n return jsonResponseString;\n }", "public List<Task> listTasks(String extra);", "@Override\n public String createTask(String name, String[] taskTypeNames, HashMap inputParameter,\n HashMap outputParameter, String title, String subject, String description, String priority) {\n ITaskInstance task = null;\n JSONObject response = new JSONObject();\n // Check if taskType is there\n if (taskTypeNames == null) {\n return \"taskType\";\n }\n // Create taskInstance\n try {\n task = dataAccessTosca.createTask(name, title, subject, description, priority, taskTypeNames);\n if (task == null) {\n return \"taken\";\n }\n response.put(\"id\", task.getId());\n\n // map task to task type\n /* for (int i = 0; i < taskTypeNames.length; i++) {\n dataAccessTosca.addTaskToTaskType(task.getId(), taskTypeNames[i]);\n }*/\n // insert inputParameters, if not null\n if (inputParameter != null) {\n Set<String> entries = inputParameter.keySet();\n for (String entry: entries) {\n boolean insert = false;\n try {\n insert = dataAccessTosca.createInputParameter(entry, (String) inputParameter.get(entry), task.getId());\n } catch (DatabaseException e) {\n e.printStackTrace();\n }\n if (!insert) {\n return null;\n }\n }\n }\n // insert outputParameters, if not null\n if (outputParameter != null) {\n Set<String> entries = outputParameter.keySet();\n for (String entry: entries) {\n boolean insert = false;\n try {\n insert = dataAccessTosca.createOutputParameter(entry, (String) outputParameter.get(entry), task.getId());\n } catch (DatabaseException e) {\n e.printStackTrace();\n }\n if (!insert) {\n return null;\n }\n }\n }\n } catch (DatabaseException e) {\n e.printStackTrace();\n\n\n }\n\n return response.toString();\n }", "public String showDone(Task task) {\n String response = \"\";\n response += showLine();\n response += \"Nice! I've marked this task as done:\" + System.lineSeparator();\n response += \" \" + task + System.lineSeparator();\n response += showLine();\n return response;\n }", "java.util.List<com.google.cloud.aiplatform.v1.PipelineTaskDetail> \n getTaskDetailsList();", "public String getName()\r\n {\r\n return taskName;\r\n }", "void saveTask( org.openxdata.server.admin.model.TaskDef task, AsyncCallback<Void> callback );", "@RequestMapping(value=\"/tasks\", method = RequestMethod.GET)\npublic @ResponseBody List<Task> tasks(){\n\treturn (List<Task>) taskrepository.findAll();\n}", "@Override\n public JsonElement toJson() {\n\n // get a list of active flow uuids\n List<String> flowUuids = new ArrayList<>();\n for (Flow flow : m_activeFlows) {\n flowUuids.add(flow.getUuid());\n }\n\n return JsonUtils.object(\n \"org\", m_org.toJson(),\n \"fields\", JsonUtils.toJsonArray(m_fields),\n \"contact\", m_contact.toJson(),\n \"started\", ExpressionUtils.formatJsonDate(m_started),\n \"steps\", JsonUtils.toJsonArray(m_steps),\n \"values\", toJsonObjectArray(m_values),\n \"extra\", JsonUtils.toJsonObject(m_extra),\n \"state\", m_state.name().toLowerCase(),\n \"active_flows\", JsonUtils.toJsonArray(flowUuids),\n \"suspended_steps\", JsonUtils.toJsonArray(m_suspendedSteps),\n \"level\", m_level\n );\n }", "public Task build() {\n return new Task(moduleName, taskId, taskName, taskDeadline, isComplete);\n }", "public nl.amis.soa.workflow.tasks.entities.Task convert( nl.amis.soa.workflow.tasks.entities.Task fcTask\r\n , Task task) {\n SystemAttributesType systemAttributes = task.getSystemAttributes();\r\n fcTask.setTaskId(task.getSystemAttributes().getTaskId());\r\n fcTask.setAcquiredBy(task.getSystemAttributes().getAcquiredBy());\r\n fcTask.setAssignedTo( systemAttributes.getAssigneeUsers());\r\n fcTask.setPriority(task.getPriority());\r\n fcTask.setAssignedGroups(convertListToArrayList(getAssignedGroups(task)));\r\n fcTask.setExpirationDate(systemAttributes.getExpirationDate());\r\n fcTask.setTaskNumber(task.getSystemAttributes().getTaskNumber());\r\n fcTask.setProcessName(task.getProcessInfo().getProcessName());\r\n fcTask.setProcessVersion(task.getProcessInfo().getProcessVersion());\r\n fcTask.setTitle(task.getTitle());\r\n\r\n fcTask.setCreated(systemAttributes.getCreatedDate());\r\n fcTask.setState(task.getSystemAttributes().getState());\r\n fcTask.setOutcome( task.getSystemAttributes().getOutcome());\r\n\r\n if (task.getSystemAttributes().getUpdatedBy() != null ) {\r\n \r\n IdentityType iden = task.getSystemAttributes().getUpdatedBy(); \r\n if ( ! \"workflowsystem\".equalsIgnoreCase(iden.getId())) {\r\n fcTask.setLastChangeUser(iden.getId());\r\n }\r\n }\r\n fcTask.setLastChangeDate(task.getSystemAttributes().getUpdatedDate()); \r\n\r\n // payload\r\n XMLElement payload = (XMLElement)task.getPayloadAsElement();\r\n StringWriter writer = new StringWriter();\r\n try {\r\n payload.print(writer);\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n \r\n fcTask.setPayloadAsString(writer.toString());\r\n \r\n try {\r\n fcTask.setAssignedToStr(getAssigneeString(task));\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n \r\n return fcTask;\r\n }", "public int getCustTask()\n\t{\n\t\treturn task;\n\t}", "net.zyuiop.ovhapi.api.objects.license.Task getServiceNameTasksTaskId(java.lang.String serviceName, long taskId) throws java.io.IOException;", "public boolean submitTask(Task task) {\n\t\ttask.setId(UUID.randomUUID().toString());\n\n//\t\tif (m_tasks.size() % 2 == 0) {\n//\t\t\ttask.setStatus(TaskStatus.DONE);\n//\t\t} else {\n\t\ttask.setStatus(TaskStatus.PENDING);\n//\t\t}\n\t\tif(task.getFeature()==null || task.getFeature().equals(\"\"))\n\t\t\treturn false;\n\t\tString[] jobs = task.getFeature().split(\"\\\\|\");\n\t\t\n\t\tfor(int i=0; i<jobs.length; ++i) {\n\t\t\tString str = job.replaceFirst(\"@uuid\", task.getId());\n\t\t\tstr = str.replaceFirst(\"@run_id\", task.getId()+i);\n\t\t\tif(task.getHost() != null) \n\t\t\t\tstr = str.replaceFirst(\"@host\", task.getHost());\n\t\t\telse\n\t\t\t\tstr = str.replaceFirst(\"@host\", \"\");\n\t\t\tstr = str.replaceFirst(\"@job\", \"http://192.168.8.45:81/svn/dianping/dptest/dpautomation/\" + jobs[i]);\n\t\t\tif(task.getEnv() != null)\n\t\t\t\tstr = str.replaceFirst(\"@env\", task.getEnv());\n\t\t\telse\n\t\t\t\tstr = str.replaceFirst(\"@env\", \"\");\n\t\t\tstr = str.replaceFirst(\"@port\", \"\"+task.getPort());\n//\t\t\tString str = job.replaceAll(\"@uuid\", task.getId()).replaceFirst(\"@host\", task.getHost()).replaceFirst(\"@port\", \"\"+task.getPort()).replaceFirst(\n//\t\t\t\t\t\"@job\", \"http://192.168.8.45:81/svn/dianping/dptest/dpautomation/\" + jobs[i]).replaceFirst(\"@env\", task.getEnv());\n\t\t\tjedis.rpush(\"task\", str);\n\t\t\tSystem.out.println(str);\n\t\t}\n\t\t\n\t\tm_tasks.add(task);\n\t\treturn true;\n\t}" ]
[ "0.6877704", "0.6544414", "0.65148205", "0.6429199", "0.6370922", "0.63676244", "0.6340066", "0.62952214", "0.62722945", "0.6249871", "0.6249871", "0.62048405", "0.6204714", "0.60503894", "0.6049109", "0.6010715", "0.5982796", "0.594899", "0.5864327", "0.5830224", "0.58235383", "0.5786439", "0.5717869", "0.571484", "0.5699391", "0.5699391", "0.5699391", "0.56913674", "0.56874764", "0.56838405", "0.5681008", "0.56743026", "0.5662829", "0.5638316", "0.563103", "0.56284225", "0.5624294", "0.5624021", "0.56237465", "0.5611541", "0.56081086", "0.5600016", "0.5600016", "0.5596355", "0.5589422", "0.55864704", "0.5575994", "0.5573134", "0.5570124", "0.55646104", "0.5536105", "0.5512654", "0.55034107", "0.5492992", "0.5492992", "0.54810643", "0.54731536", "0.5472062", "0.5460269", "0.54601324", "0.5457965", "0.5454766", "0.54432535", "0.543775", "0.54371095", "0.5435697", "0.5434191", "0.54326713", "0.5431112", "0.54278606", "0.54181576", "0.54164857", "0.54159707", "0.54159707", "0.54153717", "0.5414975", "0.5409181", "0.5398765", "0.5398765", "0.5398765", "0.5398765", "0.539637", "0.5383428", "0.53805697", "0.53787285", "0.53721035", "0.5369417", "0.5368028", "0.5366172", "0.53650373", "0.5364497", "0.5364099", "0.53573585", "0.53475285", "0.5347001", "0.5346146", "0.53449404", "0.5336996", "0.53359956", "0.53292924" ]
0.6441331
3
EFFECTS: returns JSON array representing list of tasks
public static JSONArray taskListToJson(List<Task> tasks) { JSONArray taskArray = new JSONArray(); for (Task t : tasks) { taskArray.put(taskToJson(t)); } return taskArray; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<Task> getTaskdetails();", "@GET(\"/task/.json\")\n Call<Map<String, Task>> getAllTasks();", "List<ReadOnlyTask> getTaskList();", "List<ReadOnlyTask> getTaskList();", "@RequestMapping(method = RequestMethod.GET, value = \"/get-tasks\")\r\n\tpublic List<Task> getTasks() {\r\n\t\tList<Task> dummyTasks = new ArrayList<Task>();\r\n\t\treturn dummyTasks;\r\n\t}", "TaskList getList();", "public List<Task> listTasks(String extra);", "List<Task> getAllTasks();", "public List<TempWTask> getTaskList(){return taskList;}", "ObservableList<Task> getTaskList();", "public List<WTask> getTaskList(){return taskList;}", "@RequestMapping(value=\"/tasks\", method = RequestMethod.GET)\npublic @ResponseBody List<Task> tasks(){\n\treturn (List<Task>) taskrepository.findAll();\n}", "public ArrayList<Task> retrieveTaskList() {\r\n\r\n\r\n return taskList;\r\n }", "private List<Task> tasks2Present(){\n List<Task> tasks = this.taskRepository.findAll();\n// de taken verwijderen waar user eerder op reageerde\n tasks2React(tasks);\n// taken op alfabetische volgorde zetten\n sortTasks(tasks);\n// opgeschoonde lijst aan handler geven\n return tasks;\n }", "void getTasks( AsyncCallback<java.util.List<org.openxdata.server.admin.model.TaskDef>> callback );", "@Override\n public String getAllTaskTaskType(String typeId) {\n try {\n Set<ITaskInstance> allTasks = dataAccessTosca.getTasksByTaskType(typeId);\n JSONArray fullResponse = new JSONArray();\n //if allTasks is null, then no tasks for this user was found\n if (allTasks != null) {\n // create a JSON-Object for every task and add it to fullresponse\n for (ITaskInstance task : allTasks) {\n JSONObject response = new JSONObject();\n //get the belonging work item\n List<IWorkItem> workItem = dataAccessTosca.getWorkItems(task.getId());\n //get the presentationDetails\n JSONObject presentation = new JSONObject();\n presentation.put(\"title\", task.getPresentationName());\n presentation.put(\"subject\", task.getPresentationSubject());\n presentation.put(\"description\", task.getPresentationDescription());\n //get inputParameters\n Set<IInputParameter> inputParameters = dataAccessTosca.getInputParametersByTask(task.getId());\n\n //get outputParameters\n Set<IOutputParameter> outputParameters = dataAccessTosca.getOutputParametersByTask(task.getId());\n //put information in response\n response.put(\"id\", task.getId());\n response.put(\"name\", task.getName());\n JSONArray taskTypes = new JSONArray();\n taskTypes.addAll(dataAccessTosca.getTaskTypeByTask(task.getId()));\n response.put(\"taskTypes\", taskTypes);\n response.put(\"priority\", task.getPriority());\n response.put(\"status\", task.getStatus().name().toLowerCase());\n if (workItem.get(0).getAssignee() != null) {\n response.put(\"claimedBy\", workItem.get(0).getAssignee().getUserId());\n }\n response.put(\"presentationDetails\",presentation);\n if (inputParameters != null) {\n JSONArray inputs = new JSONArray();\n for (IInputParameter input : inputParameters) {\n JSONObject i = new JSONObject();\n i.put(\"label\", input.getLabel());\n i.put(\"value\", input.getValue());\n inputs.add(i);\n }\n response.put(\"inputParameters\", inputs);\n }\n if (outputParameters != null) {\n JSONArray outputs = new JSONArray();\n for (IOutputParameter output : outputParameters) {\n JSONObject i = new JSONObject();\n i.put(\"label\", output.getLabel());\n i.put(\"value\", output.getValue());\n outputs.add(i);\n }\n response.put(\"outputParameters\",outputs);\n }\n fullResponse.add(response);\n }\n return fullResponse.toString();\n }\n } catch (DatabaseException e) {\n e.printStackTrace();\n }\n return null;\n }", "public List<TaskDescription> getActiveTasks();", "public ArrayList<Task> list() {\r\n return tasks;\r\n }", "@GetMapping(value=\"/all\",produces= { MediaType.APPLICATION_JSON_VALUE })\n\tpublic List<TaskDTO> getAllTasks()\n\t{ \t\n\t\treturn taskService.getAllTasks();\n\t}", "public List<Task> getTasks() {\n return tasks;\n }", "public List<Task> getTasks() {\n return tasks;\n }", "public List<Task> getTasks() {\n return tasks;\n }", "public ArrayList<Task> getList() {\n return tasks;\n }", "java.util.List<com.google.cloud.aiplatform.v1.PipelineTaskDetail> \n getTaskDetailsList();", "@GetMapping(value = \"/getAllTasks\")\n\tpublic List<Task> getAllTasks()\n\t{\n\t\treturn this.integrationClient.getAllTasks();\n\t}", "private List<TaskObject> getAllTasks(){\n RealmQuery<TaskObject> query = realm.where(TaskObject.class);\n RealmResults<TaskObject> result = query.findAll();\n result.sort(\"completed\", RealmResults.SORT_ORDER_DESCENDING);\n\n tasks = new ArrayList<TaskObject>();\n\n for(TaskObject task : result)\n tasks.add(task);\n\n return tasks;\n }", "@Override\n\tpublic List<Task> getTasks() {\n\t\treturn details.getPendingTasks();\n\t}", "public List<Task> getTasks() {\n return this.tasks;\n }", "@Override\n public String getAllTaskUser(String userId) {\n try {\n Set<ITaskInstance> allTasks = dataAccessTosca.getTasksByUser(userId);\n JSONArray fullResponse = new JSONArray();\n //if allTasks is null, then no tasks for this user was found\n if (allTasks != null) {\n // create a JSON-Object for every task and add it to fullresponse\n for (ITaskInstance task : allTasks) {\n JSONObject response = new JSONObject();\n //get the belonging work item\n List<IWorkItem> workItem = dataAccessTosca.getWorkItems(task.getId());\n //get the presentationDetails\n JSONObject presentation = new JSONObject();\n presentation.put(\"title\", task.getPresentationName());\n presentation.put(\"subject\", task.getPresentationSubject());\n presentation.put(\"description\", task.getPresentationDescription());\n //get inputParameters\n Set<IInputParameter> inputParameters = dataAccessTosca.getInputParametersByTask(task.getId());\n\n //get outputParameters\n Set<IOutputParameter> outputParameters = dataAccessTosca.getOutputParametersByTask(task.getId());\n //put information in response\n response.put(\"id\", task.getId());\n response.put(\"name\", task.getName());\n JSONArray taskTypes = new JSONArray();\n taskTypes.addAll(dataAccessTosca.getTaskTypeByTask(task.getId()));\n response.put(\"taskTypes\", taskTypes);\n //response.put(\"taskType\", \"Noch einfügen\");\n response.put(\"priority\", task.getPriority());\n response.put(\"status\", task.getStatus().name().toLowerCase());\n if (workItem.get(0).getAssignee() != null) {\n response.put(\"claimedBy\", workItem.get(0).getAssignee().getUserId());\n }\n response.put(\"presentationDetails\",presentation);\n if (inputParameters != null) {\n JSONArray inputs = new JSONArray();\n for (IInputParameter input : inputParameters) {\n JSONObject i = new JSONObject();\n i.put(\"label\", input.getLabel());\n i.put(\"value\", input.getValue());\n inputs.add(i);\n }\n response.put(\"inputParameters\", inputs);\n }\n if (outputParameters != null) {\n JSONArray outputs = new JSONArray();\n for (IOutputParameter output : outputParameters) {\n JSONObject i = new JSONObject();\n i.put(\"label\", output.getLabel());\n i.put(\"value\", output.getValue());\n outputs.add(i);\n }\n response.put(\"outputParameters\",outputs);\n }\n fullResponse.add(response);\n }\n return fullResponse.toString();\n }\n } catch (DatabaseException e) {\n e.printStackTrace();\n }\n return null;\n }", "public ArrayList<Task> getTaskList() {\n return tasks;\n }", "public String[] getTaskList() {\n String[] tasks = {\"export\"};\n\n return tasks;\n }", "public List<File> getTasks() {\n return tasks;\n }", "TaskList(List<Task> tasks) {\n this.tasks = tasks;\n }", "java.util.List<String>\n getTaskIdList();", "private static Task[] createTaskList() {\n\t\t\n\t Task evalTask = new EvaluationTask();\n\t Task tamperTask = new TamperTask();\n\t Task newDocTask = new NewDocumentTask();\n\t Task reportTask = new AssignmentReportTask();\n\n\t Task[] taskList = {evalTask, tamperTask, newDocTask, reportTask};\n\n\t return taskList;\n\t}", "@Access(AccessType.PUBLIC)\r\n \tpublic Set<String> getTasks();", "public static Collection<Task> collectTasksFromJsonArray(JSONArray tasksArray) {\n Collection<Task> tasks = new ArrayList<Task>();\n for (Object object : tasksArray) {\n if (object instanceof JSONObject) {\n JSONObject taskJsonObject = (JSONObject) object;\n String name = taskJsonObject.getString(\"name\");\n String description = taskJsonObject.getString(\"description\");\n long durationMinutes = taskJsonObject.getLong(\"duration\");\n Duration duration = Duration.ofMinutes(durationMinutes);\n int priorityInt = taskJsonObject.getInt(\"taskPriority\");\n TaskPriority priority = new TaskPriority(priorityInt);\n Task newTask = new Task(name, description, duration, priority);\n tasks.add(newTask);\n }\n }\n return tasks;\n }", "public ArrayList<Task> getTasks() {\n return tasks;\n }", "public ArrayList<Task> getTaskList() {\n return taskList;\n }", "TaskList() {\r\n tasks = new ArrayList<>();\r\n }", "public List<ScheduledTask> getAllPendingTasks() {\n \t\tSet<String> smembers = jedisConn.smembers(ALL_TASKS);\n \t\tList<ScheduledTask> alltasks = new ArrayList<>();\n \t\tGson gson = new Gson();\n \t\t// the get actual tasks by the ids\n \t\tfor (String member : smembers) {\n \t\t\tString string = jedisConn.get(PENDING_TASK(member));\n \t\t\tScheduledTask task = gson.fromJson(string, ScheduledTask.class);\n \t\t\talltasks.add(task);\n \t\t}\n \t\treturn alltasks;\n \t}", "public String listOfTasks() {\n String listOfTasks = Messages.LIST_TASKS_MESSAGE;\n for (int i = 0; i < Parser.getOrderAdded(); i++) {\n listOfTasks += recordedTask.get(i).getTaskNum() + DOT_OPEN_SQUARE_BRACKET\n + recordedTask.get(i).getCurrentTaskType() + CLOSE_SQUARE_BRACKET + OPEN_SQUARE_BRACKET\n + recordedTask.get(i).taskStatus() + CLOSE_SQUARE_BRACKET + Messages.BLANK_SPACE\n + recordedTask.get(i).getTaskName()\n + ((i == Parser.getOrderAdded() - 1) ? Messages.EMPTY_STRING : Messages.NEW_LINE);\n }\n return listOfTasks;\n }", "Set<Task> getAllTasks();", "List<ExtDagTask> taskList(ExtDagTask extDagTask);", "public TaskList (ArrayList<Task> tasks){ this.tasks = tasks;}", "@SuppressWarnings(\"unchecked\")\n public List<Item> getListOfTasks() {\n Session session = this.factory.openSession();\n List<Item> list = session.createQuery(\"from Item\").list();\n session.close();\n return list;\n }", "@GetMapping(\"/userTasks\")\n\tResponseEntity getUserTasks() {\n\t\tString username = this.tokenUtils.getUsernameFromToken(this.httpServletRequest.getHeader(\"X-Auth-Token\"));\n\t\tSystem.out.println(\"Trazim taskove za: \" + username);\n\t\tfinal List<TaskDto> tasks = rspe.getTasks(null, username);\n\t\tSystem.out.println(\"User ima : \" + tasks.size() + \" taskova\");\n\n\t\treturn ResponseEntity.ok(tasks);\n\n\t}", "public List<TaskItem> zGetTasks() throws HarnessException {\n\n\t\tList<TaskItem> items = new ArrayList<TaskItem>();\n\n\t\t// The task page has the following under the zl__TKL__rows div:\n\t\t// <div id='_newTaskBannerId' .../> -- enter a new task\n\t\t// <div id='_upComingTaskListHdr' .../> -- Past due\n\t\t// <div id='zli__TKL__267' .../> -- Task item\n\t\t// <div id='zli__TKL__299' .../> -- Task item\n\t\t// <div id='_upComingTaskListHdr' .../> -- Upcoming\n\t\t// <div id='zli__TKL__271' .../> -- Task item\n\t\t// <div id='zli__TKL__278' .../> -- Task item\n\t\t// <div id='zli__TKL__275' .../> -- Task item\n\t\t// <div id='_upComingTaskListHdr' .../> -- No due date\n\t\t// <div id='zli__TKL__284' .../> -- Task item\n\t\t// <div id='zli__TKL__290' .../> -- Task item\n\n\t\t// How many items are in the table?\n\t\tString rowLocator = \"//div[@id='\" + Locators.zl__TKL__rows + \"']/div\";\n\t\tint count = this.sGetXpathCount(rowLocator);\n\t\tlogger.debug(myPageName() + \" zGetTasks: number of rows: \" + count);\n\n\t\t// Get each conversation's data from the table list\n\t\tfor (int i = 1; i <= count; i++) {\n\n\t\t\tString itemLocator = rowLocator + \"[\" + i + \"]\";\n\n\t\t\tString id;\n\t\t\ttry {\n\t\t\t\tid = this.sGetAttribute(\"xpath=(\" + itemLocator + \")@id\");\n\t\t\t} catch (SeleniumException e) {\n\t\t\t\t// Make sure there is an ID\n\t\t\t\tlogger.warn(\"Task row didn't have ID. Probably normal if message is 'Could not find element attribute' => \"+ e.getMessage());\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tString locator = null;\n\t\t\tString attr = null;\n\n\t\t\t// Skip any invalid IDs\n\t\t\tif ((id == null) || (id.trim().length() == 0))\n\t\t\t\tcontinue;\n\n\t\t\t// Look for zli__TKL__258\n\t\t\tif (id.contains(Locators.zli__TKL__)) {\n\t\t\t\t// Found a task\n\n\t\t\t\tTaskItem item = new TaskItem();\n\n\t\t\t\tlogger.info(\"TASK: \" + id);\n\n\t\t\t\t// Is it checked?\n\t\t\t\t// <div id=\"zlif__TKL__258__se\" style=\"\"\n\t\t\t\t// class=\"ImgCheckboxUnchecked\"></div>\n\t\t\t\tlocator = itemLocator\n\t\t\t\t+ \"//div[contains(@class, 'ImgCheckboxUnchecked')]\";\n\t\t\t\titem.gIsChecked = this.sIsElementPresent(locator);\n\n\t\t\t\t// Is it tagged?\n\t\t\t\t// <div id=\"zlif__TKL__258__tg\" style=\"\"\n\t\t\t\t// class=\"ImgBlank_16\"></div>\n\t\t\t\tlocator = itemLocator + \"//div[contains(@id, '__tg')]\";\n\t\t\t\t// TODO: handle tags\n\n\t\t\t\t// What's the priority?\n\t\t\t\t// <td width=\"19\" id=\"zlif__TKL__258__pr\"><center><div style=\"\"\n\t\t\t\t// class=\"ImgTaskHigh\"></div></center></td>\n\t\t\t\tlocator = itemLocator\n\t\t\t\t+ \"//td[contains(@id, '__pr')]/center/div\";\n\t\t\t\tif (!this.sIsElementPresent(locator)) {\n\t\t\t\t\titem.gPriority = \"normal\";\n\t\t\t\t} else {\n\t\t\t\t\tlocator = \"xpath=(\" + itemLocator\n\t\t\t\t\t+ \"//td[contains(@id, '__pr')]/center/div)@class\";\n\t\t\t\t\tattr = this.sGetAttribute(locator);\n\t\t\t\t\tif (attr.equals(\"ImgTaskHigh\")) {\n\t\t\t\t\t\titem.gPriority = \"high\";\n\t\t\t\t\t} else if (attr.equals(\"ImgTaskLow\")) {\n\t\t\t\t\t\titem.gPriority = \"low\";\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Is there an attachment?\n\t\t\t\t// <td width=\"19\" class=\"Attach\"><div id=\"zlif__TKL__258__at\"\n\t\t\t\t// style=\"\" class=\"ImgBlank_16\"></div></td>\n\t\t\t\tlocator = \"xpath=(\" + itemLocator\n\t\t\t\t+ \"//div[contains(@id, '__at')])@class\";\n\t\t\t\tattr = this.sGetAttribute(locator);\n\t\t\t\tif (attr.equals(\"ImgBlank_16\")) {\n\t\t\t\t\titem.gHasAttachments = false;\n\t\t\t\t} else {\n\t\t\t\t\t// TODO - handle other attachment types\n\t\t\t\t}\n\n\t\t\t\t// See http://bugzilla.zmail.com/show_bug.cgi?id=56452\n\n\t\t\t\t// Get the subject\n\t\t\t\tlocator = itemLocator + \"//td[5]\";\n\t\t\t\titem.gSubject = this.sGetText(locator).trim();\n\n\t\t\t\t// Get the status\n\t\t\t\tlocator = itemLocator + \"//td[6]\";\n\t\t\t\titem.gStatus = this.sGetText(locator).trim();\n\n\t\t\t\t// Get the % complete\n\t\t\t\tlocator = itemLocator + \"//td[7]\";\n\t\t\t\titem.gPercentComplete = this.sGetText(locator).trim();\n\n\t\t\t\t// Get the due date\n\t\t\t\tlocator = itemLocator + \"//td[8]\";\n\t\t\t\titem.gDueDate = this.sGetText(locator).trim();\n\n\t\t\t\titems.add(item);\n\t\t\t\tlogger.info(item.prettyPrint());\n\n\t\t\t}\n\n\t\t}\n\n\t\t// Return the list of items\n\t\treturn (items);\n\n\t}", "public List<Task> getToDoList()\r\n {\r\n return toDoList;\r\n }", "public int getTasks() {\r\n return tasks;\r\n }", "public ArrayList<Task> getTaskList() {\n\t\treturn tasks;\n\t}", "public List<Task> getAllTasksForUser(long userId);", "LinkedList<double[]> getTasks() {\r\n return tasks;\r\n }", "public ArrayList<Task> getAllTasks() {\n \treturn this.taskBuffer.getAllContents();\n }", "public Task[] getTasks()\n {\n return tasks.toArray(new Task[tasks.size()]);\n }", "@GetMapping(\"/getall\")\n public List<Task> getAll() {\n return taskService.allTasks();\n\n }", "ResponseEntity<List<Status>> findTaskStatuses();", "public ArrayList<Task> list() {\n return this.list;\n }", "@PostMapping(\"/tasks\")\n public List<Task> postTasks(@RequestBody Task task) {\n if (task.getAssignee().equals(\"\")) {\n task.setStatus(\"Available\");\n }else {\n task.setStatus(\"Assigned\");\n sentSMS(task.getTitle());\n }\n taskRepository.save(task);\n List<Task> allTask = (List) taskRepository.findAll();\n return allTask;\n }", "public String getTasks() {\n StringJoiner result = new StringJoiner(\"\\n\");\n for (int i = 0; i < tasks.size(); i++) {\n Task t = tasks.get(i);\n result.add(String.format(\"%d.%s\", i + 1, t));\n }\n\n return result.toString();\n }", "public TaskList(){}", "ObservableList<Task> getCurrentUserTaskList();", "public LiveData<List<Task>> getAllTasks(){\n allTasks = dao.getAll();\n return allTasks;\n }", "public List<TaskMaster> retrieveAllTaskOfProject(Long projectId);", "public List<Task> getAllTasks() {\n List<Task> taskList = new ArrayList<Task>();\n String queryCommand = \"SELECT * FROM \" + TABLE_NAME;\n SQLiteDatabase db = this.getWritableDatabase();\n Cursor cursor = db.rawQuery(queryCommand, null);\n if (cursor.moveToFirst()) {\n do {\n Task task = new Task();\n task.setId(cursor.getString(0));\n task.setLabel(cursor.getString(1));\n task.setTime(cursor.getString(2));\n taskList.add(task);\n } while (cursor.moveToNext());\n }\n return taskList;\n }", "public List<Task> getpublishTask(Integer uid);", "@Override\r\n\tpublic ArrayList<Task> getAllTasks() {\n\t\treturn null;\r\n\t}", "private Task[][] getTasks() {\n\t\tList<Server> servers = this.scheduler.getServers();\n\t\tTask[][] tasks = new Task[servers.size()][];\n\t\tfor (int i = 0; i < servers.size(); i++) {\n\t\t\ttasks[i] = servers.get(i).getTasks();\n\t\t}\n\t\treturn tasks;\n\t}", "@OneToMany(mappedBy=\"project\", fetch=FetchType.EAGER)\n\t@Fetch(FetchMode.SUBSELECT)\n\t@JsonIgnore\n\tpublic List<Task> getTasks() {\n\t\treturn this.tasks;\n\t}", "public abstract String[] formatTask();", "private TaskBaseBean[] getAllTasksCreatedByUser100() {\n TaskBaseBean[] tasks = TaskServiceClient.findTasks(\n projObjKey,\n AppConstants.TASK_BIA_CREATED_BY,\n \"100\"\n );\n return tasks;\n }", "private static ArrayList<JSONObject> getJsonTagSet(Task task) {\n ArrayList<JSONObject> myArray = new ArrayList<>();\n Set<Tag> myTags = task.getTags();\n for (Tag t : myTags) {\n JSONObject myOb = tagToJson(t);\n myArray.add(myOb);\n }\n return myArray;\n }", "ResponseEntity<List<Type>> findTaskTypes();", "public List<TaskMaster> retrieveCompletedTaskByProjectId(Long projectId);", "@Override\n public String getTask(String id) {\n JSONObject response = new JSONObject();\n try {\n ITaskInstance task = dataAccessTosca.getTaskInstance(id);\n if (task != null) {\n //get the belonging work item\n List<IWorkItem> workItem = dataAccessTosca.getWorkItems(id);\n //get the presentationDetails\n JSONObject presentation = new JSONObject();\n presentation.put(\"title\", task.getPresentationName());\n presentation.put(\"subject\", task.getPresentationSubject());\n presentation.put(\"description\", task.getPresentationDescription());\n //get inputParameters\n Set<IInputParameter> inputParameters = dataAccessTosca.getInputParametersByTask(task.getId());\n\n //get outputParameters\n Set<IOutputParameter> outputParameters = dataAccessTosca.getOutputParametersByTask(task.getId());\n //put information in response\n response.put(\"id\", task.getId());\n response.put(\"name\", task.getName());\n JSONArray taskTypes = new JSONArray();\n taskTypes.addAll(dataAccessTosca.getTaskTypeByTask(task.getId()));\n response.put(\"taskTypes\", taskTypes);\n response.put(\"priority\", task.getPriority());\n response.put(\"status\", task.getStatus().name().toLowerCase());\n if (workItem.get(0).getAssignee() != null) {\n response.put(\"claimedBy\", workItem.get(0).getAssignee().getUserId());\n }\n response.put(\"presentationDetails\",presentation);\n if (inputParameters != null) {\n JSONArray inputs = new JSONArray();\n for (IInputParameter input : inputParameters) {\n JSONObject i = new JSONObject();\n i.put(\"label\", input.getLabel());\n i.put(\"value\", input.getValue());\n inputs.add(i);\n }\n response.put(\"inputParameters\", inputs);\n }\n if (outputParameters != null) {\n JSONArray outputs = new JSONArray();\n for (IOutputParameter output : outputParameters) {\n JSONObject i = new JSONObject();\n i.put(\"label\", output.getLabel());\n i.put(\"value\", output.getValue());\n outputs.add(i);\n }\n response.put(\"outputParameters\",outputs);\n }\n\n return response.toString();\n }\n } catch (DatabaseException e) {\n e.printStackTrace();\n }\n return null;\n }", "long[] getServiceNameTasks(java.lang.String serviceName, java.lang.String status, java.lang.String action) throws java.io.IOException;", "public List<Task> getAllTasks() {\n List<Task> tasks = new ArrayList<Task>();\n String selectQuery = \"SELECT * FROM \" + TABLE_TASKS+\" ORDER BY \"+KEY_DATE;\n\n Log.e(LOG, selectQuery);\n\n SQLiteDatabase db = this.getReadableDatabase();\n Cursor c = db.rawQuery(selectQuery, null);\n\n // looping through all rows and adding to list\n if (c.moveToFirst()) {\n do {\n Task tk = new Task();\n tk.setId(c.getLong((c.getColumnIndex(KEY_ID))));\n tk.setTaskName((c.getString(c.getColumnIndex(KEY_TASKNAME))));\n tk.setDateAt(c.getString(c.getColumnIndex(KEY_DATE)));\n tk.setStatus(c.getInt(c.getColumnIndex(KEY_STATUS)));\n\n // adding to todo list\n tasks.add(tk);\n } while (c.moveToNext());\n }\n c.close();\n return tasks;\n }", "ResponseEntity<List<Priority>> findTaskPriorities();", "void addDoneTasks(List<Task> task);", "private List<SubTask> getSubTasks(TaskDTO taskDTO) {\n List<SubTask> subTasks = new ArrayList<>();\n if (taskDTO.getSubTasksDto() == null) return subTasks;\n for (SubTaskDTO s: taskDTO.getSubTasksDto()) {\n SubTask subTask = new SubTask();\n subTask.setId(s.getId());\n subTask.setSubTitle(s.getSubTitle());\n subTask.setSubDescription(s.getSubDescription());\n subTasks.add(subTask);\n }\n return subTasks;\n }", "void addTasks(List<Task> tasks);", "public TaskList() {\n tasks = new ArrayList<>();\n }", "public TaskList() {\n tasks = new ArrayList<>();\n }", "public TaskList() {\n tasks = new ArrayList<>();\n }", "public ArrayTaskList() {\n\t\tcount = 0;\n\t\tmassTask = new Task[10];\n\t}", "public List<Task> load(){\n try {\n List<Task> tasks = getTasksFromFile();\n return tasks;\n }catch (FileNotFoundException e) {\n System.out.println(\"☹ OOPS!!! There is no file in the path: \"+e.getMessage());\n List<Task> tasks = new ArrayList();\n return tasks;\n }\n }", "public abstract List<Container> getContainers(TaskType t);", "@GET\n @Path(\"/job/{id}/tasks\")\n @Produces(MediaType.APPLICATION_JSON)\n public Response getJobTasks(@PathParam(\"id\") String jobId) {\n LGJob lg = Utils.getJobManager().getJob(jobId);\n if (null == lg) {\n return Response.status(404).entity(\"Not found\").build();\n }\n JSONObject result = new JSONObject();\n result.put(\"tasks\",getTasksHelper(lg));\n return Response.status(200).entity(result.toString(1)).build();\n }", "private List<Task> tasks2React(List<Task> tasks){\n Set<Task> reacted = new HashSet<>();\n// statement hieronder verder uitwerken\n// set<Tasks> reacted = this.reactedrepo.findbyUser(<currentUserName()>\n Set<Task> alleVacatures= new HashSet<>(tasks);\n alleVacatures.removeAll(reacted); // levert tasks op waaruit alle eerder gereageerde taken zijn verwijderd\n List<Task> tasks2Do =new ArrayList<>(alleVacatures);\n return tasks2Do;\n }", "public void listAllTasks() {\n System.out.println(LINEBAR);\n if (tasks.taskIndex == 0) {\n ui.printNoItemInList();\n System.out.println(LINEBAR);\n return;\n }\n\n int taskNumber = 1;\n for (Task t : tasks.TaskList) {\n System.out.println(taskNumber + \". \" + t);\n taskNumber++;\n }\n System.out.println(LINEBAR);\n }", "@SuppressWarnings(\"unchecked\")\n public List<Item> getActiveTasks() {\n Session session = this.factory.openSession();\n List<Item> list = session.createQuery(\"from Item where status = 0\").list();\n session.close();\n return list;\n }", "public ArrayList<Task> listConcluded() {\n ArrayList<Task> tasks = new ArrayList<>();\n for (Task t : this.tasks) {\n if (t.getStatus() == 100) {\n tasks.add(t);\n }\n }\n return tasks;\n }", "public List<TaskItem> zGetTasks(TaskStatus status) throws HarnessException {\n\n\t\tList<TaskItem> items = null;\n\n\t\t// The task page has the following under the zl__TKL__rows div:\n\t\t// <div id='_newTaskBannerId' .../> -- enter a new task\n\t\t// <div id='_upComingTaskListHdr' .../> -- Past due\n\t\t// <div id='zli__TKL__267' .../> -- Task item\n\t\t// <div id='zli__TKL__299' .../> -- Task item\n\t\t// <div id='_upComingTaskListHdr' .../> -- Upcoming\n\t\t// <div id='zli__TKL__271' .../> -- Task item\n\t\t// <div id='zli__TKL__278' .../> -- Task item\n\t\t// <div id='zli__TKL__275' .../> -- Task item\n\t\t// <div id='_upComingTaskListHdr' .../> -- No due date\n\t\t// <div id='zli__TKL__284' .../> -- Task item\n\t\t// <div id='zli__TKL__290' .../> -- Task item\n\n\t\t// How many items are in the table?\n\t\tString rowLocator = \"//div[@id='\" + Locators.zl__TKL__rows + \"']\";\n\t\tint count = this.sGetXpathCount(rowLocator);\n\t\tlogger.debug(myPageName() + \" zGetTasks: number of rows: \" + count);\n\n\t\t// Get each conversation's data from the table list\n\t\tfor (int i = 1; i <= count; i++) {\n\t\t\tString tasklocator = rowLocator + \"/div[\" + i + \"]\";\n\n\t\t\tString id = this.sGetAttribute(\"xpath=(\" + tasklocator + \")@id\");\n\t\t\tif (Locators._newTaskBannerId.equals(id)) {\n\t\t\t\t// Skip the \"Add New Task\" row\n\t\t\t\tcontinue;\n\t\t\t} else if (Locators._upComingTaskListHdr.equals(id)) {\n\t\t\t\t// Found a status separator\n\n\t\t\t\tString text = this.sGetText(tasklocator);\n\t\t\t\tif ((\"Past Due\".equals(text)) && (status == TaskStatus.PastDue)) {\n\n\t\t\t\t\titems = new ArrayList<TaskItem>();\n\t\t\t\t\tcontinue;\n\n\t\t\t\t} else if ((\"Upcoming\".equals(text))\n\t\t\t\t\t\t&& (status == TaskStatus.Upcoming)) {\n\n\t\t\t\t\titems = new ArrayList<TaskItem>();\n\t\t\t\t\tcontinue;\n\n\t\t\t\t} else if ((\"No Due Date\".equals(text))\n\t\t\t\t\t\t&& (status == TaskStatus.NoDueDate)) {\n\n\t\t\t\t\titems = new ArrayList<TaskItem>();\n\t\t\t\t\tcontinue;\n\n\t\t\t\t}\n\n\t\t\t\t// If a list already exists, then we've just completed it\n\t\t\t\tif (items != null)\n\t\t\t\t\treturn (items);\n\n\t\t\t} else if (id.contains(Locators.zli__TKL__)) {\n\t\t\t\t// Found a task\n\n\t\t\t\t// If the list is initialized, then we are in the correct list\n\t\t\t\t// section\n\t\t\t\tif (items == null)\n\t\t\t\t\tcontinue;\n\n\t\t\t\tTaskItem item = new TaskItem();\n\n\t\t\t\t// TODO: extract the info from the GUI\n\n\t\t\t\titems.add(item);\n\t\t\t\tlogger.info(item.prettyPrint());\n\n\t\t\t} else {\n\t\t\t\tlogger.warn(\"Unknown task row ID: \" + id);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t}\n\n\t\t// If items is still null, then we didn't find any matching tasks\n\t\t// Just return an empty list\n\t\tif (items == null)\n\t\t\titems = new ArrayList<TaskItem>();\n\n\t\t// Return the list of items\n\t\treturn (items);\n\n\t}", "@Override\n\tpublic ArrayList<DetailedTask> selectAllTasks() throws SQLException, ClassNotFoundException\n\t{\n\t\tArrayList<DetailedTask> returnValue = new ArrayList<DetailedTask>();\n\t\t \n\t\t Gson gson = new Gson();\n\t\t Connection c = null;\n\t Statement stmt = null;\n\t \n\t \n\t Class.forName(\"org.postgresql.Driver\");\n\t c = DriverManager.getConnection(dataBaseLocation, dataBaseUser, dataBasePassword);\n\t c.setAutoCommit(false);\n\t \n\t logger.info(\"Opened database successfully (selectAllTasks)\");\n\n\t stmt = c.createStatement();\n\t ResultSet rs = stmt.executeQuery( \"SELECT * FROM task;\" );\n\n\t while(rs.next())\n\t {\n\t \t Type collectionType = new TypeToken<List<Item>>() {}.getType();\n\t \t List<Item> items = gson.fromJson(rs.getString(\"items\"), collectionType);\n\t \n\t \t returnValue.add(new DetailedTask(rs.getInt(\"id\"), rs.getString(\"description\"), \n\t \t\t rs.getDouble(\"latitude\"), rs.getDouble(\"longitude\"), rs.getString(\"status\"), \n\t \t\t items, rs.getInt(\"plz\"), rs.getString(\"ort\"), rs.getString(\"strasse\"), rs.getString(\"typ\"), \n\t \t\t rs.getString(\"information\"), gson.fromJson(rs.getString(\"hilfsmittel\"), String[].class), rs.getString(\"auftragsfrist\"), \n\t \t\t rs.getString(\"eingangsdatum\")));\n\t }\n\n\t rs.close();\n\t stmt.close();\n\t c.close();\n\t \n\t \n\t return returnValue;\n\t}", "public XmlSerializableTaskList() {\n task = new ArrayList<>();\n tags = new ArrayList<>();\n }", "@Override\r\n\tpublic List<Task> findAll() {\n\t\treturn taskRepository.findAll();\r\n\t}", "@Override\r\n\tpublic List<ExecuteTask> getAll() {\n\t\tString sql = \"SELECT et_id id,et_member_id memberId,et_task_id taskId,et_comments comments FROM executetask\";\r\n\t\treturn getForList(sql);\r\n\t}", "public <T> List<T> massExec(Callable<? extends T> task);", "public TaskList() {\n this.USER_TASKS = new ArrayList<>();\n }", "@Override\n\tpublic Object[] splitTasks() {\n\t\tif (tasks == null) {\n\t\t\tSystem.out.println(\"There are \"+taskNum +\" tasks, and handled by \"+clientsNum+\" clients\");\n\t\t}\t\t\n\t\ttasks = new SimpleTask[clientsNum];\n\t\ttq = taskNum / clientsNum;\n//\t\tbatchSize = tq;\n\t\tint left = taskNum - tq * clientsNum;\n\t\t\n\t\tfor (int i = 0; i < tasks.length; i++) {\n\t\t\tint l = 0;\n\t\t\tif (left >= i+1) {\n\t\t\t\tl = 1;\n\t\t\t}\n\t\t\tif (i == 0) {\n\t\t\t\ttasks[i] = new SimpleTask(1, tq + l, batchSize);\n\t\t\t} else {\n\t\t\t\ttasks[i] = new SimpleTask(\n\t\t\t\t\t\ttasks[i - 1].getEnd()+ 1, tasks[i - 1].getEnd() + tq + l, batchSize);\n\t\t\t}\t\t\t\n\t\t}\n//\t\tSystem.out.println(\"done .\"+clientsNum);\n\t\tthis.srvQ2QLSTM.getCfg().getQlSTMConfigurator().setMBSize(batchSize);\n\t\tthis.srvQ2QLSTM.getCfg().getAlSTMConfigurator().setMBSize(batchSize);\t\t\n\t\treturn tasks;\n\t}" ]
[ "0.71142876", "0.7009719", "0.6997822", "0.6997822", "0.6902687", "0.6833833", "0.6805229", "0.67991555", "0.66257584", "0.6604698", "0.6495164", "0.6492182", "0.643757", "0.6418146", "0.6418024", "0.63927597", "0.6388909", "0.63074064", "0.6292283", "0.6291399", "0.6291399", "0.6291399", "0.627618", "0.6273806", "0.6271327", "0.6235838", "0.62142646", "0.6196023", "0.61586505", "0.6133586", "0.61093575", "0.6108758", "0.6087347", "0.6060879", "0.6048649", "0.60474426", "0.60468346", "0.6040484", "0.603186", "0.60279053", "0.60136646", "0.6011509", "0.5994105", "0.598823", "0.59871477", "0.59819955", "0.5979514", "0.5957405", "0.5948509", "0.59441656", "0.59311706", "0.5930184", "0.5929186", "0.5923003", "0.59222424", "0.5922117", "0.59142965", "0.5897787", "0.5884519", "0.5881622", "0.5879694", "0.58662164", "0.5841803", "0.58414435", "0.5837959", "0.58351576", "0.5827657", "0.5817229", "0.58038116", "0.58037263", "0.57989144", "0.57879645", "0.5776714", "0.57703024", "0.57676685", "0.57624096", "0.57614285", "0.57514334", "0.57424426", "0.57421577", "0.5735885", "0.573464", "0.573464", "0.573464", "0.5733308", "0.5722811", "0.57141125", "0.5713793", "0.5680149", "0.5666927", "0.5661992", "0.5659682", "0.5641336", "0.5639004", "0.56378627", "0.5629202", "0.5617352", "0.56076664", "0.55965585", "0.55876243" ]
0.5799788
70
EFFECTS: returns a set of the JSON Tag set
private static ArrayList<JSONObject> getJsonTagSet(Task task) { ArrayList<JSONObject> myArray = new ArrayList<>(); Set<Tag> myTags = task.getTags(); for (Tag t : myTags) { JSONObject myOb = tagToJson(t); myArray.add(myOb); } return myArray; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Tag [] getTagSet() {\n return this.TagSet;\n }", "public List getTags();", "private List<Tag> getTags() {\r\n\r\n\t\treturn getTags(null);\r\n\r\n\t}", "public Set<String> getTags(){return tags;}", "public List<Tag> getTagList();", "List<Tag> getTagList();", "List<Tag> getTagList();", "private List<String> getTagNames() {\n String query = \"SELECT DISTINCT ?tagName WHERE { ?thing isa:tag [isa:tagName ?tagName; isa:tagDetail ?tagDetail]}\";\n List<Map<String, String>> results = moduleContext.getModel().executeSelectQuery(query);\n List<String> tags = new ArrayList<>();\n results.forEach(solution -> tags.add(solution.get(\"tagName\")));\n return tags;\n }", "public Object getTags() {\n return this.tags;\n }", "Set<String> tags();", "public TagInfo[] getTags() {\n/* 164 */ return this.tags;\n/* */ }", "public Set<String> getTags() {\n\t\tSet<String> tags = tagToImg.keySet();\n\t\treturn tags;\n\t}", "public List<ITag> getTags ();", "@JsonGetter(\"tags\")\n public Object getTags ( ) { \n return this.tags;\n }", "public List<Tag> getTags() {\n return fullPhoto.getTags();\n }", "@Path(\"/tags\")\n\t@GET\n\t@Produces(\"application/json\")\n\tpublic Response getTagsList() {\n\t\tList<String> tags = PhotoDB.getTags();\n\t\t\n\t\tGson gson = new Gson();\n\t\tString jsonText = gson.toJson(tags);\n\t\t\n\t\treturn Response.status(Status.OK).entity(jsonText).build();\n\t}", "public java.util.List<Tag> getTags() {\n if (tags == null) {\n tags = new com.amazonaws.internal.SdkInternalList<Tag>();\n }\n return tags;\n }", "public java.util.List<Tag> getTags() {\n if (tags == null) {\n tags = new com.amazonaws.internal.SdkInternalList<Tag>();\n }\n return tags;\n }", "public java.util.List<Tag> getTags() {\n if (tags == null) {\n tags = new com.amazonaws.internal.SdkInternalList<Tag>();\n }\n return tags;\n }", "public java.util.List<Tag> getTags() {\n if (tags == null) {\n tags = new com.amazonaws.internal.SdkInternalList<Tag>();\n }\n return tags;\n }", "public java.util.List<Tag> getTags() {\n if (tags == null) {\n tags = new com.amazonaws.internal.SdkInternalList<Tag>();\n }\n return tags;\n }", "String[] getTags() {\n if (sections == null) {\n return null;\n }\n\n Vector<String> tagV = new Vector<>(sections.length * 2);\n\n for (Section section : sections) {\n String[] names = section.getOutputNames();\n\n Collections.addAll(tagV, names);\n } // outer for\n\n return tagV.toArray(new String[tagV.size()]);\n }", "public List<Tag> getTags() {\n return new ArrayList<>(tags);\n }", "public HashSet<String> getTags(String image) {\n\t\tif (imgToTag.containsKey(image)) {\n\t\t\t//Return a new set so when accessed from another class it cannot be mutated\n\t\t\tHashSet<String> tags = imgToTag.get(image);\n\t\t\treturn tags;\n\t\t}\n\n\t\treturn new HashSet<String>();\n\n\t}", "public List<Effect> getEffects()\n {\n return m_effects;\n }", "static String[] getProductTagsArray() {\n\n\t\tList<String> productTagsList = new ArrayList<>();\n\t\tproductTagsList.add(\"neutro\");\n\t\tproductTagsList.add(\"veludo\");\n\t\tproductTagsList.add(\"couro\");\n\t\tproductTagsList.add(\"basics\");\n\t\tproductTagsList.add(\"festa\");\n\t\tproductTagsList.add(\"workwear\");\n\t\tproductTagsList.add(\"inverno\");\n\t\tproductTagsList.add(\"boho\");\n\t\tproductTagsList.add(\"estampas\");\n\t\tproductTagsList.add(\"balada\");\n\t\tproductTagsList.add(\"colorido\");\n\t\tproductTagsList.add(\"casual\");\n\t\tproductTagsList.add(\"liso\");\n\t\tproductTagsList.add(\"moderno\");\n\t\tproductTagsList.add(\"passeio\");\n\t\tproductTagsList.add(\"metal\");\n\t\tproductTagsList.add(\"viagem\");\n\t\tproductTagsList.add(\"delicado\");\n\t\tproductTagsList.add(\"descolado\");\n\t\tproductTagsList.add(\"elastano\");\n\n\t\treturn productTagsList.toArray(new String[productTagsList.size()]);\n\t}", "public StringBuilder getTags () {\n return tags;\n }", "public Set<String> getCurrentTags() {\n\t\tSet<String> tags = new HashSet<String>();\n\t\t\n\t\tfor (int i=0;i<this.sentenceTable.size();i++) {\n\t\t\tSentenceStructure sentence = this.sentenceTable.get(i);\n\t\t\tString tag = sentence.getTag();\n\t\t\tif ((!StringUtils.equals(tag, \"ignore\"))){\n\t\t\t\ttags.add(tag);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn tags;\n\t}", "@Override\n\tpublic List<Tags> getlist() {\n\t\treturn TagsRes.findAll();\n\t}", "@Override\n public List<Effect> getEffect() {\n \treturn new ArrayList<Effect>(effects);\n }", "Map<String, String> tags();", "Map<String, String> tags();", "Map<String, String> tags();", "Map<String, String> tags();", "Map<String, String> tags();", "Map<String, String> tags();", "Map<String, String> tags();", "Map<String, String> tags();", "public Set<String> getFactionTags()\n \t{\n \t\tSet<String> tags = new HashSet<String>();\n \t\tfor (Faction faction : Factions.i.get())\n \t\t{\n \t\t\ttags.add(faction.getTag());\n \t\t}\n \t\treturn tags;\n \t}", "public java.util.List<Tag> getTags() {\n return tags;\n }", "public java.util.List<Tag> getTags() {\n return tags;\n }", "UniqueTagList getTags();", "public List<Tag> getTags() {\n return tags;\n }", "@JsonGetter(\"tags\")\n public String getTags ( ) { \n return this.tags;\n }", "@NotNull\n @Generated\n @Selector(\"tags\")\n public native NSSet<String> tags();", "public Set<String> getTags(){\r\n\t\treturn tags.keySet();\r\n\t}", "public Set<String> getTags()\n {\n return tags;\n }", "List<Tag> load();", "public Map<String, Object> getTagMap();", "final Effect[] getEffects() {\n/* 3082 */ if (this.effects != null) {\n/* 3083 */ return this.effects.<Effect>toArray(new Effect[this.effects.size()]);\n/* */ }\n/* 3085 */ return emptyEffects;\n/* */ }", "public String [] getTags() {\n\t\treturn null;\n\t}", "public java.util.List<java.lang.String> getTags() {\n return tags;\n }", "public String getTags() {\n return tags;\n }", "public String getTags() {\n return tags;\n }", "public ArrayList<Tag> getTags() {\n return tags;\n }", "public Tag[] getTags(Music music) {\n SQLiteDatabase db = musicDatabase.getReadableDatabase();\n\n Cursor cur = db.rawQuery(\"SELECT tagId FROM musicTagRelation WHERE musicId=? ORDER BY created_at DESC\", new String[] { String.valueOf(music.id) });\n int count = cur.getCount();\n int[] tagIds = new int[count];\n for (int i=0; i<count; i++) {\n cur.moveToNext();\n tagIds[i] = cur.getInt(0);\n }\n\n return musicDatabase.tagTable.get(tagIds);\n }", "public String getTags() {\n return this.tags;\n }", "@SuppressWarnings(\"unchecked\")\n @JsonProperty(\"tags\")\n @Override\n public List<? extends Tag> getTerms() {\n return (List)super.getTerms();\n }", "public java.util.Map<String, String> getTags() {\n return tags;\n }", "public java.util.Map<String, String> getTags() {\n return tags;\n }", "public java.util.Map<String, String> getTags() {\n return tags;\n }", "public java.util.Map<String, String> getTags() {\n return tags;\n }", "List<String> getTags() {\r\n return tags;\r\n }", "public List<Tag> getTag()\n\t{\n\t\treturn (List<Tag>) this.getKeyValue(\"Tag\");\n\n\t}", "public Set<RvtAoiMetadataKey> getTags() {\n return map.keySet();\n }", "public String getTags(){\n\t\tctags = null;\n\t\tCurrentSets = getCurrentSets();\n\t\tif(blocks.length == 1)\n\t\t\tctags = Integer.toString(blocks[0].getAge());\n\t\telse{\n\t\t\tif(CurrentSets == 0){\n\t\t\t\treturn null;\n\t\t\t}else{\n\t\t\t\tfor(i = 0; i < CurrentSets; i++){\n\t\t\t\t\tctags = blocks[i].getHexTag();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn ctags;\n\t}", "@DialogField(fieldLabel = \"Tags\", fieldDescription = \"List of tags to filter on.\")\n @TagInputField\n public List<Tag> getTags() {\n if (tags == null) {\n tags = getAsList(PARAM_TAGS, String.class)\n .stream()\n .map(tagId -> tagManager.resolve(tagId))\n .filter(Objects:: nonNull)\n .collect(Collectors.toList());\n }\n\n return tags;\n }", "public Set<TagDTO> getTags() {\n\t\treturn tags;\n\t}", "public Map<String, String> getTags() {\n return this.tags;\n }", "public ArrayList<String> getTags(){\n return (ArrayList<String>)tags.clone();\n }", "public java.util.List<java.lang.String> getTags() {\n return tags;\n }", "public List<String> getEffects(@Nonnull final Entity entity) {\n\t\tfinal IEntityFX caps = CapabilityEntityFXData.getCapability(entity);\n\t\tif (caps != null) {\n\t\t\tfinal EntityEffectHandler eh = caps.get();\n\t\t\tif (eh != null)\n\t\t\t\treturn eh.getAttachedEffects();\n\t\t}\n\t\treturn ImmutableList.of();\n\t}", "public static final Map<Integer, TiffTag> getAllTags()\n\t{\n\t return TagSetManager.getInstance().getAllTags();\n\t}", "public String[] getTags() {\n return modifiedEditor.getTags ();\n }", "public java.util.List<String> getTagValues() {\n if (tagValues == null) {\n tagValues = new com.amazonaws.internal.ListWithAutoConstructFlag<String>();\n tagValues.setAutoConstruct(true);\n }\n return tagValues;\n }", "ObservableList<Tag> getTagList();", "ObservableList<Tag> getTagList();", "public ITag[] getTags() {\n \t\t\t\t\t\t\t\t\treturn null;\n \t\t\t\t\t\t\t\t}", "@XmlTransient\n Collection<Tag> getTagCollection();", "List<String> getTags() {\n return tags;\n }", "public TagCloudModel getTags() {\r\n return tags;\r\n }", "@NonNull\n public Set<String> affectedTags() {\n return affectedTags;\n }", "public String[] getTrending() {\n return list.getTags();\n }", "public abstract ArrayList<DamageEffect> getDamageEffects();", "@NotNull\n @Override\n public Object[] getVariants() {\n final Set<String> alreadySeen = ContainerUtil.newHashSet();\n final List<LookupElement> results = ContainerUtil.newArrayList();\n ResolveUtil.treeWalkUp(myElement, new FrogBaseScopeProcessor() {\n @Override\n public boolean execute(@NotNull PsiElement element, ResolveState state) {\n if (element instanceof FrogNamedElement) {\n FrogNamedElement namedElement = (FrogNamedElement) element;\n String name = namedElement.getName();\n if (!alreadySeen.contains(name)) {\n alreadySeen.add(name);\n results.add(buildLookupElement(namedElement));\n }\n }\n return true;\n }\n });\n return ArrayUtil.toObjectArray(results);\n }", "public String getTags() {\n\t\treturn tags;\n\t}", "public String getTags() {\n\t\treturn tags;\n\t}", "List<JSONObject> getFilteredItems();", "java.util.List<org.multibit.hd.core.protobuf.MBHDContactsProtos.Tag> \n getTagList();", "public Set<String> getFeatures();", "public List<Pregunta> getPreguntasConTags(Set<TagPregunta> tags);", "@Override\n public Iterator<Effect> iterator() {\n return effects.iterator();\n }", "private Set<Product> payloadToProductSet(LinkedHashMap body) { //throws Exception {\n //System.out.println(\"body: \" + body.toString());\n ArrayList arrayListProducts = (ArrayList) body.get(\"product\");\n //System.out.println(\"arrayList: \" + arrayListProducts);\n Set<Product> productSet = new HashSet<>();\n// try {\n arrayListProducts.forEach(\n productIndex -> {\n ((HashMap) productIndex).values().forEach(\n productValue -> {\n Product product = new Product();\n TreeMap<Tab, TreeMap<Category, TreeMap<Item, TreeSet<Tag>>>> tabMap = new TreeMap();\n //System.out.println(\"productValue: \" + productValue);\n ((HashMap) productValue).forEach(\n (substanceKey, substanceValue) -> {\n //System.out.println(\"substanceKey: \" + substanceKey);\n //System.out.println(\"substanceValue: \" + substanceValue);\n ((HashMap) substanceValue).values().forEach(\n tabArrayWrapped -> {\n //System.out.println(\"tabArrayWrapped: \" + tabArrayWrapped);\n ((ArrayList) tabArrayWrapped).forEach(\n tabArrayUnwrapped -> {\n //System.out.println(\"tabArrayUnwrapped: \" + tabArrayUnwrapped);\n ((HashMap) tabArrayUnwrapped).forEach(\n (tabKey, tabValue) -> {\n TreeMap<Category, TreeMap<Item, TreeSet<Tag>>> categoryMap = new TreeMap<>();\n //System.out.println(\"tabValue: \" + tabValue);\n ((HashMap) tabValue).values().forEach(\n categoryWrapped -> {\n //System.out.println(\"categoryWrapped: \" + categoryWrapped);\n ((ArrayList) categoryWrapped).forEach(\n categoryUnwrapped -> {\n //System.out.println(\"categoryUnwrapped: \" + categoryUnwrapped);\n ((HashMap) categoryUnwrapped).forEach(\n (categoryKey, categoryValue) -> {\n TreeMap<Item, TreeSet<Tag>> itemMap = new TreeMap();\n //System.out.println(\"categoryValue: \" + categoryValue);\n ((HashMap) categoryValue).values().forEach(\n itemWrapped -> {\n //System.out.println(\"itemWrapped: \" + itemWrapped);\n ((ArrayList) itemWrapped).forEach(\n itemUnwrapped -> {\n\n Item item = new Item();\n //System.out.println(\"itemUnwrapped: \" + itemUnwrapped);\n ((HashMap) itemUnwrapped).forEach(\n (itemKey, itemValue) -> {\n //System.out.println(\"itemKey: \" + itemKey + \" itemValue: \" + itemValue);\n if (itemKey.equals(\"Title\")) {\n item.setName(itemValue.toString());\n }\n if (itemKey.equals(\"Description\")) {\n item.setDescription(itemValue.toString());\n }\n if (itemKey.equals(\"Tag\")) {\n TreeSet<Tag> tagSet = new TreeSet();\n ((ArrayList) itemValue).forEach(tagName -> tagSet.add(new Tag(tagName.toString())));\n itemMap.put(item, tagSet);\n categoryMap.put(new Category(categoryKey.toString()), itemMap);\n tabMap.put(new Tab(tabKey.toString()), categoryMap);\n product.getProduct().put(new Substance(substanceKey.toString()), tabMap);\n productSet.add(product);\n }\n });\n });\n });\n });\n });\n });\n });\n });\n });\n });\n });\n });\n// }\n// catch (Exception ex){\n// System.out.println(\"Ex: \" + ex.getMessage());\n// }\n\n return productSet;\n }", "public ArrayList<String> getTags() {\n return (ArrayList<String>)this.tags.clone();\n }", "public Set getDPTags()\r\n {\n return tagHash.keySet();\r\n }", "public List<Tag> getAllTags() {\n\t\treturn DAO.getInstance().getTags().getTagList();\n\t}", "com.google.cloud.compute.v1.Tags getTags();", "private List<Tag> getTagsForStorage(String text, boolean orderAlpha) {\r\n\t\tif (text != null)\r\n\t\t\tparseText(text);\r\n\t\tList<Tag> tags = new ArrayList<Tag>();\r\n\t\t// remplissage de la Liste des Tags\r\n\t\tEnumeration e = words.keys();\r\n\t\twhile (e.hasMoreElements()) {\r\n\t\t\tObject key = e.nextElement();\r\n\t\t\tString name = (String) key;\r\n\t\t\tint frequency = ((Integer) words.get(key)).intValue();\r\n\r\n\t\t\tTag tag = new Tag(frequency, frequency, name, name);\r\n\t\t\ttags.add(tag);\r\n\r\n\t\t}\r\n\t\twords = null;\r\n\r\n\t\tremovePlurals(tags);\r\n\t\tsortByFrequencyDesc(tags);\r\n\t\treduceToMaxNumbOfTags(tags);\r\n\t\tif (orderAlpha)\r\n\t\t\tsortTagNamesAsc(tags);\r\n\t\treturn tags;\r\n\r\n\t}", "public Set<String> getIntelTags(SectorMapAPI map) {\n\t\tSet<String> tags = new LinkedHashSet<String>(this.tags);\r\n\t\t//tags.add(Tags.INTEL_MISSIONS);\r\n\t\ttags.add(Tags.INTEL_NEW);\r\n\t\treturn tags;\r\n\t}", "public Set<Scene> getAllValuesOfscene() {\n return rawStreamAllValuesOfscene(emptyArray()).collect(Collectors.toSet());\n }" ]
[ "0.63086426", "0.6132233", "0.5956082", "0.5911105", "0.5830013", "0.57878345", "0.57878345", "0.57679474", "0.5749653", "0.57376844", "0.5721307", "0.5720905", "0.5704887", "0.5659163", "0.56502765", "0.56194514", "0.56049013", "0.56049013", "0.56049013", "0.56049013", "0.56049013", "0.55915", "0.558124", "0.5566555", "0.5564921", "0.5548598", "0.55419064", "0.5527131", "0.55227697", "0.5512063", "0.5495659", "0.5495659", "0.5495659", "0.5495659", "0.5495659", "0.5495659", "0.5495659", "0.5495659", "0.54712224", "0.5463617", "0.5463617", "0.5454528", "0.5451606", "0.5441903", "0.54216295", "0.54145616", "0.5408657", "0.5393289", "0.53712696", "0.53703296", "0.535392", "0.53455013", "0.53442293", "0.53442293", "0.534344", "0.5332652", "0.5329542", "0.5324937", "0.5318917", "0.5318917", "0.5318917", "0.5318917", "0.5314692", "0.5312455", "0.53058636", "0.5279521", "0.5274876", "0.5271328", "0.5269434", "0.52673304", "0.5266056", "0.5255593", "0.5251677", "0.5237576", "0.52350295", "0.523215", "0.523215", "0.52273977", "0.5221535", "0.5215065", "0.5204173", "0.5184996", "0.51846033", "0.5177232", "0.5136026", "0.5128223", "0.5128223", "0.5112762", "0.507926", "0.5069393", "0.50670356", "0.5054031", "0.50504404", "0.5046496", "0.5011474", "0.5007532", "0.50069326", "0.5003388", "0.50031996", "0.5002376" ]
0.67560595
0
EFFECTS: returns the object for the task date
private static JSONObject getJsonDate(Task task) { DueDate myDueDate = task.getDueDate(); return dueDateToJson(myDueDate); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Task getFirstTestTask() {\n Task task = new Task();\n task.setName(\"Buy Milk\");\n task.setCalendarDateTime(TODAY);\n task.addTag(\"personal\");\n task.setCompleted();\n return task;\n }", "public void printTaskByDate(String date)\n {\n tasks.stream()\n .filter(task -> task.getDate().equals(date))\n .map(task -> task.getDetails())\n .forEach(details -> System.out.println(details)); \n }", "Date getForDate();", "Date getNextTodo();", "public void render(Date date, List<Task> listOfTasks);", "public Task getTask(String taskId) throws DaoException, DataObjectNotFoundException\r\n {\n dao = (TaskManagerDao) getDao();\r\n Task task = dao.selectTask(taskId);\r\n ResourceManager rm = (ResourceManager)Application.getInstance().getModule(ResourceManager.class);\r\n if(task!=null) {\r\n //Task task = (Task)col.iterator().next();\r\n //task.setLastModifiedBy(UserUtil.getUser(task.getLastModifiedBy()).getName());\r\n task.setAttendees(getAssignees(taskId));\r\n task.setReassignments(dao.selectReassignments(taskId));\r\n task.setResources(rm.getBookedResources(task.getId(),CalendarModule.DEFAULT_INSTANCE_ID));\r\n return task;\r\n }\r\n return null;\r\n }", "public Task gatherTaskInfo() {\n \t\n \tString title;\n \t\n \tEditText getTitle = (EditText)findViewById(R.id.titleTextBox);\n \t//EditText itemNum = (EditText)findViewById(R.id.showCurrentItemNum);\n \t \t\n \t//gathering the task information\n \ttitle = getTitle.getText().toString();\n\n \t//validate input \n \tboolean valid = validateInput(title);\n \t\n \t//if valid input and we have the properties create a task and return it\n \tif(valid && propertiesGrabbed) {\n \t\t\n\t \t//creating a task\n\t \tTask t = new TfTask();\n\t \tt.setTitle(title);\n\t \t\n\t \t//setting the visibility enum\n\t \tif(taskVisibility.equals(\"Public\")) { \t\t\n\t \t\tt.setVisibility(Visibility.PUBLIC); \t\t\n\t \t}else{\n\t \t\tt.setVisibility(Visibility.PRIVATE); \t\t\n\t \t}\n\t \t\n\t \t//creating each individual item\n\t \taddItemsToTask(t);\n\t \t\t \t\n\t \t//set the description\n\t \tt.setDescription(taskDescription);\n\n\t \t//set the email to respond to\n\t \tt.setEmail(taskResponseString);\n\t \t\n\t \t//return the task\t \t\n\t \treturn t;\n\t \t\n \t}else{\n \t\t//task not correct\n \t\treturn null;\n \t}\n }", "Object getTaskId();", "public Task getTask(){\n return punchTask;\n }", "public Task getTask(String taskId, String userId) throws DaoException, DataObjectNotFoundException, SecurityException\r\n {\n dao = (TaskManagerDao) getDao();\r\n Task task = dao.selectTask(taskId,userId);\r\n if(task!=null) {\r\n // Task task = (Task)col.iterator().next();\r\n task.setAttendees(getAssignees(taskId));\r\n task.setReassignments(getReassignments(taskId));\r\n ResourceManager rm = (ResourceManager)Application.getInstance().getModule(ResourceManager.class);\r\n task.setResources(rm.getBookedResources(task.getId(),CalendarModule.DEFAULT_INSTANCE_ID)); return task;\r\n }else throw new DataObjectNotFoundException(); \r\n }", "public static TaskTimeElement findByTaskNameAndTaskDate(String taskName, String taskDate) {\r\n String sql = null;\r\n TaskTimeElement object = null;\r\n Statement theStatement = null;\r\n Connection theConnection = null;\r\n ResultSet rs = null;\r\n\r\n try {\r\n theConnection = AdminConnectionManager.getConnection(ME + \".findByTaskNameAndTaskDate\");\r\n theStatement = theConnection.createStatement();\r\n sql = \"select \" +\r\n \"ID\" +\r\n \",DURATION\" + \r\n \",ENABLED\" +\r\n \" from TaskTimeElement\" +\r\n \" where taskName = \" + \"'\" + DatabaseBase.encodeToSql(taskName) + \"'\" +\r\n \" and taskDate = \" + \"'\" + DatabaseBase.encodeToSql(taskDate) + \"'\" +\r\n (userName == null\r\n ? \"\"\r\n : (\" and USERNAME='\" + DatabaseBase.encodeToSql(userName) + \"'\"));\r\n rs = theStatement.executeQuery(sql);\r\n if (rs.next()) {\r\n object = new TaskTimeElement();\r\n object.setTaskDate(taskDate);\r\n object.setTaskName(taskName);\r\n if (userName != null) {\r\n object.setUserName(userName);\r\n }\r\n int i = 1;\r\n object.setId(rs.getLong(i++));\r\n object.setDuration(rs.getDouble(i++));\r\n object.setEnabled(rs.getBoolean(i++));\r\n }\r\n }\r\n catch (SQLException e) {\r\n Trace.error(\"sql=\" + sql, e);\r\n }\r\n finally {\r\n if (rs != null) {\r\n try {\r\n rs.close();\r\n }\r\n catch (SQLException e) {}\r\n }\r\n if (theStatement != null) {\r\n try {\r\n theStatement.close();\r\n }\r\n catch (SQLException e) {}\r\n }\r\n if (theConnection != null)\r\n AdminConnectionManager.releaseConnection(theConnection);\r\n }\r\n return object;\r\n }", "public Task getTask() { return task; }", "public List<Task> getCesarTasksExpiringToday() {\n\t\tCalendar calendar = Calendar.getInstance();\n\t\tDate date = DateUtils.truncate(new Date(), Calendar.DATE);\n\t\tcalendar.setTime(date);\n\t\tint dayOfWeek = calendar.get(Calendar.DAY_OF_WEEK);\n\t\tList<Task> tasks = taskRepository.getTaskByDateAndOwnerAndExpireAtTheEndOfTheDay(date,\n\t\t\t\tTVSchedulerConstants.CESAR, true);\n\t\tif (tasks.size() == 0) {\n\t\t\tTask task;\n\t\t\tswitch (dayOfWeek) {\n\t\t\tcase Calendar.SATURDAY:\n\t\t\t\ttask = new Task(\"Mettre la table\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\ttask = new Task(\"Faire le piano\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\ttask = new Task(\"Sortir\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\ttask = new Task(\"jeu de Société\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\ttask = new Task(\"Lecture\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\tbreak;\n\t\t\tcase Calendar.SUNDAY:\n\t\t\t\ttask = new Task(\"Faire du sport (piscine/footing)\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\ttask = new Task(\"Solfège\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\ttask = new Task(\"Piano\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\ttask = new Task(\"Sortir\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\ttask = new Task(\"Jouer tout seul\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\ttask = new Task(\"Devoir\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\ttask = new Task(\"Lecture\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\ttask = new Task(\"Aider à faire le ménage\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\ttask = new Task(\"Jeu de société\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\ttask = new Task(\"S'habiller\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\tbreak;\n\t\t\tcase Calendar.MONDAY:\n\t\t\t\ttask = new Task(\"Solfège\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\ttask = new Task(\"Devoir\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\tbreak;\n\t\t\tcase Calendar.TUESDAY:\n\t\t\t\ttask = new Task(\"Piano\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\ttask = new Task(\"Devoir\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\tbreak;\n\t\t\tcase Calendar.WEDNESDAY:\n\t\t\t\ttask = new Task(\"Solfège\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\ttask = new Task(\"Aider à faire le ménage\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\ttask = new Task(\"Devoir\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\tbreak;\n\t\t\tcase Calendar.THURSDAY:\n\t\t\t\ttask = new Task(\"Piano\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\ttask = new Task(\"Devoir\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\tbreak;\n\t\t\tcase Calendar.FRIDAY:\n\t\t\t\ttask = new Task(\"Solfège\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}\n\t\treturn tasks;\n\t}", "public Task(String taskName, String dueDate)\r\n {\r\n this.dueDate=dueDate;\r\n this.taskName=taskName;\r\n }", "public CompletedTask(Task task, String date)\r\n\t{\r\n\t\tsuper(task.ID, task.description, task.priority, task.order, STATUS_COMPLETE);\r\n\t\tthis.date = date;\r\n\t}", "public static void main(String[] args) {\n Task a = new Task(\"s\", new Date(0), new Date(1000*3600*24*7), 3600);\n a.setActive(true);\n System.out.println(a.getStartTime());\n System.out.println(a.getEndTime());\n System.out.println(a.nextTimeAfter(new Date(0)));\n\n\n\n }", "public String getDate(){ return this.start_date;}", "public Task getTask(Integer tid);", "public java.util.List<Todo> findByTodoDateTime(Date todoDateTime);", "public List<Zadania> getAllTaskByDate(String date){\n String startDate = \"'\"+date+\" 00:00:00'\";\n String endDate = \"'\"+date+\" 23:59:59'\";\n\n List<Zadania> zadanias = new ArrayList<Zadania>();\n String selectQuery = \"SELECT * FROM \" + TABLE_NAME + \" WHERE \"+TASK_DATE+\" BETWEEN \"+startDate+\" AND \"+endDate+\" ORDER BY \"+TASK_DATE+\" ASC\";\n\n Log.e(LOG, selectQuery);\n\n SQLiteDatabase db = this.getReadableDatabase();\n Cursor cursor = db.rawQuery(selectQuery, null);\n if (cursor.moveToFirst()){\n do {\n Zadania zadania = new Zadania();\n zadania.setId(cursor.getInt(cursor.getColumnIndex(_ID)));\n zadania.setAction(cursor.getInt(cursor.getColumnIndex(KEY_ACTION)));\n zadania.setDesc(cursor.getString(cursor.getColumnIndex(TASK_DESC)));\n zadania.setDate(cursor.getString(cursor.getColumnIndex(TASK_DATE)));\n zadania.setBackColor(cursor.getString(cursor.getColumnIndex(BACK_COLOR)));\n zadanias.add(zadania);\n } while (cursor.moveToNext());\n }\n return zadanias;\n }", "public String getTask(){\n\treturn task;\n}", "Date getRequestedAt();", "@Override\n public java.util.Date getCreateDate() {\n return _partido.getCreateDate();\n }", "Date getDueDate();", "Date getDueDate();", "public Task(String task, Date dueDate) {\n this.task = task;\n this.dueDate = dueDate;\n }", "public TaskSummary getTask(Long taskId){\n TaskServiceSession taskSession = null;\n try {\n taskSession = jtaTaskService.createSession();\n Task taskObj = taskSession.getTask(taskId);\n TaskSummary tSummary = new TaskSummary();\n tSummary.setActivationTime(taskObj.getTaskData().getExpirationTime());\n tSummary.setActualOwner(taskObj.getTaskData().getActualOwner());\n tSummary.setCreatedBy(taskObj.getTaskData().getCreatedBy());\n tSummary.setCreatedOn(taskObj.getTaskData().getCreatedOn());\n tSummary.setDescription(taskObj.getDescriptions().get(0).getText());\n tSummary.setExpirationTime(taskObj.getTaskData().getExpirationTime());\n tSummary.setId(taskObj.getId());\n tSummary.setName(taskObj.getNames().get(0).getText());\n tSummary.setPriority(taskObj.getPriority());\n tSummary.setProcessId(taskObj.getTaskData().getProcessId());\n tSummary.setProcessInstanceId(taskObj.getTaskData().getProcessInstanceId());\n tSummary.setStatus(taskObj.getTaskData().getStatus());\n tSummary.setSubject(taskObj.getSubjects().get(0).getText());\n return tSummary;\n }catch(RuntimeException x) {\n throw x;\n }finally {\n if(taskSession != null)\n taskSession.dispose();\n }\n }", "@RequestMapping(value = \"/get-task/{taskName}\", method = RequestMethod.GET)\r\n\tpublic Task getTask(@PathVariable(\"taskName\") String taskName) {\r\n\t\tTask dumyTask = new Task();\r\n\t\tdumyTask.setTaskName(taskName);\r\n\t\treturn dumyTask;\r\n\t}", "Date getEventFiredAt();", "abstract public Date getServiceAppointment();", "@Override\r\n public String toString()\r\n {\r\n return taskName + \",\" + dueDate + \"\";\r\n }", "private String formatTask(Task task) {\n String identifier = task.getType();\n String completionStatus = task.isComplete() ? \"1\" : \"0\";\n String dateString = \"\";\n if (task instanceof Deadline) {\n Deadline d = (Deadline) task;\n LocalDateTime date = d.getDate();\n dateString = date.format(FORMATTER);\n }\n if (task instanceof Event) {\n Event e = (Event) task;\n LocalDateTime date = e.getDate();\n dateString = date.format(FORMATTER);\n }\n return String.join(\"|\", identifier, completionStatus, task.getName(), dateString);\n }", "@Nullable\n public Task getTask(int id) {\n Task output = null;\n\n // get a readable instance of the database\n SQLiteDatabase db = getReadableDatabase();\n if (db == null) return null;\n\n // run the query to get the matching task\n Cursor rawTask = db.rawQuery(\"SELECT * FROM Tasks WHERE id = ? ORDER BY due_date ASC;\", new String[]{String.valueOf(id)});\n\n // move the cursor to the first result, if one exists\n if (rawTask.moveToFirst()) {\n // convert the cursor to a task and assign it to our output\n output = new Task(rawTask);\n }\n\n // we're done with the cursor and database, so we can close them here\n rawTask.close();\n db.close();\n\n // return the (possibly null) output\n return output;\n }", "List<Task> getTaskdetails();", "public String showTasksOnDate(LocalDate date) {\n int count = 1;\n Optional<ArrayList<Timeable>> current = Optional.ofNullable(dateAndTimeables.get(date));\n if (current.isPresent()) {\n StringBuilder result = new StringBuilder(\"Here are the tasks on this date: \");\n for (Timeable d: current.get()) {\n result.append(\"\\n\").append(count++).append(\". \").append(d);\n }\n return result.toString();\n } else {\n return \"No tasks on this date!\";\n }\n }", "public Task(String description, LocalDate date) {\n this.description = description;\n isDone = false;\n this.date = date;\n }", "public Date getCreateDate();", "public Date getCreateDate();", "public Date getCreateDate();", "WorkingTask getWorkingTask();", "public interface Recordable \n{\n\t/**\n\t * Returns the date that the work was created.\n\t * @return The task creation date\n\t */\n\tLocalDateTime getCreationDate();\n\t\n\t/**\n\t * Returns the date the work was completed.\n\t * @return The task completion date\n\t */\n\tLocalDateTime getCompletionDate();\n}", "public Date getCreatedDate();", "public Task getTask() {\n return task;\n }", "private Tasks createDurationTaskForSameDayEvent(Tasks task, String descriptionOfTask, String date, String startTime, String endTime) {\n if (checkValidDate(date) && checkValidTime(startTime) && checkValidTime(endTime)) {\n if (checkStartTimeBeforeEndTime(startTime, endTime)) {\n Duration durationPeriod = new Duration(date, startTime, date, endTime);\n task = new DurationTask(descriptionOfTask, durationPeriod);\n } else {\n Duration durationPeriod = new Duration(date, endTime, date, startTime);\n task = new DurationTask(descriptionOfTask, durationPeriod);\n }\n }\n return task;\n }", "private Task createTaskFromGivenArgs(Name name, TaskDate taskStartDate, TaskDate taskEndDate, Status taskStatus) {\n\t if (isEventTask(taskStartDate, taskEndDate)) {\n\t return new EventTask(name, taskStartDate, taskEndDate, taskStatus);\n\t }\n\t if (isDeadline(taskEndDate)) {\n\t return new DeadlineTask(name, taskEndDate, taskStatus);\n\t }\n\t return new Task(name, taskStatus);\n\t}", "public Date getDateObject(){\n \n Date date = new Date(this.getAnio(), this.getMes(), this.getDia());\n return date;\n }", "public AgendaItem(String task, Calendar dueDate) {\n this.task = task;\n this.dueDate = dueDate;\n }", "protected Date getTodaysDate() \t{ return this.todaysDate; }", "Date getCreatedDate();", "public Project getTasks(String projectId) {\n try {\n\n String selectProject = \"select * from PROJECTS where PROJECT_ID = ?\";\n connection = ConnectionManager.getConnection();\n PreparedStatement ps = connection.prepareStatement(selectProject);\n ps.setString(1, projectId);\n ResultSet rs = ps.executeQuery();\n if (rs.next()) {\n String startdate = rs.getString(\"STARTDATE\");\n String invoicesent = rs.getString(\"INVOICESENT\");\n String hours = rs.getString(\"HOURS\");\n String client = \"\";\n String duedate = rs.getString(\"DUEDATE\");\n String description = rs.getString(\"DESCRIPTION\");\n Project p = new Project(client, description, projectId,\n duedate, startdate, hours, duedate, duedate,\n invoicesent, invoicesent);\n rs.close();\n ps.close();\n return p;\n } else {\n return null;\n }\n } catch (SQLException sqle) {\n sqle.printStackTrace(); // for debugging\n return null;\n }\n }", "private static Task createTask(String line) throws DukeException {\n String type=line.split(\"]\")[0];\n String isDone=line.split(\"]\")[1];\n String detail=line.split(\"]\")[2];\n if(type.contains(\"T\")){\n if(isDone.contains(\"✘\")){\n return new ToDo(detail.substring(1),false);\n }else if(isDone.contains(\"✓\")){\n return new ToDo(detail.substring(1),true);\n }\n\n }\n if(type.contains(\"D\")) {\n if (isDone.contains(\"✘\")) {\n int dividerPosition = detail.indexOf(\"do by:\");\n String itemName = detail.substring(0, dividerPosition);\n String itemName1 = detail.substring(dividerPosition,detail.length());\n String itemName2 = itemName1.replace(\"do by:\", \"\");\n return new Deadline(itemName, DeadlineCommand.convertDeadline(itemName2));\n } else if (isDone.contains(\"✓\")) {\n int dividerPosition = detail.indexOf(\"do by:\");\n String itemName = detail.substring(0, dividerPosition);\n String itemName1 = detail.substring(dividerPosition,detail.length());\n String itemName2 = itemName1.replace(\"do by:\", \"\");\n return new Deadline(itemName, DeadlineCommand.convertDeadline(itemName2));\n }\n }\n if(type.contains(\"E\")){\n if (isDone.contains(\"✘\")) {\n int dividerPosition = detail.indexOf(\"at:\");\n String itemName = detail.substring(0, dividerPosition);\n String itemName1 = detail.substring(dividerPosition,detail.length());\n String itemName2 = itemName1.replace(\"at:\", \"\");\n return new Event(itemName, EventCommand.convertEvent(itemName2));\n } else if (isDone.contains(\"✓\")) {\n int dividerPosition = detail.indexOf(\"at:\");\n String itemName = detail.substring(0, dividerPosition);\n String itemName1 = detail.substring(dividerPosition,detail.length());\n String itemName2 = itemName1.replace(\"at:\", \"\");\n return new Event(itemName, EventCommand.convertEvent(itemName2));\n }\n }\n\n else{\n throw new DukeException(\"☹ OOPS!!! Missing type element for CREATE TASK\");\n }\n return new ToDo();\n }", "public Date getCreateDate() { return this.createDate; }", "@Override\n\tpublic Date getQueuedDate() {\n\t\treturn model.getQueuedDate();\n\t}", "public static List<TaskTimeElement> findAllByTaskDate(String taskDate) {\r\n String sql = null;\r\n List<TaskTimeElement> ret = new ArrayList<TaskTimeElement>();\r\n Statement theStatement = null;\r\n Connection theConnection = null;\r\n ResultSet rs = null;\r\n\r\n try {\r\n theConnection = AdminConnectionManager.getConnection(ME + \".findAllByTaskDate\");\r\n theStatement = theConnection.createStatement();\r\n sql = \"SELECT \" +\r\n \"ID\" +\r\n \",DURATION\" +\r\n \",TASKNAME\" +\r\n \",USERNAME\" +\r\n \" FROM TaskTimeElement\" +\r\n \" WHERE TASKDATE=\" + \r\n \"'\" + DatabaseBase.encodeToSql(taskDate) + \"'\" +\r\n \" AND ENABLED IS TRUE\" +\r\n (userName == null\r\n ? \"\"\r\n : (\" AND USERNAME='\" + DatabaseBase.encodeToSql(userName) + \"'\")) +\r\n \" ORDER BY TASKNAME\";\r\n rs = theStatement.executeQuery(sql);\r\n TaskTimeElement object = null;\r\n while (rs.next()) {\r\n object = new TaskTimeElement();\r\n object.setTaskDate(taskDate);\r\n object.setEnabled(true);\r\n int i = 1;\r\n object.setId(rs.getLong(i++));\r\n object.setDuration(rs.getDouble(i++));\r\n object.setTaskName(rs.getString(i++));\r\n object.setUserName(rs.getString(i++));\r\n ret.add(object);\r\n }\r\n } catch (SQLException sqle) {\r\n Trace.error(\"sql = \" + sql, sqle);\r\n }\r\n finally {\r\n if (rs != null) {\r\n try {\r\n rs.close();\r\n }\r\n catch (SQLException e) {}\r\n }\r\n if (theStatement != null) {\r\n try {\r\n theStatement.close();\r\n }\r\n catch (SQLException e) {}\r\n }\r\n if (theConnection != null)\r\n AdminConnectionManager.releaseConnection(theConnection);\r\n }\r\n return ret;\r\n }", "@Override\n\tpublic Date getCreateDate();", "@Override\n\tpublic Date getCreateDate();", "public interface ReadOnlyTask {\n\n Content getContent();\n TaskDate getDate();\n TaskDate getEndDate();\n TaskTime getTime();\n TaskTime getEndTime();\n //@@author A0147989B\n Integer getDuration();\n boolean setNext();\n boolean getDone();\n boolean setDone();\n boolean setUndone();\n boolean getImportant();\n boolean setImportant();\n boolean setUnimportant();\n boolean setDate(String newDate) throws IllegalValueException, ParseException;\n boolean setEndDate(String newEndDate) throws IllegalValueException, ParseException;\n boolean setContent(String newContent) throws IllegalValueException;\n boolean setTime(String newTime) throws IllegalValueException, ParseException;\n boolean setEndTime(String newEndTime) throws IllegalValueException, ParseException;\n //@@author\n boolean addTags(ArrayList<String> tagsToAdd) throws DuplicateTagException, IllegalValueException;\n boolean deleteTags(ArrayList<String> tagsToDel) throws DuplicateTagException, IllegalValueException;\n void setTags(UniqueTagList uniqueTagList);\n /**\n * The returned TagList is a deep copy of the internal TagList,\n * changes on the returned list will not affect the task's internal tags.\n */\n UniqueTagList getTags();\n\n /**\n * Returns true if both have the same state. (interfaces cannot override .equals)\n */\n default boolean isSameStateAs(ReadOnlyTask other) {\n return other == this // short circuit if same object\n || (other != null // this is first to avoid NPE below\n && other.getContent().equals(this.getContent())); // state checks here onwards\n //&& other.getDate().equals(this.getDate())\n //&& other.getTime().equals(this.getTime()));\n }\n\n /**\n * Formats the task as text, showing all task details.\n */ \n default String getAsText0() {\n final StringBuilder builder = new StringBuilder();\n if (this.getEndDate() != null)\n builder.append(getContent())\n .append(\" \")\n .append(getDate().dateString)\n .append(\" \")\n .append(getTime().timeString)\n .append(\" - \")\n .append(getEndDate().dateString)\n .append(\" \")\n .append(getEndTime().timeString)\n .append(\" \");\n else \n builder.append(getContent())\n .append(\" \")\n .append(getDate())\n .append(\" \")\n .append(getTime())\n .append(\" \");\n \n if (getDuration() != null) builder .append(\"repeat per \"+getDuration()+\" days \");\n builder.append(\" Tags: \");\n getTags().forEach(builder::append);\n return builder.toString();\n }\n \n /**\n * Returns a string representation of this task's tags\n */\n default String tagsString() {\n final StringBuffer buffer = new StringBuffer();\n final String separator = \", \";\n getTags().forEach(tag -> buffer.append(tag).append(separator));\n if (buffer.length() == 0) {\n return \"\";\n } else {\n return buffer.substring(0, buffer.length() - separator.length());\n }\n }\n \n\t\n\t\n\t\n}", "public Task(Task task) {\r\n\t\tthis.id = task.id;\r\n\t\tthis.description = task.description;\r\n\t\tthis.processor = task.processor;\r\n\t\tthis.status = task.status;\r\n\r\n\t\tthis.dueDate = new GregorianCalendar(task.dueDate.get(GregorianCalendar.YEAR), \r\n\t\t\t\ttask.dueDate.get(GregorianCalendar.MONTH), \r\n\t\t\t\ttask.dueDate.get(GregorianCalendar.DAY_OF_MONTH));\r\n\r\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"dd.MM.yyyy\");\r\n\t\tthis.formatedDueDate = sdf.format(dueDate.getTime());\r\n\t\tthis.next = task.next;\r\n\t}", "public Task makeTask() {\n Task new_task = new Task();\n new_task.setAction(this);\n new_task.setDeadline(\n new Date(System.currentTimeMillis() + deadlineSeconds() * 1000L));\n\n return new_task;\n }", "@Override\n public String getTask(String id) {\n JSONObject response = new JSONObject();\n try {\n ITaskInstance task = dataAccessTosca.getTaskInstance(id);\n if (task != null) {\n //get the belonging work item\n List<IWorkItem> workItem = dataAccessTosca.getWorkItems(id);\n //get the presentationDetails\n JSONObject presentation = new JSONObject();\n presentation.put(\"title\", task.getPresentationName());\n presentation.put(\"subject\", task.getPresentationSubject());\n presentation.put(\"description\", task.getPresentationDescription());\n //get inputParameters\n Set<IInputParameter> inputParameters = dataAccessTosca.getInputParametersByTask(task.getId());\n\n //get outputParameters\n Set<IOutputParameter> outputParameters = dataAccessTosca.getOutputParametersByTask(task.getId());\n //put information in response\n response.put(\"id\", task.getId());\n response.put(\"name\", task.getName());\n JSONArray taskTypes = new JSONArray();\n taskTypes.addAll(dataAccessTosca.getTaskTypeByTask(task.getId()));\n response.put(\"taskTypes\", taskTypes);\n response.put(\"priority\", task.getPriority());\n response.put(\"status\", task.getStatus().name().toLowerCase());\n if (workItem.get(0).getAssignee() != null) {\n response.put(\"claimedBy\", workItem.get(0).getAssignee().getUserId());\n }\n response.put(\"presentationDetails\",presentation);\n if (inputParameters != null) {\n JSONArray inputs = new JSONArray();\n for (IInputParameter input : inputParameters) {\n JSONObject i = new JSONObject();\n i.put(\"label\", input.getLabel());\n i.put(\"value\", input.getValue());\n inputs.add(i);\n }\n response.put(\"inputParameters\", inputs);\n }\n if (outputParameters != null) {\n JSONArray outputs = new JSONArray();\n for (IOutputParameter output : outputParameters) {\n JSONObject i = new JSONObject();\n i.put(\"label\", output.getLabel());\n i.put(\"value\", output.getValue());\n outputs.add(i);\n }\n response.put(\"outputParameters\",outputs);\n }\n\n return response.toString();\n }\n } catch (DatabaseException e) {\n e.printStackTrace();\n }\n return null;\n }", "private static void addTask() {\n Task task = new Task();\n System.out.println(\"Podaj tytuł zadania\");\n task.setTitle(scanner.nextLine());\n System.out.println(\"Podaj datę wykonania zadania (yyyy-mm-dd)\");\n\n while (true) {\n try {\n LocalDate parse = LocalDate.parse(scanner.nextLine(), DateTimeFormatter.ISO_LOCAL_DATE);\n task.setExecuteDate(parse);\n break;\n } catch (DateTimeParseException e) {\n System.out.println(\"Nieprawidłowy format daty. Spróbuj YYYY-MM-DD\");\n }\n }\n\n task.setCreationDate(LocalDate.now());\n\n queue.offer(task);\n System.out.println(\"tutuaj\");\n }", "public Calendar getLastAppendedStartDate(ReadOnlyTask task) {\n Calendar cal = new GregorianCalendar();\n cal.setTime(task.getLastAppendedComponent().getStartDate().getDate());\n return cal;\n }", "@FXML\n\tprivate void dateSelected(ActionEvent event) {\n\t\tint selectedIndex = taskList.getSelectionModel().getSelectedIndex();\n\t\tString task = taskList.getSelectionModel().getSelectedItem();\n\t\tString selectedDate = dateSelector.getValue().toString();\n\t\tif (task.contains(\" due by \")) {\n\t\t\ttask = task.substring(0, task.lastIndexOf(\" \")) + \" \" + selectedDate;\n\n\t\t} else {\n\t\t\ttaskList.getItems().add(selectedIndex, task +\" due by \" + selectedDate );\n\t\t\ttaskList.getItems().remove(selectedIndex + 1);\n\t\t}\n\t\ttask = task.replace(\"@task \", \"\");\n\t\tString task_split[] = task.split(\" \", 2);\n\t\tclient.setTaskDeadline(task_split[1].replace(\"\\n\", \"\"), selectedDate);\n\t}", "@Override\r\n public Entity row(Entity entity) {\n int estimated = EntityTools.getIntField(entity, \"estimated\");\r\n int dayWhenInProgress = EntityTools.removeIntField(entity, \"day-when-in-progress\");\r\n int newEstimated = EntityTools.removeIntField(entity, \"new-estimated\");\r\n int newRemaining = EntityTools.removeIntField(entity, \"new-remaining\");\r\n int dayWhenCompleted = EntityTools.removeIntField(entity, \"day-when-completed\");\r\n String originalTeamId = EntityTools.removeField(entity, \"team-id\");\r\n Entity response = super.row(entity);\r\n String agmId;\r\n try {\r\n agmId = response.getId().toString();\r\n } catch (FieldNotFoundException e) {\r\n throw new IllegalStateException(e);\r\n }\r\n\r\n if (dayWhenCompleted >= 0 && dayWhenInProgress >= 0) {\r\n if (dayWhenCompleted <= dayWhenInProgress) {\r\n log.warn(\"Day to be in progress (\"+dayWhenInProgress+\") is after the day to be completed (\"+dayWhenCompleted+\")\");\r\n }\r\n }\r\n if (dayWhenInProgress > 0) {\r\n List<Object> work = workCalendar.get(dayWhenInProgress);\r\n if (work == null) {\r\n work = new LinkedList<>();\r\n workCalendar.put(dayWhenInProgress, work);\r\n }\r\n work.add(\"In Progress\");\r\n work.add(agmId);\r\n work.add(estimated);\r\n work.add(newEstimated);\r\n work.add(newRemaining);\r\n work.add(originalTeamId);\r\n log.debug(\"On day \"+dayWhenInProgress+\" task \"+agmId+\" belonging to \"+originalTeamId+\" switching to In Progress; remaining set to \"+newRemaining);\r\n }\r\n if (dayWhenCompleted > 0) {\r\n List<Object> work = workCalendar.get(dayWhenCompleted);\r\n if (work == null) {\r\n work = new LinkedList<>();\r\n workCalendar.put(dayWhenCompleted, work);\r\n }\r\n work.add(\"Completed\");\r\n work.add(agmId);\r\n work.add(newEstimated);\r\n work.add(originalTeamId);\r\n log.debug(\"On day \"+dayWhenCompleted+\" task \"+agmId+\" belonging to \"+originalTeamId+\" switching to Completed; remaining set to \"+0);\r\n }\r\n return response;\r\n }", "public Date getCreDate() {\n return creDate;\n }", "public void printByDate(ArrayList<Task> tasks, String description) {\n ArrayList<Task> filteredTasks;\n filteredTasks = (ArrayList<Task>) tasks.stream()\n .filter((t) -> t instanceof Deadline | t instanceof Event)\n .filter((t) -> t.getDueDate().contains(description))\n .collect(Collectors.toList());\n if (filteredTasks.size() == 0) {\n System.out.println(\"OOPS!!! We can't find anything according to this date.\");\n } else {\n System.out.println(\"Here's what we have found: \");\n printList(filteredTasks);\n }\n }", "public TaskOccurrence buildTaskOccurrenceFromTask(ReadOnlyTask task, String startDate, String endDate) {\n TaskOccurrence toBuild = new TaskOccurrence(task.getLastAppendedComponent());\n toBuild = changeStartDate(toBuild, startDate);\n toBuild = changeEndDate(toBuild, endDate);\n return toBuild;\n }", "public Date getDepartureDate();", "public DateTime getCreated();", "Date getInvoicedDate();", "public String getStartDate();", "public Task getTask(int index) {\n return records.get(index);\n }", "public Date getDate() {\n return dateTime;\n }", "public abstract SystemTask getTask(Project project);", "@Override\n\tpublic Date getCreateDate() {\n\t\treturn model.getCreateDate();\n\t}", "@Override\n\tpublic Date getCreateDate() {\n\t\treturn model.getCreateDate();\n\t}", "@Override\n\tpublic Date getCreateDate() {\n\t\treturn model.getCreateDate();\n\t}", "Date getCreateDate();", "Date getCreateDate();", "long getDate() { return (act != null ? act.getDate() : 0); }", "public String getTask() {\n return task;\n }", "public String getTask() {\n return task;\n }", "public String get_task_due_date()\n {\n return task_due_date.toString();\n }", "@Override\n\tpublic Date getCreateDate() {\n\t\treturn _second.getCreateDate();\n\t}", "private Tasks createDurationTask(Tasks task, String descriptionOfTask, ArrayList<String> timeArray) {\n if (timeArray.size() == 3) {\n String date = timeArray.get(0);\n String startTime = timeArray.get(1);\n String endTime = timeArray.get(2);\n task = createDurationTaskForSameDayEvent(task, descriptionOfTask, date, startTime, endTime);\n } else {\n String startDate = timeArray.get(0);\n String startTime = timeArray.get(1);\n String endDate = timeArray.get(2);\n String endTime = timeArray.get(3);\n task = createDurationTaskForFullInputCommand(task, descriptionOfTask, startDate, startTime, endDate, endTime);\n }\n return task;\n }", "public Date getFechaInclusion()\r\n/* 150: */ {\r\n/* 151:170 */ return this.fechaInclusion;\r\n/* 152: */ }", "public Task toModelType() throws IllegalValueException {\n\t\tfinal Name name = new Name(this.name);\n\t\tfinal TaskDate taskStartDate = DateUtil.convertJaxbStringToTaskDate(this.startDate);\n\t\tfinal TaskDate taskEndDate = DateUtil.convertJaxbStringToTaskDate(this.endDate);\n\t\tfinal Status status = new Status(this.status);\n\t\treturn createTaskFromGivenArgs(name, taskStartDate, taskEndDate, status);\n\t}", "private String getSelectionTask() {\n String selection = \"\";\n\n if (mTypeTask.equals(TaskContract.TypeTask.Expired)) {\n selection = TaskEntry.COLUMN_TARGET_DATE_TIME + \"<?\";\n } else if(mTypeTask.equals(TaskContract.TypeTask.Today)) {\n selection = TaskEntry.COLUMN_TARGET_DATE_TIME + \"=?\";\n } else if(mTypeTask.equals(TaskContract.TypeTask.Future)) {\n selection = TaskEntry.COLUMN_TARGET_DATE_TIME + \">?\";\n }\n\n return selection;\n }", "public static Task toTask(DBObject doc) {\n\t\tTask p = new Task();\n\t\tp.setTask((String) doc.get(\"task\"));\n\t\tp.setStatus((String) doc.get(\"status\"));\n\t\tp.setPriority((String) doc.get(\"priority\"));\n\t\tp.setDuedate((String) doc.get(\"duedate\"));\n\t\tObjectId id = (ObjectId) doc.get(\"_id\");\n\t\tp.setId(id.toString());\n\t\treturn p;\n\n\t}", "long getFetchedDate();", "public ITask getTask() {\n \t\treturn task;\n \t}", "public DateTime getCreatedOn();", "@Override\n public Date getDate() {\n return date;\n }", "public int countByTodoDateTime(Date todoDateTime);", "public abstract Date getStartTime();", "public Timestamp getMovementDate();", "void getWeatherObject(WeatherObject weatherObject);", "public TaskDetails getSpecificTask (int position){\n return taskList.get(position);\n }", "Date getCheckedOut();", "public Date getStartDate();" ]
[ "0.613228", "0.61198246", "0.59060717", "0.58736587", "0.585187", "0.572259", "0.5682711", "0.5657095", "0.5650887", "0.5647255", "0.5632218", "0.56118023", "0.55852854", "0.55822295", "0.5561482", "0.55565447", "0.5556246", "0.5552674", "0.5544353", "0.5525942", "0.55144453", "0.55139077", "0.5508721", "0.5508437", "0.5508437", "0.54888105", "0.5475421", "0.5459138", "0.54523826", "0.5442948", "0.54323864", "0.54299355", "0.5416649", "0.5416535", "0.54040045", "0.53957283", "0.5389841", "0.5389841", "0.5389841", "0.53838193", "0.53699523", "0.5353627", "0.5340562", "0.53358006", "0.53300107", "0.5327046", "0.53249335", "0.5315946", "0.53052276", "0.530507", "0.5298888", "0.52904654", "0.52902967", "0.52758527", "0.5266092", "0.5266092", "0.5261804", "0.5260941", "0.5260707", "0.5253502", "0.52483594", "0.52468836", "0.524204", "0.5241259", "0.52409023", "0.5240588", "0.52400124", "0.5238583", "0.5234155", "0.5231115", "0.522851", "0.52278847", "0.5227535", "0.52271736", "0.5224719", "0.5224719", "0.5224719", "0.52238846", "0.52238846", "0.5218211", "0.5212995", "0.5212995", "0.52097523", "0.51998216", "0.5195631", "0.5195438", "0.51873404", "0.51797754", "0.5179481", "0.5166474", "0.516481", "0.5163372", "0.51624465", "0.5160037", "0.51550555", "0.51530796", "0.51481074", "0.51471895", "0.51344144", "0.5132973" ]
0.6486395
0
EFFECTS: returns the object for the task date
private static JSONObject getJsonPriority(Task task) { Priority myPriority = task.getPriority(); return priorityToJson(myPriority); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static JSONObject getJsonDate(Task task) {\n DueDate myDueDate = task.getDueDate();\n return dueDateToJson(myDueDate);\n }", "private Task getFirstTestTask() {\n Task task = new Task();\n task.setName(\"Buy Milk\");\n task.setCalendarDateTime(TODAY);\n task.addTag(\"personal\");\n task.setCompleted();\n return task;\n }", "public void printTaskByDate(String date)\n {\n tasks.stream()\n .filter(task -> task.getDate().equals(date))\n .map(task -> task.getDetails())\n .forEach(details -> System.out.println(details)); \n }", "Date getForDate();", "Date getNextTodo();", "public void render(Date date, List<Task> listOfTasks);", "public Task getTask(String taskId) throws DaoException, DataObjectNotFoundException\r\n {\n dao = (TaskManagerDao) getDao();\r\n Task task = dao.selectTask(taskId);\r\n ResourceManager rm = (ResourceManager)Application.getInstance().getModule(ResourceManager.class);\r\n if(task!=null) {\r\n //Task task = (Task)col.iterator().next();\r\n //task.setLastModifiedBy(UserUtil.getUser(task.getLastModifiedBy()).getName());\r\n task.setAttendees(getAssignees(taskId));\r\n task.setReassignments(dao.selectReassignments(taskId));\r\n task.setResources(rm.getBookedResources(task.getId(),CalendarModule.DEFAULT_INSTANCE_ID));\r\n return task;\r\n }\r\n return null;\r\n }", "public Task gatherTaskInfo() {\n \t\n \tString title;\n \t\n \tEditText getTitle = (EditText)findViewById(R.id.titleTextBox);\n \t//EditText itemNum = (EditText)findViewById(R.id.showCurrentItemNum);\n \t \t\n \t//gathering the task information\n \ttitle = getTitle.getText().toString();\n\n \t//validate input \n \tboolean valid = validateInput(title);\n \t\n \t//if valid input and we have the properties create a task and return it\n \tif(valid && propertiesGrabbed) {\n \t\t\n\t \t//creating a task\n\t \tTask t = new TfTask();\n\t \tt.setTitle(title);\n\t \t\n\t \t//setting the visibility enum\n\t \tif(taskVisibility.equals(\"Public\")) { \t\t\n\t \t\tt.setVisibility(Visibility.PUBLIC); \t\t\n\t \t}else{\n\t \t\tt.setVisibility(Visibility.PRIVATE); \t\t\n\t \t}\n\t \t\n\t \t//creating each individual item\n\t \taddItemsToTask(t);\n\t \t\t \t\n\t \t//set the description\n\t \tt.setDescription(taskDescription);\n\n\t \t//set the email to respond to\n\t \tt.setEmail(taskResponseString);\n\t \t\n\t \t//return the task\t \t\n\t \treturn t;\n\t \t\n \t}else{\n \t\t//task not correct\n \t\treturn null;\n \t}\n }", "Object getTaskId();", "public Task getTask(){\n return punchTask;\n }", "public Task getTask(String taskId, String userId) throws DaoException, DataObjectNotFoundException, SecurityException\r\n {\n dao = (TaskManagerDao) getDao();\r\n Task task = dao.selectTask(taskId,userId);\r\n if(task!=null) {\r\n // Task task = (Task)col.iterator().next();\r\n task.setAttendees(getAssignees(taskId));\r\n task.setReassignments(getReassignments(taskId));\r\n ResourceManager rm = (ResourceManager)Application.getInstance().getModule(ResourceManager.class);\r\n task.setResources(rm.getBookedResources(task.getId(),CalendarModule.DEFAULT_INSTANCE_ID)); return task;\r\n }else throw new DataObjectNotFoundException(); \r\n }", "public static TaskTimeElement findByTaskNameAndTaskDate(String taskName, String taskDate) {\r\n String sql = null;\r\n TaskTimeElement object = null;\r\n Statement theStatement = null;\r\n Connection theConnection = null;\r\n ResultSet rs = null;\r\n\r\n try {\r\n theConnection = AdminConnectionManager.getConnection(ME + \".findByTaskNameAndTaskDate\");\r\n theStatement = theConnection.createStatement();\r\n sql = \"select \" +\r\n \"ID\" +\r\n \",DURATION\" + \r\n \",ENABLED\" +\r\n \" from TaskTimeElement\" +\r\n \" where taskName = \" + \"'\" + DatabaseBase.encodeToSql(taskName) + \"'\" +\r\n \" and taskDate = \" + \"'\" + DatabaseBase.encodeToSql(taskDate) + \"'\" +\r\n (userName == null\r\n ? \"\"\r\n : (\" and USERNAME='\" + DatabaseBase.encodeToSql(userName) + \"'\"));\r\n rs = theStatement.executeQuery(sql);\r\n if (rs.next()) {\r\n object = new TaskTimeElement();\r\n object.setTaskDate(taskDate);\r\n object.setTaskName(taskName);\r\n if (userName != null) {\r\n object.setUserName(userName);\r\n }\r\n int i = 1;\r\n object.setId(rs.getLong(i++));\r\n object.setDuration(rs.getDouble(i++));\r\n object.setEnabled(rs.getBoolean(i++));\r\n }\r\n }\r\n catch (SQLException e) {\r\n Trace.error(\"sql=\" + sql, e);\r\n }\r\n finally {\r\n if (rs != null) {\r\n try {\r\n rs.close();\r\n }\r\n catch (SQLException e) {}\r\n }\r\n if (theStatement != null) {\r\n try {\r\n theStatement.close();\r\n }\r\n catch (SQLException e) {}\r\n }\r\n if (theConnection != null)\r\n AdminConnectionManager.releaseConnection(theConnection);\r\n }\r\n return object;\r\n }", "public Task getTask() { return task; }", "public List<Task> getCesarTasksExpiringToday() {\n\t\tCalendar calendar = Calendar.getInstance();\n\t\tDate date = DateUtils.truncate(new Date(), Calendar.DATE);\n\t\tcalendar.setTime(date);\n\t\tint dayOfWeek = calendar.get(Calendar.DAY_OF_WEEK);\n\t\tList<Task> tasks = taskRepository.getTaskByDateAndOwnerAndExpireAtTheEndOfTheDay(date,\n\t\t\t\tTVSchedulerConstants.CESAR, true);\n\t\tif (tasks.size() == 0) {\n\t\t\tTask task;\n\t\t\tswitch (dayOfWeek) {\n\t\t\tcase Calendar.SATURDAY:\n\t\t\t\ttask = new Task(\"Mettre la table\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\ttask = new Task(\"Faire le piano\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\ttask = new Task(\"Sortir\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\ttask = new Task(\"jeu de Société\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\ttask = new Task(\"Lecture\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\tbreak;\n\t\t\tcase Calendar.SUNDAY:\n\t\t\t\ttask = new Task(\"Faire du sport (piscine/footing)\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\ttask = new Task(\"Solfège\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\ttask = new Task(\"Piano\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\ttask = new Task(\"Sortir\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\ttask = new Task(\"Jouer tout seul\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\ttask = new Task(\"Devoir\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\ttask = new Task(\"Lecture\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\ttask = new Task(\"Aider à faire le ménage\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\ttask = new Task(\"Jeu de société\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\ttask = new Task(\"S'habiller\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\tbreak;\n\t\t\tcase Calendar.MONDAY:\n\t\t\t\ttask = new Task(\"Solfège\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\ttask = new Task(\"Devoir\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\tbreak;\n\t\t\tcase Calendar.TUESDAY:\n\t\t\t\ttask = new Task(\"Piano\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\ttask = new Task(\"Devoir\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\tbreak;\n\t\t\tcase Calendar.WEDNESDAY:\n\t\t\t\ttask = new Task(\"Solfège\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\ttask = new Task(\"Aider à faire le ménage\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\ttask = new Task(\"Devoir\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\tbreak;\n\t\t\tcase Calendar.THURSDAY:\n\t\t\t\ttask = new Task(\"Piano\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\ttask = new Task(\"Devoir\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\tbreak;\n\t\t\tcase Calendar.FRIDAY:\n\t\t\t\ttask = new Task(\"Solfège\", false, date, TVSchedulerConstants.CESAR, true);\n\t\t\t\ttaskRepository.save(task);\n\t\t\t\ttasks.add(task);\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}\n\t\treturn tasks;\n\t}", "public Task(String taskName, String dueDate)\r\n {\r\n this.dueDate=dueDate;\r\n this.taskName=taskName;\r\n }", "public CompletedTask(Task task, String date)\r\n\t{\r\n\t\tsuper(task.ID, task.description, task.priority, task.order, STATUS_COMPLETE);\r\n\t\tthis.date = date;\r\n\t}", "public static void main(String[] args) {\n Task a = new Task(\"s\", new Date(0), new Date(1000*3600*24*7), 3600);\n a.setActive(true);\n System.out.println(a.getStartTime());\n System.out.println(a.getEndTime());\n System.out.println(a.nextTimeAfter(new Date(0)));\n\n\n\n }", "public String getDate(){ return this.start_date;}", "public Task getTask(Integer tid);", "public java.util.List<Todo> findByTodoDateTime(Date todoDateTime);", "public List<Zadania> getAllTaskByDate(String date){\n String startDate = \"'\"+date+\" 00:00:00'\";\n String endDate = \"'\"+date+\" 23:59:59'\";\n\n List<Zadania> zadanias = new ArrayList<Zadania>();\n String selectQuery = \"SELECT * FROM \" + TABLE_NAME + \" WHERE \"+TASK_DATE+\" BETWEEN \"+startDate+\" AND \"+endDate+\" ORDER BY \"+TASK_DATE+\" ASC\";\n\n Log.e(LOG, selectQuery);\n\n SQLiteDatabase db = this.getReadableDatabase();\n Cursor cursor = db.rawQuery(selectQuery, null);\n if (cursor.moveToFirst()){\n do {\n Zadania zadania = new Zadania();\n zadania.setId(cursor.getInt(cursor.getColumnIndex(_ID)));\n zadania.setAction(cursor.getInt(cursor.getColumnIndex(KEY_ACTION)));\n zadania.setDesc(cursor.getString(cursor.getColumnIndex(TASK_DESC)));\n zadania.setDate(cursor.getString(cursor.getColumnIndex(TASK_DATE)));\n zadania.setBackColor(cursor.getString(cursor.getColumnIndex(BACK_COLOR)));\n zadanias.add(zadania);\n } while (cursor.moveToNext());\n }\n return zadanias;\n }", "public String getTask(){\n\treturn task;\n}", "Date getRequestedAt();", "@Override\n public java.util.Date getCreateDate() {\n return _partido.getCreateDate();\n }", "Date getDueDate();", "Date getDueDate();", "public Task(String task, Date dueDate) {\n this.task = task;\n this.dueDate = dueDate;\n }", "public TaskSummary getTask(Long taskId){\n TaskServiceSession taskSession = null;\n try {\n taskSession = jtaTaskService.createSession();\n Task taskObj = taskSession.getTask(taskId);\n TaskSummary tSummary = new TaskSummary();\n tSummary.setActivationTime(taskObj.getTaskData().getExpirationTime());\n tSummary.setActualOwner(taskObj.getTaskData().getActualOwner());\n tSummary.setCreatedBy(taskObj.getTaskData().getCreatedBy());\n tSummary.setCreatedOn(taskObj.getTaskData().getCreatedOn());\n tSummary.setDescription(taskObj.getDescriptions().get(0).getText());\n tSummary.setExpirationTime(taskObj.getTaskData().getExpirationTime());\n tSummary.setId(taskObj.getId());\n tSummary.setName(taskObj.getNames().get(0).getText());\n tSummary.setPriority(taskObj.getPriority());\n tSummary.setProcessId(taskObj.getTaskData().getProcessId());\n tSummary.setProcessInstanceId(taskObj.getTaskData().getProcessInstanceId());\n tSummary.setStatus(taskObj.getTaskData().getStatus());\n tSummary.setSubject(taskObj.getSubjects().get(0).getText());\n return tSummary;\n }catch(RuntimeException x) {\n throw x;\n }finally {\n if(taskSession != null)\n taskSession.dispose();\n }\n }", "@RequestMapping(value = \"/get-task/{taskName}\", method = RequestMethod.GET)\r\n\tpublic Task getTask(@PathVariable(\"taskName\") String taskName) {\r\n\t\tTask dumyTask = new Task();\r\n\t\tdumyTask.setTaskName(taskName);\r\n\t\treturn dumyTask;\r\n\t}", "Date getEventFiredAt();", "abstract public Date getServiceAppointment();", "@Override\r\n public String toString()\r\n {\r\n return taskName + \",\" + dueDate + \"\";\r\n }", "private String formatTask(Task task) {\n String identifier = task.getType();\n String completionStatus = task.isComplete() ? \"1\" : \"0\";\n String dateString = \"\";\n if (task instanceof Deadline) {\n Deadline d = (Deadline) task;\n LocalDateTime date = d.getDate();\n dateString = date.format(FORMATTER);\n }\n if (task instanceof Event) {\n Event e = (Event) task;\n LocalDateTime date = e.getDate();\n dateString = date.format(FORMATTER);\n }\n return String.join(\"|\", identifier, completionStatus, task.getName(), dateString);\n }", "@Nullable\n public Task getTask(int id) {\n Task output = null;\n\n // get a readable instance of the database\n SQLiteDatabase db = getReadableDatabase();\n if (db == null) return null;\n\n // run the query to get the matching task\n Cursor rawTask = db.rawQuery(\"SELECT * FROM Tasks WHERE id = ? ORDER BY due_date ASC;\", new String[]{String.valueOf(id)});\n\n // move the cursor to the first result, if one exists\n if (rawTask.moveToFirst()) {\n // convert the cursor to a task and assign it to our output\n output = new Task(rawTask);\n }\n\n // we're done with the cursor and database, so we can close them here\n rawTask.close();\n db.close();\n\n // return the (possibly null) output\n return output;\n }", "List<Task> getTaskdetails();", "public String showTasksOnDate(LocalDate date) {\n int count = 1;\n Optional<ArrayList<Timeable>> current = Optional.ofNullable(dateAndTimeables.get(date));\n if (current.isPresent()) {\n StringBuilder result = new StringBuilder(\"Here are the tasks on this date: \");\n for (Timeable d: current.get()) {\n result.append(\"\\n\").append(count++).append(\". \").append(d);\n }\n return result.toString();\n } else {\n return \"No tasks on this date!\";\n }\n }", "public Task(String description, LocalDate date) {\n this.description = description;\n isDone = false;\n this.date = date;\n }", "public Date getCreateDate();", "public Date getCreateDate();", "public Date getCreateDate();", "WorkingTask getWorkingTask();", "public interface Recordable \n{\n\t/**\n\t * Returns the date that the work was created.\n\t * @return The task creation date\n\t */\n\tLocalDateTime getCreationDate();\n\t\n\t/**\n\t * Returns the date the work was completed.\n\t * @return The task completion date\n\t */\n\tLocalDateTime getCompletionDate();\n}", "public Date getCreatedDate();", "public Task getTask() {\n return task;\n }", "private Tasks createDurationTaskForSameDayEvent(Tasks task, String descriptionOfTask, String date, String startTime, String endTime) {\n if (checkValidDate(date) && checkValidTime(startTime) && checkValidTime(endTime)) {\n if (checkStartTimeBeforeEndTime(startTime, endTime)) {\n Duration durationPeriod = new Duration(date, startTime, date, endTime);\n task = new DurationTask(descriptionOfTask, durationPeriod);\n } else {\n Duration durationPeriod = new Duration(date, endTime, date, startTime);\n task = new DurationTask(descriptionOfTask, durationPeriod);\n }\n }\n return task;\n }", "private Task createTaskFromGivenArgs(Name name, TaskDate taskStartDate, TaskDate taskEndDate, Status taskStatus) {\n\t if (isEventTask(taskStartDate, taskEndDate)) {\n\t return new EventTask(name, taskStartDate, taskEndDate, taskStatus);\n\t }\n\t if (isDeadline(taskEndDate)) {\n\t return new DeadlineTask(name, taskEndDate, taskStatus);\n\t }\n\t return new Task(name, taskStatus);\n\t}", "public Date getDateObject(){\n \n Date date = new Date(this.getAnio(), this.getMes(), this.getDia());\n return date;\n }", "public AgendaItem(String task, Calendar dueDate) {\n this.task = task;\n this.dueDate = dueDate;\n }", "protected Date getTodaysDate() \t{ return this.todaysDate; }", "Date getCreatedDate();", "public Project getTasks(String projectId) {\n try {\n\n String selectProject = \"select * from PROJECTS where PROJECT_ID = ?\";\n connection = ConnectionManager.getConnection();\n PreparedStatement ps = connection.prepareStatement(selectProject);\n ps.setString(1, projectId);\n ResultSet rs = ps.executeQuery();\n if (rs.next()) {\n String startdate = rs.getString(\"STARTDATE\");\n String invoicesent = rs.getString(\"INVOICESENT\");\n String hours = rs.getString(\"HOURS\");\n String client = \"\";\n String duedate = rs.getString(\"DUEDATE\");\n String description = rs.getString(\"DESCRIPTION\");\n Project p = new Project(client, description, projectId,\n duedate, startdate, hours, duedate, duedate,\n invoicesent, invoicesent);\n rs.close();\n ps.close();\n return p;\n } else {\n return null;\n }\n } catch (SQLException sqle) {\n sqle.printStackTrace(); // for debugging\n return null;\n }\n }", "private static Task createTask(String line) throws DukeException {\n String type=line.split(\"]\")[0];\n String isDone=line.split(\"]\")[1];\n String detail=line.split(\"]\")[2];\n if(type.contains(\"T\")){\n if(isDone.contains(\"✘\")){\n return new ToDo(detail.substring(1),false);\n }else if(isDone.contains(\"✓\")){\n return new ToDo(detail.substring(1),true);\n }\n\n }\n if(type.contains(\"D\")) {\n if (isDone.contains(\"✘\")) {\n int dividerPosition = detail.indexOf(\"do by:\");\n String itemName = detail.substring(0, dividerPosition);\n String itemName1 = detail.substring(dividerPosition,detail.length());\n String itemName2 = itemName1.replace(\"do by:\", \"\");\n return new Deadline(itemName, DeadlineCommand.convertDeadline(itemName2));\n } else if (isDone.contains(\"✓\")) {\n int dividerPosition = detail.indexOf(\"do by:\");\n String itemName = detail.substring(0, dividerPosition);\n String itemName1 = detail.substring(dividerPosition,detail.length());\n String itemName2 = itemName1.replace(\"do by:\", \"\");\n return new Deadline(itemName, DeadlineCommand.convertDeadline(itemName2));\n }\n }\n if(type.contains(\"E\")){\n if (isDone.contains(\"✘\")) {\n int dividerPosition = detail.indexOf(\"at:\");\n String itemName = detail.substring(0, dividerPosition);\n String itemName1 = detail.substring(dividerPosition,detail.length());\n String itemName2 = itemName1.replace(\"at:\", \"\");\n return new Event(itemName, EventCommand.convertEvent(itemName2));\n } else if (isDone.contains(\"✓\")) {\n int dividerPosition = detail.indexOf(\"at:\");\n String itemName = detail.substring(0, dividerPosition);\n String itemName1 = detail.substring(dividerPosition,detail.length());\n String itemName2 = itemName1.replace(\"at:\", \"\");\n return new Event(itemName, EventCommand.convertEvent(itemName2));\n }\n }\n\n else{\n throw new DukeException(\"☹ OOPS!!! Missing type element for CREATE TASK\");\n }\n return new ToDo();\n }", "public Date getCreateDate() { return this.createDate; }", "@Override\n\tpublic Date getQueuedDate() {\n\t\treturn model.getQueuedDate();\n\t}", "public static List<TaskTimeElement> findAllByTaskDate(String taskDate) {\r\n String sql = null;\r\n List<TaskTimeElement> ret = new ArrayList<TaskTimeElement>();\r\n Statement theStatement = null;\r\n Connection theConnection = null;\r\n ResultSet rs = null;\r\n\r\n try {\r\n theConnection = AdminConnectionManager.getConnection(ME + \".findAllByTaskDate\");\r\n theStatement = theConnection.createStatement();\r\n sql = \"SELECT \" +\r\n \"ID\" +\r\n \",DURATION\" +\r\n \",TASKNAME\" +\r\n \",USERNAME\" +\r\n \" FROM TaskTimeElement\" +\r\n \" WHERE TASKDATE=\" + \r\n \"'\" + DatabaseBase.encodeToSql(taskDate) + \"'\" +\r\n \" AND ENABLED IS TRUE\" +\r\n (userName == null\r\n ? \"\"\r\n : (\" AND USERNAME='\" + DatabaseBase.encodeToSql(userName) + \"'\")) +\r\n \" ORDER BY TASKNAME\";\r\n rs = theStatement.executeQuery(sql);\r\n TaskTimeElement object = null;\r\n while (rs.next()) {\r\n object = new TaskTimeElement();\r\n object.setTaskDate(taskDate);\r\n object.setEnabled(true);\r\n int i = 1;\r\n object.setId(rs.getLong(i++));\r\n object.setDuration(rs.getDouble(i++));\r\n object.setTaskName(rs.getString(i++));\r\n object.setUserName(rs.getString(i++));\r\n ret.add(object);\r\n }\r\n } catch (SQLException sqle) {\r\n Trace.error(\"sql = \" + sql, sqle);\r\n }\r\n finally {\r\n if (rs != null) {\r\n try {\r\n rs.close();\r\n }\r\n catch (SQLException e) {}\r\n }\r\n if (theStatement != null) {\r\n try {\r\n theStatement.close();\r\n }\r\n catch (SQLException e) {}\r\n }\r\n if (theConnection != null)\r\n AdminConnectionManager.releaseConnection(theConnection);\r\n }\r\n return ret;\r\n }", "@Override\n\tpublic Date getCreateDate();", "@Override\n\tpublic Date getCreateDate();", "public interface ReadOnlyTask {\n\n Content getContent();\n TaskDate getDate();\n TaskDate getEndDate();\n TaskTime getTime();\n TaskTime getEndTime();\n //@@author A0147989B\n Integer getDuration();\n boolean setNext();\n boolean getDone();\n boolean setDone();\n boolean setUndone();\n boolean getImportant();\n boolean setImportant();\n boolean setUnimportant();\n boolean setDate(String newDate) throws IllegalValueException, ParseException;\n boolean setEndDate(String newEndDate) throws IllegalValueException, ParseException;\n boolean setContent(String newContent) throws IllegalValueException;\n boolean setTime(String newTime) throws IllegalValueException, ParseException;\n boolean setEndTime(String newEndTime) throws IllegalValueException, ParseException;\n //@@author\n boolean addTags(ArrayList<String> tagsToAdd) throws DuplicateTagException, IllegalValueException;\n boolean deleteTags(ArrayList<String> tagsToDel) throws DuplicateTagException, IllegalValueException;\n void setTags(UniqueTagList uniqueTagList);\n /**\n * The returned TagList is a deep copy of the internal TagList,\n * changes on the returned list will not affect the task's internal tags.\n */\n UniqueTagList getTags();\n\n /**\n * Returns true if both have the same state. (interfaces cannot override .equals)\n */\n default boolean isSameStateAs(ReadOnlyTask other) {\n return other == this // short circuit if same object\n || (other != null // this is first to avoid NPE below\n && other.getContent().equals(this.getContent())); // state checks here onwards\n //&& other.getDate().equals(this.getDate())\n //&& other.getTime().equals(this.getTime()));\n }\n\n /**\n * Formats the task as text, showing all task details.\n */ \n default String getAsText0() {\n final StringBuilder builder = new StringBuilder();\n if (this.getEndDate() != null)\n builder.append(getContent())\n .append(\" \")\n .append(getDate().dateString)\n .append(\" \")\n .append(getTime().timeString)\n .append(\" - \")\n .append(getEndDate().dateString)\n .append(\" \")\n .append(getEndTime().timeString)\n .append(\" \");\n else \n builder.append(getContent())\n .append(\" \")\n .append(getDate())\n .append(\" \")\n .append(getTime())\n .append(\" \");\n \n if (getDuration() != null) builder .append(\"repeat per \"+getDuration()+\" days \");\n builder.append(\" Tags: \");\n getTags().forEach(builder::append);\n return builder.toString();\n }\n \n /**\n * Returns a string representation of this task's tags\n */\n default String tagsString() {\n final StringBuffer buffer = new StringBuffer();\n final String separator = \", \";\n getTags().forEach(tag -> buffer.append(tag).append(separator));\n if (buffer.length() == 0) {\n return \"\";\n } else {\n return buffer.substring(0, buffer.length() - separator.length());\n }\n }\n \n\t\n\t\n\t\n}", "public Task(Task task) {\r\n\t\tthis.id = task.id;\r\n\t\tthis.description = task.description;\r\n\t\tthis.processor = task.processor;\r\n\t\tthis.status = task.status;\r\n\r\n\t\tthis.dueDate = new GregorianCalendar(task.dueDate.get(GregorianCalendar.YEAR), \r\n\t\t\t\ttask.dueDate.get(GregorianCalendar.MONTH), \r\n\t\t\t\ttask.dueDate.get(GregorianCalendar.DAY_OF_MONTH));\r\n\r\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"dd.MM.yyyy\");\r\n\t\tthis.formatedDueDate = sdf.format(dueDate.getTime());\r\n\t\tthis.next = task.next;\r\n\t}", "public Task makeTask() {\n Task new_task = new Task();\n new_task.setAction(this);\n new_task.setDeadline(\n new Date(System.currentTimeMillis() + deadlineSeconds() * 1000L));\n\n return new_task;\n }", "@Override\n public String getTask(String id) {\n JSONObject response = new JSONObject();\n try {\n ITaskInstance task = dataAccessTosca.getTaskInstance(id);\n if (task != null) {\n //get the belonging work item\n List<IWorkItem> workItem = dataAccessTosca.getWorkItems(id);\n //get the presentationDetails\n JSONObject presentation = new JSONObject();\n presentation.put(\"title\", task.getPresentationName());\n presentation.put(\"subject\", task.getPresentationSubject());\n presentation.put(\"description\", task.getPresentationDescription());\n //get inputParameters\n Set<IInputParameter> inputParameters = dataAccessTosca.getInputParametersByTask(task.getId());\n\n //get outputParameters\n Set<IOutputParameter> outputParameters = dataAccessTosca.getOutputParametersByTask(task.getId());\n //put information in response\n response.put(\"id\", task.getId());\n response.put(\"name\", task.getName());\n JSONArray taskTypes = new JSONArray();\n taskTypes.addAll(dataAccessTosca.getTaskTypeByTask(task.getId()));\n response.put(\"taskTypes\", taskTypes);\n response.put(\"priority\", task.getPriority());\n response.put(\"status\", task.getStatus().name().toLowerCase());\n if (workItem.get(0).getAssignee() != null) {\n response.put(\"claimedBy\", workItem.get(0).getAssignee().getUserId());\n }\n response.put(\"presentationDetails\",presentation);\n if (inputParameters != null) {\n JSONArray inputs = new JSONArray();\n for (IInputParameter input : inputParameters) {\n JSONObject i = new JSONObject();\n i.put(\"label\", input.getLabel());\n i.put(\"value\", input.getValue());\n inputs.add(i);\n }\n response.put(\"inputParameters\", inputs);\n }\n if (outputParameters != null) {\n JSONArray outputs = new JSONArray();\n for (IOutputParameter output : outputParameters) {\n JSONObject i = new JSONObject();\n i.put(\"label\", output.getLabel());\n i.put(\"value\", output.getValue());\n outputs.add(i);\n }\n response.put(\"outputParameters\",outputs);\n }\n\n return response.toString();\n }\n } catch (DatabaseException e) {\n e.printStackTrace();\n }\n return null;\n }", "private static void addTask() {\n Task task = new Task();\n System.out.println(\"Podaj tytuł zadania\");\n task.setTitle(scanner.nextLine());\n System.out.println(\"Podaj datę wykonania zadania (yyyy-mm-dd)\");\n\n while (true) {\n try {\n LocalDate parse = LocalDate.parse(scanner.nextLine(), DateTimeFormatter.ISO_LOCAL_DATE);\n task.setExecuteDate(parse);\n break;\n } catch (DateTimeParseException e) {\n System.out.println(\"Nieprawidłowy format daty. Spróbuj YYYY-MM-DD\");\n }\n }\n\n task.setCreationDate(LocalDate.now());\n\n queue.offer(task);\n System.out.println(\"tutuaj\");\n }", "public Calendar getLastAppendedStartDate(ReadOnlyTask task) {\n Calendar cal = new GregorianCalendar();\n cal.setTime(task.getLastAppendedComponent().getStartDate().getDate());\n return cal;\n }", "@FXML\n\tprivate void dateSelected(ActionEvent event) {\n\t\tint selectedIndex = taskList.getSelectionModel().getSelectedIndex();\n\t\tString task = taskList.getSelectionModel().getSelectedItem();\n\t\tString selectedDate = dateSelector.getValue().toString();\n\t\tif (task.contains(\" due by \")) {\n\t\t\ttask = task.substring(0, task.lastIndexOf(\" \")) + \" \" + selectedDate;\n\n\t\t} else {\n\t\t\ttaskList.getItems().add(selectedIndex, task +\" due by \" + selectedDate );\n\t\t\ttaskList.getItems().remove(selectedIndex + 1);\n\t\t}\n\t\ttask = task.replace(\"@task \", \"\");\n\t\tString task_split[] = task.split(\" \", 2);\n\t\tclient.setTaskDeadline(task_split[1].replace(\"\\n\", \"\"), selectedDate);\n\t}", "@Override\r\n public Entity row(Entity entity) {\n int estimated = EntityTools.getIntField(entity, \"estimated\");\r\n int dayWhenInProgress = EntityTools.removeIntField(entity, \"day-when-in-progress\");\r\n int newEstimated = EntityTools.removeIntField(entity, \"new-estimated\");\r\n int newRemaining = EntityTools.removeIntField(entity, \"new-remaining\");\r\n int dayWhenCompleted = EntityTools.removeIntField(entity, \"day-when-completed\");\r\n String originalTeamId = EntityTools.removeField(entity, \"team-id\");\r\n Entity response = super.row(entity);\r\n String agmId;\r\n try {\r\n agmId = response.getId().toString();\r\n } catch (FieldNotFoundException e) {\r\n throw new IllegalStateException(e);\r\n }\r\n\r\n if (dayWhenCompleted >= 0 && dayWhenInProgress >= 0) {\r\n if (dayWhenCompleted <= dayWhenInProgress) {\r\n log.warn(\"Day to be in progress (\"+dayWhenInProgress+\") is after the day to be completed (\"+dayWhenCompleted+\")\");\r\n }\r\n }\r\n if (dayWhenInProgress > 0) {\r\n List<Object> work = workCalendar.get(dayWhenInProgress);\r\n if (work == null) {\r\n work = new LinkedList<>();\r\n workCalendar.put(dayWhenInProgress, work);\r\n }\r\n work.add(\"In Progress\");\r\n work.add(agmId);\r\n work.add(estimated);\r\n work.add(newEstimated);\r\n work.add(newRemaining);\r\n work.add(originalTeamId);\r\n log.debug(\"On day \"+dayWhenInProgress+\" task \"+agmId+\" belonging to \"+originalTeamId+\" switching to In Progress; remaining set to \"+newRemaining);\r\n }\r\n if (dayWhenCompleted > 0) {\r\n List<Object> work = workCalendar.get(dayWhenCompleted);\r\n if (work == null) {\r\n work = new LinkedList<>();\r\n workCalendar.put(dayWhenCompleted, work);\r\n }\r\n work.add(\"Completed\");\r\n work.add(agmId);\r\n work.add(newEstimated);\r\n work.add(originalTeamId);\r\n log.debug(\"On day \"+dayWhenCompleted+\" task \"+agmId+\" belonging to \"+originalTeamId+\" switching to Completed; remaining set to \"+0);\r\n }\r\n return response;\r\n }", "public Date getCreDate() {\n return creDate;\n }", "public void printByDate(ArrayList<Task> tasks, String description) {\n ArrayList<Task> filteredTasks;\n filteredTasks = (ArrayList<Task>) tasks.stream()\n .filter((t) -> t instanceof Deadline | t instanceof Event)\n .filter((t) -> t.getDueDate().contains(description))\n .collect(Collectors.toList());\n if (filteredTasks.size() == 0) {\n System.out.println(\"OOPS!!! We can't find anything according to this date.\");\n } else {\n System.out.println(\"Here's what we have found: \");\n printList(filteredTasks);\n }\n }", "public TaskOccurrence buildTaskOccurrenceFromTask(ReadOnlyTask task, String startDate, String endDate) {\n TaskOccurrence toBuild = new TaskOccurrence(task.getLastAppendedComponent());\n toBuild = changeStartDate(toBuild, startDate);\n toBuild = changeEndDate(toBuild, endDate);\n return toBuild;\n }", "public Date getDepartureDate();", "public DateTime getCreated();", "Date getInvoicedDate();", "public String getStartDate();", "public Task getTask(int index) {\n return records.get(index);\n }", "public Date getDate() {\n return dateTime;\n }", "public abstract SystemTask getTask(Project project);", "@Override\n\tpublic Date getCreateDate() {\n\t\treturn model.getCreateDate();\n\t}", "@Override\n\tpublic Date getCreateDate() {\n\t\treturn model.getCreateDate();\n\t}", "@Override\n\tpublic Date getCreateDate() {\n\t\treturn model.getCreateDate();\n\t}", "Date getCreateDate();", "Date getCreateDate();", "long getDate() { return (act != null ? act.getDate() : 0); }", "public String getTask() {\n return task;\n }", "public String getTask() {\n return task;\n }", "public String get_task_due_date()\n {\n return task_due_date.toString();\n }", "@Override\n\tpublic Date getCreateDate() {\n\t\treturn _second.getCreateDate();\n\t}", "private Tasks createDurationTask(Tasks task, String descriptionOfTask, ArrayList<String> timeArray) {\n if (timeArray.size() == 3) {\n String date = timeArray.get(0);\n String startTime = timeArray.get(1);\n String endTime = timeArray.get(2);\n task = createDurationTaskForSameDayEvent(task, descriptionOfTask, date, startTime, endTime);\n } else {\n String startDate = timeArray.get(0);\n String startTime = timeArray.get(1);\n String endDate = timeArray.get(2);\n String endTime = timeArray.get(3);\n task = createDurationTaskForFullInputCommand(task, descriptionOfTask, startDate, startTime, endDate, endTime);\n }\n return task;\n }", "public Date getFechaInclusion()\r\n/* 150: */ {\r\n/* 151:170 */ return this.fechaInclusion;\r\n/* 152: */ }", "public Task toModelType() throws IllegalValueException {\n\t\tfinal Name name = new Name(this.name);\n\t\tfinal TaskDate taskStartDate = DateUtil.convertJaxbStringToTaskDate(this.startDate);\n\t\tfinal TaskDate taskEndDate = DateUtil.convertJaxbStringToTaskDate(this.endDate);\n\t\tfinal Status status = new Status(this.status);\n\t\treturn createTaskFromGivenArgs(name, taskStartDate, taskEndDate, status);\n\t}", "private String getSelectionTask() {\n String selection = \"\";\n\n if (mTypeTask.equals(TaskContract.TypeTask.Expired)) {\n selection = TaskEntry.COLUMN_TARGET_DATE_TIME + \"<?\";\n } else if(mTypeTask.equals(TaskContract.TypeTask.Today)) {\n selection = TaskEntry.COLUMN_TARGET_DATE_TIME + \"=?\";\n } else if(mTypeTask.equals(TaskContract.TypeTask.Future)) {\n selection = TaskEntry.COLUMN_TARGET_DATE_TIME + \">?\";\n }\n\n return selection;\n }", "public static Task toTask(DBObject doc) {\n\t\tTask p = new Task();\n\t\tp.setTask((String) doc.get(\"task\"));\n\t\tp.setStatus((String) doc.get(\"status\"));\n\t\tp.setPriority((String) doc.get(\"priority\"));\n\t\tp.setDuedate((String) doc.get(\"duedate\"));\n\t\tObjectId id = (ObjectId) doc.get(\"_id\");\n\t\tp.setId(id.toString());\n\t\treturn p;\n\n\t}", "long getFetchedDate();", "public ITask getTask() {\n \t\treturn task;\n \t}", "public DateTime getCreatedOn();", "@Override\n public Date getDate() {\n return date;\n }", "public int countByTodoDateTime(Date todoDateTime);", "public abstract Date getStartTime();", "public Timestamp getMovementDate();", "void getWeatherObject(WeatherObject weatherObject);", "public TaskDetails getSpecificTask (int position){\n return taskList.get(position);\n }", "Date getCheckedOut();", "public Date getStartDate();" ]
[ "0.6486395", "0.613228", "0.61198246", "0.59060717", "0.58736587", "0.585187", "0.572259", "0.5682711", "0.5657095", "0.5650887", "0.5647255", "0.5632218", "0.56118023", "0.55852854", "0.55822295", "0.5561482", "0.55565447", "0.5556246", "0.5552674", "0.5544353", "0.5525942", "0.55144453", "0.55139077", "0.5508721", "0.5508437", "0.5508437", "0.54888105", "0.5475421", "0.5459138", "0.54523826", "0.5442948", "0.54323864", "0.54299355", "0.5416649", "0.5416535", "0.54040045", "0.53957283", "0.5389841", "0.5389841", "0.5389841", "0.53838193", "0.53699523", "0.5353627", "0.5340562", "0.53358006", "0.53300107", "0.5327046", "0.53249335", "0.5315946", "0.53052276", "0.530507", "0.5298888", "0.52904654", "0.52902967", "0.52758527", "0.5266092", "0.5266092", "0.5261804", "0.5260941", "0.5260707", "0.5253502", "0.52483594", "0.52468836", "0.524204", "0.5241259", "0.52409023", "0.5240588", "0.52400124", "0.5238583", "0.5234155", "0.5231115", "0.522851", "0.52278847", "0.5227535", "0.52271736", "0.5224719", "0.5224719", "0.5224719", "0.52238846", "0.52238846", "0.5218211", "0.5212995", "0.5212995", "0.52097523", "0.51998216", "0.5195631", "0.5195438", "0.51873404", "0.51797754", "0.5179481", "0.5166474", "0.516481", "0.5163372", "0.51624465", "0.5160037", "0.51550555", "0.51530796", "0.51481074", "0.51471895", "0.51344144", "0.5132973" ]
0.0
-1
EFFECTS:prints the statuses without spaces
private static String getStatus(Task task) { Status myStatus = task.getStatus(); if (myStatus == Status.UP_NEXT) { return "UP_NEXT"; } else if (myStatus == Status.IN_PROGRESS) { return "IN_PROGRESS"; } else { return myStatus.toString(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void printStatus(){\n System.out.println();\n System.out.println(\"Status: \");\n System.out.println(currentRoom.getLongDescription());\n currentRoom.printItems();\n System.out.println(\"You have made \" + moves + \" moves so far.\");\n }", "public void printStatus();", "public static void status(){\n System.out.print(\"\\033[H\\033[2J\");//limpia pantalla\n System.out.flush();\n System.out.printf(\"\\nNOMBRE:\\t\\t\\t\"+nombrePersonaje);\n\tSystem.out.printf(\"\\nPuntos De Vida (HP):\\t\"+puntosDeVida);\n\tSystem.out.printf(\"\\nPuntos De mana (MP):\\t\"+puntosDeMana);\n System.out.printf(\"\\nNivel: \\t\\t\\t\"+nivel);\n\tSystem.out.printf(\"\\nExperiencia:\\t\\t\"+experiencia);\n\tSystem.out.printf(\"\\nOro: \\t\\t\"+oro);\n System.out.printf(\"\\nPotion:\\t\\t\\t\"+articulo1);\n System.out.printf(\"\\nHi-Potion:\\t\\t\"+articulo2);\n System.out.printf(\"\\nM-Potion:\\t\\t\"+articulo3);\n System.out.printf(\"\\n\\tEnemigos Vencidos:\\t\");\n\tSystem.out.printf(\"\\nNombre:\\t\\t\\tNo.Derrotas\");\n System.out.printf(\"\\nDark Wolf:\\t\\t\"+enemigoVencido1);\n\tSystem.out.printf(\"\\nDragon:\\t\\t\\t\"+enemigoVencido2);\n System.out.printf(\"\\nMighty Golem:\\t\\t\"+enemigoVencido3);\t\n }", "public String getStatus() {\n\t\tString result = getName() + \"\\n-----------------------------\\n\\n\";\n\t\tfor(int i = 0; i < lines.size(); i++) {\n\t\t\tresult = result + lines.get(i).getStatus() + \"\\n\";\n\t\t}\n\t\t\n\t\treturn result;\n\t}", "public String showStatus();", "public void getStatus()\r\n {\r\n //if this person has no weapon or armor, these values are kept\r\n String weaponName = \"bare hands\";\r\n String armorName = \"none\";\r\n int weaponAtk = 0;\r\n int armorDef = 0;\r\n \r\n if (weapon!=null)\r\n {\r\n weaponName = weapon.getName();\r\n weaponAtk = weapon.getRating();\r\n }\r\n if (armor!=null)\r\n {\r\n armorName = armor.getName();\r\n armorDef = armor.getRating();\r\n }\r\n \r\n String itemList = \"\";\r\n for (Thing t : items)\r\n itemList += t.getName() + \", \";\r\n \r\n System.out.println(\"Health: \" + health + \"/\" + maxHealth + \"\\n\" +\r\n \"ATK: \" + attack + \"\\n\" +\r\n \"DEF: \" + defense + \"\\n\" +\r\n \"Weapon: \" + weaponName + \" (\" + weaponAtk + \" ATK\" + \")\" + \"\\n\" +\r\n \"Armor: \" + armorName + \" (\" + armorDef + \" DEF\" + \")\");\r\n }", "public String getStatus() {\n\n if (this.health > 0) {\n StringBuilder stringBuilder = new StringBuilder();\n\n String[] carrierSelfStatus = {\n \"HP: \" + this.health,\n \"Aircraft count: \" + this.aircrafts.size(),\n \"Ammo Storage: \" + this.ammoStorage,\n \"Total damage: \" + this.getAllDamageDone(),\n };\n stringBuilder.append(String.join(\", \", carrierSelfStatus));\n stringBuilder.append(\"\\nAircrafts:\");\n\n List<String> jetStatus = new ArrayList<>();\n for (Jet jet : this.aircrafts) {\n jetStatus.add(\"\\n\");\n jetStatus.add(jet.getStatus());\n }\n stringBuilder.append(String.join(\"\", jetStatus));\n\n return stringBuilder.toString();\n } else {\n return \"It's dead Jim :(\";\n }\n }", "java.lang.String getStatus();", "java.lang.String getStatus();", "java.lang.String getStatus();", "java.lang.String getStatus();", "public void printStatus() {\n printBranches();\n printAllStages();\n printModified();\n printUntracked();\n }", "private void displayStatus(String status) {\n\t\tif (!status.equals(\"\")) {\n\t\t\tdouble x = LEFT_MARGIN;\n\t\t\tdouble y = nameY + IMAGE_MARGIN + IMAGE_HEIGHT + STATUS_MARGIN;\n\t\t\tGLabel pstatus = new GLabel(status);\n\t\t\tpstatus.setFont(PROFILE_STATUS_FONT);\n\t\t\tif (getElementAt(x, y) != null) {\n\t\t\t\tremove(getElementAt(x, y));\n\t\t\t}\n\t\t\tadd(pstatus, x, y);\n\t\t}\n\t}", "public static void battleStatus(){\n Program.terminal.println(\"________________TURN \"+ turn +\"________________\");\n Program.terminal.println(\"\");\n Program.terminal.println(\" +-------------------- \");\n Program.terminal.println(\" |Name:\"+ currentMonster.name);\n Program.terminal.println(\" |HP: \" + currentMonster.currentHp+\"/\"+currentMonster.hp);\n Program.terminal.println(\" |\" + barGauge(1));\n Program.terminal.println(\" +-------------------- \");\n Program.terminal.println(\"\");\n Program.terminal.println(\"My HP:\" + MainCharacter.hpNow +\"/\"+ MainCharacter.hpMax + \" \" + barGauge(2));\n Program.terminal.println(\"My MP:\" + MainCharacter.mpNow +\"/\"+ MainCharacter.mpMax + \" \" + barGauge(3));\n Program.terminal.println(\"\");\n askAction();\n }", "public void showStatus( String s ) {\n // do nothing\n }", "public static void updateStatusBar(){\n\t\tstatus.setText(\"Sensors: \"+Sensor.idToSensor.size()+(TurnController.getInstance().getCurrentTurn()!=null?\", Turn: \"+TurnController.getInstance().getCurrentTurn().turn:\"\"));\n\t}", "public void cleanStatuses(){\n\n System.out.println(\"cleaning battle statuses: \");\n // for(MovingEntity enemy: enemies){\n for(MovingEntity enemy: battleEnemies){\n for (Status enemyStatus: enemy.getStatusList()) {\n if (enemyStatus != null) enemyStatus.endStatus(enemy);\n }\n }\n\n //for(MovingEntity friendly: friendlies){\n for(MovingEntity friendly: battleAllies){\n System.out.println(\"cleaning battle statuses for: \" + friendly.getID());\n System.out.println(friendly.getStatusIDs().toString());\n if (friendly.getStatusIDs().contains(\"Tranced\")) {\n // kill off tranced entities\n friendly.setCurrHP(0);\n }\n for (Status friendlyStatus: friendly.getStatusList()) {\n System.out.println(\"status was: \" + friendlyStatus.getID());\n if (friendlyStatus != null) friendlyStatus.endStatus(friendly);\n }\n }\n\n }", "public void printPlayerStatus() {\n System.out.println(getName() + \" owns \" +\n getOwnedCountries().size() + \" countries and \"\n + getArmyCount() + \" armies.\");\n\n String ownedCountries = \"\";\n for (Country c : getOwnedCountries())\n {\n ownedCountries += c.getCountryName().name() + \": \" + c.getArmyOccupied() + \"\\n\";\n }\n System.out.println (ownedCountries);\n }", "public String getPlayersStatus(){\n\t\tString pStatus = \"\";\n\t\tPlayer player;\n\t\tfor(int i = 0; i < this.players.size(); i++){\n\t\t\tplayer = this.players.get(i);\n\t\t\tpStatus += \"[\" +player.getName() + \": \";\n\t\t\tpStatus += Integer.toString(player.numCards()) + \"] \";\n\t\t} \n\t\t\n\t\treturn pStatus;\n\t}", "public void showStatus(){\n\t\tjlMoves.setText(\"\"+moves);\n\t\tjlCorrectMoves.setText(\"\"+correctMoves);\n\t\tjlWrongMoves.setText(\"\"+wrongMoves);\n\t\tjlOpenMoves.setText(\"\"+openMoves);\n\t\tjlNumberGames.setText(\"\"+numberGames);\n\t}", "public void status() {\n\t\tString bName;\n\t\tSystem.out.println(\"=== Branches ===\");\n\t\tIterator iter = myBranch.entrySet().iterator();\n\t\twhile (iter.hasNext()) {\n\t\t\tMap.Entry entry = (Map.Entry) iter.next();\n\t\t\tbName = (String) entry.getKey();\n\n\t\t\tif (currentBranch.equals(bName)) {\n\t\t\t\tSystem.out.println(\"*\" + bName);\n\t\t\t} else {\n\t\t\t\tSystem.out.println(bName);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"\");\n\t\tSystem.out.println(\"=== Staged Files ===\");\n\t\tfor (int i = 0; i < stagedFiles.size(); i++) {\n\t\t\tSystem.out.println(stagedFiles.get(i));\n\t\t}\n\t\tSystem.out.println(\"\");\n\t\tSystem.out.println(\"=== Files Marked for Untracking ===\");\n\t\tfor (int i = 0; i < untrackedFiles.size(); i++) {\n\t\t\tSystem.out.println(untrackedFiles.get(i));\n\t\t}\n\t}", "private static void statusCommand() {\n String lineFormat = \"%-8s | %-15s | %s\\n\";\n\n List<Job> neededJobs = fetchNeededJobs();\n\n // table header\n if (neededJobs.size() < 2) {\n System.out.printf(lineFormat, \"STATE\", \"START TIME\", \"JOB DIRECTORY\");\n for (int i = 0; i < 78; i++) {\n System.out.print(((9 == i || 27 == i) ? \"+\" : \"-\"));\n }\n System.out.println();\n }\n\n // table rows\n ObjectCounter<JobState> counter = new ObjectCounter<JobState>();\n for (Job job : neededJobs) {\n Date startDate = job.getStartDate();\n JobState state = job.getState();\n counter.add(state);\n String startDateStr = (null == startDate) ? \"N/A\" : new SimpleDateFormat(\"yyyyMMdd HHmmss\").format(startDate);\n System.out.printf(lineFormat, state.toString(), startDateStr, job.getDir());\n }\n\n // table footer\n System.out.println();\n String sumFormat = \"%6d %s\\n\";\n System.out.printf(sumFormat, heritrix.getJobs().size(), \"TOTAL JOBS\");\n for (JobState state : JobState.values()) {\n if (counter.getMap().keySet().contains(state)) {\n System.out.printf(sumFormat, counter.get(state), state.toString());\n }\n }\n }", "String getStatus();", "String getStatus();", "String getStatus();", "String getStatus();", "String getStatus();", "String status();", "String status();", "public String getStatus() {\n\t\t\n\t\tif(status.equals(\"receptor\")) {\n\t\t\treturn status.substring(0,1).toUpperCase().concat(status.substring(1));\n\t\t}\n\t\treturn status;\n\t}", "private String evaluateStatus(Status status) {\n switch (status) {\n case PENDING:\n return \"color: blue !important;\";// blue\n case DECLINED:\n return \"color: #DC143C !important;\";// red\n case CANCELED:\n return \"color: purple !important;\";// purple\n case RUNNING:\n return \"color: darkcyan !important;\";// cyan\n case COMPLETE:\n return \"color: #449d44 !important;\";// lime\n default:\n return \"\";\n }\n }", "@Override\n public String toString() {\n String listChecker;\n if (status) {\n listChecker = \"[\\u2713]\";\n } else {\n listChecker = \"[x]\";\n }\n String finalString = listChecker + \" \" + getActivity();\n return finalString;\n }", "private void internalSetStatus(String status) {\n jStatusLine.setText(\"Status: \" + status);\n }", "public void showStatus(Character fighter1, Character fighter2, int health1, int health2) {\n System.out.println();\n System.out.println(\"------------------------------\");\n System.out.println(String.format(\"%-15s%15s\\n%-15d%15d\", fighter1.getName(), fighter2.getName(), health1, health2));\n System.out.println(\"------------------------------\");\n System.out.println();\n }", "public String printShortStatus(Status status) {\n StringBuilder sb = new StringBuilder();\n sb.append(status.getCode());\n if (status.getDescription() != null) {\n sb.append(\"(\");\n sb.append(status.getDescription());\n sb.append(\")\");\n }\n return sb.toString();\n }", "public String getTeamStatus(){\n int i;\n StringBuilder s = new StringBuilder();\n\n s.append(employeeStatus());\n if(this.curHeadCount <= 0)\n s.append(\" and no direct reports yet\");\n else {\n s.append(\" and is managing:\");\n for(i=0;i<this.curHeadCount;i++){\n s.append(\"\\n\");\n s.append(this.employee[i].employeeStatus());\n }\n }\n\n return s.toString();\n }", "@AutoEscape\n public String getStatusName();", "public String getStatusString() {\n String str = \"\";\n switch (actualStep) {\n case wait: { str = \"WAIT\"; break; }\n case press: { str = \"PRESS\"; break; }\n case hold: { str = \"HOLD\"; break; }\n case release: { str = \"RELEASE\"; break; }\n }\n return str;\n }", "public void printStatus() {\n\t\tSystem.out.println(\"Current : \"+current+\"\\n\"\n\t\t\t\t+ \"Tour restant : \"+nb_rounds+\"\\n\"\n\t\t\t\t\t\t+ \"Troupe restant : \"+nb_to_train);\n\t}", "public void status(leapstream.scoreboard.core.model.Status status) {\n Stati stati = status.is();\n foreground(stati);\n background(stati);\n label.text(\"\" + stati);\n }", "public String geraStatus() {\r\n\t\tString statusComplemento = \"\";\r\n\t\tif (this.temProcesso() == false) {\r\n\t\t\treturn \"Nenhum processo\\n\";\r\n\t\t} else {\r\n\t\t\tfor (int i = 0; i < this.escalonadores.size(); i++) {\r\n\t\t\t\tif (i > 0) {\r\n\t\t\t\t\tstatusComplemento += \" \";\r\n\t\t\t\t}\r\n\t\t\t\tstatusComplemento += i + 1 + \" - \";\r\n\t\t\t\tif (this.escalonadores.get(i).temProcesso()) {\r\n\t\t\t\t\tstatusComplemento += this.escalonadores.get(i).geraStatusComplemento();\r\n\t\t\t\t} else {\r\n\t\t\t\t\tstatusComplemento += \"\\n\";\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn statusComplemento;\r\n\t}", "private void updateStatusText() {\n Piece.Color playerColor = board.getTurnColor();\n\n if(board.isGameOver()) {\n if(board.isDraw()) {\n tvShowStatus.setTextColor(Color.BLUE);\n tvShowStatus.setText(\"DRAW\");\n }\n else if (board.getWinnerColor() == Piece.Color.Black) {\n tvShowStatus.setTextColor(Color.BLACK);\n tvShowStatus.setText(\"BLACK WINS\");\n }\n else {\n tvShowStatus.setTextColor(Color.WHITE);\n tvShowStatus.setText(\"WHITE WINS\");\n }\n }\n else if(playerColor == Piece.Color.Black) {\n tvShowStatus.setTextColor(Color.BLACK);\n tvShowStatus.setText(\"BLACK\");\n }\n else {\n tvShowStatus.setTextColor(Color.WHITE);\n tvShowStatus.setText(\"WHITE\");\n }\n }", "public String getStatus() {\r\n return \"[\" + getStatusIcon() + \"]\";\r\n }", "private String evaluateCheckStatus(CheckStatus status) {\n switch (status) {\n case AWAITING:\n return \"color: blue !important;\";\n case DECLINED:\n return \"color: #DC143C !important;\";\n case PAID:\n return \"color: #449d44 !important;\";\n default:\n return \"\";\n }\n }", "private boolean printing_status() {\n\t\treturn _status_line != null;\n\t}", "public void setgetStatus()\r\n\t{\r\n\t\tthis.status = 'S';\r\n\t}", "@DISPID(15)\n\t// = 0xf. The runtime will prefer the VTID if present\n\t@VTID(25)\n\tjava.lang.String status();", "void setStatus(java.lang.String status);", "public java.lang.CharSequence getStatus() {\n return status;\n }", "public java.lang.CharSequence getStatus() {\n return status;\n }", "public String getStatus(int status) {\n switch (status) {\n case 0:\n return \"FREE\";\n case 1:\n return \"IN_TRANSIT\";\n case 2:\n return \"WAITING_TO_LAND\";\n case 3:\n return \"GROUND_CLEARANCE_GRANTED\";\n case 4:\n return \"LANDING\";\n case 5:\n return \"LANDED\";\n case 6:\n return \"TAXING\";\n case 7:\n return \"UNLOADING\";\n case 8:\n return \"READY_CLEAN_AND_MAINT\";\n case 9:\n return \"FAULTY_AWAIT_CLEAN\";\n case 10:\n return \"CLEAN_AWAIT_MAINT\";\n case 11:\n return \"OK_AWAIT_CLEAN\";\n case 12:\n return \"AWAIT_REPAIR\";\n case 13:\n return \"READY_REFUEL\";\n case 14:\n return \"READY_PASSENGERS\";\n case 15:\n return \"READY_DEPART\";\n case 16:\n return \"AWAITING_TAXI\";\n case 17:\n return \"AWAITING_TAKEOFF\";\n case 18:\n return \"DEPARTING_THROUGH_LOCAL_AIRSPACE\";\n default:\n return \"UNKNOWN\";\n }//END SWITCH\n }", "public void print() {\n System.out.println(\"I am \" + status() + (muted ? \" and told to shut up *sadface*\" : \"\") + \" (\" + toString() + \")\");\n }", "public void setStatus(String stat)\n {\n status = stat;\n }", "public java.util.List<String> getStatuses() {\n return statuses;\n }", "private void printTestingStatus(final boolean status) {\n this.out.println();\n this.print(\n new If<Text>(\n () -> status,\n () -> new GreenText(\"Testing successful.\"),\n () -> new RedText(\"Testing failed.\")\n ).value().text()\n );\n this.out.println();\n }", "public String getStatus() { return status; }", "private String getShipsStatus() {\n //the basic strings which will hold the info\n String playerStatusBarBase = \"PLAYER STATUS: H: S: M: E%: \";\n String enemyStatusBarBase = \" ENEMY STATUS: H: S: M: E%: \";\n\n //converts the strings above to character arrays\n char[] playerStatusBarBaseToChar = playerStatusBarBase.toCharArray();\n char[] enemyStatusBarBaseToChar = enemyStatusBarBase.toCharArray();\n\n //makes a string from the players health, then converts to character array\n String playerHealth;\n if(this.playerShipHealth < 10) {\n playerHealth = \"0\" + this.playerShipHealth;\n }\n else {\n playerHealth = \"\" + this.playerShipHealth;\n }\n char[] playerHealthToChar = playerHealth.toCharArray();\n\n //makes a string from the enemy's health, then converts to character array\n String enemyHealth;\n if(this.enemyShipHealth < 10) {\n enemyHealth = \"0\" + this.enemyShipHealth;\n }\n else {\n enemyHealth = \"\" + this.enemyShipHealth;\n }\n char[] enemyHealthToChar = enemyHealth.toCharArray();\n\n //makes a string from the players shield, then converts to character array\n String playerShield = \"\" + this.playerShield;\n char[] playerShieldToChar = playerShield.toCharArray();\n\n //makes a string from the enemy's shield, then converts to character array\n String enemyShield = \"\" + this.enemyShield;\n char[] enemyShieldToChar = enemyShield.toCharArray();\n\n //makes a string from the players missile count, then converts to character array\n String playerMissile;\n if(this.playerMissile < 10) {\n playerMissile = \"0\" + this.playerMissile;\n }\n else {\n playerMissile = \"\" + this.playerMissile;\n }\n char[] playerMissileToChar = playerMissile.toCharArray();\n\n //makes a string from the enemy's missile count, then converts to character array\n String enemyMissile;\n if(this.enemyMissile < 10) {\n enemyMissile = \"0\" + this.enemyMissile;\n }\n else {\n enemyMissile = \"\" + this.enemyMissile;\n }\n char[] enemyMissileToChar = enemyMissile.toCharArray();\n\n //makes a string from the players evasion percent\n String playerEvasion;\n if(this.playerEvasionPercent * 100 < 10) {\n playerEvasion = \"00\" + (this.playerEvasionPercent * 100);\n }\n else if(this.playerEvasionPercent * 100 < 100) {\n playerEvasion = \"0\" + (this.playerEvasionPercent * 100);\n }\n else {\n playerEvasion = \"\" + this.playerEvasionPercent;\n }\n char[] playerEvasionToChar = playerEvasion.toCharArray();\n\n //makes a string from the enemy's evasion percent\n String enemyEvasion;\n if(this.enemyEvasionPercent * 100 < 10) {\n enemyEvasion = \"00\" + (this.enemyEvasionPercent * 100);\n }\n else if(this.enemyEvasionPercent * 100 < 100) {\n enemyEvasion = \"0\" + (this.enemyEvasionPercent *100);\n }\n else {\n enemyEvasion = \"\" + this.enemyEvasionPercent;\n }\n char[] enemyEvasionToChar = enemyEvasion.toCharArray();\n\n //sets parts of base array to the players values\n playerStatusBarBaseToChar[17] = playerHealthToChar[0];\n playerStatusBarBaseToChar[18] = playerHealthToChar[1];\n playerStatusBarBaseToChar[22] = playerShieldToChar[0];\n playerStatusBarBaseToChar[26] = playerMissileToChar[0];\n playerStatusBarBaseToChar[27] = playerMissileToChar[1];\n playerStatusBarBaseToChar[32] = playerEvasionToChar[0];\n playerStatusBarBaseToChar[33] = playerEvasionToChar[1];\n playerStatusBarBaseToChar[34] = playerEvasionToChar[2];\n\n //sets parts of base array to the enemy's values\n enemyStatusBarBaseToChar[17] = enemyHealthToChar[0];\n enemyStatusBarBaseToChar[18] = enemyHealthToChar[1];\n enemyStatusBarBaseToChar[22] = enemyShieldToChar[0];\n enemyStatusBarBaseToChar[26] = enemyMissileToChar[0];\n enemyStatusBarBaseToChar[27] = enemyMissileToChar[1];\n enemyStatusBarBaseToChar[32] = enemyEvasionToChar[0];\n enemyStatusBarBaseToChar[33] = enemyEvasionToChar[1];\n enemyStatusBarBaseToChar[34] = enemyEvasionToChar[2];\n\n //converts the character arrays above into strings\n String playerStatusBarFinal = new String(playerStatusBarBaseToChar);\n String enemyStatusBarFinal = new String(enemyStatusBarBaseToChar);\n\n //returns the new string with both ships values\n return playerStatusBarFinal + enemyStatusBarFinal;\n }", "public String getStatusString() {\n return status.toString();\n }", "public static void getStatus( Player player ) {\n Tools.Prt( player, ChatColor.GREEN + \"=== Premises Messages ===\", programCode );\n Messages.PlayerMessage.keySet().forEach ( ( gn ) -> {\n String mainStr = ChatColor.YELLOW + Messages.PlayerMessage.get( gn );\n mainStr = mainStr.replace( \"%player%\", ChatColor.AQUA + \"%player%\" + ChatColor.YELLOW );\n mainStr = mainStr.replace( \"%message%\", ChatColor.AQUA + \"%message%\" + ChatColor.YELLOW );\n mainStr = mainStr.replace( \"%tool%\", ChatColor.AQUA + \"%tool%\" + ChatColor.YELLOW );\n mainStr = mainStr.replace( \"%digs%\", ChatColor.AQUA + \"%digs%\" + ChatColor.YELLOW );\n mainStr = mainStr.replace( \"%nowDurability%\", ChatColor.AQUA + \"%nowDurability%\" + ChatColor.YELLOW );\n mainStr = mainStr.replace( \"%targetDurability%\", ChatColor.AQUA + \"%targetDurability%\" + ChatColor.YELLOW );\n mainStr = mainStr.replace( \"%score%\", ChatColor.AQUA + \"%score%\" + ChatColor.YELLOW );\n mainStr = mainStr.replace( \"%AreaCode%\", ChatColor.AQUA + \"%AreaCode%\" + ChatColor.YELLOW );\n Tools.Prt( player, ChatColor.WHITE + gn + \" : \" + mainStr, programCode );\n } );\n Tools.Prt( player, ChatColor.GREEN + \"=========================\", programCode );\n }", "private String evaluateDeveloperStatus(DeveloperStatus status) {\n switch (status) {\n case AVAILABLE:\n return \"color: #449d44 !important;\";\n case HOLIDAY:\n return \"color: darkcyan !important;\";\n case LOCKED:\n return \"color: #DC143C !important;\";\n case HIRED:\n return \"color: blue !important;\";\n default:\n return \"\";\n }\n }", "@Override\r\n public String toString() {\r\n return \" \" + this.getStatus() + \" \" + this.description;\r\n }", "public void print_statusline( boolean start, boolean left ) {\n\t\tif ( start ) {\n\t\t\tflush();\n\t\t\t_status_line = new StringBuffer( 10 );\n\t\t\t_status_line.append( _last_printed ); // store this here\n\t\t\treturn;\n\t\t}\n\n\t\t// this always prints to the statusline and is not affected by\n\t\t// outhide() or outcapture()\n\t\tflush();\n\t\t_platform_io.set_status_string( _status_line.toString().substring( 1 ), left );\n\t\t_last_printed = _status_line.charAt( 0 ); // and restore it\n\t\t_status_line = null;\n\t}", "public String getStatus(){\r\n\t\treturn status;\r\n\t}", "static private void showMissions() {\n\n Iterator iteratorMissionStatus = allMissions.missionStatus.entrySet().iterator();\n\n while (iteratorMissionStatus.hasNext()) {\n HashMap.Entry entry = (HashMap.Entry) iteratorMissionStatus.next();\n System.out.println((String) entry.getKey() + \": \");\n\n if ((boolean) (entry.getValue()) == false) {\n System.out.print(\"mission in progress\");\n System.out.println(\"\");\n }\n if ((boolean) (entry.getValue()) == true) {\n System.out.print(\"mission is complete\");\n System.out.println(\"\");\n }\n System.out.println(\"\");\n\n }\n }", "public void status(){\n lblStats.setText(\"\"+level+\"L\");\n }", "public void setStatus(String status) { this.status = status; }", "public String toString()\n { String status,requests;\n requests=\"\";\n status= \"\\n+----------Floor \" + floorNum + \"----------\" +\n \"\\n| current occupants: \" + occupants +\n \"\\n+---------------------------\\n\\n\";\n return status;\n }", "public String printQuestStatus() {\r\n\t\t\tif(this.getCurrentQuest().getName().equals(\"noquest\")) { // INITIAL QUEST CALLED \"noquest\"\r\n\t\t\t\treturn \"You have completed no quests, look for something to do!\";\r\n\t\t\t}\r\n\t\t\telse if(this.getCurrentQuest().sendMessageNext()) {\r\n\t\t\t\tthis.getCurrentQuest().setSendMessageNext(false);\r\n\t\t\t\tthis.getPlayer().gainXp(this.getCurrentQuest().getXpYield());\r\n\t\t\t\treturn this.getCurrentQuest().getCompletionMessage() + \"\\n\" +\r\n\t\t\t\t\t\t\"You gain \" + this.getCurrentQuest().getXpYield() + \" xp. \\n\";\r\n\t\t\t}\r\n\t\t\telse if(this.getCurrentQuest().isCompleted()) {\r\n\t\t\t\treturn \"You have completed your last quest, \" + this.getCurrentQuest().getName() + \". \\n\"\r\n\t\t\t\t\t\t+ \"You can now serach for a new quest. \\n\";\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\treturn \"Current Quest: \\n\"\r\n\t\t\t\t\t\t+ this.getCurrentQuest().getName() + \"\\n\"\r\n\t\t\t\t\t\t+ this.getCurrentQuest().getDescription() + \"\\n\" + \r\n\t\t\t\t\t\tthis.getCurrentQuest().printProgress();\r\n\r\n\t\t\t}\r\n\t\t}", "StatusLine getStatusLine();", "public String getStatus() {\n return status.toString();\n }", "public String status() {\n return statusEnum().toString();\n }", "private String statusExtractorV2(Printer printer) {\n Document document = getStatusDocument(printer.getUrl());\n\n String text = document.text();\n String preProcessed = text.substring(text.indexOf(\"Host Name\"));\n return preProcessed.substring(preProcessed.indexOf(\"System Status\")+14,preProcessed.indexOf(\"Toner Status \")-1);\n }", "public void setStatus(java.lang.CharSequence value) {\n this.status = value;\n }", "public String getStatus() {\n StringBuilder builder = new StringBuilder();\n\n for (int i = 0; i < computers.length; i++) {\n builder.append(i + 1);\n builder.append(\") \");\n builder.append(computers[i].getOperationSystem());\n\n if (computers[i].isVirus()) {\n builder.append(\" is infected\");\n }\n builder.append(\"\\n\");\n }\n builder.append(\"\\n\");\n\n return builder.toString();\n }", "public static String describeStatus(Move move){\n String name = String.format(\"%s (%d)\", names.get(move.getUID()), move.getUID());\n Stage stage = move.getStage();\n String message = \"\";\n switch(stage){\n case CLAIM_TERRITORY:\n message = String.format(\"%s is claiming a territory.\", name);\n break;\n case REINFORCE_TERRITORY:\n message = String.format(\"%s is reinforcing a territory.\", name);\n break;\n case TRADE_IN_CARDS:\n message = String.format(\"%s is trading in cards.\", name);\n break;\n case PLACE_ARMIES:\n message = String.format(\"%s is placing armies.\", name);\n break;\n case DECIDE_ATTACK:\n message = String.format(\"%s is deciding whether or not to attack.\", name);\n break;\n case START_ATTACK:\n message = String.format(\"%s is choosing where to attack.\", name);\n break;\n case CHOOSE_ATTACK_DICE:\n message = String.format(\"%s is deciding how many dice to attack with.\", name);\n break;\n case CHOOSE_DEFEND_DICE:\n message = String.format(\"%s is deciding how many dice to defend with.\", name);\n break;\n case ROLL_HASH:\n message = String.format(\"%s is sending their roll hash.\", name);\n break;\n case ROLL_NUMBER:\n message = String.format(\"%s is sending their roll number.\", name);\n break;\n case OCCUPY_TERRITORY:\n message = String.format(\"%s is deciding how many armies to move into the captured territory.\", name);\n break;\n case DECIDE_FORTIFY:\n message = String.format(\"%s is deciding whether or not to fortify.\", name);\n break;\n case START_FORTIFY:\n message = String.format(\"%s is choosing where to fortify.\", name);\n break;\n case FORTIFY_TERRITORY:\n message = String.format(\"%s is deciding how many armies to fortify with.\", name);\n break;\n default:\n break;\n }\n return message;\n }", "@Override\n public String toString() {\n return \"[\" + getStatusIcon() + \"] \" + name;\n }", "public void status() {\n System.out.println(\"Nome: \" + this.getNome());\n System.out.println(\"Data de Nascimento: \" + this.getDataNasc());\n System.out.println(\"Peso: \" + this.getPeso());\n System.out.println(\"Altura: \" + this.getAltura());\n }", "public void printInventory(){\n\t\tint i;\n\t\tint listSize = inventory.size();\n\t\tRoll temp;\n\t\tString outputText;\n\t\toutputText = \"Inventory Stocks Per Roll: \";\n\t\t//outputText = inventory.get(0).getRoll().getType() + \" Roll Current stock: \" + inventory.get(0).getStock();\n\t\tfor(i = 0; i < listSize; i++){\n\t\t\tif(i % 3 == 0){\n\t\t\t\toutputText = outputText + \"\\n\";\n\t\t\t}\n\t\t\toutputText = outputText + inventory.get(i).getRoll().getType() + \" : \" + inventory.get(i).getStock() + \" \";\n\t\t}\n\t\tSystem.out.println(outputText);\n\t\tthis.status = outputText;\n\t\tsetChanged();\n notifyObservers();\n\t}", "void setStatus(String status);", "@Override\r\n public void status(String strVar)\r\n {\r\n System.out.println(strVar);\r\n }", "public void printDetails()\r\n\t{\r\n\t\tSystem.out.println(flightNumber);\r\n\t\tSystem.out.println(departurePoint);\r\n\t\tSystem.out.println(destination);\r\n\t\tSystem.out.println(departureTime);\r\n\t\tSystem.out.println(arrivalTime);\r\n\t\tSystem.out.println(checkedInPassengers);\r\n\t\tif(status == 'S')\r\n\t\t\tSystem.out.println(\"Scheduled\");\r\n\t\t\t\r\n\t\tif(status == 'B')\r\n\t\t\tSystem.out.println(\"Boarding\");\r\n\t\tif(status == 'D')\r\n\t\t\tSystem.out.println(\"Departed\");\r\n\t\tif(status == 'C')\r\n\t\t\tSystem.out.println(\"Canceled\");\r\n\t\t\r\n\t\t\t\t\r\n\t}", "public final String getStatusAsString() {\n\t\tif ( m_status >= 0 && m_status < _fileStates.length)\n\t\t\treturn _fileStates[m_status];\n\t\treturn \"Unknown\";\n\t}", "private void getStatus() {\n\t\t\n\t}", "@Override\n\t\t\t\tpublic StringBuilder getStatus() {\n\t\t\t\t\treturn new StringBuilder();\n\t\t\t\t}", "private String printTRANSECKeyStatus(String satName) { \n\t\tArrayList<Character> keys = sats.get(satName).getKeys();\n\t\tString TRANSECKeyStatuses = \"\";\n\t\tfor (int i = 0; i < 10; i++) {\n\t\t\tif (i == 4 || i == 9) {\n\t\t\t\tTRANSECKeyStatuses += keys.get(i)+\" \";\n\t\t\t} else {\n\t\t\t\tTRANSECKeyStatuses += keys.get(i)+\" \";\n\t\t\t}\n\t\t}\n\t\treturn TRANSECKeyStatuses;\n\t}", "private String getStatusLabel(int status){\n switch (status){\n case Cliente_Firebase.STATUS_PROSPECTO:\n return \"Prospecto\";\n case Cliente_Firebase.STATUS_ENVERIFICACION:\n return \"En Verificación\";\n case Cliente_Firebase.STATUS_ACTIVO:\n return \"Activo\";\n }\n\n return \"\";\n }", "String getStatusMessage();", "public String calculateStatus(){\n\t\tHashMap<String,String> SubSystemsStatus = this.SubsystemStatus.getSubSystemsStatus();\n\t\tString SubSystemList[] = this.SubsystemStatus.getSubsystems();\n\t\tint SHUTDOWN = 0, OPERATIONAL = 0, STARTING1 = 0, STARTING2 = 0, STOPPING = 0;\n\t\tfor(String subsystem : SubSystemList){\n\t\t\tString status = SubSystemsStatus.get(subsystem);\n\t\t\t//System.out.println(\"subsystem \" + subsystem + \" status \" + status);\n\t\t\tif (status != null) {\n\t\t\t\tif (status.equalsIgnoreCase(\"UNAVAILABLE\")) {\n\t\t\t\treturn \"UNAVAILABLE\";\n\t\t\t\t}else if (status.equalsIgnoreCase(\"ERROR\")) {\n\t\t\t\t\treturn \"ERROR\";\n\t\t\t\t} else if (status.equalsIgnoreCase(\"SHUTDOWN\")) {\n\t\t\t\t\tSHUTDOWN++;\n\t\t\t\t} else if (status.equalsIgnoreCase(\"OPERATIONAL\")) {\n\t\t\t\t\tOPERATIONAL++;\n\t\t\t\t}\n\n\t\t\t\tif (status.equalsIgnoreCase(\"ONLINE\")\n\t\t\t\t\t\t|| status.equalsIgnoreCase(\"OPERATIONAL\")) {\n\t\t\t\t\tSTARTING1++;\n\t\t\t\t} else if (status.equalsIgnoreCase(\"INITIALIZING_PASS1\")\n\t\t\t\t\t\t|| status.equalsIgnoreCase(\"INITIALIZING_PASS2\")\n\t\t\t\t\t\t|| status.equalsIgnoreCase(\"SHUTDOWN\")\n\t\t\t\t\t\t|| status.equalsIgnoreCase(\"ONLINE\")\n\t\t\t\t\t\t|| status.equalsIgnoreCase(\"OPERATIONAL\")) {\n\t\t\t\t\tSTARTING2++;\n\t\t\t\t} else if (status.equalsIgnoreCase(\"SHUTTINGDOWN_PASS1\")\n\t\t\t\t\t\t|| status.equalsIgnoreCase(\"PRESHUTDOWN\")\n\t\t\t\t\t\t|| status.equalsIgnoreCase(\"SHUTTINGDOWN_PASS2\")\n\t\t\t\t\t\t|| status.equalsIgnoreCase(\"SHUTDOWN\")\n\t\t\t\t\t\t|| status.equalsIgnoreCase(\"OPERATIONAL\")) {\n\t\t\t\t\tSTOPPING++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif(SHUTDOWN == SubSystemList.length){\n\t\t\treturn \"SHUTDOWN\";\n\t\t}else if(OPERATIONAL == SubSystemList.length){\n\t\t\treturn \"OPERATIONAL\";\n\t\t}else if(STARTING1 == SubSystemList.length || STARTING2 == SubSystemList.length){\n\t\t\treturn \"STARTING\";\n\t\t}else if(STOPPING == SubSystemList.length){\n\t\t\treturn \"STOPPING\";\n\t\t}else {\n\t\t\treturn \"TRANSITING\";\n\t\t}\n\t}", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\" [ \")\n .append(aStatus ? \"Clean\" : \"Dirty\").append(isInA() ? \"*\" : \"\")\n .append(\" | \")\n .append(bStatus ? \"Clean\" : \"Dirty\") .append(isInB() ? \"*\" : \"\")\n .append(\" ]\");\n \n return sb.toString(); // [ Clean* | Dirty ]\n }", "public static void tstatSheet(){\n\t\tSystem.out.println(\"\\tStats\");\n\t\tSystem.out.println(\"--------------------------\");\n\t\tSystem.out.println(\"Strength - \" + tstr + \"\\tMagic Power - \" + tmag);\n\t\tSystem.out.println(\"Luck - \" + tluc + \" \\tAccuaracy - \" + tacc);\n\t\tSystem.out.println(\"Defense - \" + tdef + \" \\tSpeed - \" + tspe);\n\t\tSystem.out.println(\"Health - \" + tHP + \" \\tMystic Energy - \" + tMP);\n\t}", "String getStatusMessage( );", "public String printState(){\n if (this.state.equals(\"unstarted\")) return \"unstarted 0\";\n\n else if (this.state.equals(\"terminated\")) return \"terminated 0\";\n else if (this.state.equals(\"blocked\")) {\n return String.format(\"blocked %d\", ioBurstTime);\n }\n else if (this.state.equals(\"ready\")) {\n if (remainingCPUBurstTime !=null){\n return String.format(\"ready %d\", remainingCPUBurstTime);\n }\n return \"ready 0\";\n }\n\n else if (this.state.equals(\"running\")){\n return String.format(\"running %d\", cpuBurstTime);\n }\n\n else return \"Something went wrong.\";\n }", "private void showStat() {\n\t\tSystem.out.println(\"=============================\");\n\t\tSystem.out.println(\"Your won! Congrates!\");\n\t\tSystem.out.println(\"The word is:\");\n\t\tSystem.out.println(\"->\\t\" + this.word.toString().replaceAll(\" \", \"\"));\n\t\tSystem.out.println(\"Your found the word with \" \n\t\t\t\t+ this.numOfWrongGuess + \" wrong guesses.\");\n\t}", "private String getStatusLine(int iStatusCode) {\n String sStatus = \"HTTP/1.1 \";\n if (iStatusCode == 200) {\n sStatus += iStatusCode + \" OK\";\n } else if (iStatusCode == 301) {\n sStatus += iStatusCode + \" Moved Permanently\";\n } else if (iStatusCode == 403) {\n sStatus += iStatusCode + \" Forbidden\";\n } else if (iStatusCode == 404) {\n sStatus += iStatusCode + \" Not Found\";\n } else if (iStatusCode == 415) {\n sStatus += iStatusCode + \" Unsupported Media Type\";\n } else if(iStatusCode == 500) {\n sStatus += iStatusCode + \" Internal Server Error\";\n }\n return sStatus;\n }", "public void setStatus(java.lang.String status) {\r\n this.status = status;\r\n }", "public static String getServiceStatusInfoText(String status) {\n if (status != null && !status.isEmpty()) {\n switch (status) {\n case \"active\":\n return \"Service is \" + toTitleCase(status);\n case \"inactive\":\n return \"Service is \" + toTitleCase(status);\n case \"break\":\n return \"Service is on\" + toTitleCase(status);\n }\n return toTitleCase(status);\n } else return \"\";\n }", "private void battleTickStatuses(){\n updateStatuses(battleEnemies);\n updateStatuses(battleAllies);\n }", "public void setStatus(java.lang.String status) {\n this.status = status;\n }", "public void setStatus(java.lang.String status) {\n this.status = status;\n }", "@Override\n protected void process(List<String> chunks) {\n for (String message : chunks) {\n LOG.info(message);\n StatusDisplayer.getDefault().setStatusText(message);\n }\n\n }", "public String getStatus(){\n\n //returns the value of the status field\n return this.status;\n }" ]
[ "0.703548", "0.68035483", "0.6581547", "0.6540321", "0.63032204", "0.6235454", "0.62105197", "0.61962163", "0.61962163", "0.61962163", "0.61962163", "0.6177006", "0.6126896", "0.61030173", "0.6096115", "0.60949886", "0.60909784", "0.6086361", "0.6053391", "0.6026553", "0.60119116", "0.59841096", "0.59787863", "0.59787863", "0.59787863", "0.59787863", "0.59787863", "0.5966118", "0.5966118", "0.5949194", "0.59277946", "0.59212905", "0.5920325", "0.58855236", "0.5882158", "0.5880819", "0.58637697", "0.5856405", "0.5851088", "0.58488685", "0.5841212", "0.5818418", "0.5802974", "0.5765122", "0.5763021", "0.57607335", "0.57606333", "0.57574767", "0.5744023", "0.5734019", "0.5733433", "0.5732281", "0.5692811", "0.5690537", "0.5690226", "0.56845003", "0.5671573", "0.5669263", "0.5666625", "0.56575567", "0.56567734", "0.56482095", "0.56252927", "0.5613687", "0.5612882", "0.5609646", "0.5608854", "0.56063783", "0.56011134", "0.5581965", "0.55697834", "0.55694294", "0.5552633", "0.555225", "0.55462843", "0.55446774", "0.5541774", "0.5541217", "0.5533239", "0.55311275", "0.55275106", "0.5525869", "0.5524663", "0.55076766", "0.5501301", "0.5499582", "0.5496747", "0.54944533", "0.5484069", "0.5481625", "0.54812384", "0.547952", "0.5473808", "0.54653335", "0.5461348", "0.54607564", "0.54576063", "0.54549575", "0.54549575", "0.5454164", "0.54509944" ]
0.0
-1
The body of this method is generated in a way you would not otherwise write. This is done to optimize the compiled bytecode for size and performance.
@NonNull public static ActivityTicketingBinding bind(@NonNull View rootView) { int id; missingId: { id = R.id.bottom_nav; BottomNavigationView bottomNav = ViewBindings.findChildViewById(rootView, id); if (bottomNav == null) { break missingId; } id = R.id.btn_add_cat; Button btnAddCat = ViewBindings.findChildViewById(rootView, id); if (btnAddCat == null) { break missingId; } id = R.id.btn_viewall_activity; Button btnViewallActivity = ViewBindings.findChildViewById(rootView, id); if (btnViewallActivity == null) { break missingId; } id = R.id.etAddCategory; EditText etAddCategory = ViewBindings.findChildViewById(rootView, id); if (etAddCategory == null) { break missingId; } id = R.id.etPrice; EditText etPrice = ViewBindings.findChildViewById(rootView, id); if (etPrice == null) { break missingId; } id = R.id.etTicketCont; EditText etTicketCont = ViewBindings.findChildViewById(rootView, id); if (etTicketCont == null) { break missingId; } id = R.id.img1; ImageView img1 = ViewBindings.findChildViewById(rootView, id); if (img1 == null) { break missingId; } id = R.id.textView; TextView textView = ViewBindings.findChildViewById(rootView, id); if (textView == null) { break missingId; } id = R.id.textView1; TextView textView1 = ViewBindings.findChildViewById(rootView, id); if (textView1 == null) { break missingId; } id = R.id.topic1; TextView topic1 = ViewBindings.findChildViewById(rootView, id); if (topic1 == null) { break missingId; } return new ActivityTicketingBinding((RelativeLayout) rootView, bottomNav, btnAddCat, btnViewallActivity, etAddCategory, etPrice, etTicketCont, img1, textView, textView1, topic1); } String missingId = rootView.getResources().getResourceName(id); throw new NullPointerException("Missing required view with ID: ".concat(missingId)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void generateCode()\n {\n \n }", "protected final void emitCode() {\n int bytecodeSize = request.graph.method() == null ? 0 : request.graph.getBytecodeSize();\n request.compilationResult.setHasUnsafeAccess(request.graph.hasUnsafeAccess());\n GraalCompiler.emitCode(request.backend, request.graph.getAssumptions(), request.graph.method(), request.graph.getMethods(), request.graph.getFields(), bytecodeSize, lirGenRes,\n request.compilationResult, request.installedCodeOwner, request.factory);\n }", "public void generateByteCode(Optimizer opt) {}", "public void generateCode() {\n new CodeGenerator(data).generateCode();\n }", "public void genCode(CodeFile code) {\n\t\t\n\t}", "@Override\n protected void codeGenMain(DecacCompiler compiler, Registres regs, Pile p) {\n }", "@Override\n public void startMethodGeneration() {\n byteArrayOut.addMethodStatus();\n }", "public void gen(CodeSeq code, ICodeEnv env) {\n\r\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\r\n\tpublic void billGenerate() {\n\t\t\r\n\t}", "public void generate() {\n\t}", "@Override\n public void codegen(Emitter output) {\n }", "public void method_4270() {}", "@Override\n\tpublic void compile() {\n\t\t\n\t}", "public void mo9137b() {\n }", "@Override\n public byte[] generateCode(byte[] data) {\n\treturn new byte[0];\n }", "public void mo21793R() {\n }", "@Override\n\tpublic void compile(CodeBlock c, CompilerEnvironment environment) {\n\n\t}", "public void mo21785J() {\n }", "public final void mo51373a() {\n }", "protected abstract void generate();", "protected void onCompileInternal() {\r\n\t}", "public void mo21779D() {\n }", "public void mo3749d() {\n }", "public void mo21782G() {\n }", "private ProcessedDynamicData( ) {\r\n super();\r\n }", "public void smell() {\n\t\t\n\t}", "public void mo115190b() {\n }", "public void mo21794S() {\n }", "public void generateCodeItemCode() {\n\t\tcodeItem.generateCodeItemCode();\n\t}", "public np a()\r\n/* 33: */ {\r\n/* 34:49 */ return this.b;\r\n/* 35: */ }", "public void mo21787L() {\n }", "public final void mo1285b() {\n }", "public void codeGen(PrintWriter p){\n\tthis.dotRightOffset = unrollDot();\n\n\tCodegen.p = p;\n\tCodegen.generateIndexed(\"lw\", \"$t0\", \"$fp\", this.dotRightOffset, \"load struct field: \" + myId.name());\n\tCodegen.genPush(\"$t0\");\n }", "public void mo21825b() {\n }", "@Override\n\tpublic void generate() {\n\t\tJavaObject object = new JavaObject(objectType);\n\n\t\t// Fields\n\t\taddFields(object);\n\n\t\t// Empty constructor\n\t\taddEmptyConstructor(object);\n\n\t\t// Types constructor\n\t\taddTypesConstructor(object);\n\n\t\t// Clone constructor\n\t\taddCloneConstructor(object);\n\n\t\t// Setters\n\t\taddSetters(object);\n\n\t\t// Build!\n\t\taddBuild(object);\n\n\t\t// Done!\n\t\twrite(object);\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}", "public void mo38117a() {\n }", "public void mo21795T() {\n }", "public void mo56167c() {\n }", "public void mo23813b() {\n }", "public void mo97908d() {\n }", "public final void mo91715d() {\n }", "static /* synthetic */ void m201-wrap5(com.mediatek.internal.telephony.worldphone.WorldPhoneOp01 r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 0073 in method: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.-wrap5(com.mediatek.internal.telephony.worldphone.WorldPhoneOp01):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.-wrap5(com.mediatek.internal.telephony.worldphone.WorldPhoneOp01):void\");\n }", "@SuppressWarnings(\"unused\")\n private void generateInfo()\n {\n }", "public void method_115() {}", "public void mo21789N() {\n }", "public void method_191() {}", "AnonymousClass1(com.mediatek.internal.telephony.worldphone.WorldPhoneOp01 r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e8 in method: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.1.<init>(com.mediatek.internal.telephony.worldphone.WorldPhoneOp01):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.1.<init>(com.mediatek.internal.telephony.worldphone.WorldPhoneOp01):void\");\n }", "public void mo21786K() {\n }", "@Override\n\tpublic String generateJavaCode() {\n\t\treturn id + \" = \"+(tam>0? \"new int[]\": \"\")+expr+\";\";\n\t}", "AnonymousClass2(com.mediatek.internal.telephony.worldphone.WorldPhoneOp01 r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e8 in method: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.2.<init>(com.mediatek.internal.telephony.worldphone.WorldPhoneOp01):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.2.<init>(com.mediatek.internal.telephony.worldphone.WorldPhoneOp01):void\");\n }", "public void mo21791P() {\n }", "public abstract void mo70713b();", "OptimizeResponse() {\n\n\t}", "public void mo6944a() {\n }", "@Override\r\n\tvoid func04() {\n\t\t\r\n\t}", "public abstract void generate();", "public void method_192() {}", "public void mo21788M() {\n }", "public void mo21784I() {\n }", "public void mo9233aH() {\n }", "protected void method_2241() {\r\n // $FF: Couldn't be decompiled\r\n }", "public void mo115188a() {\n }", "@Override\n\tpublic void orgasm() {\n\t\t\n\t}", "@Override\n public void visitCode() {\n try {\n InstructionInjector injector = new InstructionInjector(mv);\n if (tileEntity) {\n injector.begin();\n injector.addThisObjectToStack();\n injector.addThisObjectToStack();\n injector.addInstanceVarToStack(info.className.replace(\".\", \"/\"), info.facingVar, info.varType);\n injector.addThisObjectToStack();\n injector.addStaticMethodCall(ASMHelper.class.getCanonicalName().replace(\".\", \"/\"), \"canMine\",\n new MethodDescriptor(\"boolean\", new String[] {\n TileEntity.class.getCanonicalName().replace(\".\", \"/\"),\n byte.class.getCanonicalName(),\n Object.class.getCanonicalName().replace(\".\", \"/\")\n }));\n Label l1 = injector.addIfNotEqual();\n injector.addReturn(info.desc.getReturnType(), l1);\n injector.end();\n } else {\n Map<String, Integer> indexes = info.desc.getParamIndexes(new String[] {\n EntityLivingBase.class.getCanonicalName().replace(\".\", \"/\"),\n \"XCOORD\",\n \"YCOORD\",\n \"ZCOORD\"\n });\n if(indexes.containsKey(\"XCOORD\") && indexes.containsKey(\"YCOORD\") && indexes.containsKey(\"ZCOORD\")) {\n // We can pass coordinates to use...\n injector.begin();\n injector.addLocalVarToStack(Object.class, indexes.get(EntityLivingBase.class.getCanonicalName().replace(\".\", \"/\")));\n injector.addLocalVarToStack(int.class, indexes.get(\"XCOORD\"));\n injector.addLocalVarToStack(int.class, indexes.get(\"YCOORD\"));\n injector.addLocalVarToStack(int.class, indexes.get(\"ZCOORD\"));\n injector.addThisObjectToStack();\n injector.addStaticMethodCall(ASMHelper.class.getCanonicalName().replace(\".\", \"/\"), \"canMine\",\n new MethodDescriptor(\"boolean\", new String[] {\n EntityLivingBase.class.getCanonicalName().replace(\".\", \"/\"),\n int.class.getCanonicalName(),\n int.class.getCanonicalName(),\n int.class.getCanonicalName(),\n Object.class.getCanonicalName().replace(\".\", \"/\")\n }));\n Label l1 = injector.addIfNotEqual();\n injector.addReturn(info.desc.getReturnType(), l1);\n injector.end();\n } else if(indexes.containsKey(EntityLivingBase.class.getCanonicalName().replace(\".\", \"/\"))) {\n // We'll have to figure out coordinates on our own based on where the player is looking...\n injector.begin();\n injector.addLocalVarToStack(Object.class, indexes.get(EntityLivingBase.class.getCanonicalName().replace(\".\", \"/\")));\n injector.addThisObjectToStack();\n injector.addStaticMethodCall(ASMHelper.class.getCanonicalName().replace(\".\", \"/\"), \"canMine\",\n new MethodDescriptor(\"boolean\", new String[] {\n EntityLivingBase.class.getCanonicalName().replace(\".\", \"/\"),\n Object.class.getCanonicalName().replace(\".\", \"/\")\n }));\n Label l1 = injector.addIfNotEqual();\n injector.addReturn(info.desc.getReturnType(), l1);\n injector.end();\n }\n }\n } catch (Throwable e) {\n FMLLog.log(\"Canine\", Level.WARN, \"%s\", \"Failed to find or patch class: \" + info.className);\n e.printStackTrace();\n }\n }", "@Test\n public void testUpdateCodeSizeWhenInlining() {\n if (mHello == null) {\n smallMethodThatBecomesBig();\n } else {\n smallMethodThatBecomesBig();\n }\n }", "public int generateRoshambo(){\n ;]\n\n }", "public void mo21792Q() {\n }", "public final void cpp() {\n }", "static /* synthetic */ void m200-wrap4(com.mediatek.internal.telephony.worldphone.WorldPhoneOp01 r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 0073 in method: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.-wrap4(com.mediatek.internal.telephony.worldphone.WorldPhoneOp01):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.-wrap4(com.mediatek.internal.telephony.worldphone.WorldPhoneOp01):void\");\n }", "public abstract void body();", "private void m50366E() {\n }", "public void mo5097b() {\n }", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "protected final /* synthetic */ java.lang.Object run() {\n /*\n r4 = this;\n r0 = 1;\n r1 = 0;\n r2 = com.tencent.mm.plugin.appbrand.b.c.this;\n r2 = r2.chu();\n r3 = com.tencent.mm.plugin.appbrand.b.c.this;\n r3 = r3.iKh;\n if (r2 != r3) goto L_0x0022;\n L_0x000e:\n r2 = com.tencent.mm.plugin.appbrand.b.c.this;\n r2 = r2.iKh;\n r2 = r2.iKy;\n r2 = r2 & 1;\n if (r2 <= 0) goto L_0x0020;\n L_0x0018:\n r2 = r0;\n L_0x0019:\n if (r2 == 0) goto L_0x0022;\n L_0x001b:\n r0 = java.lang.Boolean.valueOf(r0);\n return r0;\n L_0x0020:\n r2 = r1;\n goto L_0x0019;\n L_0x0022:\n r0 = r1;\n goto L_0x001b;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.tencent.mm.plugin.appbrand.b.c.5.run():java.lang.Object\");\n }", "static /* synthetic */ void m204-wrap8(com.mediatek.internal.telephony.worldphone.WorldPhoneOp01 r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 0073 in method: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.-wrap8(com.mediatek.internal.telephony.worldphone.WorldPhoneOp01):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.-wrap8(com.mediatek.internal.telephony.worldphone.WorldPhoneOp01):void\");\n }", "public final void mo11687c() {\n }", "public void method_201() {}", "protected void method_2045(class_1045 param1) {\r\n // $FF: Couldn't be decompiled\r\n }", "@Override\n\tpublic void processingInstruction() {\n\t\t\n\t}", "protected void mo6255a() {\n }", "public void method_199() {}", "public String generateCode(){\n return \"P\" + repository.getCount();\n }", "void m1864a() {\r\n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "public void generateData()\n {\n }", "public void mo3376r() {\n }", "@Override\r\n\tpublic String java_code() {\n\t\treturn null;\r\n\t}", "public abstract void mo27385c();", "public final /* synthetic */ Object zzpq() {\n \n /* JADX ERROR: Method code generation error\n jadx.core.utils.exceptions.CodegenException: Error generate insn: 0x0004: INVOKE (wrap: android.content.Context\n 0x0000: IGET (r0v0 android.content.Context) = (r2v0 'this' com.google.android.gms.internal.ads.zzwo A[THIS]) com.google.android.gms.internal.ads.zzwo.val$context android.content.Context), (wrap: java.lang.String\n 0x0002: CONST_STR (r1v0 java.lang.String) = \"native_ad\") com.google.android.gms.internal.ads.zzwj.zzb(android.content.Context, java.lang.String):void type: STATIC in method: com.google.android.gms.internal.ads.zzwo.zzpq():java.lang.Object, dex: classes2.dex\n \tat jadx.core.codegen.InsnGen.makeInsn(InsnGen.java:245)\n \tat jadx.core.codegen.InsnGen.makeInsn(InsnGen.java:213)\n \tat jadx.core.codegen.RegionGen.makeSimpleBlock(RegionGen.java:109)\n \tat jadx.core.codegen.RegionGen.makeRegion(RegionGen.java:55)\n \tat jadx.core.codegen.RegionGen.makeSimpleRegion(RegionGen.java:92)\n \tat jadx.core.codegen.RegionGen.makeRegion(RegionGen.java:58)\n \tat jadx.core.codegen.MethodGen.addRegionInsns(MethodGen.java:210)\n \tat jadx.core.codegen.MethodGen.addInstructions(MethodGen.java:203)\n \tat jadx.core.codegen.ClassGen.addMethod(ClassGen.java:316)\n \tat jadx.core.codegen.ClassGen.addMethods(ClassGen.java:262)\n \tat jadx.core.codegen.ClassGen.addClassBody(ClassGen.java:225)\n \tat jadx.core.codegen.ClassGen.addClassCode(ClassGen.java:110)\n \tat jadx.core.codegen.ClassGen.makeClass(ClassGen.java:76)\n \tat jadx.core.codegen.CodeGen.wrapCodeGen(CodeGen.java:44)\n \tat jadx.core.codegen.CodeGen.generateJavaCode(CodeGen.java:32)\n \tat jadx.core.codegen.CodeGen.generate(CodeGen.java:20)\n \tat jadx.core.ProcessClass.process(ProcessClass.java:36)\n \tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:311)\n \tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n \tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:217)\n Caused by: java.lang.ArrayIndexOutOfBoundsException: arraycopy: length -2 is negative\n \tat java.base/java.util.ArrayList.shiftTailOverGap(Unknown Source)\n \tat java.base/java.util.ArrayList.removeIf(Unknown Source)\n \tat java.base/java.util.ArrayList.removeIf(Unknown Source)\n \tat jadx.core.dex.instructions.args.SSAVar.removeUse(SSAVar.java:86)\n \tat jadx.core.utils.InsnRemover.unbindArgUsage(InsnRemover.java:90)\n \tat jadx.core.dex.nodes.InsnNode.replaceArg(InsnNode.java:130)\n \tat jadx.core.codegen.InsnGen.inlineMethod(InsnGen.java:892)\n \tat jadx.core.codegen.InsnGen.makeInvoke(InsnGen.java:669)\n \tat jadx.core.codegen.InsnGen.makeInsnBody(InsnGen.java:357)\n \tat jadx.core.codegen.InsnGen.makeInsn(InsnGen.java:239)\n \t... 19 more\n */\n /*\n this = this;\n android.content.Context r0 = r2.val$context\n java.lang.String r1 = \"native_ad\"\n com.google.android.gms.internal.ads.zzwj.zza(r0, r1)\n com.google.android.gms.internal.ads.zzzh r0 = new com.google.android.gms.internal.ads.zzzh\n r0.<init>()\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.ads.zzwo.zzpq():java.lang.Object\");\n }", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void generatePrimitives(SoAction action) {\n\n\t}", "public abstract void mo6549b();", "public void mo9848a() {\n }", "public void mo23438b() {\n }", "AnonymousClass3(com.mediatek.internal.telephony.worldphone.WorldPhoneOp01 r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e8 in method: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.3.<init>(com.mediatek.internal.telephony.worldphone.WorldPhoneOp01):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.3.<init>(com.mediatek.internal.telephony.worldphone.WorldPhoneOp01):void\");\n }", "public void mo2740a() {\n }", "public void method_202() {}", "public void mo21783H() {\n }" ]
[ "0.73024863", "0.6558568", "0.6414415", "0.63334614", "0.6257398", "0.6167283", "0.60765696", "0.60405153", "0.5964053", "0.5930892", "0.5919968", "0.5891898", "0.5889537", "0.5879938", "0.5860413", "0.58588773", "0.58558565", "0.58482856", "0.5823338", "0.5812645", "0.58038086", "0.57996476", "0.5787443", "0.5781626", "0.57808256", "0.57783103", "0.57776964", "0.57613236", "0.57499737", "0.573638", "0.5725224", "0.57212037", "0.5718014", "0.57178104", "0.5713485", "0.5689294", "0.5687374", "0.5687374", "0.56865984", "0.5685862", "0.5682869", "0.56684947", "0.5663328", "0.56600744", "0.5657564", "0.5649211", "0.5647159", "0.56469625", "0.5643191", "0.5642472", "0.56302077", "0.5623602", "0.5618475", "0.56102407", "0.56092286", "0.560787", "0.5601406", "0.5598353", "0.5593785", "0.55892706", "0.5584582", "0.55822337", "0.55774647", "0.5570261", "0.5569411", "0.55647516", "0.5564367", "0.5562352", "0.55614877", "0.55593926", "0.55582064", "0.5548709", "0.55486244", "0.5546338", "0.55462843", "0.55398095", "0.5532186", "0.55272895", "0.5525787", "0.55230445", "0.5517172", "0.55118114", "0.55090386", "0.5508374", "0.55012566", "0.5499115", "0.54972196", "0.5494471", "0.5482549", "0.5481741", "0.548074", "0.5465939", "0.5464708", "0.5462461", "0.54620236", "0.5459917", "0.5454149", "0.54439175", "0.5435073", "0.54337853", "0.543367" ]
0.0
-1
Constructor will need the renderer for when the event happens.
public StartAnimationHandler(SceneRenderer initRenderer) { // KEEP THIS FOR LATER renderer = initRenderer; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Renderer() {\n this.addGLEventListener(this);\n }", "public synchronized void rendererCreated (RendererEvent aRendererEvent)\n\t{\n\t\tMComponent theComponent = aRendererEvent.getComponent ();\n\t\tMauiApplication theApplication = (MauiApplication) theComponent.getRootParent ();\n\t\tnotifyListeners (theApplication.getApplicationAddress (), aRendererEvent);\n\t\tnotifyListeners (\"null\", aRendererEvent);\n\t}", "protected void init() {\n/* 35 */ super.init();\n/* */ \n/* 37 */ this.mRenderer = new BubbleChartRenderer(this, this.mAnimator, this.mViewPortHandler);\n/* */ }", "public StartAnimationHandler(SceneRenderer initRenderer)\r\n {\r\n renderer = initRenderer;\r\n }", "public AbstractRenderer(Component c) {\n this.component = c;\n }", "@Override\n public void setRenderer(Object arg0)\n {\n \n }", "public Renderer(Object toRender) {\n this.toRender = toRender;\n }", "public SwingView(final SwingCellRenderer renderer) {\r\n super(renderer);\r\n \r\n this.addMouseListener(new MouseListener() {\r\n @Override\r\n public void mouseClicked(MouseEvent e) {\r\n int cellWidth = getWidth()/board.getWidth();\r\n int cellHeight = getHeight()/board.getHeight();\r\n int x = e.getX()/cellWidth;\r\n int y = e.getY()/cellHeight;\r\n board.setState(renderer.cellClicked(board, x, y), x, y);\r\n repaint();\r\n }\r\n\r\n @Override\r\n public void mousePressed(MouseEvent e) {\r\n //To change body of implemented methods use File | Settings | File Templates.\r\n }\r\n\r\n @Override\r\n public void mouseReleased(MouseEvent e) {\r\n //To change body of implemented methods use File | Settings | File Templates.\r\n }\r\n\r\n @Override\r\n public void mouseEntered(MouseEvent e) {\r\n //To change body of implemented methods use File | Settings | File Templates.\r\n }\r\n\r\n @Override\r\n public void mouseExited(MouseEvent e) {\r\n //To change body of implemented methods use File | Settings | File Templates.\r\n }\r\n });\r\n }", "public Renderer() {\r\n renderables = new ArrayList<>();\r\n renderables.add(null); //The first background\r\n renderables.add(TextBox.blankText); //The first text box\r\n rendered = new BufferedImage(Main.WIDTH,Main.HEIGHT,BufferedImage.TYPE_INT_ARGB);\r\n focused = -1;\r\n }", "public ColorRenderer() {\r\n\t}", "public void registerRenderer() {}", "public void registerRenderer() {}", "public Mobile(Renderer renderer) { init(new Renderer[]{ renderer }); }", "public abstract void render(Renderer renderer);", "@Override\n public Object getRenderer()\n {\n return null;\n }", "protected void initRenderer(final IScope scope) {\n\r\n\t}", "@Override\n public void create() {\n shapeRenderer = new ShapeRenderer();\n }", "protected MancalaBoardRenderer(){\n pieceRenderer_ = MancalaBinRenderer.getRenderer();\n }", "public IconRenderer() \n\t{\n\t\t\n\t}", "@Override\r\n\tprotected void initEvents() {\n\t\t\r\n\t}", "public WidgetRenderer() {\r\n super(\"\");\r\n setUIID(\"ListRenderer\");\r\n }", "private void constructor(){\n\t\tdp_scale = getResources().getDisplayMetrics().density;\n\t\t\n\t\tfloat font_size = 16;\n\t\t\n\t\t// Initialize paints\n\t\tpaint = new Paint();\n\t\tpaint.setColor(Color.GRAY);\n\t\tpaint.setAntiAlias(true);\n\t\tpaint.setStrokeWidth(1);\n\t\t\n\t\tpaint.setTextSize(font_size*dp_scale);\n\t\ttext_paint = new TextPaint(paint);\n\t\t\n\t\t// setup listeners\n\t\t/*\n\t\tsetOnTouchListener(new OnTouchListener() {\n\t\t\tpublic boolean onTouch(View arg0, MotionEvent arg1) {\n\t\t\t\tswitch(arg1.getAction()){\n\t\t\t\tcase MotionEvent.ACTION_DOWN:\n\t\t\t\t\tentry.select();\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\treturn false;\n\t\t\t}\n\t\t});\n\t\t*/\n\t\t\n\t\tsetOnClickListener(new OnClickListener() {\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tactivity.view_entry(entry);\n\t\t\t}\n\t\t});\n\t\t\n\t\tif (camera == null){\n\t\t\tcamera = ((BitmapDrawable)this.getResources().getDrawable(R.drawable.camera)).getBitmap();\n\t\t}\n\t}", "@Override\r\n\tpublic void initEvent() {\n\r\n\t}", "public static void create() {\r\n render();\r\n }", "public GL4JRenderer()\r\n\t{\r\n\t\t//gl = this;\r\n\t\tsuper(256,256);\r\n\t\tActorSet = new Vector();\r\n\t\tLightSet = new Vector();\r\n\t\tCameraSet = new Vector();\r\n\t\tActions = new Vector();\r\n\t\tinitLess = true;\r\n\t\tMouseDown = 0;\r\n\t\tLastMouse = new int[2];\r\n\t\tInternalTexture = new int[1];\r\n\t\tInternalTexture[0] = 0;\r\n\t\tKeyHandler = null;\r\n\t\tClockThread = null;\r\n\t\tglut = new GLUTFuncLightImpl(gl, glu);\r\n\t\taddMouseMotionListener(this);\r\n\t\taddKeyListener(this);\r\n\t\tcurrTime = 0;\r\n\t}", "protected CGEFrameRenderer(int dummy) {\n\n }", "@Override\n public void render() { super.render(); }", "public void renderOccurred (RendererEvent e) {\n updateWidgets();\n }", "public LiteRenderer() {\n LOGGER.fine(\"creating new lite renderer\");\n }", "public RenderableTest()\n {\n }", "public DateRenderer() {\n\t\t\tsuper();\n\t\t\tthis.setHorizontalAlignment(SwingConstants.CENTER);\n\t\t\t}", "public RenderSystem() {\n super(SystemType.RENDER);\n bufferBuffer =\n new MasterBuffer(\n voide.resources.Resources\n .get()\n .getResource(\"voide.packed_texture\", Texture.class)\n .getTextureId()\n );\n master =\n new MasterRenderer(Constants.GAME_WIDTH, Constants.GAME_HEIGHT);\n }", "public RenderKitBean()\r\n {\r\n _renderers = new TreeMap();\r\n }", "protected void init() {\r\n\t\tsetBackground(Color.black);\r\n\t\tsetForeground(Color.white);\r\n\t\taddMouseListener(this);\r\n\t\taddMouseMotionListener(this);\r\n\t\tcreateSelection();\r\n\t\tsel.addListener(this);\r\n\t\tcreateSection();\r\n\t\tsection.addListener(this);\r\n\t\tsetOpaque(true);\r\n\t\tremoveAll();\r\n\t}", "public M_Hompeage1_evt() {\n initComponents();\n }", "public Renderer(final IGameStateModel simulation)\n {\n this.simulation = simulation;\n resource = ResourceManager.getInstance();\n resizeListener = new HashSet<IScreenResizeListener>();\n }", "protected void render(){}", "@Override\n public void render() {\n super.render();\n }", "@Override\n public void render() {\n super.render();\n }", "protected void init() throws RenderException {\n Container parent = component.getParent();\n if (parent == null)\n throw new RenderException(RenderException.REASON_PARENT_CONTAINER_NULL);\n DocumentAdapter da = parent.getDocumentAdapter();\n if (da == null)\n throw new RenderException(RenderException.REASON_DOCUMENT_IS_NULL);\n Document currentDoc = da.getDocument();\n if (currentDoc == null)\n throw new RenderException(RenderException.REASON_DOCUMENT_IS_NULL);\n if (doc != currentDoc) {\n doc = currentDoc;\n componentNode = null;\n }\n if (componentNode == null) {\n String id = ((DocumentComponent)component).getId();\n if (id != null) {\n componentNode = component.getParent().getDocumentAdapter().getElementById(\n ((DocumentComponent)component).getId());\n if (componentNode != null) {\n parentNode = componentNode.getParentNode();\n siblingNode = componentNode.getNextSibling();\n } else {\n Debug.warn(\"AbstractRenderer.init: Attempt to render a component which is not in document. ID=\"\n + ((DocumentComponent)component).getId());\n }\n } else {\n Debug.warn(\"AbstractRenderer.init: Attempt to render a component whose ID is null. Class=\"\n + component.getClass().getName());\n }\n }\n }", "protected void preRender()\n {\n // subclass\n }", "private void init() {\n initView();\n setListener();\n }", "public AddEvent() {\n initComponents();\n }", "public NewCourier() {\n initComponents();\n }", "public void render() {\r\n\r\n }", "public Event() {\n }", "public Event() {\n }", "public Event() {\r\n\r\n\t}", "protected AbstractXYZRenderer() {\r\n this.colorSource = new StandardXYZColorSource();\r\n this.itemLabelGenerator = null;\r\n }", "public void registerRenderers() {\n\n\t}", "@Override\n public void beforeRender()\n {\n\n }", "public void render() {\n }", "@Override\n protected void initView() {\n }", "@Override\n protected void initView() {\n }", "public ManipularView() {\n initComponents();\n }", "@Override\n\tpublic void render () {\n\n\t}", "public EventDetails() {\n initComponents();\n }", "protected void init() {\n /* 66 */\n super.init();\n /* */\n /* 68 */\n this.mChartTouchListener = new PieRadarChartTouchListener(this);\n /* */\n }", "@Override\n\tpublic void render () {\n super.render();\n\t}", "@Override\n protected void initEventAndData() {\n }", "@Override\n\tpublic void render() {\n\t\t\n\t}", "@Override\r\n protected void controlRender(RenderManager rm, ViewPort vp) {\n }", "@Override\n public void Create() {\n\n initView();\n }", "@Override\r\n\tpublic void render() {\n\r\n\t}", "public native void initRendering();", "public native void initRendering();", "@Override\n public void initComponent() {\n }", "@Override\n public void initComponent() {\n }", "protected ICEvent() {}", "public EventDispatcher() {\n }", "@Override\r\n\tpublic void render() {\n\t\t\r\n\t}", "public void init() {\t\n\t\tcolorMap = loadXKCDColors();\n\t\t\n\t\t/* Ensure we get a \"Graph\" message from the text box. */\n\t\tcolorInput.addActionListener(this);\n\t\tcolorInput.setActionCommand(\"Graph\");\n\t\tadd(colorInput, SOUTH);\n\t\t\n\t\tJButton graphButton = new JButton(\"Graph\");\n\t\tadd(graphButton, SOUTH);\n\t\t\n\t\tJButton clearButton = new JButton(\"Clear\");\n\t\tadd(clearButton, SOUTH);\n\t\t\n\t\taddActionListeners();\n\t}", "public Event() {\n\t}", "@Override\n public void init() {\n\n super.init();\n\n }", "protected ImageRenderer createRenderer() {\n\t\tImageRendererFactory rendFactory = new ConcreteImageRendererFactory();\n\t\t// ImageRenderer renderer = rendFactory.createDynamicImageRenderer();\n\t\treturn rendFactory.createStaticImageRenderer();\n\t}", "protected CoreChart(\n String rendererType\n )\n {\n super(rendererType);\n }", "void setupRender() {\n\t\t_highlightFacilityId = _facilityId;\n\t}", "@Override\n public void initView() {\n }", "public MainEntry() {\n initComponents();\n }", "@Override\n\tprotected void initView() {\n\t\t\n\t}", "@Override\n\tprotected void initView() {\n\t\t\n\t}", "@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\tpublic void initView() {\n\t\t\n\t}", "@Override\n protected void controlRender(RenderManager rm, ViewPort vp) {\n }", "@Override\n\tprotected void initView()\n\t{\n\n\t}", "public RetroStick() {\n eventBus = new EventBus();\n initComponents();\n }", "@Override\n\tprotected void controlRender(RenderManager rm, ViewPort vp) {\n\t\t\n\t}", "@Override\r\n public void initComponent() {\n }", "public CreateNewEventJPanel() {\n }", "@Override\n \tprotected void controlRender(RenderManager rm, ViewPort vp) {\n \n \t}", "public WorldRenderer(WorldController worldController)\n {\n this.worldController = worldController;\n init();\n }", "public ProductMain() {\n initComponents();\n init();\n addEvent();\n \n }", "@Override\n\tpublic void tick() {\n\t\trenderer.render(this);\n\t}", "protected void onComponentRendered()\n\t{\n\t}", "public Renderer(IGame game) {\n\t\tassert(game != null);\n\n\t\tthis.game = game;\n\t}", "@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 protected void init() {\n }", "public void render()\r\n\t{\n\t}" ]
[ "0.7355361", "0.715867", "0.6798438", "0.67752093", "0.6761132", "0.67558765", "0.67230314", "0.66850847", "0.6674741", "0.6670743", "0.6655242", "0.6655242", "0.6459794", "0.64222026", "0.6359763", "0.6351724", "0.6329791", "0.6312096", "0.6307127", "0.62860703", "0.6228633", "0.6208945", "0.6196337", "0.6167118", "0.61592615", "0.6144009", "0.613009", "0.60991", "0.60984504", "0.6096343", "0.60805", "0.6070563", "0.606805", "0.6058229", "0.60498166", "0.6045301", "0.60229903", "0.5987617", "0.5987617", "0.59821737", "0.59588873", "0.5958564", "0.59421605", "0.59264064", "0.5926139", "0.5916702", "0.5916702", "0.5915273", "0.5900305", "0.58989763", "0.5887173", "0.58760566", "0.5873839", "0.5873839", "0.5856503", "0.58449095", "0.58438903", "0.58355623", "0.58330613", "0.58327997", "0.58317053", "0.58298975", "0.5827875", "0.5818745", "0.5818697", "0.5818697", "0.5817569", "0.5817569", "0.5815912", "0.58144367", "0.5807412", "0.5805592", "0.5797396", "0.5797153", "0.57914937", "0.5788833", "0.5782939", "0.57826054", "0.5781199", "0.5772499", "0.5772499", "0.57711935", "0.57711935", "0.5758451", "0.5756", "0.5754813", "0.5753589", "0.575191", "0.5747175", "0.5746658", "0.57449484", "0.5743896", "0.57424754", "0.5739181", "0.57388747", "0.5734881", "0.5734387", "0.5734387", "0.5733942", "0.573087" ]
0.6610305
12
Here's the actual method called when the user clicks the start animation method, which results in unpausing of the renderer, and thus the animator as well.
@Override public void actionPerformed(ActionEvent ae) { renderer.unpauseScene(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override public void onAnimationStart(Animator arg0) {\n\n }", "@Override\n\t\t\t\t\t\t\tpublic void onAnimationStart(Animator arg0) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}", "public abstract void animationStarted();", "@Override\n\tpublic void onAnimationStart(Animator arg0) {\n\t\tif (mState.getState() != 0) {\n\t\t\tGBTools.GBsetAlpha(bv, 0.0F);\n\t\t\tbv.setState(mState.getState());\n\t\t\tbv.setPressed(false);\n\t\t}\n\t\tbv.bringToFront();\n\t\tmBoardView.invalidate();\n\t}", "@Override\n public void onAnimationStart(Animator arg0) {\n\n }", "@Override\n public void onAnimationStart(Animator arg0) {\n\n }", "public void startAnimation() {\n animationStart = System.currentTimeMillis();\n }", "void startAnimation();", "@Override\n\t\t\t\t\tpublic void onAnimationStart(Animator animation) {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "@Override\n public void onAnimationStart(Animation arg0) {\n \n }", "@Override\n\t\tpublic void onAnimationStart(Animator animation) {\n\t\t\t\n\t\t}", "void onAnimationStart();", "@Override\n protected void animStart() {\n }", "@Override\n public void onAnimationStart(Animator animation) {\n }", "@Override\r\n\t\t\tpublic void onAnimationStart(Animation arg0) {\n\t\t\t\t\r\n\t\t\t}", "@Override\n\t\t\t\t\t\t\tpublic void onAnimationStart(Animation arg0) {\n\n\t\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\t\tpublic void onAnimationStart(Animation arg0) {\n\n\t\t\t\t\t\t\t}", "@Override\n\tpublic void onAnimationStart(Animation arg0) {\n\t\t\n\t}", "@Override\n\tpublic void onAnimationStart(Animation arg0) {\n\t\t\n\t}", "@Override\n\t\t\tpublic void onAnimationStart(Animation arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onAnimationStart(Animation arg0) {\n\t\t\t\t\n\t\t\t}", "protected abstract void onAnimStart(boolean isCancelAnim);", "@Override\n\t\t\t\t\tpublic void onAnimationStart(Animation arg0) {\n\n\t\t\t\t\t}", "@Override\n\t\t\tpublic void onAnimationStart(Animation arg0) {\n\n\t\t\t}", "public StartAnimationHandler(SceneRenderer initRenderer)\r\n {\r\n renderer = initRenderer;\r\n }", "public void start() {\n animator.start();\n setVisible(true);\n requestFocus();\n }", "public void startAnimation() {\r\n\t\tani.start();\r\n\t}", "public void onAnimationStart(Animation arg0) {\n\t}", "public StartAnimationHandler(SceneRenderer initRenderer) {\n // KEEP THIS FOR LATER\n renderer = initRenderer;\n }", "@Override\n public void onAnimationStart(Animation anim) {\n }", "@Override\n public void onAnimationStart(Animation anim) {\n }", "@Override\n public void onAnimationStart(Animation anim) {\n }", "@Override\n public void onAnimationStart(Animation anim) {\n }", "@Override\r\n public void onAnimationStart(Animator arg0)// 动画开始\r\n {\n\r\n }", "@Override\r\n\t\t\t\tpublic void onAnimationStart(Animation animation) {\n\r\n\t\t\t\t}", "@Override\r\n\t\t\t\tpublic void onAnimationStart(Animation animation) {\n\r\n\t\t\t\t}", "@Override\n public void run() {\n runAnimation();\n }", "@Override\r\n\t\t\tpublic void onAnimationStart(Animation animation) {\n\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void onAnimationStart(Animation animation) {\n\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void onAnimationStart(Animation animation) {\n\r\n\t\t\t}", "@Override\n public void onAnimationStart(Animation animation) {\n }", "@Override\n\t\tpublic void onAnimationStart(Animation animation) {\n\t\t\t\n\t\t}", "@Override\r\n\t\t\t\t\tpublic void onAnimationStart(Animation animation) {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "@Override\r\n\t\t\tpublic void onAnimationStart(Animation animation) {\n\t\t\t\t\r\n\t\t\t}", "public void start() {\r\n\t\tif (animationFigure instanceof TrainFigure) {\r\n\t\t\t((TrainFigure) animationFigure).setBusyColor(org.eclipse.draw2d.ColorConstants.red);\r\n\t\t}\r\n\t\tcounter = 1;\r\n\t\t//notify Listeners\r\n\t\tanimationFigure.notifyAnimationListener(new AnimationStartedEvent(animationFigure, AnimationStartedEvent.BUSY_STARTED));\r\n\t\tthis.stopped=false;\r\n\t\tmap.getDisplay().asyncExec(this);\r\n\t}", "public void onAnimationStart(Animation animation) {\n\r\n }", "@Override\n\t\t\t\t\tpublic void onAnimationStart(Animation animation) {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "public void start() {\n if(mCancelAnim){\n setCancelAnimator(false);\n onEnd();\n return;\n }\n if (count <= 0) {\n setCancelNext(true);\n onEnd();\n return; //end\n }\n //start once now\n /* Logger.d(\"AnimateHelper\",\"start_before_start\",\"count = \" + count +\n \",already started ?=\" + anim.isStarted());*/\n --count;\n anim.start();\n }", "@Override\n\t public void onAnimationStart(Animation animation) {\n\t \n\t }", "@Override\n public void onAnimationStart(Animation animation) {\n\n }", "public void onAnimationStart(Animation animation) {\n }", "public void startAnimating() {\n\t\tif (!mAnimating) {\n\t\t\tmAnimating = true;\n\t\t\tmAnimationProgress = mProgress;\n\t\t\tmAnimationHandler.sendEmptyMessage(0);\n\t\t}\n\t}", "@Override\n\t\t\tpublic void onAnimationStart(Animation animation) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onAnimationStart(Animation animation) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onAnimationStart(Animation animation) {\n\t\t\t}", "public abstract void animationStopped();", "@Override\r\n public void actionPerformed(ActionEvent ae)\r\n {\r\n renderer.unpauseScene();\r\n }", "@Override\n public void onAnimationStart(Animation animation) {\n\n }", "@Override\n\tpublic void onAnimationStart(Animation animation) {\n\n\t}", "@Override\n\t\t\tpublic void onAnimationStart(Animation animation) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void onAnimationStart(Animation animation) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void onAnimationStart(Animation animation) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void onAnimationStart(Animation animation) {\n\n\t\t\t}", "public void drawAnimationAtStart(){\n animationThread = new AnimationThread(this.getGraphics(), getWidth(), getHeight());\n animationThread.start();\n music.playAudio(\"LoadingScreenMusic\");\n musicName = \"LoadingScreenMusic\";\n }", "@Override\n public void animate() {\n }", "@Override\r\n protected boolean hasAnimation() {\r\n return true;\r\n }", "public void startAnimation() {\n timer.start();\n }", "private void rerunAnimation() {\n transition.playFromStart();\r\n}", "public void e()\n/* */ {\n/* 193 */ if (!this.g) {\n/* 194 */ AnimatorSet localAnimatorSet = new AnimatorSet();\n/* 195 */ localAnimatorSet.play(a(this.b)).with(b(this.c));\n/* 196 */ localAnimatorSet.setDuration(this.f).start();\n/* 197 */ this.c.setVisibility(View.VISIBLE);\n/* 198 */ this.g = true;\n/* */ }\n/* */ }", "@Override\n protected void animStop() {\n }", "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tstartAnim();\r\n\t\t\t}", "private void terminateAnimation() {\n doRun = false;\n }", "public void animate()\n\t{\n\t\tanimation.read();\n\t}", "@Override\n public void actionPerformed( ActionEvent actionEvent )\n {\n repaint(); // repaint animator\n }", "public void start()\n {\n animator = new Thread(this);\n animator.start();\n }", "public void anim() {\n // start the timer\n t.start();\n }", "protected void startAnimation(final S state) {\r\n currentAnimation.stop();\r\n animations.get(state).run();\r\n }", "@Override\n public void onAnimationStart(Animator animation) {\n findViewById(R.id.btn_sticker1).setVisibility(View.GONE);\n findViewById(R.id.btn_sticker2).setVisibility(View.GONE);\n findViewById(R.id.btn_sticker3).setVisibility(View.GONE);\n findViewById(R.id.btn_camera_sticker_album).setVisibility(View.VISIBLE);\n findViewById(R.id.btn_camera_filter_album).setVisibility(View.VISIBLE);\n findViewById(R.id.btn_return).setVisibility(View.VISIBLE);\n\n\n\n //瞬间隐藏掉面板上的东西\n mStickerLayout.setVisibility(View.GONE);\n }", "public void stop()\n {\n animator = null;\n }", "@Override\n\t\t\t\t\t\t\tpublic void onAnimationEnd(Animator arg0) {\n\t\t\t\t\t\t\t\tLog.v(\"Main activity\",\"animation ended\");\n\t\t\t\t\t\t\t\tisLeft=!isLeft;\n\t\t\t\t\t\t\t}", "public void onAnimationStart(Animation animation) {\n\t }", "@Override public void onAnimationCancel(Animator arg0) {\n\n }", "public void onAnimationStart(Animation animation) {\n\t\t\t}", "public void start() {\n\t\tcurrentFrameIndex = 0;\n\t}", "private void startAnimation()\n\t{\n\t\tActionListener timerListener = new TimerListener();\n\t\tTimer timer = new Timer(DELAY, timerListener);\n\t\ttimer.start();\n\t}", "public void onAnimationStart(Animation animation) {\n }", "@Override\n\t\tpublic void onAnimationStart(Animation arg0) {\n\t\t\tgestures = new GestureDetector(new fakeGestureListener());\n\t\t}", "public void doAnimateStep () {\n\t\tadvanceSimulation();\n\t\tpaint();\n\t}", "public SlowDownAnimationHandler(SceneRenderer initRenderer)\r\n {\r\n // KEEP THIS FOR LATER\r\n renderer = initRenderer;\r\n }", "private void startAnimationMenu(){\n \t\tCreateMenus me = CreateMenus.this;\n TextView menuHeader = (TextView) findViewById(R.id.MenuHeader);\n menuHeader.setText(\"SideMenu options\");\n Animation anim;\n \n int w = appLayout.getMeasuredWidth();\n int h = appLayout.getMeasuredHeight();\n \n int left = (int) (appLayout.getMeasuredWidth() * 0.8);\n \n if (!menuOut) {//OPEN SIDEMENU\n anim = new TranslateAnimation(0, left, 0, 0);\n sideMenuLayout.setVisibility(View.VISIBLE);\n animParams.init(left, 0, left + w, h);\n } else {//CLOSE SIDEMENU\n anim = new TranslateAnimation(0, -left, 0, 0);\n animParams.init(0, 0, w, h);\n }\n \n anim.setDuration(500);\n anim.setAnimationListener(me);\n \n // Only use fillEnabled and fillAfter if we don't call layout ourselves.\n // We need to do the layout ourselves and not use fillEnabled and fillAfter because when the anim is finished\n // although the View appears to have moved, it is actually just a drawing effect and the View hasn't moved.\n // Therefore clicking on the screen where the button appears does not work, but clicking where the View *was* does\n // work.\n // anim.setFillEnabled(true);\n // anim.setFillAfter(true);\n \n appLayout.startAnimation(anim);\n \t}", "public void setAnimation() {\r\n\r\n // start outside the screen and move down until the clock is out of sight\r\n ObjectAnimator moveDown = ObjectAnimator.ofFloat(this, \"y\", -100, screenY + 100);\r\n AnimatorSet animSet = new AnimatorSet();\r\n animSet.play(moveDown);\r\n\r\n // Set duration to 4000 milliseconds\r\n animSet.setDuration(4000);\r\n\r\n animSet.start();\r\n\r\n }", "protected AnimationSuite() {\n loop = false;\n started = false;\n finished = false;\n doReset = false;\n setStopAfterMilliseconds(-1);\n }", "private void startAnimation(){\n\t TimerActionListener taskPerformer = new TimerActionListener();\n\t new Timer(DELAY, taskPerformer).start();\n \t}", "@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\trepaint(); //Timer will invoke this method which then refreshes the screen\r\n\t\t\t\t // for the \"animation\"\r\n\t}", "public void animate(){\n\n if (ra1.hasStarted() && ra2.hasStarted()) {\n\n// animation1.cancel();\n// animation1.reset();\n// animation2.cancel();\n// animation2.reset();\n gear1Img.clearAnimation();\n gear2Img.clearAnimation();\n initializeAnimations(); // Necessary to restart an animation\n button.setText(R.string.start_gears);\n }\n else{\n gear1Img.startAnimation(ra1);\n gear2Img.startAnimation(ra2);\n button.setText(R.string.stop_gears);\n }\n }", "@Override\n public void onClick(View v) {\n ensureVisibility(frameAnimation);\n\n //sets the background resource of the blank image view for the frame animation\n //to the resource that represents the animation.\n frameAnimation.setBackgroundResource(R.drawable.loading_animation);\n\n //extracts and AnimationDrawable from the image view.\n AnimationDrawable frameAnimationDrawable = (AnimationDrawable) frameAnimation.getBackground();\n\n // Starts the animation\n frameAnimationDrawable.start();\n }", "public Animate ()\r\n\t{\r\n\t\tgl = this;\r\n\t\tuse();\r\n\t\tinit();\r\n\t\t// This is kind of funky, we are our own listener for key events\r\n\t\taddKeyListener( this );\r\n\t}", "public abstract void animationReelFinished();", "@Override\n public void onAnimationStart(Animator animation) {\n findViewById(R.id.btn_camera_sticker_album).setVisibility(View.VISIBLE);\n findViewById(R.id.btn_camera_filter_album).setVisibility(View.VISIBLE);\n findViewById(R.id.btn_return).setVisibility(View.VISIBLE);\n\n //瞬间隐藏掉面板上的东西\n findViewById(R.id.btn_camera_beauty).setVisibility(View.GONE);\n findViewById(R.id.btn_camera_filter1).setVisibility(View.GONE);\n findViewById(R.id.btn_camera_lip).setVisibility(View.GONE);\n mFilterLayout.setVisibility(View.GONE);\n }", "void start() {\n myGameOver = false;\n myDisplay.setCurrent(this);\n repaint();\n }" ]
[ "0.7585563", "0.7538354", "0.7464854", "0.7388899", "0.73832834", "0.73591954", "0.7300012", "0.7260812", "0.7257628", "0.7250372", "0.7248183", "0.72444373", "0.72291213", "0.7223182", "0.7221037", "0.7204118", "0.7204118", "0.7196639", "0.7196639", "0.7177949", "0.7177949", "0.7157733", "0.71466756", "0.7145011", "0.7129482", "0.71243167", "0.70792174", "0.70503205", "0.70402277", "0.69846845", "0.69846845", "0.69846845", "0.69846845", "0.6974913", "0.697424", "0.697424", "0.69326806", "0.6927871", "0.6927871", "0.6927871", "0.6912285", "0.69092333", "0.6908532", "0.69021255", "0.69004846", "0.68989795", "0.6893859", "0.689331", "0.6855916", "0.68531674", "0.6850666", "0.68452615", "0.6839931", "0.6839931", "0.68370444", "0.6833075", "0.6814479", "0.68078244", "0.6801107", "0.67780805", "0.67780805", "0.67780805", "0.67780805", "0.67674404", "0.6753561", "0.67489344", "0.67142826", "0.67025536", "0.6663241", "0.6626536", "0.6596784", "0.6581492", "0.657807", "0.6577272", "0.65750575", "0.6547169", "0.65323144", "0.6525422", "0.65133095", "0.64838046", "0.6478633", "0.6445642", "0.64416033", "0.6423158", "0.6402222", "0.6376886", "0.6376684", "0.6367392", "0.63660187", "0.6362756", "0.634843", "0.63327354", "0.6328996", "0.62952167", "0.6294782", "0.62943786", "0.6286834", "0.6282284", "0.62815696", "0.62778986" ]
0.6820283
56
The web server can handle requests from different clients in parallel. These are called "threads". We do NOT want other threads to manipulate the application object at the same time that we are manipulating it, otherwise bad things could happen. The "synchronized" keyword is used to lock the application object while we're manpulating it.
private appR getApp() throws JAXBException, IOException { synchronized (application) { appR App = (appR) application.getAttribute("App"); if (App == null) { App = new appR(); App.setFilePath(application.getRealPath("WEB-INF/Listings.xml")); application.setAttribute("App", App); } return App; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void run() {\n\t\twhile (true) {\n\t\t\ttry {\n\t\t\t\tSocket client = serverSocket.accept();\n\t\t\t\ttry {\n\t\t\t\t\tSystem.out.println(\"连接到服务器的用户:\" + client);\n\t\t\t\t\t// 定义输入输出流\n\t\t\t\t\tBufferedReader in = new BufferedReader(new InputStreamReader(client.getInputStream()));\n\t\t\t\t\tPrintWriter out = new PrintWriter(client.getOutputStream(), true);\n\t\t\t\t\t// 定义request与response\n\t\t\t\t\tHttpServletRequest request = new Request(in);\n\t\t\t\t\tif (request.getMethod() == null)\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\tHttpServletResponse response = new Response(out);\n\t\t\t\t\t// 处理\n\n\t\t\t\t\tString url = request.getRequestURI(); // 例如/index.html\n\n\t\t\t\t\t// new Process().service(request, response);\n\n\t\t\t\t\tHttpServlet servlet = container.getServlet(url.substring(1));\n\t\t\t\t\tif (servlet != null)\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tservlet.service(request, response);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcatch (ServletException e) {\n\t\t\t\t\t\t\tthrow new RuntimeException(e);\n\t\t\t\t\t\t}\n\t\t\t\t\telse { //页面不存在\n\t\t\t\t\t\tnew Process().service(request, response);\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\tfinally {\n\t\t\t\t\tclient.close();\n\t\t\t\t\tSystem.out.println(client + \"离开了HTTP服务器\\n----------------\\n\");\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tcatch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\tthrow new RuntimeException();\n\t\t\t}\n\t\t}\n\t}", "private void setWSClientToKeepSeparateContextPerThread() {\n ((BindingProvider) movilizerCloud).getRequestContext()\n .put(THREAD_LOCAL_CONTEXT_KEY, \"true\");\n }", "@SuppressWarnings(\"java:S2189\")\n public static void main(String[] args) {\n ExecutorService executorService = Executors.newFixedThreadPool(4);\n try (ServerSocket serverSocket = new ServerSocket(8080)) {\n log.info(\"Waiting For New Clients...\");\n while (true) {\n Socket sock = serverSocket.accept();\n log.info(\"Connected to a client...\");\n executorService.execute(new ServeRequests(sock));\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@Override\n\tpublic boolean allowMultithreading()\n\t{\n\t\treturn true;\n\t}", "@Override \r\n public void run(){ \r\n threadsRunning++; // We now have more threads\r\n this.threadId = threadsRunning;\r\n this.setActive(true); \r\n try{ \r\n System.out.println(\"THREAD: \" + this.threadId + \" of \" + threadsRunning + \" was started.\");\r\n BufferedReader input = new BufferedReader(new InputStreamReader(soc.getInputStream())); \r\n output = new PrintWriter(soc.getOutputStream(), true); // Character stream\r\n\r\n String line;\r\n long time = System.currentTimeMillis();\r\n // Get everything that the client sends and dump it into the string until we get a blank line\r\n ArrayList<String> http_request_lines = new ArrayList<>();\r\n while ((line = input.readLine()).length() > 0) {\r\n // Output the request to console\r\n System.out.println(\"[\" + line + \"]\");\r\n http_request_lines.add(line);\r\n }\r\n \r\n // Fetch the request URL suffix\r\n String request_url = http_request_lines.get(0).split(\" \")[1]; \r\n String html;\r\n String html2;\r\n \r\n if (\"/getStudents\".equals(request_url)){ \r\n try{\r\n // Text that gets inserted into the HTML response's title and heading \r\n String request_type = \"All\";\r\n // MySQL query that gets sent to the student database\r\n String mySQL_query = \"SELECT * FROM students order by id asc;\"; \r\n // Make a MySQL query, get results and do HTTP POST with a populated HTML page \r\n getStudentsAndPOST(mySQL_query, request_type);\r\n } catch (Exception e) {\r\n // POST the internal server error message to the client\r\n post500(); \r\n System.out.println(EchoServer_HTTP.getDate() + \" - Exception in thread #: \" + this.threadId + \"; Error message: \" + e); \r\n } \r\n }else if (\"/getStudents=math\".equals(request_url)){\r\n try{\r\n String request_type = \"Math\";\r\n // MySQL query that gets sent to the student database\r\n String mySQL_query = \"SELECT * FROM students WHERE course = 'MathStudent' order by id asc ;\"; \r\n // Make a MySQL query, get results and do HTTP POST with a populated HTML page \r\n getStudentsAndPOST(mySQL_query, request_type);\r\n } catch (Exception e) {\r\n post500();\r\n System.out.println(EchoServer_HTTP.getDate() + \" - Exception in thread #: \" + this.threadId + \"; Error message: \" + e); \r\n }\r\n \r\n \r\n }else if (\"/getStudents=science\".equals(request_url)){\r\n try{\r\n String request_type = \"Science\";\r\n // MySQL query that gets sent to the student database\r\n String mySQL_query = \"SELECT * FROM students WHERE course = 'ScienceStudent' order by id asc ;\"; \r\n // Make a MySQL query, get results and do HTTP POST with a populated HTML page \r\n getStudentsAndPOST(mySQL_query, request_type); \r\n } catch (Exception e) { \r\n post500();\r\n System.out.println(EchoServer_HTTP.getDate() + \" - Exception in thread #: \" + this.threadId + \"; Error message: \" + e); \r\n }\r\n \r\n \r\n }else if (\"/getStudents=computer\".equals(request_url)){\r\n try{\r\n String request_type = \"Computer\";\r\n // MySQL query that gets sent to the student database\r\n String mySQL_query = \"SELECT * FROM students WHERE course = 'ComputerStudent' order by id asc ;\";\r\n // Make a MySQL query, get results and do HTTP POST with a populated HTML page \r\n getStudentsAndPOST(mySQL_query, request_type); \r\n } catch (Exception e) {\r\n post500();\r\n System.out.println(EchoServer_HTTP.getDate() + \" - Exception in thread #: \" + this.threadId + \"; Error message: \" + e); \r\n }\r\n \r\n }else{\r\n // If not found \"HTTP/1.0 404 Not Found\" and HTML code below tailored to print \"Page not found\"\r\n html = \"HTTP/1.0 404 Not Found\\n\\n\"; \r\n html2 = readHTML(\"404.html\"); \r\n output.write(html + html2); // Write the characters of html to the socket \r\n }\r\n output.flush();\r\n output.close(); \r\n input.close();\r\n System.out.println(EchoServer_HTTP.getDate() + \" - Request processed in: \" + ((System.currentTimeMillis() - time)) + \" ms\");\r\n System.out.println(\"Thread: \" + this.threadId + \" FINISHED\\n\\n\");\r\n } catch (IOException e) { \r\n post500();\r\n System.out.println(EchoServer_HTTP.getDate() + \" - Exception in thread #: \" + this.threadId + \"; Error message: \" + e); \r\n }\r\n threadsRunning--;\r\n this.setActive(false);\r\n }", "@Override\n protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n System.out.println(String.format(\"Initial thread. Name => %s, Id => %d\", Thread.currentThread().getName(), Thread.currentThread().getId()));\n final AsyncContext asyncContext = req.startAsync();\n asyncContext.addListener(new WebAppAsyncListener());\n\n // Gets a new thread from the container. There's a chance to be the same thread.\n // It depends on the container.\n asyncContext.start(() -> {\n System.out.println(\"Started long process. Browser will wait.\");\n // This is the async difference: this code can or cannot be the same thread of the initial thread\n // it depends on what thread the container will provide\n System.out.println(String.format(\"Long Process thread. Name => %s, Id => %d\", Thread.currentThread().getName(), Thread.currentThread().getId()));\n try {\n Thread.sleep(10000l);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n System.out.println(\"Long process finished. Browser should now get the response.\");\n try {\n\n final HttpServletResponse response = (HttpServletResponse) asyncContext.getResponse();\n response.setStatus(HttpServletResponse.SC_OK);\n response.getWriter().write(\"OK\");\n asyncContext.complete();\n } catch (IOException e) {\n e.printStackTrace();\n }\n });\n\n // Same thread as the initial.\n System.out.println(String.format(\"Closing thread of HttpServlet service method (doGet). Name => %s, Id => %d\", Thread.currentThread().getName(), Thread.currentThread().getId()));\n }", "public void run() {\n\t\ttry {\n\t\t\t// Get input and output streams to talk to the client\n\t\t\tBufferedReader in = new BufferedReader(new InputStreamReader(csocket.getInputStream()));\n\t\t\tPrintWriter out = new PrintWriter(csocket.getOutputStream());\n\t\t\t/*\n\t\t\t * read the input lines from client and perform respective action based on the\n\t\t\t * request\n\t\t\t */\n\t\t\tString line;\n\t\t\twhile ((line = in.readLine()) != null) {\n\t\t\t\t// return if all the lines are read\n\t\t\t\tif (line.length() == 0)\n\t\t\t\t\tbreak;\n\t\t\t\telse if (line.contains(\"GET\") && line.contains(\"/index.html\")) {\n\t\t\t\t\t/*\n\t\t\t\t\t * get the respective file requested by the client i.e index.html\n\t\t\t\t\t */\n\t\t\t\t\tFile file = new File(WEB_ROOT, \"/index.html\");\n\t\t\t\t\t// send HTTP Headers\n\t\t\t\t\tout.println(\"HTTP/1.1 200 OK\");\n\t\t\t\t\tout.println(\"Date: \" + new Date());\n\t\t\t\t\tout.println(\"Content-length: \" + file.length());\n\t\t\t\t\tout.println(); // blank line between headers and content\n\t\t\t\t\tout.flush(); // flush character output stream buffer\n\t\t\t\t\tout.write(FileUtils.readFileToString(file, \"UTF-8\"), 0, ((int) file.length()));\n\t\t\t\t} else if (line.contains(\"PUT\")) {\n\t\t\t\t\t/*\n\t\t\t\t\t * put the respective file at a location on local\n\t\t\t\t\t */\n\t\t\t\t\tString[] split = line.split(\" \");\n\t\t\t\t\tFile source = new File(split[1]);\n\t\t\t\t\tFile dest = new File(WEB_ROOT, \"clientFile.html\");\n\t\t\t\t\ttry {\n\t\t\t\t\t\t// copy the file to local storage\n\t\t\t\t\t\tFileUtils.copyFile(source, dest);\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\t// send HTTP Headers\n\t\t\t\t\tout.println(\"HTTP/1.1 200 OK\");\n\t\t\t\t\tout.println(\"Date: \" + new Date());\n\t\t\t\t\tout.println(); // blank line between headers and content\n\t\t\t\t\tout.flush(); // flush character output stream buffer\n\t\t\t\t} else {\n\t\t\t\t\tout.print(line + \"\\r\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t// closing the input and output streams\n\t\t\tout.close(); // Flush and close the output stream\n\t\t\tin.close(); // Close the input stream\n\t\t\tcsocket.close(); // Close the socket itself\n\t\t} // If anything goes wrong, print an error message\n\t\tcatch (Exception e) {\n\t\t\tSystem.err.println(e);\n\t\t\tSystem.err.println(\"Usage: java HttpMirror <port>\");\n\t\t}\n\t}", "public static void main(String[] args){ new ThreadPoolBlockingServer().processRequests(); }", "public void run()\n {\n Utilities.debugLine(\"WebServer.run(): Runing Web Server\", DEBUG);\n\n running = true;\n\n ServerSocketConnection ssc;\n try\n {\n ssc = (ServerSocketConnection) Connector.open(\"socket://:\" + PORT);\n\n do\n {\n Utilities.debugLine(\"WebServer.run(): Socket Opened, Waiting for Connection...\", DEBUG);\n SocketConnection sc = null;\n sc = (SocketConnection) ssc.acceptAndOpen();\n Thread t = new Thread(new ConnectionHandler(sc));\n t.setPriority(Thread.MIN_PRIORITY);\n t.start();\n\n//--------------------------------------- DEBUG THREAD NUMBER ---------------------------------\n try\n {\n System.out.println(\"Active Threads: \" + Thread.activeCount());\n }\n catch (Exception e)\n {\n System.out.println(\"There was an eror getting the thread count.\");\n }\n//--------------------------------------- DEBUG THREAD NUMBER ---------------------------------\n\n }\n while (running);\n ssc.close();\n }\n\n catch (Exception e)\n {\n Utilities.debugLine(e.toString() + e.getMessage(), true);\n }\n }", "public void synchronize(){ \r\n }", "public static void main(String[] args) throws Exception {\n Set<Users> likedSet = new HashSet<>();\n new Server(8080){{\n setHandler(new ServletContextHandler() {{\n addServlet(new ServletHolder(new ServletUsers(likedSet)) ,\"/users\");\n addServlet(new ServletHolder(new ServletsLiked(likedSet)) ,\"/liked\");\n addServlet(new ServletHolder(new StaticServlet()),\"/assets/*\");\n /* addServlet(new ServletHolder(new ServletsLinked(likedSet)) ,\"/liked\");\n addServlet(new ServletHolder(new ServletMessages()) ,\"/messages\");*/\n }}\n );\n start();\n join();\n }};\n\n }", "public void run() {\n ServerSocket serverSocket = null;\n try {\n serverSocket = new ServerSocket(8823);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n // running infinite loop for getting\n // client request\n while (true)\n {\n Socket socket = null;\n\n try\n {\n // socket object to receive incoming client requests\n socket = serverSocket.accept();\n\n //System.out.println(\"A new client is connected : \" + socket);\n\n // obtaining input and out streams\n InputStream inputStream = new DataInputStream(socket.getInputStream());\n OutputStream outputStream = new DataOutputStream(socket.getOutputStream());\n\n //System.out.println(\"Assigning new thread for this client\");\n\n // create a new thread object\n Thread t = new ClientHandler(socket, inputStream, outputStream);\n\n // Invoking the start() method\n t.start();\n\n }\n catch (Exception e){\n try {\n socket.close();\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n e.printStackTrace();\n }\n }\n }", "private void manageClients() {\n manage = new Thread(\"Manage\") {\n public void run() {\n //noinspection StatementWithEmptyBody\n while (running) {\n sendToAll(\"/p/server ping/e/\".getBytes());\n try {\n Thread.sleep(1500);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n //noinspection ForLoopReplaceableByForEach\n for (int i = 0; i < clients.size(); i++) {\n ServerClient tempClient = clients.get(i);\n if (!clientResponse.contains(tempClient.getID())) {\n if (tempClient.getAttempt() >= MAX_ATTEMPTS)\n disconnect(tempClient.getID(), false);\n else\n tempClient.setAttempt(tempClient.getAttempt() + 1);\n } else {\n clientResponse.remove(new Integer(tempClient.getID()));\n tempClient.setAttempt(0);\n }\n }\n }\n }\n };\n manage.start();\n }", "@Test\n\tpublic void testConcurrentWebApps() {\n\t\tm.nameWeb(\"a\").add(1, 1).add(5, 2).add(17, 6);\n\t\tm.nameWeb(\"b\").add(2, 1).add(6, 2).add(18, 6);\n\n\t\tserver.maxPower = 3;\n\t\tm.nbIntervals = 1;\n\t\tr = Scheduler.solv(m);\n\t\tAssert.assertNotNull(r);\n\t\tAssert.assertEquals(r.profit, 2);\n\n\t\tserver.maxPower = 7;\n\t\tr = Scheduler.solv(m);\n\t\tAssert.assertNotNull(r);\n\t\tAssert.assertEquals(r.profit, 3);\n\n\t\tserver.maxPower = 11;\n\t\tr = Scheduler.solv(m);\n\t\tAssert.assertNotNull(r);\n\t\tAssert.assertEquals(r.profit, 4);\n\n\t\tserver.maxPower = 40;\n\t\tr = Scheduler.solv(m);\n\t\tAssert.assertNotNull(r);\n\t\tAssert.assertEquals(r.profit, 12);\n\t}", "@Test\n\tpublic void sameThreadPoolDueToAffinity() throws Exception {\n\t\tString previousCore = null;\n\t\tfor (int i = 0; i < 100; i++) {\n\n\t\t\t// GET entry\n\t\t\tMockHttpResponse response = this.server.send(MockHttpServer.mockRequest(\"/\"));\n\t\t\tString html = response.getEntity(null);\n\t\t\tassertEquals(200, response.getStatus().getStatusCode(), \"Should be successful: \" + html);\n\n\t\t\t// Parse out the core\n\t\t\tPattern pattern = Pattern.compile(\".*CORE-(\\\\d+)-.*\", Pattern.DOTALL);\n\t\t\tMatcher matcher = pattern.matcher(html);\n\t\t\tassertTrue(matcher.matches(), \"Should be able to obtain thread affinity core\");\n\t\t\tString core = matcher.group(1);\n\n\t\t\t// Ensure same as previous core (ignoring first call)\n\t\t\tif (previousCore != null) {\n\t\t\t\tassertEquals(previousCore, core, \"Should be locked to same core\");\n\t\t\t}\n\n\t\t\t// Set up for next call\n\t\t\tpreviousCore = core;\n\t\t}\n\t}", "public void run()\n {\n Connection conn;\n Socket clientSock;\n int timeout;\n\n conn = new Connection();\n timeout = _config.getClientTimeout() * 1000;\n\n for ( ; ; ) {\n /*\n * Wait for connection request.\n */\n try {\n clientSock = _serverSock.accept();\n }\n catch(IOException e) {\n logError(\"accept() failure: \" + e.getMessage());\n continue;\n }\n\n try {\n clientSock.setSoTimeout(timeout);\n }\n catch(SocketException e) {\n logError(\"Cannot set timeout of client socket: \" + e.getMessage()\n + \" -- closing socket\");\n\n try {\n clientSock.close();\n }\n catch(IOException e2) {\n logError(\"Cannot close socket: \" + e2.getMessage());\n }\n continue;\n }\n\n /*\n * `Create' a new connection.\n */\n try {\n conn.init(clientSock);\n }\n catch(IOException e) {\n logError(\"Cannot open client streams\" + getExceptionMessage(e));\n try {\n clientSock.close();\n }\n catch(IOException e2) {\n logError(\"Cannot close client socket\" + getExceptionMessage(e2));\n }\n continue;\n }\n\n if (DEBUG && _debugLevel > 0) {\n debugPrintLn(\"Reading HTTP Request...\");\n }\n\n /*\n * `Create' a new container for the request.\n */\n setCurrentDate(_date);\n _req.init(conn, _clfDateFormatter.format(_date));\n\n // Get the current GAP list.\n _gapList = GlobeRedirector.getGAPList();\n\n processRequest(conn);\n\n /*\n * If access logging is enabled, write an entry to the access log.\n */\n if (_config.getAccessLogEnabledFlag()) {\n GlobeRedirector.accessLog.write(_req.getCommonLogFileStatistics());\n } \n\n if (DEBUG && _debugLevel > 1) {\n debugPrintLn(\"Closing client connection\");\n }\n\n try {\n conn.close();\n }\n catch(IOException e) {\n logError(\"Cannot close client connection\" + getExceptionMessage(e));\n }\n\n /*\n * Release references that are no longer needed. To reduce the\n * memory footprint, these references are released now because it\n * may take a long time before this thread handles a new request\n * (in which case the references are released too).\n */\n _gapList = null;\n _req.clear();\n _httpRespHdr.clear();\n _cookieCoords = null;\n }\n }", "public void run() {\n long creationInterval = MILLISEC_PER_SEC / this.generationRate;\n\n int curIndex = 0;\n long startTime, endTime, diff, sleepTime, dur = this.test_duration;\n\n do {\n // startTime = System.nanoTime();\n startTime = System.currentTimeMillis();\n\n Request r = new DataKeeperRequest((HttpClient) this.clients[curIndex], this.appserverID, this.url);\n curIndex = (curIndex + 1) % clientsPerNode;\n this.requests.add(r);\n\n try {\n r.setEnterQueueTime();\n this.requestQueue.put(r);\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n\n // endTime = System.nanoTime();\n endTime = System.currentTimeMillis();\n diff = endTime - startTime;\n dur -= diff;\n sleepTime = creationInterval - diff;\n if (sleepTime < 0) {\n continue;\n }\n\n try {\n // Thread.sleep(NANO_PER_MILLISEC / sleepTime, (int) (NANO_PER_MILLISEC % sleepTime));\n Thread.sleep(sleepTime);\n } catch (InterruptedException e) {\n throw new RuntimeException(e);\n }\n\n dur -= sleepTime;\n } while (dur > 0);\n\n try {\n this.requestQueue.put(new ExitRequest());\n this.requestQueueHandler.join();\n } catch (InterruptedException e) {\n throw new RuntimeException(e);\n }\n }", "@Override\n\tpublic void run()\n\t{\n\t\tSocket clientSocket;\n\t\tMemoryIO serverIO;\n\t\t// Detect whether the listener is shutdown. If not, it must be running all the time to wait for potential connections from clients. 11/27/2014, Bing Li\n\t\twhile (!super.isShutdown())\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\t// Wait and accept a connecting from a possible client residing on the coordinator. 11/27/2014, Bing Li\n\t\t\t\tclientSocket = super.accept();\n\t\t\t\t// Check whether the connected server IOs exceed the upper limit. 11/27/2014, Bing Li\n\t\t\t\tif (MemoryIORegistry.REGISTRY().getIOCount() >= ServerConfig.MAX_SERVER_IO_COUNT)\n\t\t\t\t{\n\t\t\t\t\ttry\n\t\t\t\t\t{\n\t\t\t\t\t\t// If the upper limit is reached, the listener has to wait until an existing server IO is disposed. 11/27/2014, Bing Li\n\t\t\t\t\t\tsuper.holdOn();\n\t\t\t\t\t}\n\t\t\t\t\tcatch (InterruptedException e)\n\t\t\t\t\t{\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// If the upper limit of IOs is not reached, a server IO is initialized. A common Collaborator and the socket are the initial parameters. The shared common collaborator guarantees all of the server IOs from a certain client could notify with each other with the same lock. Then, the upper limit of server IOs is under the control. 11/27/2014, Bing Li\n//\t\t\t\tserverIO = new MemoryIO(clientSocket, super.getCollaborator(), ServerConfig.COORDINATOR_PORT_FOR_MEMORY);\n\t\t\t\tserverIO = new MemoryIO(clientSocket, super.getCollaborator());\n\t\t\t\t// Add the new created server IO into the registry for further management. 11/27/2014, Bing Li\n\t\t\t\tMemoryIORegistry.REGISTRY().addIO(serverIO);\n\t\t\t\t// Execute the new created server IO concurrently to respond the client requests in an asynchronous manner. 11/27/2014, Bing Li\n\t\t\t\tsuper.execute(serverIO);\n\t\t\t}\n\t\t\tcatch (IOException e)\n\t\t\t{\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public void run() {\n\t\tString choice = null;\n\t\tBufferedReader inFromClient = null;\n\t\tDataOutputStream outToClient = null;\n\t\t\n\t\ttry {\n\t\t\tinFromClient = new BufferedReader(new InputStreamReader(client.getInputStream()));\n\t\t\toutToClient = new DataOutputStream(client.getOutputStream());\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\ttry {\n\t\t\t// Loops until the client's connection is lost\n\t\t\twhile (true) {\t\n\t\t\t\t// Request that was sent from the client\n\t\t\t\tchoice = inFromClient.readLine();\n\t\t\t\tif(choice != null) {\n\t\t\t\t\tSystem.out.println(choice);\n\t\t\t\t\tswitch (choice) {\n\t\t\t\t\t\t// Calculates the next even fib by creating a new\n\t\t\t\t\t\t// thread to handle that calculation\n\t\t\t\t\t\tcase \"NEXTEVENFIB\":\n\t\t\t\t\t\t\tnew EvenFib(client).run();\n\t\t\t\t\t\t\t// Increments the fib index tracker so no duplicates\n\t\t\t\t\t\t\t// are sent\n\t\t\t\t\t\t\tServer.fib++;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t// Calculates the next even nextLargerRan by creating a new\n\t\t\t\t\t\t// thread to handle that calculation\n\t\t\t\t\t\tcase \"NEXTLARGERRAND\":\n\t\t\t\t\t\t\tnew NextLargeRan(client).run();\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t// Calculates the next prime by creating a new\n\t\t\t\t\t\t// thread to handle that calculation\n\t\t\t\t\t\tcase \"NEXTPRIME\":\n\t\t\t\t\t\t\tnew NextPrime(client).run();\n\t\t\t\t\t\t\t// Increments the prime index tracker so no duplicates\n\t\t\t\t\t\t\t// are sent\n\t\t\t\t\t\t\tServer.prime++;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\t// Displays that the client it was connected to\n\t\t\t// has disconnected\n\t\t\tSystem.out.println(\"Client Disconnected\");\n\t\t}\n\n\t}", "public void run() {\n try {\n serverSocket = new ServerSocket(60000);\n while (true) {\n Socket clientSocket = serverSocket.accept();\n (new ServerReq(clientSocket, s3, \"dsproject.test\")).start();\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "private void handleClient() {\n\t\t//Socket link = null;\n\t\tRequestRecord reqRec = new RequestRecord();\n\t\tResponder respondR = new Responder();\n\t\t\n\t\ttry {\n\t\t\t// STEP 1 : accepting client request in client socket\n\t\t\t//link = servSock.accept(); //-----> already done in *ThreadExecutor*\n\t\t\t\n\t\t\t// STEP 2 : creating i/o stream for socket\n\t\t\tScanner input = new Scanner(link.getInputStream());\n\t\t\tdo{\n\t\t\t\t//PrintWriter output = new PrintWriter(link.getOutputStream(),true);\n\t\t\t\t//DataOutputStream ds = new DataOutputStream(link.getOutputStream());\n\t\t\t\tint numMsg = 0;\n\t\t\t\tString msg = input.nextLine();\n\t\t\t\t\n\t\t\t\t//to write all requests to a File\n\t\t\t\tFileOutputStream reqFile = new FileOutputStream(\"reqFile.txt\");\n\t\t\t\tDataOutputStream dat = new DataOutputStream(reqFile);\n\t\t\t\t\n\t\t\t\t// STEP 4 : listening iteratively till close string send\n\t\t\t\twhile(msg.length()>0){\n\t\t\t\t\tnumMsg++;\n\t\t\t\t\tdat.writeChars(msg + \"\\n\");\n\t\t\t\t\tSystem.out.println(\"\\nNew Message Received\");\n\t\t\t\t\tif(reqRec.setRecord(msg)==false)\n\t\t\t\t\t\tSystem.out.println(\"\\n-----\\nMsg#\"+numMsg+\": \"+msg+\":Error with Request Header Parsing\\n-----\\n\");\n\t\t\t\t\telse\n\t\t\t\t\t\tSystem.out.println(\"Msg#\" + numMsg + \": \" + msg);\n\t\t\t\t\tmsg = input.nextLine();\n\t\t\t\t};\n\t\t\t\tdat.writeChars(\"\\n-*-*-*-*-*-*-*-*-*-*-*-*-*-\\n\\n\");\n\t\t\t\tdat.close();\n\t\t\t\treqFile.close();\n\t\t\t\tSystem.out.println(\"---newEST : \" + reqRec.getResource());\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"\\n==========Send HTTP Response for Get Request of\\n\"+reqRec.getResource()+\"\\n***********\\n\");\n\t\t\t\tif(respondR.sendHTTPResponseGET(reqRec.getResource(), link)==true)//RES, ds)==true)\n\t\t\t\t\tSystem.out.println(\"-----------Resource Read\");\n\t\t\t\tSystem.out.println(\"Total Messages Transferred: \" + numMsg);\n\t\t\t\t//link.close();\n\t\t\t\tif(reqRec.getConnection().equalsIgnoreCase(\"Keep-Alive\")==true && respondR.isResourceExisting(reqRec.getResource())==true)\n\t\t\t\t\tlink.setKeepAlive(true);\n\t\t\t\telse\n\t\t\t\t\tbreak;\n\t\t\t}while(true);\n\t\t\tSystem.out.print(\"Request Link Over as Connection: \" + reqRec.getConnection());\n\t\t} catch (IOException e) {\n\t\t\tif(link.isClosed())\n\t\t\t\tSystem.out.print(\"\\n\\nCritical(report it to developer):: link closed at exception\\n\\n\");\n\t\t\tSystem.out.println(\"Error in listening.\\n {Error may be here or with RespondR}\\nTraceString: \");\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\t// STEP 5 : closing the connection\n\t\t\tSystem.out.println(\"\\nClosing Connection\\n\");\n\t\t\ttry {\t\t\t\t\n\t\t\t\tlink.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\tSystem.out.println(\"Unable to disconnect.\\nTraceString: \");\n\t\t\t\te.printStackTrace();\n\t\t\t\tSystem.exit(1);\n\t\t\t}\n\t\t}/*ends :: try...catch...finally*/\n\t\t\n\t}", "public void run() {\n boolean run = true;\n while (run) {\n try {\n // Update time and \"log\" it.\n d = new Date();\n System.out.println(d);\n // Update all clients.\n String currentPage = wContext.getCurrentPage();\n Collection sessions = wContext.getScriptSessionsByPage(currentPage);\n Util utilAll = new Util(sessions);\n utilAll.setValue(\"divTest\", d.toString(), true);\n // Next update in one second.\n sleep(1000);\n } catch (Exception e) {\n // If anything goes wrong, just end, but also set pointer to this\n // thread to null in parent so it can be restarted.\n run = false;\n t = null;\n }\n }\n }", "public static void main(String[] args) throws Throwable {\n ServerSocket server = new ServerSocket();\n server.bind(new InetSocketAddress(3000));\n System.out.println(\"Blocking Socket : listening for new Request\");\n while (true) { // <1>\n Socket socket = server.accept();\n //each incomming request(socket request) allocate in a separate thread\n new Thread(clientHandler(socket)).start();\n }\n }", "@Override\n\tpublic void run() {\n\t\t\n\t\ttry {\n\t\t\tsemaphore.acquire(); // 3 thread at a time\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tSystem.out.println(\"Slow servie\"); //50 times concurrently\n\t\t\n\t\tsemaphore.release();\n\t\t//rst of service\n\t\t\n\t\t\n\t}", "void contentsSynchronized();", "public void run(){\n\t\t// Stop servlets\n\t\ttry{\n\t\t\tserver.stop();\n\t\t}catch(Exception e){}\n\t}", "public void run()\n {\n try {\n clientSocket = serverSocket.accept();\n System.out.println(\"Client connected.\");\n clientOutputStream = new PrintWriter(clientSocket.getOutputStream(), true);\n clientInputStream = new BufferedReader( new InputStreamReader(clientSocket.getInputStream()));\n\n while(isRunning)\n {\n try {\n serverTick(clientSocket, clientOutputStream, clientInputStream);\n } catch (java.net.SocketException e)\n {\n //System.out.println(\"Network.Client closed connection. Ending server\");\n this.closeServer();\n }\n }\n } catch (Exception e1) {\n // TODO Auto-generated catch block\n e1.printStackTrace();\n }\n\n /***Legacy Code for allowing multiple users. No point in spending time implementing\n * When this is just suppose to be one way communication\n\n try {\n acceptClients.join();\n } catch (InterruptedException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n closeServer();\n */ }", "void blocked(HttpServletRequest request, HttpServletResponse response) throws IOException;", "public void run()\n {\n try\n {\n logger.debug(\"Starting server-side thread\");\n while (active)\n {\n List<Node> nodesFromQuery = null;\n if (clients.size() > 0)\n {\n nodesFromQuery = BeanLocator.getRouterService().findNodesWithNumberOfMessages(routerId);\n logger.debug(\"Number of nodesFromQuery for this routerId :\" + routerId + \" is:\" + nodesFromQuery.size());\n\n for (Node node : nodesFromQuery)\n {\n // if node exists in map\n if (this.nodes.get(node.getId()) != null)\n {\n logger.debug(\"Node already in map\");\n // check if something has been updated on the node - using hashcode\n\n logger.debug(this.nodes.get(node.getId()).getNumberOfMessagesHandled().toString());\n logger.debug(node.getNumberOfMessagesHandled().toString());\n boolean hasNumberOfMessagesChanged = !this.nodes.get(node.getId()).getNumberOfMessagesHandled().equals(node.getNumberOfMessagesHandled());\n if (hasNumberOfMessagesChanged)\n {\n logger.debug(\"Fire update event..\");\n // if something has changed fire update event\n this.nodes.put(node.getId(), node);\n fireNodeUpdatedEvent(node);\n } else\n {\n // nothing changed - ignore and log\n logger.info(\"Nothing changed on node :\" + node.getId());\n }\n } else\n {\n // else if node does not exist store the node in the map\n logger.debug(\"Storing node in map\");\n this.nodes.put(node.getId(), node);\n fireNodeUpdatedEvent(node);\n }\n }\n } else\n {\n logger.info(\"Thread running but no registered clients\");\n }\n Thread.sleep(CALLBACK_INTERVALL);\n }\n logger.debug(\"Stopping server-side thread. Clearing nodes and clients.\");\n clients.clear();\n nodes.clear();\n }\n catch (InterruptedException ex)\n {\n logger.warn(\"Thread interrupted.\", ex);\n }\n }", "public void run() {\n\t\tInputStream istream = null;\n\t\ttry {\n\t\t\tistream = (this.socket).getInputStream();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} \n\t DataInputStream dstream = new DataInputStream(istream);\n\t \n\t username = null;\n\t try {\n\t \tusername = dstream.readLine();\n\t \tSystem.out.println(username + \" on server side! (username)\");\n\t \tthis.masterServer.addUserName(username);\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t // pause thread to read in from client.\n\t\tString friendUsername = null;\n\t try {\n\t \tfriendUsername = dstream.readLine();\n\t \tSystem.out.println(friendUsername + \" on server side!!!!! (friendUsername)\");\n\t \tfindFriendsThread(friendUsername);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t try {\n\t\t\tdstream.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} \n\t try {\n\t\t\tistream.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t //this.masterServer.addUserName(username);\n\t \n\t}", "@Override\n\t\t\t\t\tpublic void run() {\n\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tList<String> headers = readRequest(client);\n\t\t\t\t\t\t\tif (headers != null && headers.size() >= 1) {\n\t\t\t\t\t\t\t\tString requestURL = getRequestURL(headers.get(0));\n\t\t\t\t\t\t\t\tLog.d(TAG, requestURL);\n\n\t\t\t\t\t\t\t\tif (requestURL.startsWith(\"http://\")) {\n\n\t\t\t\t\t\t\t\t\t// HttpRequest request = new\n\t\t\t\t\t\t\t\t\t// BasicHttpRequest(\"GET\", requestURL);\n\n\t\t\t\t\t\t\t\t\tprocessHttpRequest(requestURL, client, headers);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tprocessFileRequest(requestURL, client, headers);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t} catch (IllegalStateException e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "public void run() {\n final Server server = new Server(8081);\n\n // Setup the basic RestApplication \"context\" at \"/\".\n // This is also known as the handler tree (in Jetty speak).\n final ServletContextHandler context = new ServletContextHandler(\n server, CONTEXT_ROOT);\n final ServletHolder restEasyServlet = new ServletHolder(\n new HttpServletDispatcher());\n restEasyServlet.setInitParameter(\"resteasy.servlet.mapping.prefix\",\n APPLICATION_PATH);\n restEasyServlet.setInitParameter(\"javax.ws.rs.Application\",\n \"de.kad.intech4.djservice.RestApplication\");\n context.addServlet(restEasyServlet, CONTEXT_ROOT);\n\n\n try {\n server.start();\n server.join();\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }", "@Override\n\tpublic void run() {\n\n\t\tServerSocket sSocket;\n\t\ttry {\n\t\t\tsSocket = new ServerSocket(15001);\n\t\t\tSystem.out.println(\"server listening at \" + sSocket.getLocalPort());\n\t\t\twhile (true) {\n\t\t\t\t// this is an unique socket for each client\n\t\t\t\tSocket socket = sSocket.accept();\n\t\t\t\tSystem.out.println(\"Client with port number: \" + socket.getPort() + \" is connected\");\n\t\t\t\t// start a new thread for handling requests from the client\n\t\t\t\tClientRequestHandler requestHandler = new ClientRequestHandler(sketcher, socket, scene, playerMap);\n\t\t\t\tnew Thread(requestHandler).start();\n\t\t\t\t// start a new thread for handling responses for the client\n\t\t\t\tClientResponseHandler responseHandler = new ClientResponseHandler(socket, scene, playerMap);\n\t\t\t\tnew Thread(responseHandler).start();\n\t\t\t}\n\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t}\n\t}", "public static void main(String argv[]) throws Exception\n {\n int port = 1111;\n // Establish the listen socket.\n ServerSocket listen = new ServerSocket(port);\n while(true) {\n // Listens for and accepts requests\n // Also constructs an object to process the HTTP request message.\n HttpRequestA request = new HttpRequestA(listen.accept());\n\n // Create a new thread to process the request.\n Thread thread = new Thread(request);\n\n // Start the thread.\n thread.start();\n }\n }", "private void runServer() {\n while(true) {\n // This is a blocking call and waits until a new client is connected.\n Socket clientSocket = waitForClientConnection();\n handleClientInNewThread(clientSocket);\n } \n }", "public interface ApplicationServletAsync {\r\n\r\n\tvoid sendRequest(Map<String, Serializable> requestParameters,\r\n\t\t\tMap<String, Serializable> responseParameters,\r\n\t\t\tAsyncCallback<Void> callback);\r\n}", "private void handleRequest(Request request) throws IOException{\n switch (request){\n case NEXTODD:\n case NEXTEVEN:\n new LocalThread(this, request, nextOddEven).start();\n break;\n case NEXTPRIME:\n case NEXTEVENFIB:\n case NEXTLARGERRAND:\n new NetworkThread(this, userID, serverIPAddress, request).start();\n break;\n default:\n break;\n }\n }", "public static void main2(String[] args) throws UnknownHostException, IOException, ClassNotFoundException, InterruptedException{\r\n //get the localhost IP address, if server is running on some other IP, you need to use that\r\n InetAddress host = InetAddress.getLocalHost();\r\n Socket socket = null;\r\n ObjectOutputStream oos = null;\r\n ObjectInputStream ois = null;\r\n for(int i=0; i<5;i++){\r\n //establish socket connection to server\r\n socket = new Socket(host.getHostName(), 9876);\r\n //write to socket using ObjectOutputStream\r\n oos = new ObjectOutputStream(socket.getOutputStream());\r\n System.out.println(\"Sending request to Socket Server\");\r\n if(i==4)oos.writeObject(\"exit\");\r\n else oos.writeObject(\"\"+i);\r\n //read the server response message\r\n ois = new ObjectInputStream(socket.getInputStream());\r\n String message = (String) ois.readObject();\r\n System.out.println(\"Message: \" + message);\r\n //close resources\r\n ois.close();\r\n oos.close();\r\n Thread.sleep(100);\r\n }\r\n }", "public synchronized void run() {\n try {\n String data = in.readUTF();\n String response = FileRequestService.handleRequest(data, sharedWriteQueueService);\n out.writeUTF(response);\n System.out.println(\"server wrote:\" + response);\n } catch(EOFException e) {\n System.out.println(\"EOF:\" + e.getLocalizedMessage() + \" \" + e);\n } catch(IOException e) {\n System.out.println(\"IO:\" + e.getLocalizedMessage() + \" \" + e);\n } finally { \n try {\n clientSocket.close();\n } catch (IOException e){\n System.out.println(\"close:\" + e.getMessage());\n }\n }\n }", "public void run() {\r\n try {\r\n while (true) {\r\n Socket serverClient = serverSocket.accept(); //server accept the contentServerId connection request\r\n ServerClientThread sct = new ServerClientThread(serverClient, lamportClock, feeds, timers); //send the request to a separate thread\r\n sct.start();\r\n }\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n }", "public void lockThreadForClient()\n {\n masterThread.lockThreadForClient();\n }", "private void processRequest(HttpServletRequest request, HttpServletResponse response) {\n }", "Shared shared();", "public static void main(String[] args) throws IOException {\n\t\tServerSocket ss= new ServerSocket(5000); \r\n\t\tSocket s = null; \r\n\t\twhile(true) {\r\n\t\t\ts = ss.accept();\r\n\t\t\t\r\n\t\t\tDataOutputStream out = new DataOutputStream(s.getOutputStream());\r\n\t\t\tDataInputStream in = new DataInputStream(s.getInputStream());\r\n\t\t\t\r\n\t\t\tserverHelper c = new serverHelper(s,\"client\"+clientCount,in,out);\r\n\t\t\t\r\n\t\t\tThread t = new Thread(c);\r\n\t\t\t//System.out.println(\"client\"+clientCount+\"is online\");\r\n\t\t\tclients.add(c);\r\n\t\t\tt.start();\r\n\t\t\tclientCount++;\r\n\t\t}\r\n\t}", "public static void main(String[] arg) throws IOException, URISyntaxException, InterruptedException {\n DB = new manageDB();\n Crawler crawler = new Crawler();\n DBLock=new AtomicInteger(0);\n new Thread(new Runnable() {\n @Override\n public void run() {\n try {\n crawler.CrawlerProcess(5);\n } catch (IOException e) {\n e.printStackTrace();\n } catch (InterruptedException e) {\n e.printStackTrace();\n } catch (URISyntaxException e) {\n e.printStackTrace();\n }\n }\n }).start();\n\n new Thread(new Runnable() {\n @Override\n public void run() {\n processedCrawledPages=0;\n outputSection = new HashSet<>();\n while (true) {\n crawlerOutput = crawler.crawlerOutput;\n if (crawlerOutput != null)\n {\n if (crawlerOutput.size() > 0)\n {\n Iterator<Crawler.OutputDoc> itr = crawlerOutput.iterator();\n if(itr.hasNext())\n {\n Crawler.OutputDoc output;\n synchronized (crawlerOutput) {\n output = itr.next();\n outputSection.add(output);\n }\n if(processedCrawledPages%10==0)\n {\n //lock db to be exclusive for POP function\n DBLock.set(1);\n processedCrawledPages=0;\n try {\n Thread popThread=new Thread(new POPClass(outputSection));\n popThread.start();\n popThread.join();\n\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n outputSection.clear();\n \n }\n while(DBLock.intValue()==1);\n processedCrawledPages +=1;\n DB.docProcess(output);\n synchronized (crawlerOutput) {\n crawlerOutput.remove(output);\n }\n }\n\n }\n }\n }\n }\n\n }).start();\n\n\n new Thread(new Runnable() {\n @Override\n public void run() {\n try {\n ServerSocket serverSocket = new ServerSocket(7800);\n System.out.println(\"server is up and running...\");\n while (true) {\n Socket s = serverSocket.accept();\n System.out.println(\"server accepted the query...\");\n DataInputStream DIS = new DataInputStream(s.getInputStream());\n String query_and_flags = DIS.readUTF();\n Boolean imageSearch = false;\n Boolean phraseSearch = false;\n System.out.println(\"query_and_flags=\" + query_and_flags);\n String[] list_query_and_flags = query_and_flags.split(\"@\");\n String query = list_query_and_flags[0];\n if (list_query_and_flags[1].equals(\"phrase\"))\n phraseSearch = true;\n if (list_query_and_flags[2].equals(\"yes\"))\n imageSearch = true;\n\n if (imageSearch)\n manageDB.imageSearch(query);\n else manageDB.rank(query,phraseSearch);\n if (phraseSearch)\n System.out.println(\"it's phrase search\");\n else System.out.println(\"no phrase search\");\n DIS.close();\n s.close();\n\n }\n } catch (IOException | SQLException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }\n }).start();\n\n\n }", "SyncObject(int numThreads)\n {\n this.numThreads = numThreads;\n }", "@Override\n\tpublic void init() throws ServletException {\n\t\tchannel = new Channel(5);\n \tchannel.startWorkers();\n \t\n \tnew ClientThread(\"bid\", channel, webSockets).start();\n\t}", "private static void startSocket() throws MutexException {\n\t\tThread t1 = new ClientServerSockets();\n\t\tt1.start();\n\t\tboolean deadlock = false;\n\t\twhile(requestsCount != 20) {\n\t\t\t// for 2.3.a\n\t\t\trandomWait(2, 5);\n//\t\t\tMutex.fixedWait(5);\n\t\t\tMetrics.criticalSectionStartMsgSnapshot();\n\t\t\tMetrics.criticalSectionStartTimeSnapshot();\n\t\t\tArrayList<Integer> randomQuorum = Quorum.getRandomQuorum();\n//\t\t\trandomQuorum = new ArrayList<Integer>(Arrays.asList(4, 5, 6, 7));\n\t\t\tLogger.info(\"Selected a quorum: \" + randomQuorum);\n\n\t\t\tcurrentQuorum = randomQuorum;\n\t\t\tenteredCriticalSection = false;\t\t\t\n\t\t\tif(Client.requestsCount != 0) {\n\t\t\t\tMetrics.exitAndReEntry(Client.requestsCount);\n\t\t\t}\n\t\t\tfor(Integer id: randomQuorum) {\n\t\t\t\tMap<String, String> serverById = Host.getServerById(id);\n\t\t\t\tEntry<String, String> entry = serverById.entrySet().iterator().next();\n\t\t\t\tString serverName = entry.getKey();\n\t\t\t\tint serverPort = Integer.valueOf(entry.getValue());\n\t\t\t\tlong currentTimeStamp = System.currentTimeMillis();\n\t\t\t\tString clientId = String.valueOf(Host.getId());\n\t\t\t\tString formattedRequestMessage = Client.prepareRequestMessage(currentTimeStamp, clientId);\n\t\t\t\tLogger.info(\"Sending REQUEST to quorum member: \" + serverById + \", i.e., server name:\" + serverName);\n\t\t\t\tMutex.sendMessage(serverName, serverPort, formattedRequestMessage);\n\t\t\t}\n\t\t\tint waitingTimeinSeconds = 0;\n\t\t\twhile(!enteredCriticalSection) {\n\t\t\t\tLogger.info(\"Waiting for the old REQUEST to get COMPLETED before generating a new quorum.\");\n\t\t\t\tMutex.fixedWait(3);\n\t\t\t\twaitingTimeinSeconds+=3;\n\t\t\t\tif(waitingTimeinSeconds >= 90) {\n\t\t\t\t\tLogger.info(\"Looks like a DEADLOCK situation. Preparing to ABORT.\");\n\t\t\t\t\tdeadlock = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(deadlock) {\n\t\t\t\tMutex.sendMessage(Host.getname(), Integer.valueOf(Host.getPort()), MutexReferences.ABORT);\n\t\t\t}\n\t\t\tMetrics.criticalSectionEndMsgSnapshot(requestsCount);\n\t\t\trequestsCount++;\n\t\t\tif(requestsCount < 20) {\n\t\t\t\tLogger.info(\"Last request successfully completed. Generating a new request.\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\tLogger.info(\"Completed 20 requests. Preparing to send COMPLETE to master.\");\n\t\t\t}\n\t\t}\n\t\t\t\n\t}", "@Override\n\tprotected synchronized void getArticles() throws Exception {\n\t\tif(thread == null || thread.isAlive() == false) {\n\t\t\tWebRunner runner = new WebRunner(mHandler);\n\t\t\tthread = new Thread(runner);\n\t\t\tthread.start();\n\t\t}\n }", "public void RunSync() {\n\t\tInteger numThreads = Runtime.getRuntime().availableProcessors() + 1;\n\t\tExecutorService executor = Executors.newFixedThreadPool(numThreads);\n\t\tSystem.out.println(\"Num Threads: \" + numThreads.toString());\t\n\t\t\n\t\t// Set rate limits so sync will pause and avoid errors\n\t\tRequestLimitManager.addLimit(new Limit(TimeUnit.SECONDS.toNanos(1), 100));\n\t\tRequestLimitManager.addLimit(new Limit(TimeUnit.HOURS.toNanos(1), 36000));\n\n\t\t// Initialize start time for request limits\n\t\tItemSync.initialize();\n\t\tItemSync.setMaxRecords(200000); // @todo Detect the end of valid IDs if possible\n\n\t\t// Add callable instance to list so they can be managed during execution phase\n\t\tArrayList<Callable<ItemSync>> tasks = new ArrayList<Callable<ItemSync>>();\n\t\tfor(int i = 0; i < numThreads; i++) {\n\t\t\ttasks.add(new ItemSync());\n\t\t}\n\n\n\t\t/**\n\t\t * EXECUTION STAGE: Start all sync threads, loop until all threads are finished.\n\t\t * Sleeps at end of check so we aren't hammering the CPU.\n\t\t */\n\t\ttry {\n\t\t\t// Start callables for every ItemSync instance\n\t\t\tList<Future<ItemSync>> futures = executor.invokeAll(tasks);\n\n\t\t\t// Main loop, checks state of thread (future)\n\t\t\tboolean loop = true;\n\t\t\twhile(loop) {\n\t\t\t\tloop = false;\n\t\t\t\tfor(Future<ItemSync> future : futures) {\n\t\t\t\t\tSystem.out.println(future.isDone());\n\t\t\t\t\tif(!future.isDone()) {\n\t\t\t\t\t\tloop = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"Waiting...\");\n\t\t\t\tThread.sleep(TimeUnit.SECONDS.toMillis(1));\n\t\t\t}\n\t\t\t\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\t\t\n\n\t\t/**\n\t\t * CLEAN UP STAGE: Threads are done running, clean up\n\t\t */\n\t\tSystem.out.println(\"Shutting down threads\");\n\t\texecutor.shutdown();\n\t\twhile(!executor.isTerminated()) {\n\t\t\t\n\t\t}\n\t\tSystem.out.println(\"Finished\");\n\t}", "private static void handleServer(){\n // Main program. It should handle all connections.\n try{\n while(true){\n Socket clientSocket= serverSocket.accept();\n ServerThread thread = new ServerThread(clientSocket, connectedUsers, groups);\n thread.start();\n }\n }catch (IOException e) {\n e.printStackTrace();\n }\n }", "@Override\r\n\tpublic void run() {\n\t\trunClient();\r\n\t}", "public void run() {\n GlobalLogger.log(this, LogLevel.INFO, \"STARTING RequestThread\");\n while(true) {\n int request = client.recvInt();\n if (request == -2147483648) {\n return;\n }\n int i;\n int d;\n int id;\n int x;\n int y;\n switch(request) {\n case 0xC0:\n mustSync = true;\n break;\n case 1:\n i = receiveUntilNotSync();\n d = receiveUntilNotSync();\n GlobalLogger.log(this, LogLevel.INFO, \"Updating direction of client %d to %d\",i, d);\n if(getOpponentByClientId(i) != null) getOpponentByClientId(i).setDirection(d);\n break;\n case 2:\n id = receiveUntilNotSync();\n x = receiveUntilNotSync();\n y = receiveUntilNotSync();\n MySnakeMultiplayerOpponent newopponent = new MySnakeMultiplayerOpponent(id);\n GlobalLogger.log(this, LogLevel.INFO, \"New opponent at id %d, on pos (%d,%d)\",id,x,y);\n newopponent.addPiece(new MySnakePiece(x,y));\n newopponent.addPiece(new MySnakePiece(x+1,y));\n opponents.add(newopponent);\n break;\n case 3:\n id = receiveUntilNotSync();\n GlobalLogger.log(this, LogLevel.INFO, \"Apple eaten by opponent %d!\", id);\n if(getOpponentByClientId(id) != null) getOpponentByClientId(id).addPiece(new MySnakePiece(getOpponentByClientId(id).getSnake().get(getOpponentByClientId(id).getSnake().size()-1).getX(), getOpponentByClientId(id).getSnake().get(getOpponentByClientId(id).getSnake().size()-1).getY()));\n break;\n case 4:\n x = receiveUntilNotSync();\n y = receiveUntilNotSync();\n GlobalLogger.log(this, LogLevel.INFO, \"New apple pos is (%d,%d)\",x,y);\n apple.x = x;\n apple.y = y;\n break;\n case 5:\n int playern = receiveUntilNotSync();\n // GlobalLogger.log(this, LogLevel.INFO, \"Global sync received\");\n // GlobalLogger.log(this, LogLevel.INFO, \"%d players currently connected (besides you)\", playern);\n for(int k=0; k<playern; k++) {\n id = receiveUntilNotSync();\n MySnakeMultiplayerOpponent currentOpponent = getOpponentByClientId(id);\n if(currentOpponent != null) {\n currentOpponent.setDirection(client.recvInt());\n int tailsn = receiveUntilNotSync();\n for(int j=0; j<tailsn; j++) {\n int tailx = receiveUntilNotSync();\n int taily = receiveUntilNotSync();\n currentOpponent.getSnake().get(j).setX(tailx);\n currentOpponent.getSnake().get(j).setY(taily);\n }\n }\n }\n\n int controlcode = receiveUntilNotSync();\n if(controlcode != 1908) {\n GlobalLogger.log(this, LogLevel.SEVERE, \"Something went horribly wrong. Got %d for control code\", controlcode);\n } else {\n // GlobalLogger.log(this, LogLevel.INFO, \"Seems like everything went smoothly :D! Noice!\");\n }\n break;\n case 6:\n fuckingDead = true;\n break;\n\n case 7:\n id = receiveUntilNotSync();\n opponents.remove(getOpponentByClientId(id));\n break;\n\n default:\n GlobalLogger.log(this, LogLevel.SEVERE, \"Invalid request %d received from server\", request);\n this.stop();\n break;\n }\n }\n }", "private void processRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tString ret = \"CallDone\";\n\t\t\tif(request.getParameter(\"cmd\").equals(\"newUser\")){\n\t\t\t\tfinal int UserID = Integer.parseInt(request.getParameter(\"UserId\"));\n\t\t\t\tRunnable r = new Runnable(){\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tuploadRecommendationInfo(\"FirstTimeSecondStepStart\",UserID);\n\t\t\t\t\t\tUploadFiltersResultV2.filterExecute(UserID);\n\t\t\t\t\t\tuploadRecommendationInfo(\"FirstTimeSecondStepDone\",UserID);\t\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t\tThread t = new Thread(r);\n\t\t\t\tt.start();\n\t\t\t}else if(request.getParameter(\"cmd\").equals(\"maintainRecTable\")){\n\t\t\t\tRunnable r = new Runnable(){\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\t/*logs info uploading in the function*/\n\t\t\t\t\t\tRunRecMaintenance maintain = new RunRecMaintenance();\n\t\t\t\t\t\tmaintain.startAutomaticMaintain();\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t\tThread t = new Thread(r);\n\t\t\t\tt.start();\n\t\t\t}else if(request.getParameter(\"cmd\").equals(\"maintainRecTableOnce\")){\n\t\t\t\tRunnable r = new Runnable(){\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tuploadRecommendationInfo(\"RecMaintainStart\",null);\n\t\t\t\t\t\tRecMaintenance maintain = new RecMaintenance();\n\t\t\t\t\t\tmaintain.maintainRecTable();\n\t\t\t\t\t\tuploadRecommendationInfo(\"RecMaintainDone\",null);\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t\tThread t = new Thread(r);\n\t\t\t\tt.start();\n\t\t\t}else if(request.getParameter(\"cmd\").equals(\"maintainRecTableForOneUser\")){\n\t\t\t\tfinal int UserID = Integer.parseInt(request.getParameter(\"UserId\"));\n\t\t\t\tRunnable r = new Runnable(){\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tuploadRecommendationInfo(\"RecMaintainStartForOne\",UserID);\n\t\t\t\t\t\tRecMaintenance maintain = new RecMaintenance();\n\t\t\t\t\t\tmaintain.maintainRecTableForOneUser(UserID);\n\t\t\t\t\t\tuploadRecommendationInfo(\"RecMaintainDoneForOne\",UserID);\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t\tThread t = new Thread(r);\n\t\t\t\tt.start();\n\t\t\t}else if(request.getParameter(\"cmd\").equals(\"startGravity\")){\n\t\t\t\tRunnable r = new Runnable(){\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\t/*logs info uploading in the function*/\n\t\t\t\t\t\tCalculateGravity gravity = new CalculateGravity();\n\t\t\t\t\t\tgravity.startAutomaticGravity();\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t\tThread t = new Thread(r);\n\t\t\t\tt.start();\n\t\t\t}else if(request.getParameter(\"cmd\").equals(\"refreshFirstStep\")){\n\t\t\t\tRunnable r = new Runnable(){\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tuploadRecommendationInfo(\"RefreshFirstStepStart\",null);\n\t\t\t\t\t\tCalculateFirstStepV2 firstStep = new CalculateFirstStepV2();\n\t\t\t\t\t\tfirstStep.startAutomaticFirstStepRefresh();\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t\tThread t = new Thread(r);\n\t\t\t\tt.start();\n\t\t\t}else if(request.getParameter(\"cmd\").equals(\"refreshFirstStepOnce\")){\n\t\t\t\tRunnable r = new Runnable(){\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tuploadRecommendationInfo(\"RefreshFirstStepOnceStart\",null);\n\t\t\t\t\t\tCalculateFirstStepV2.refreshFirstStep();\n\t\t\t\t\t\tuploadRecommendationInfo(\"RefreshFirstStepOnceEnd\",null);\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t\tThread t = new Thread(r);\n\t\t\t\tt.start();\n\t\t\t}else if(request.getParameter(\"cmd\").equals(\"runSecondStepForAll\")){\n\t\t\t\tRunnable r = new Runnable(){\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tHashMap<Integer, Long> UserAndFaceId = getAllUserId();\n\t\t\t\t\t\tfor(Entry<Integer, Long>entry: UserAndFaceId.entrySet()){\n\t\t\t\t\t\t\tInteger UserId = entry.getKey();\n\t\t\t\t\t\t\tUploadFiltersResultV2.filterExecute(UserId);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t\tThread t = new Thread(r);\n\t\t\t\tt.start();\t\t\t\t\n\t\t\t}else if(request.getParameter(\"cmd\").equals(\"categorizeFacebookEvents\")){\n\t\t\t\tRunnable r = new Runnable(){\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\t\n\t\t\t\t\t\tuploadRecommendationInfo(\"automaticCategorizingStart\",null);\n\t\t\t\t\t\tRunFacebookEventCategorization categorization = new RunFacebookEventCategorization();\n\t\t\t\t\t\tcategorization.startAutomaticCategorization();\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t\tThread t = new Thread(r);\n\t\t\t\tt.start();\n\t\t\t}else if(request.getParameter(\"cmd\").equals(\"categorizeFacebookEventsOnce\")){\n\t\t\t\tRunnable r = new Runnable(){\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tuploadRecommendationInfo(\"categorizingStart\",null);\n\t\t\t\t\t\tDiscriminatorCategorization categ = new DiscriminatorCategorization();\n\t\t\t\t\t\tcateg.categorizingV2();\n\t\t\t\t\t\tuploadRecommendationInfo(\"categorizingEnd\",null);\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t\tThread t = new Thread(r);\n\t\t\t\tt.start();\n\t\t\t}else if(request.getParameter(\"cmd\").equals(\"debug\")){\n\t\t\t\tRunnable r = new Runnable(){\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tuploadRecommendationInfo(\"debugStart\",null);\n\t\t\t\t\t\t//Debug.undoFacebookDiscriminators();\n\t\t\t\t\t\tRecommenderDbService dbService = null;\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tdbService = RecommenderDbServiceCreator.createCloud();\n\t\t\t\t\t\t\tdbService.debugFacebookEventsDELETE();\n\t\t\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}finally{\n\t\t\t\t\t\t\tif(dbService != null){\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\tdbService.close();\n\t\t\t\t\t\t\t\t} catch (IOException | SQLException e) {\n\t\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\t\te.printStackTrace();\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\tuploadRecommendationInfo(\"debugDone\",null);\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t\tThread t = new Thread(r);\n\t\t\t\tt.start();\n\t\t\t}\n\t\t\tresponse.setContentType(\"text/html; charset=utf-8\");\n\t\t\tString responseStr = request.getParameter(\"callback\") + \"(\" + ret + \")\";//\"\"=ret\n\t\t\tresponse.getOutputStream().write(responseStr.getBytes(Charset.forName(\"UTF-8\")));\n\t}", "@Override\n public void run() {\n syncToServer();\n }", "public static void main(String[] args) throws IOException {\n ServerSocket ss = new ServerSocket(3000);\n\n // infinite loop is running for getting client request\n while (true) {\n Socket serverSocket = null;\n\n try {\n // server socket object receive incoming client requests\n serverSocket = ss.accept();\n count++;\n\n System.out.println(\"A new client\" + clientNum++ + \" is connected : \" + serverSocket);\n\n // getting input and out streams\n DataInputStream dataInputStream = new DataInputStream(serverSocket.getInputStream());\n DataOutputStream dataOutputStream = new DataOutputStream(serverSocket.getOutputStream());\n\n System.out.println(\"Allocating new thread for this client\" + clientNum);\n\n // create a new thread object\n Thread newThread = new ClientHandler(serverSocket, dataInputStream, dataOutputStream, count);\n\n // Invoking the start() method\n newThread.start();\n\n } catch (Exception e) {\n serverSocket.close();\n e.printStackTrace();\n }\n }\n }", "public void run() {\n\t\ttry {\r\n\t\t\tInetAddress localHost = InetAddress.getLocalHost();\r\n\t\t\tString ip_address = localHost.getHostAddress().trim();\r\n\t\t\tSocket socket = new Socket(this.ip_address_server, this.port_server);\r\n\t\t\twhile (socket.isClosed() == true) {\r\n\t\t\t\tsocket = new Socket(this.ip_address_server, this.port_server);\r\n\t\t\t}\r\n\t\t\tString request = \"HELLO \" + ip_address + \" \" + socket \r\n\t\t\t\t\t+ \" \" + this.client_id;\r\n\t\t\tOutputStream output = socket.getOutputStream();\r\n\t\t\tPrintWriter writer = new PrintWriter(output, true);\t\r\n\t\t\t// while <300 send request\r\n\t\t\tint requests = 0;\r\n\t\t\tlong sum=0;\r\n\t\t\twhile (requests < 300) {\r\n\t\t\t\tlong startTime = System.currentTimeMillis();\r\n\t\t\t\twriter.println(request);\r\n\t\t\t\tDataInputStream reader = new DataInputStream(new BufferedInputStream(socket.getInputStream()));\r\n\t\t\t\treader.readUTF();\r\n\t\t\t\tint length = reader.readInt();\r\n\t\t\t\tif(length>0){\r\n\t\t\t\t\tbyte[] payload = new byte[length];\r\n\t\t\t\t reader.readFully(payload, 0, payload.length); // read the message\r\n\t\t\t\t}\r\n\t\t\t\trequests++;\r\n\t\t\t\tlong endTime = System.currentTimeMillis();\r\n\t\t\t\tlong time = endTime - startTime;\r\n\t\t\t\tsum+=time;\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\"Client \" + this.client_id + \" has finished after \"\r\n\t\t\t\t\t+ requests + \" requests\");\r\n\t\t\tdouble averTime = sum / 300;\r\n\t\t\tString text = \"Average Communication Latency (\" + this.client_id + \"): \" + averTime + \"\\n\";\r\n\t\t\tFiles.write(Paths.get(this.latencyTimes.getName()), text.getBytes(), StandardOpenOption.APPEND);\r\n\t\t\tsocket.close();\t\r\n\t\t} catch (UnknownHostException ex) {\r\n\t\t\tSystem.out.println(\"Server not found: \" + ex.getMessage());\r\n\t\t\tex.printStackTrace();\r\n\t\t} catch (IOException ex) {\r\n\t\t\tSystem.out.println(\"I/O error: \" + ex.getMessage());\r\n\t\t\tex.printStackTrace();\r\n\t\t}\r\n\t}", "@Override\n public void run() {\n //Create output and input streams that read from and write to the client socket\n try (ObjectOutputStream outStream = new ObjectOutputStream(clientSocket.getOutputStream());\n ObjectInputStream inStream = new ObjectInputStream(clientSocket.getInputStream())) {\n\n System.out.println(\"New Server Thread Running for Client\" + clientSocket.getInetAddress());\n\n //Try to store the values from the input stream in numList\n try {\n numList = (ArrayList<Integer>) inStream.readObject();\n } catch (ClassNotFoundException ex) {\n Logger.getLogger(LargestSubsequenceConcurrentServer.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n System.out.println(\"Client: \" + clientIdNumber + \"\\nEntry \" + numList + \" Added\");\n //Passes numList, outputStream and the getSubSequence Function results to print function to handle output\n printNumbersList(numList, outStream, getSubsequence(numList));\n\n } catch (IOException e) {\n System.out.println(\"IOException:\" + e.getMessage());\n }\n }", "public void run() {\n //we are now inside our own thread separated from the gui.\n ServerSocket serversocket = null;\n //Pay attention, this is where things starts to cook!\n try {\n //print/send message to the guiwindow\n s(\"Trying to bind to localhost on port \" + Integer.toString(port) + \"...\");\n //make a ServerSocket and bind it to given port,\n serversocket = new ServerSocket(port);\n } catch (Exception e) { //catch any errors and print errors to gui\n s(\"\\nFatal Error:\" + e.getMessage());\n return;\n }\n\n //go in a infinite loop, wait for connections, process request, send response\n while (true) {\n s(\"\\nReady, Waiting for requests...\\n\");\n try {\n //this call waits/blocks until someone connects to the port we\n //are listening to\n Socket connectionsocket = serversocket.accept();\n //figure out what ipaddress the client commes from, just for show!\n InetAddress client = connectionsocket.getInetAddress();\n //and print it to gui\n s(client.getHostName() + \" connected to server.\\n\");\n //Read the http request from the client from the socket interface\n //into a buffer.\n BufferedReader input =\n new BufferedReader(new InputStreamReader(connectionsocket.getInputStream()));\n //Prepare a outputstream from us to the client,\n //this will be used sending back our response\n //(header + requested file) to the client.\n DataOutputStream output =\n new DataOutputStream(connectionsocket.getOutputStream());\n\n //as the name suggest this method handles the http request, see further down.\n //abstraction rules\n http_handler(input, output);\n } catch (Exception e) { //catch any errors, and print them\n s(\"\\nError:\" + e.getMessage());\n }\n\n } //go back in loop, wait for next request\n }", "@Override\r\n public void service(HttpServletRequest request, \r\n HttpServletResponse response) {\r\n Context cx = Context.enter();\r\n //cx.setOptimizationLevel(-1);\r\n cx.putThreadLocal(\"rhinoServer\",RhinoServlet.this);\r\n try {\r\n \r\n // retrieve JavaScript...\r\n JavaScript s = loader.loadScript(entryPoint);\r\n \r\n ScriptableObject threadScope = makeChildScope(\"RequestScope\", \r\n globalScope.getModuleScope(entryPoint));\r\n \r\n cx.putThreadLocal(\"globalScope\", globalScope);\r\n // Define thread-local variables\r\n threadScope.defineProperty(\"request\", request, PROTECTED);\r\n threadScope.defineProperty(\"response\", response, PROTECTED);\r\n \r\n // Evaluate the script in this scope\r\n s.evaluate(cx, threadScope);\r\n } catch (Throwable ex) {\r\n handleError(response,ex);\r\n } finally {\r\n Context.exit();\r\n }\r\n }", "@Override public void run() // the run() method is the start method for every thread\n {\n // operations that do not use shared memory go outside the synchronized block\n // do not assume that all methods like System.out.println() are thread safe\n \n synchronized (sync) // this synchronized block will prevent multiple threads from altering the shared memory\n {\n System.out.println(\"I am thread \" + threadIndex); // we cannot reference local variables like i\n // so we are using final variable threadIndex\n \n System.out.println(\"The count is now \" + ++sync.counter); // sync.counter is shared memory\n // thus we cannot have multiple threads\n // try to increment at the same time\n \n if (sync.counter == sync.numThreads)\n {\n System.out.println(\"All threads will be notified\");\n \n sync.notifyAll(); // this method unblocks all threads that have called sync.wait()\n }\n else\n {\n System.out.println(\"Thread \" + threadIndex + \" will wait until notified\");\n \n // the .wait() method halts the current thread until it is notified from the same object sync\n try { sync.wait(); } catch (Exception e) { System.out.println(\"catched exception\"); }\n \n System.out.println(\"Thread \" + threadIndex + \" has been notified\");\n }\n }\n }", "private static boolean parallelTest() {\r\n\t\t// create a thread for each URL\r\n\t\tint threadPoolSize = urlList.size();\r\n\t\tlogger.finest(\"thread pool size = \" + threadPoolSize);\r\n\r\n\t\t//\r\n\t\t// open a background TCP connection\r\n\t\t// send parallel HTTP requests\r\n\t\t//\r\n\t\ttry (Socket backgroundSocket = new Socket(serverName, serverPort)) {\r\n\t\t\t// open IO sterams for background connection\r\n\t\t\tbackgroundSocket.getOutputStream();\r\n\t\t\tbackgroundSocket.getInputStream();\r\n\t\t\tlogger.info(\"background TCP connection opened\");\r\n\t\t\t\r\n\t\t\t// use ExecutorService to manage threads\r\n\t\t\tExecutorService executor = Executors.newFixedThreadPool(threadPoolSize);\r\n\t\t\t\r\n\t\t\t// send all rquests in parallel\r\n\t\t\tlogger.fine(\"sending parallel requests\");\r\n\t\t\tfor (URL url : urlList) { \r\n\t\t\t\tHttpClient client = new HttpClient(url);\r\n\t\t\t\texecutor.execute(client);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// wait for test to finish\r\n\t\t\tlogger.fine(\"waiting for requests to complete...\");\r\n\t\t\texecutor.shutdown(); \r\n\t\t\twhile (!executor.isTerminated())\r\n\t\t\t\tThread.yield(); // return the control to system\r\n\t\t\tlogger.fine(\"all requests completed\");\r\n\t\t} catch (IOException e) {\r\n\t\t\tlogger.info(\"failed to open background TCP connection: \" + e.getMessage());\r\n\t\t}\r\n\t\t\r\n\t\treturn true;\r\n\t}", "public void run() {\n System.err.println(\"Handling connection...\");\n try {\n InputStream is = socket.getInputStream();\n OutputStream os = socket.getOutputStream();\n readHTTPRequest(is);\n writeHTTPHeader(os,\"text/html\");\n writeContent(os);\n os.flush();\n socket.close();\n } catch (Exception e) {\n System.err.println(\"Output error: \"+e);\n }\n System.err.println(\"Done handling connection.\");\n return;\n}", "@Test\n public void clientRequest() {\n List<Thread> threadList = new LinkedList<>(); \n\tfor (int i = 0; i < clientNumber; i ++){\n\t SimpleClient clientx = new SimpleClient(i+1);\n\t threadList.add(clientx);\n\t clientx.start();\n\t}\n\tfor (Thread thread : threadList){\n\t try {\n\t\tthread.join();\n\t } catch (InterruptedException ex) {\n\t\tLogger.getLogger(ServiceProfileClientTest.class.getName()).log(Level.SEVERE, null, ex);\n\t }\n\t}\n\t\n\n\t\n\t\n\tSystem.out.println(\"SetReq = \" + setReq);\n\tSystem.out.println(\"TotalTimeSet = \" + totalSetTime);\n\tSystem.out.println(\"LastProcTime = \" + lastSetTime);\n\tSystem.out.println(\"AverageProcRate = \" + setReq.get()*1000000/(totalSetTime.get()));\n\t\n\tSystem.out.println(\"GetReq = \" + getReq);\n\tSystem.out.println(\"TotalTimeGet = \" + totalGetTime);\n\tSystem.out.println(\"LastProcTime = \" + lastGetTime);\n\tSystem.out.println(\"AverageProcRate = \" + getReq.get()*1000000/(totalGetTime.get()));\n\t\n\tSystem.out.println(\"RemvReq = \" + removeReq);\n\tSystem.out.println(\"TotalTimeRemove = \" + totalRemoveTime);\n\tSystem.out.println(\"LastProcTime = \" + lastRemoveTime);\n\tSystem.out.println(\"AverageTimeProcRate = \" + removeReq.get()*1000000/(totalRemoveTime.get()));\n }", "public void serve() throws IOException {\n int req = 0;\n while (req<maxreq) {\n //block intil a client connects\n final Socket socket = serversocket.accept();\n //create a new thread to handle the client\n\n Thread handler = new Thread(new Runnable() {\n public void run() {\n try {\n try {\n handle(socket);\n } finally {\n socket.close();\n }\n } catch (IOException ioe) {\n // this exception wouldn't terminate serve(),\n // since we're now on a different thread, but\n // we still need to handle it\n ioe.printStackTrace();\n }\n }\n });\n // start the thread\n handler.start();\n req++;\n }\n\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }", "public void run() {\n // variables to store key HTTP(S) request information\n String sReadLine;\n boolean bNewHTTPHeader = true;\n String sHTTPMethod = \"\";\n String sHTTPRequest = \"\";\n boolean bPersistentConnection = true;\n\n // print the client IP:port\n System.out.println(\"client \" + connectedClient.getInetAddress() + \":\"\n + connectedClient.getPort() + \" is connected\");\n System.out.println();\n\n // create BufferedReader to read in from socket & DataOutputStream to send out to socket\n try {\n inFromClient = new BufferedReader(new InputStreamReader(connectedClient.getInputStream()));\n outToClient = new DataOutputStream(connectedClient.getOutputStream());\n\n } catch (IOException e) {\n System.out.println(\"There was an error setting up the buffered reader, \" +\n \"data stream, or reading from the client:\");\n System.out.println(\" \" + e);\n }\n\n // process the HTTP(S) request\n try {\n // break apart the input to read the http method and request\n while ((sReadLine = inFromClient.readLine()) != null) {\n // create a tokenizer to parse the string\n StringTokenizer tokenizer = new StringTokenizer(sReadLine);\n\n // if new HTTP header, then pull out the Method and Request (first line)\n if (bNewHTTPHeader) {\n sHTTPMethod = tokenizer.nextToken().toUpperCase(); // HTTP method: GET, HEAD\n sHTTPRequest = tokenizer.nextToken().toLowerCase(); // HTTP query: file path\n bNewHTTPHeader = false; // next lines are not part of a new HTTP header\n\n // print to console\n System.out.println(\"New HTTP Header:\");\n System.out.println(\" HTTP Method: \" + sHTTPMethod);\n System.out.println(\" HTTP Request: \" + sHTTPRequest);\n\n // not a new HTTP header: check for key params Connection or empty line\n } else if (sReadLine.length() > 0) {\n // get the next token in the input line\n String sParam = tokenizer.nextToken();\n\n // check to update connection status\n if (sParam.equalsIgnoreCase(\"Connection:\")) {\n String sConnectionRequest = tokenizer.nextToken();\n bPersistentConnection = (sConnectionRequest.equalsIgnoreCase(\"keep-alive\"));\n // print param to console\n System.out.println(\" param: \" + sParam + \" \" + sConnectionRequest);\n } else {\n // otherwise just print param to console\n System.out.println(\" param: \" + sParam);\n }\n\n // no more lines to header: header is over\n } else {\n //print to console\n System.out.println(\"End of Header\");\n System.out.println();\n\n // get the status code & response, then send back to client\n int iStatusCode = getStatusCode(sHTTPMethod, sHTTPRequest);\n String sResponse = getResponse(sHTTPMethod, sHTTPRequest, iStatusCode);\n sendResponse(sHTTPMethod, sHTTPRequest, iStatusCode, sResponse, bPersistentConnection);\n\n // next line is part of a new HTTP header\n bNewHTTPHeader = true;\n }\n }\n\n // loop has ended: client input is null (client must want to disconnect)\n this.connectedClient.close();\n System.out.println(\"input from client \" + connectedClient.getInetAddress() +\n + connectedClient.getPort() + \" is null. This socket closed.\");\n } catch (IOException e) {\n System.out.println(\"There was an error reading the HTTP request:\");\n System.out.println(\" \" + e);\n }\n }", "abstract protected void doService(HttpServletRequest request,\r\n\t\t\t\t\t\t\t\t\t HttpServletResponse response) throws ServletException, IOException,ApplicationException;", "@Override\r\n\t\t\tpublic void run() {\r\n\t\t\t\tReflections reflections = new Reflections(\"net.yourhome.server\");\r\n\t\t\t\tSet<Class<? extends IController>> controllerClasses = reflections.getSubTypesOf(IController.class);\r\n\r\n\t\t\t\tfor (final Class<? extends IController> controllerClass : controllerClasses) {\r\n\t\t\t\t\tif (!Modifier.isAbstract(controllerClass.getModifiers())) {\r\n\t\t\t\t\t\tnew Thread() {\r\n\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t\t\tMethod factoryMethod;\r\n\t\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\t\tfactoryMethod = controllerClass.getDeclaredMethod(\"getInstance\");\r\n\t\t\t\t\t\t\t\t\tIController controllerObject = (IController) factoryMethod.invoke(null, null);\r\n\t\t\t\t\t\t\t\t\tServer.this.controllers.put(controllerObject.getIdentifier(), controllerObject);\r\n\t\t\t\t\t\t\t\t\tSettingsManager.readSettings(controllerObject);\r\n\t\t\t\t\t\t\t\t\tcontrollerObject.init();\r\n\t\t\t\t\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t\t\t\t\tServer.log.error(\"Could not instantiate \" + controllerClass.getName() + \" because getInstance is missing\", e);\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}.start();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}", "public void process()\n {\n ClientRequest clientRequest = threadPool.remove();\n\n if (clientRequest == null)\n {\n return;\n }\n\n\n // Do the work\n // Create new Client\n ServiceLogger.LOGGER.info(\"Building client...\");\n Client client = ClientBuilder.newClient();\n client.register(JacksonFeature.class);\n\n // Get uri\n ServiceLogger.LOGGER.info(\"Getting URI...\");\n String URI = clientRequest.getURI();\n\n ServiceLogger.LOGGER.info(\"Getting endpoint...\");\n String endpointPath = clientRequest.getEndpoint();\n\n // Create WebTarget\n ServiceLogger.LOGGER.info(\"Building WebTarget...\");\n WebTarget webTarget = client.target(URI).path(endpointPath);\n\n // Send the request and save it to a Response\n ServiceLogger.LOGGER.info(\"Sending request...\");\n Response response = null;\n if (clientRequest.getHttpMethodType() == Constants.getRequest)\n {\n // Create InvocationBuilder\n ServiceLogger.LOGGER.info(\"Starting invocation builder...\");\n Map<String, Object> queryMap = clientRequest.getQueryParams();\n String pathParam = clientRequest.getPathParam();\n\n if (pathParam != null)\n {\n webTarget = webTarget.path(pathParam);\n }\n\n if (queryMap != null)\n {\n ServiceLogger.LOGGER.info(\"QUERY MAP NOT NULL.\");\n for (Map.Entry<String, Object> entry : queryMap.entrySet())\n {\n webTarget = webTarget.queryParam(entry.getKey(), entry.getValue());\n }\n }\n ServiceLogger.LOGGER.info(\"WEBTARGET: \" + webTarget.toString());\n\n Invocation.Builder invocationBuilder = webTarget.request(MediaType.APPLICATION_JSON);\n\n ServiceLogger.LOGGER.info(\"Got a GET request.\");\n response = invocationBuilder\n .header(\"email\", clientRequest.getEmail())\n .header(\"sessionID\", clientRequest.getSessionID())\n .header(\"transactionID\", clientRequest.getTransactionID())\n .get();\n }\n else if (clientRequest.getHttpMethodType() == Constants.postRequest)\n {\n // Create InvocationBuilder\n ServiceLogger.LOGGER.info(\"Starting invocation builder...\");\n Invocation.Builder invocationBuilder = webTarget.request(MediaType.APPLICATION_JSON);\n Map<String, Object> queryMap = clientRequest.getQueryParams();\n\n if (queryMap != null)\n {\n ServiceLogger.LOGGER.info(\"QUERY MAP NOT NULL.\");\n for (Map.Entry<String, Object> entry : queryMap.entrySet())\n {\n webTarget = webTarget.queryParam(entry.getKey(), entry.getValue());\n }\n }\n ServiceLogger.LOGGER.info(\"WEBTARGET: \" + webTarget.toString());\n\n ServiceLogger.LOGGER.info(\"Got a POST request.\");\n response = invocationBuilder\n .header(\"email\", clientRequest.getEmail())\n .header(\"sessionID\", clientRequest.getSessionID())\n .header(\"transactionID\", clientRequest.getTransactionID())\n .post(Entity.entity(clientRequest.getRequest(), MediaType.APPLICATION_JSON));\n }\n else if (clientRequest.getHttpMethodType() == Constants.deleteRequest)\n {\n String pathParam = clientRequest.getPathParam();\n if (pathParam != null)\n {\n webTarget = webTarget.path(pathParam);\n }\n Invocation.Builder invocationBuilder = webTarget.request(MediaType.APPLICATION_JSON);\n\n ServiceLogger.LOGGER.info(\"Got a DELETE request.\");\n response = invocationBuilder\n .header(\"email\", clientRequest.getEmail())\n .header(\"sessionID\", clientRequest.getSessionID())\n .header(\"transactionID\", clientRequest.getTransactionID())\n .delete();\n }\n else\n {\n ServiceLogger.LOGGER.warning(ANSI_YELLOW + \"Request was not sent successfully\");\n }\n ServiceLogger.LOGGER.info(ANSI_GREEN + \"Sent!\" + ANSI_RESET);\n\n // Check status code of request\n String jsonText = \"\";\n int httpstatus = response.getStatus();\n\n jsonText = response.readEntity(String.class);\n\n // Add response to database\n String email = clientRequest.getEmail();\n String sessionID = clientRequest.getSessionID();\n ResponseDatabase.insertResponseIntoDB(clientRequest.getTransactionID(), jsonText, email, sessionID, httpstatus);\n\n }", "@Override\n\t\tpublic void run() {\n\t\t\tURL url;\n\t\t\ttry {\n\t\t\t\tThread.sleep(3000);\n\t\t\t\turl = new URL(strUrl);\n\t\t\t\tURLConnection con = url.openConnection();\n\t\t\t\tcon.connect();\n\t\t\t\tInputStream input = con.getInputStream();\n\t\t\t\tList<Map<String,Object>> temp = json.getListItems(input);\n\t\t\t\tif(temp != null){\n\t\t\t\t\tif(merger.mergeTwoList(list, temp, direction))\n\t\t\t\t\t\tmyHandler.sendEmptyMessage(1);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tmyHandler.sendEmptyMessage(5);\n\t\t\t\t\n\t\t\t\t\n\n\t\t\t} catch (MalformedURLException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t}", "public static void main(String[] args) {\r\n Restoran resto = new Restoran();\r\n int i = 0;\r\n for ( i = 0; i < 6; i++) {\r\n new Thread(new Cliente(resto,\"Cliente \" + i), \"Cliente \" + i).start();\r\n }\r\n new Thread(new Mozo(resto)).start();\r\n new Thread(new Cocinero(resto)).start();\r\n }", "@Override\n public boolean isThreadSafe()\n {\n return false;\n }", "static void doThread() throws InterruptedException {\r\n\t\tthreadMessage(\"Starting MessageLoop thread\");\r\n\t\tlong startTime = System.currentTimeMillis();\r\n\t\t// int nthreads=2;\r\n\t\tint nthreads = numnodes;\r\n\t\tThread[] tList;\r\n\r\n\t\ttList = new Thread[nthreads];\r\n\t\tString driver = null;\r\n\t\tString host = null;\r\n\t\tString user = null;\r\n\t\tString pass = null;\r\n\r\n\t\t// for (int i = 0; i < nthreads; i++) {\r\n\t\tfor (int i = 0; (i < nthreads) && (i < nodeAL.size()); i++) {\r\n\t\t\tdriver = (nodeAL.get(i)).getDriver();\r\n\t\t\thost = (nodeAL.get(i)).getHostName();\r\n\t\t\tuser = (nodeAL.get(i)).getUserName();\r\n\t\t\tpass = (nodeAL.get(i)).getPassword();\r\n\t\t\t// tList[i]= new Thread( new MessageLoop() );\r\n\t\t\t// System.out.println(\"HN is: \" + host + i);\r\n\t\t\ttList[i] = new Thread(new MessageLoop(driver, host, user, pass));\r\n\t\t\ttList[i].start();\r\n\t\t}\r\n\r\n\t\tthreadMessage(\"Waiting for all MessageLoop threads to finish\");\r\n\r\n\t\t// for (int i = 0; i < nthreads; i++) {\r\n\t\tfor (int i = 0; (i < nthreads) && (i < nodeAL.size()); i++) {\r\n\t\t\ttList[i].join();\r\n\t\t}\r\n\r\n\t\tthreadMessage(\"Finally all done!\");\r\n\r\n\t}", "@Override\n\tpublic void run()\n\t{\n\t\tif (MyServer.flag)\n\t\t{\n\t\t\tTool.getPrintWriter()\n\t\t\t\t\t.println(\"Accept : 3D is online . \\nServer : \" + MyServer.getU3DSocket().size() + \" Connect . \");\n\t\t\twhile (true)\n\t\t\t{\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tThread.sleep(2000);\n\t\t\t\t} catch (InterruptedException e)\n\t\t\t\t{\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\n\t\t\t// return;\n\t\t} else\n\t\t{\n\t\t\tTool.getPrintWriter().println(\"Accept : Server : \" + MyServer.getSocketList().size() + \" Connect . \");\n\t\t\tTool.getPrintWriter().println(\"Accept : 用户端非3d连接.\");\n\t\t\tTool.getPrintWriter().println(\"Accept : 测试是否空 : \" + (client == null));\n\t\t\tnew Client(client);\n\t\t}\n\t}", "private void runProgram() {\n\n try {\n ServerSocket ss = new ServerSocket(8088);\n Dispatcher dispatcher = new Dispatcher(allmsg,allNamedPrintwriters,clientsToBeRemoved);\n Cleanup cleanup = new Cleanup(clientsToBeRemoved,allClients);\n cleanup.start();\n dispatcher.start();\n logger.initializeLogger();\n\n while (true) {\n Socket client = ss.accept();\n InputStreamReader ir = new InputStreamReader(client.getInputStream());\n PrintWriter printWriter = new PrintWriter(client.getOutputStream(),true);\n BufferedReader br = new BufferedReader(new InputStreamReader(client.getInputStream()));\n String input = br.readLine();\n System.out.println(input);\n String name = input.substring(8);\n logger.logEventInfo(name + \" has connected to the chatserver!\");\n allClients.put(name,client);\n allNamedPrintwriters.put(name,printWriter);\n ClientHandler cl = new ClientHandler(name,br, printWriter, allmsg);\n Thread t = new Thread(cl);\n t.start();\n allmsg.add(\"ONLINE#\");\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@Override\n public void forward(ServletRequest servletRequest, ServletResponse servletResponse) throws ServletException, IOException {\n\n HttpServletRequest request = (HttpServletRequest) servletRequest;\n HttpServletResponse response = (HttpServletResponse) servletResponse;\n\n response.resetBuffer();\n\n if (request.getDispatcherType().equals(DispatcherType.ASYNC)) {\n try (DefaultWebApplicationRequest asyncRequest = new DefaultWebApplicationRequest()) {\n asyncRequest.setWebApplication(servletEnvironment.getWebApplication());\n asyncRequest.setContextPath(request.getContextPath());\n asyncRequest.setDispatcherType(DispatcherType.ASYNC);\n asyncRequest.setAsyncSupported(servletEnvironment.asyncSupported);\n\n if (path != null) {\n setForwardAttribute(request, asyncRequest, AsyncContext.ASYNC_CONTEXT_PATH);\n setForwardAttribute(request, asyncRequest, AsyncContext.ASYNC_PATH_INFO);\n setForwardAttribute(request, asyncRequest, AsyncContext.ASYNC_QUERY_STRING);\n setForwardAttribute(request, asyncRequest, AsyncContext.ASYNC_REQUEST_URI);\n setForwardAttribute(request, asyncRequest, AsyncContext.ASYNC_SERVLET_PATH);\n\n String servletPath = !path.contains(\"?\") ? path : path.substring(0, path.indexOf(\"?\"));\n asyncRequest.setServletPath(servletPath);\n\n String queryString = !path.contains(\"?\") ? null : path.substring(path.indexOf(\"?\") + 1);\n asyncRequest.setQueryString(queryString);\n\n } else {\n asyncRequest.setServletPath(\"/\" + servletEnvironment.getServletName());\n }\n\n CurrentRequestHolder currentRequestHolder = (CurrentRequestHolder) request.getAttribute(CURRENT_REQUEST_ATTRIBUTE);\n if (currentRequestHolder != null) {\n currentRequestHolder.setRequest(asyncRequest);\n asyncRequest.setAttribute(CURRENT_REQUEST_ATTRIBUTE, currentRequestHolder);\n }\n\n try {\n servletEnvironment.getWebApplication().linkRequestAndResponse(asyncRequest, servletResponse);\n servletEnvironment.getServlet().service(asyncRequest, servletResponse);\n servletEnvironment.getWebApplication().unlinkRequestAndResponse(asyncRequest, servletResponse);\n } catch (IOException | ServletException exception) {\n throw exception;\n } finally {\n if (currentRequestHolder != null) {\n currentRequestHolder.setRequest(request);\n }\n }\n response.flushBuffer();\n }\n } else {\n try (DefaultWebApplicationRequest forwardedRequest = new DefaultWebApplicationRequest()) {\n forwardedRequest.setWebApplication(servletEnvironment.getWebApplication());\n forwardedRequest.setContextPath(request.getContextPath());\n\n if (path != null) {\n setForwardAttribute(request, forwardedRequest, RequestDispatcher.FORWARD_CONTEXT_PATH);\n setForwardAttribute(request, forwardedRequest, RequestDispatcher.FORWARD_PATH_INFO);\n setForwardAttribute(request, forwardedRequest, RequestDispatcher.FORWARD_QUERY_STRING);\n setForwardAttribute(request, forwardedRequest, RequestDispatcher.FORWARD_REQUEST_URI);\n setForwardAttribute(request, forwardedRequest, RequestDispatcher.FORWARD_SERVLET_PATH);\n\n String servletPath = !path.contains(\"?\") ? path : path.substring(0, path.indexOf(\"?\"));\n forwardedRequest.setServletPath(servletPath);\n\n String queryString = !path.contains(\"?\") ? null : path.substring(path.indexOf(\"?\") + 1);\n forwardedRequest.setQueryString(queryString);\n\n } else {\n forwardedRequest.setServletPath(\"/\" + servletEnvironment.getServletName());\n }\n\n CurrentRequestHolder currentRequestHolder = (CurrentRequestHolder) request.getAttribute(CURRENT_REQUEST_ATTRIBUTE);\n if (currentRequestHolder != null) {\n currentRequestHolder.setRequest(forwardedRequest);\n forwardedRequest.setAttribute(CURRENT_REQUEST_ATTRIBUTE, currentRequestHolder);\n }\n\n try {\n servletEnvironment.getWebApplication().linkRequestAndResponse(forwardedRequest, servletResponse);\n servletEnvironment.getServlet().service(forwardedRequest, servletResponse);\n servletEnvironment.getWebApplication().unlinkRequestAndResponse(forwardedRequest, servletResponse);\n } catch (IOException | ServletException exception) {\n throw exception;\n } finally {\n if (currentRequestHolder != null) {\n currentRequestHolder.setRequest(request);\n }\n }\n response.flushBuffer();\n }\n }\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n \r\n }", "static void synced () {\n\t\tList<Integer> linkedList = \n\t\t\t\tCollections.synchronizedList(new LinkedList<Integer>());\n\t\tfor (int i = 0; i < 100; i++) {\n\t\t\tlinkedList.add(i);\n\t\t}\n\t\t// launch a thread to add numbers 100 to 200 to the list\n\t\tnew Thread(new Runnable() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tSystem.out.println(\"starting adding numbers\");\n\t\t\t\tfor (int i = 100; i < 200; i++) {\n\t\t\t\t\tlinkedList.add(i);\n\t\t\t\t\ttry { Thread.sleep(1);} \n\t\t\t\t\tcatch (InterruptedException e) {e.printStackTrace();}\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"end\");\n\t\t\t}\n\t\t}).start();\n\n\t\t// now run an iterator to go through the linked list that is \n\t\t// synchronized with the linked list object. \n\t\tsynchronized(linkedList) {\n\t\t\tIterator<Integer> iterator = linkedList.iterator();\n\t\t\tSystem.out.println(\"starting iteration\");\n\t\t\twhile (iterator.hasNext()) {\n\t\t\t\ttry {Thread.sleep(4);} \n\t\t\t\tcatch (InterruptedException e) {e.printStackTrace();}\n\t\t\t\tSystem.out.println(iterator.next());\n\t\t\t}\t\n\t\t\tSystem.out.println(\"finished iteration\");\n\t\t}\n\t}", "@Override\n\t\tprotected Void doInBackground(Void... params)\n\t\t{\n\t\t\t//Get the current thread's token\n\t\t\tsynchronized (this)\n\t\t\t{\n\t\t\t\tMyApplication app = (MyApplication) getApplication();\n\t\t\t\twhile(app.getSyncStatus());\n\n\t\t\t}\n\t\t\treturn null;\n\t\t}", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n\n }", "@Bean\n public MultiThreadedHttpConnectionManager multiThreadedHttpConnectionManager() {\n return new MultiThreadedHttpConnectionManager();\n }", "public void requestExtraSync()\n {\n executor.requestExtraSync();\n }", "public void doRequest( HttpServletRequest rqs, HttpServletResponse rsp ) throws ServletException, IOException {\n\n StopWatch sw = new StopWatch();\n sw.reset();\n\n sw.start( rqs.getRequestURI() );\n\n Core core = (Core) getServletContext().getAttribute( \"core\" );\n\n logger.debug( \"Query : {}\", rqs.getQueryString() );\n logger.debug( \"URI : {}\", rqs.getRequestURI() );\n logger.debug( \"METHOD : {}\", rqs.getMethod() );\n logger.debug( \"CORE : {}\", core );\n\n /* Instantiating request and response */\n Request request = new Request( rqs, core.getDefaultTemplate() );\n request.setLocaleFromCookie( \"language\" );\n\n Response response = new Response( rsp );\n response.setCharacterEncoding( \"UTF-8\" );\n\n request.setStopWatch( sw );\n\n logger.debug( \"[Parameters] {}\", rqs.getParameterMap() );\n\n /* Instantiating context */\n VelocityContext vc = new VelocityContext();\n vc.put( \"title\", \"\" );\n\n request.setContext( vc );\n request.getContext().put( \"request\", request );\n request.setRequestParts( rqs.getRequestURI().split( \"/\" ) );\n logger.debug( \"------ {} -----\", Arrays.asList( request.getRequestParts() ) );\n\n vc.put( \"currentUrl\", rqs.getRequestURI() );\n\n request.setUser( core.getAnonymousUser() );\n request.setTheme( core.getDefaultTheme() );\n\n request.getStopWatch().stop( rqs.getRequestURI() );\n\n WebResponse r = null;\n if(request.getRequestParts().length > 0 && request.getRequestParts()[0].equalsIgnoreCase(\"static\")) {\n \ttry {\n\t\t\t\tr = ((Autonomous)core.getRoot().getChild(\"static\")).autonomize(request);\n\t\t\t} catch (Throwable e) {\n\t\t\t\tthrow new ServletException(e);\n\t\t\t}\n } else {\n request.getStopWatch().start( \"Authentication\" );\n\n logger.debug( \"THE USER: {}\", request.getUser() );\n\n logger.debug( \"AUTHENTICATING\" );\n try {\n\t core.getAuthentication().authenticate( request, response );\n\t\t\t\n\t\t\t logger.debug( \"THE USER: {}\", request.getUser() );\n\t\t\t request.getStopWatch().stop( \"Getting user\", true );\n\t\t\t\n\t\t\t request.getStopWatch().stop( \"Authentication\" );\n\t\t\t request.getStopWatch().start( \"Render page\" );\n\t\t\n\t\t // Render the page\n\t\t Runner runner = core.render( request );\n\t\t runner.injectContext(request);\n\t\t r = runner.run();\n\t\t request.getUser().setSeen();\n\t\t } catch( CoreException e ) {\n\t\t e.printStackTrace();\n\t\t /*\n\t\t if( response.isRenderingMain() ) {\n\t\t response.renderError( request, e );\n\t\t } else {\n\t\t response.sendError( e.getCode(), e.getMessage() );\n\t\t }\n\t\t */\n\t\t r = new ErrorResponse(e).badRequest();\n\t\t } catch( Throwable e ) {\n\t\t logger.error( \"CAUGHT ERROR\" );\n\t\t e.printStackTrace();\n\t\t generateException( request, rsp.getWriter(), e, e.getMessage() );\n\t\t }\n }\n \n r.respond(request, response);\n\n sw.stop();\n logger.info( \"Request response: {}\", response.getResponse() );\n\n // Render the bottom\n /*\n if( response.isRenderingMain() ) {\n try {\n vc.put( \"seconds\", sw.getSeconds() );\n response.getWriter().print( core.getTemplateManager().getRenderer( request ).render( \"org/seventyeight/web/bottomPage.vm\" ) );\n } catch( TemplateException e ) {\n e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.\n }\n }\n */\n\n //logger.info( sw.print( 1000 ) );\n System.out.println( sw.print( 10000 ) );\n }", "public void run() throws IOException {\n ServerSocket serv = new ServerSocket(port);\n System.out.println(\"*** Awaiting requests at: http://\" + InetAddress.getLocalHost().getHostName() + \":\" + port + \"/\");\n System.out.println(\"(Terminate server by pressing \\\"ctrl C\\\")\");\n while (true) {\n Socket sock = serv.accept();\n HtmlWriter w = new HtmlWriter(sock.getOutputStream());\n String response;\n try {\n response = processRequest(new BufferedReader(new InputStreamReader(sock.getInputStream(), \"UTF-8\")));\n } catch (HttpStatusException e) {\n w.open(e.getStatusLine(), \"SEServer error\");\n w.write(\"<p>\"); w.quote(e.getMessage()); w.write(\"</p>\");\n w.close();\n continue;\n } catch (Exception e) {\n w.open(STATUS_INTERNAL_SERVER_ERROR, \"SEServer error\");\n w.write(\"<p>\"); w.quote(e.toString()); w.write(\"</p>\");\n w.writeStackTrace(e);\n w.close();\n continue;\n }\n w.open(STATUS_OK, \"SEServer\");\n w.write(response);\n w.close();\n }\n }", "public static void update() {\n\t\tnew Thread() {\n\t\t\tpublic void run() {\n\n\t\t\t\ttry {\n\t\t\t\t\tserverSocket2 = new ServerSocket(50000);\n\t\t\t\t\twhile (yes) {\n\t\t\t\t\t\tSocket connection = serverSocket2.accept();\n\n\t\t\t\t\t\tString out = \"\";\n\t\t\t\t\t\tDataOutputStream output = new DataOutputStream(\n\t\t\t\t\t\t\t\tconnection.getOutputStream());\n\t\t\t\t\t\tfor (int j = 0; j < count; j++) {\n\t\t\t\t\t\t\tout += j + \"::\" + b[j].getText() + \" /:\"; // (index,username)\n\t\t\t\t\t\t}\n\t\t\t\t\t\toutput.writeBytes(out + \"\\n\");\n\t\t\t\t\t\tconnection.close();\n\n\t\t\t\t\t}\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}.start();\n\t}", "public synchronized void incrementClients()\r\n\t{\r\n\t\tnumberOfClients++;\r\n\t}", "@SuppressWarnings(\"resource\")\r\n public void run() {\r\n try {\r\n ServerSocket server = new ServerSocket(ConfigurationFile.getClientPort()[clientNumber-1]);\r\n while(true) {\r\n Socket socket =server.accept();\r\n Thread thread = new Thread(new Connection(socket,hashtable));\r\n thread.start();\r\n }\r\n }\r\n catch(IOException e) {\r\n System.out.println(\"Server socket could not be created. Check configuration file.\");\r\n }\r\n }", "@Override\n public void run() {\n String inMessage;\n String GET = null;\n String cookie = null;\n try {\n boolean coockieCheck = false;\n boolean validURL = false;\n boolean getRequest = false;\n this.in = new BufferedReader(new InputStreamReader(this.connectionSocket.getInputStream()));\n this.out = new PrintWriter(connectionSocket.getOutputStream());\n protocol = new netProtocol();\n //parses incomming header data, pass that to netProtocol to extract information about headers\n while (true) {\n inMessage = in.readLine();\n //System.out.println(inMessage);\n if(inMessage == null){\n break;\n }\n\n String response = protocol.parseHeaderInfo(inMessage);\n //System.out.println(\"READ...\" + inMessage + \" RESPONSE...\" + response);\n\n if(response.equals(VALID)){ //check if hostname valid\n validURL = true;\n } else if(response.equals(INVALID)){\n postErrorPage();\n break;\n }\n\n if(response.equals(\"GET\")){\n getRequest = true;\n GET = inMessage;\n }\n\n if(response.equals(\"CookieFound\")){\n cookie = inMessage;\n }\n\n if(inMessage.length() == 0){ //when all headers have been parsed, we need to come up with an appropriate response to POST back\n if(validURL && getRequest){\n processRequest(GET, cookie);\n } else{\n postErrorPage();\n }\n out.close();\n in.close();\n connectionSocket.close();\n break;\n }\n }\n\n\n } catch (IOException e) {\n e.printStackTrace();\n System.out.println(\"Client closed.\");\n }\n }", "private void run() throws InterruptedException, IOException {\n endpoint.getWcEvents().take();\n\n //process received data\n processRecv();\n\n for (int i=0; i < 1000000; i++) {\n //change data in remote memory\n writeData(i);\n\n //wait for writing remote memory to complete\n endpoint.getWcEvents().take();\n }\n System.out.println(\"ClientWrite::finished!\");\n }", "public void service(HttpServletRequest req, HttpServletResponse res)\n throws IOException\n {\n// ncat.info(\"> service()\");\n\n //DBG\n/*\n System.out.println(\"AA:\" \n \t+ weblogic.servlet.internal.ServletRequestImpl.class.getClassLoader().getClass().getName());\n System.out.println(\"AA:\" \n \t+ weblogic.servlet.internal.ServletRequestImpl.class.getClassLoader().toString());\n \t\n System.out.println(\"ClassLoader is \" \n \t+ weblogic.kernel.T3SrvrLogger.class.getClassLoader().getClass().getName());\n System.out.println(\"ClassLoader is \" \n \t+ weblogic.kernel.T3SrvrLogger.class.getClassLoader().toString());\n System.out.println(\"2: \" + Thread.currentThread().getContextClassLoader().getClass().getName());\n System.out.println(\"2: \" + Thread.currentThread().getContextClassLoader().toString());\n*/\n// weblogic.kernel.T3SrvrLogger.logWarnPossibleStuckThread(\"DBG!!\", 1234, \"DUMMY\", 3456, \"DUMMY_STRACE\");\n\n res.setContentType(\"text/html\");\n PrintWriter out = res.getWriter();\n \n \n out.println(\"<HTML><HEAD><TITLE>Hello World</TITLE></HEAD><BODY>\");\n out.println(\"<h4>Hello World!</h4>\");\n out.println(\"<p>com.sun.management.jmxremote : \" + System.getProperty(\"com.sun.management.jmxremote\") + \"</p>\");\n out.println(\"</BODY></HTML>\");\n\n// ncat.info(\"< service(10)\");\n }", "@Override\n\tpublic void run() {\n\t\tStaticSynchronized.execute();\n\t\tStaticSynchronized.execute2();\n\t\tStaticSynchronized.execute3();\n\t}", "public void run() {\n\t\twhile (true) {\n\t\t\ttry {\n\t\t\t\tSystem.out.println(\"accepting new connection\");\n\t\t\t\tSocket clientSocket = this.serverSocket.accept();\n\t\t\t\tSystem.out.println(\"this.base: \" + this.base.toString());\n\t\t\t\tConnection connection = new Connection(clientSocket,this.base, new HTTP());\n\t\t\t\tthis.fixedThreadPool.execute(connection);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\ttry {\n\t\t\tthis.serverSocket.close();\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tString data1 = new String(\"java\");\r\n\t\tArrayList<String> data2 = new ArrayList<String>();\r\n\t\tdata2.add(\"123455\");\r\n\t\tdata2.add(\"abcdef\");\r\n\t\tdata2.add(\"test\");\r\n\t\t\r\n\t\treq.setAttribute(\"v1\", data1);\r\n\t\treq.setAttribute(\"v2\", data2);\r\n\t\t\r\n\t\tServletContext context = this.getServletContext();\r\n\t\tRequestDispatcher dispatcher = context.getRequestDispatcher(\"/Servlet01_request?data3=http01&data4=http02\");\r\n\t\tdispatcher.forward(req, resp);\r\n\t\t\r\n\t\t\r\n\t}", "public void invoke(HttpRequest request, HttpResponse response) throws IOException, ServletException {\n Processor servletProcessor = new ServletProcessor();\n Processor staticProcessor = new StaticResourceProcessor();\n Processor defaultProcessor = new DefaultProcessor();\n staticProcessor.setProcessor(defaultProcessor);\n servletProcessor.setProcessor(staticProcessor);\n servletProcessor.process(request, response);\n }", "public void run() {\n // Initial connect request comes in\n Request request = getRequest();\n\n if (request == null) {\n closeConnection();\n return;\n }\n\n if (request.getConnectRequest() == null) {\n closeConnection();\n System.err.println(\"Received invalid initial request from Remote Client.\");\n return;\n }\n\n ObjectFactory objectFactory = new ObjectFactory();\n Response responseWrapper = objectFactory.createResponse();\n responseWrapper.setId(request.getId());\n responseWrapper.setSuccess(true);\n responseWrapper.setConnectResponse(objectFactory.createConnectResponse());\n responseWrapper.getConnectResponse().setId(id);\n\n // Return connect response with our (statistically) unique ID.\n if (!sendMessage(responseWrapper)) {\n closeConnection();\n System.err.println(\"Unable to respond to connect Request from remote Client.\");\n return;\n }\n\n // register our thread with the server\n Server.register(id, this);\n\n // have handler manage the protocol until it decides it is done.\n while ((request = getRequest()) != null) {\n\n Response response = handler.process(this, request);\n\n if (response == null) {\n continue;\n }\n\n if (!sendMessage(response)) {\n break;\n }\n }\n\n // client is done so thread can be de-registered\n if (handler instanceof IShutdownHandler) {\n ((IShutdownHandler) handler).logout(Server.getState(id));\n }\n Server.unregister(id);\n\n // close communication to client.\n closeConnection();\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n\r\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n\r\n }", "public void run() {\n // Create a socket to wait for clients.\n try {\n //Set up all the security needed to run an SSLServerSocket for clients to connect to.\n SSLContext context = SSLContext.getInstance(\"TLS\");\n KeyManagerFactory keyManagerFactory = KeyManagerFactory.getInstance(\"SunX509\");\n KeyStore keyStore = KeyStore.getInstance(\"JKS\");\n\n keyStore.load(new FileInputStream(\"./keystore.txt\"), \"storepass\".toCharArray());\n keyManagerFactory.init(keyStore, \"keypass\".toCharArray());\n context.init(keyManagerFactory.getKeyManagers(), null, null);\n\n SSLServerSocketFactory factory = context.getServerSocketFactory();\n SSLServerSocket sslServerSocket = (SSLServerSocket) factory.createServerSocket(conf.SERVER_PORT);\n threads = new HashSet<>();\n\n while (true) {\n //Just keep running until the end of times (or until you're stopped.)\n // Wait for an incoming client-connection request (blocking).\n SSLSocket socket = (SSLSocket) sslServerSocket.accept();\n\n // When a new connection has been established, start a new thread.\n ClientThreadPC ct = new ClientThreadPC(this, socket);\n threads.add(ct);\n new Thread(ct).start();\n System.out.println(\"Num clients: \" + threads.size());\n\n // Simulate lost connections if configured.\n if (conf.doSimulateConnectionLost()) {\n DropClientThread dct = new DropClientThread(ct);\n new Thread(dct).start();\n }\n }\n } catch (IOException | KeyManagementException | KeyStoreException | UnrecoverableKeyException |\n NoSuchAlgorithmException | CertificateException e) {\n e.printStackTrace();\n }\n }", "public static void main(String[] args) throws IOException {\n ServerSocket server = new ServerSocket(8080);\n ExecutorService service = Executors.newCachedThreadPool();\n while (true) {\n Socket socket = server.accept();\n System.out.println(\"Client accept\");\n service.submit(new ClientSession(socket));\n }\n\n }" ]
[ "0.5725853", "0.5710096", "0.5699239", "0.561955", "0.55320656", "0.5518477", "0.5517142", "0.54914415", "0.5436914", "0.5378512", "0.53580576", "0.53567743", "0.535661", "0.53414106", "0.5334274", "0.53338736", "0.53265274", "0.53253114", "0.53208625", "0.5318529", "0.5315471", "0.5300691", "0.5300215", "0.52876645", "0.5276973", "0.52572197", "0.52418286", "0.52406317", "0.5223895", "0.5219725", "0.52185684", "0.5199107", "0.5195616", "0.5190474", "0.5186973", "0.5184043", "0.5176336", "0.51681924", "0.5155381", "0.5154386", "0.5152106", "0.513598", "0.5128792", "0.5126437", "0.5124865", "0.5109097", "0.5095564", "0.5094134", "0.5092046", "0.50791705", "0.50766337", "0.5071188", "0.5070146", "0.50625926", "0.5055702", "0.5053263", "0.50502414", "0.50488937", "0.5042536", "0.50355023", "0.5035114", "0.50328237", "0.5023932", "0.5014617", "0.49979347", "0.49947068", "0.49921322", "0.49919277", "0.49891979", "0.49881226", "0.4987517", "0.49845958", "0.49836475", "0.49792603", "0.49732667", "0.49704033", "0.49689698", "0.49637735", "0.4958748", "0.49561706", "0.4955446", "0.4955446", "0.495544", "0.49536595", "0.49474594", "0.4946013", "0.49367774", "0.49336356", "0.4931077", "0.49297085", "0.49230403", "0.49206382", "0.4917291", "0.49125877", "0.49112213", "0.49105212", "0.49045256", "0.4903667", "0.4903667", "0.49029994", "0.49011636" ]
0.0
-1
get username of lister
@Path("lister/{email}") @GET @Produces(MediaType.APPLICATION_XML) public Listings getEmail(@PathParam("email") String email) throws JAXBException, IOException { appR applicationR = getApp(); Listings listings = applicationR.getListings(); Listings ret = new Listings(); Boolean s = false; for (Listing listing : listings.getList()) { if (listing.getEmail().equals(email)) { ret.addListing(listing); } } return ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "java.lang.String getUsername();", "public String getName(){\n return username;\n\t}", "public String getName() {\r\n\t\treturn username;\r\n\t}", "public String getUsername() {\n return username.get();\n }", "@Override\r\n\tpublic List loginusername(String un) {\n\t\treturn homedao.loginusername(un);\r\n\t}", "public String getName() {\n\t\treturn this.username;\n\t}", "public String getName() {\n return (String) getObject(\"username\");\n }", "String getUsername();", "String getUsername();", "String getUsername();", "String getUsername();", "String getUsername();", "String getUsername();", "java.lang.String getUserName();", "java.lang.String getUserName();", "java.lang.String getUserName();", "public String getUsername()\r\n\t{\r\n\t\treturn username;\r\n\t}", "public String getUsername()\n\t{\n\t\treturn username;\n\t}", "public String get_username()\r\n\t{\r\n\t\treturn this.username;\r\n\t}", "public String getUsername() {\n \t\treturn username;\n \t}", "public String getUsername() {\n return username;\r\n }", "@Override\r\n\tpublic String getUsername() {\n\t\treturn username;\r\n\t}", "public String getUsername(){\r\n\t\treturn username;\r\n\t}", "@Override\n\tpublic String getUsername() {\n\t\treturn user.getUserName();\n\t}", "String getUserName();", "String getUserName();", "String getUserName() {\r\n\t\t\treturn username;\r\n\t\t}", "@Override\n\tpublic String getUsername() {\n\t\treturn username;\n\t}", "@Override\n\tpublic String getUsername() {\n\t\treturn username;\n\t}", "public String getUsername() {\r\n return username;\r\n }", "public String getUsername() {\r\n return username;\r\n }", "public String getUsername() {\r\n return username;\r\n }", "public String getUsername() {\r\n return username;\r\n }", "public String getUsername() {\r\n return username;\r\n }", "public String getUsername() {\r\n return username;\r\n }", "public String getUsername() {\r\n return username;\r\n }", "public String getUsername() {\r\n return username;\r\n }", "public String getUsername() {\r\n return username;\r\n }", "public String getUsername() {\r\n return username;\r\n }", "public String getUsername() {\r\n return username;\r\n }", "public Object username() {\n return this.username;\n }", "public String getUsername() {\r\n\t\treturn username;\r\n\t}", "public String getUsername() {\r\n\t\treturn username;\r\n\t}", "public String getUsername() {\r\n\t\treturn username;\r\n\t}", "public String getUsername() {\r\n\t\treturn username;\r\n\t}", "public String getUsername() {\r\n\t\treturn username;\r\n\t}", "public String getUsername() {\r\n return username;\r\n }", "public String getUsername() {\r\n return username;\r\n }", "public final String getUsername() {\n return username;\n }", "String getUserUsername();", "public static String getUserDisplayName() {\r\n return getUsername();\r\n }", "public String getUsername()\n\t{\n\t\treturn m_username;\n\t}", "public String getUsername()\r\n {\r\n return username;\r\n }", "public String getUsername() {\n return username;\n }", "public java.lang.CharSequence getUsername() {\n return username;\n }", "public String getUsername()\n {\n return username;\n }", "public String getUsername()\n {\n return username;\n }", "public String getUsername() {\n\t\treturn username;\n\t}", "public String getUsername() {\n\t\treturn username;\n\t}", "public String getUsername() {\n\t\treturn username;\n\t}", "public String getUsername() {\n\t\treturn username;\n\t}", "public String getUsername() {\n\t\treturn username;\n\t}", "public String getUsername() {\n\t\treturn username;\n\t}", "public String getUsername() {\n\t\treturn username;\n\t}", "public String getUsername() {\n\t\treturn username;\n\t}", "@Override public String getUsername()\r\n {\r\n return username;\r\n }", "public java.lang.CharSequence getUsername() {\n return username;\n }", "public String getUsername() {\n return username;\n }", "public String getUsername() {\n return username;\n }", "public String getUsername() {\n return username;\n }", "public String getUsername() {\n return username;\n }", "public String getUsername() {\n return username;\n }", "public String getUsername() {\n return username;\n }", "public String getUsername() {\n return username;\n }", "public String getUsername() {\n return username;\n }", "public String getUsername() {\n return username;\n }", "public String getUsername() {\n return username;\n }", "public String getUsername() {\n return username;\n }", "public String getUsername() {\n return username;\n }", "public String getUsername() {\n return username;\n }", "public String getUsername() {\n return username;\n }", "public String getUsername() {\n return username;\n }", "public String getUsername() {\n return username;\n }", "public String getUsername() {\n return username;\n }", "public String getUsername() {\n return username;\n }", "public String getUsername() {\n return username;\n }", "public String getUsername() {\n return username;\n }", "public String getUsername() {\n return username;\n }", "public String getUsername() {\n return username;\n }", "public String getUsername() {\n return username;\n }", "public String getUsername() {\n return username;\n }", "public String getUsername() {\n return username;\n }", "public String getUsername() {\n return username;\n }" ]
[ "0.7364826", "0.7364826", "0.7364826", "0.7364826", "0.7364826", "0.7364826", "0.7364826", "0.7364826", "0.7364826", "0.73601896", "0.7271622", "0.71925557", "0.7164674", "0.7152196", "0.7134272", "0.7116356", "0.7116356", "0.7116356", "0.7116356", "0.7116356", "0.7116356", "0.70869404", "0.70869404", "0.70869404", "0.70821583", "0.70261836", "0.7018243", "0.6991114", "0.69845533", "0.69813854", "0.69763136", "0.69635695", "0.69564104", "0.69564104", "0.6952217", "0.6951496", "0.6951496", "0.6947184", "0.6947184", "0.6947184", "0.6947184", "0.6947184", "0.6947184", "0.6947184", "0.6947184", "0.6947184", "0.6947184", "0.6947184", "0.6929486", "0.69250584", "0.69250584", "0.69250584", "0.69250584", "0.69250584", "0.6921503", "0.6921503", "0.6918435", "0.6905887", "0.69033295", "0.69027996", "0.6901699", "0.6899598", "0.6885345", "0.68836796", "0.68836796", "0.6881252", "0.6881252", "0.6881252", "0.6881252", "0.6881252", "0.6881252", "0.6881252", "0.6881252", "0.6870286", "0.6862819", "0.68608665", "0.68608665", "0.68608665", "0.68608665", "0.68608665", "0.68608665", "0.68608665", "0.68608665", "0.68608665", "0.68608665", "0.68608665", "0.68608665", "0.68608665", "0.68608665", "0.68608665", "0.68608665", "0.68608665", "0.68608665", "0.68608665", "0.68608665", "0.68608665", "0.68608665", "0.68608665", "0.68608665", "0.68608665", "0.68608665" ]
0.0
-1
method to get status
@Path("status/{avaliability}") @GET @Produces(MediaType.APPLICATION_XML) public Listings getStatus(@PathParam("avaliability") String avaliability) throws JAXBException, IOException { appR applicationR = getApp(); Listings listings = applicationR.getListings(); Listings ret = new Listings(); Boolean s = false; if (avaliability.equals("avaliable") || avaliability.equals("true")) { s = true; } for (Listing listing : listings.getList()) { if (listing.isAvailable() == s) { ret.addListing(listing); } } return ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Status getStatus();", "public int getStatus();", "public int getStatus();", "public int getStatus();", "int getStatus();", "int getStatus();", "int getStatus();", "int getStatus();", "int getStatus();", "int getStatus();", "int getStatus();", "int getStatus();", "int getStatus();", "int getStatus();", "int getStatus();", "String status();", "String status();", "java.lang.String getStatus();", "java.lang.String getStatus();", "java.lang.String getStatus();", "java.lang.String getStatus();", "String getStatus();", "String getStatus();", "String getStatus();", "String getStatus();", "String getStatus();", "public int getStatus ()\n {\n return status;\n }", "public int getStatus ()\n {\n return status;\n }", "Integer getStatus();", "public int getStatus()\n {\n return status;\n }", "public String getStatus() { return status; }", "public String getStatus () {\r\n return status;\r\n }", "public Status getStatus() {\r\n\t return status;\r\n\t }", "public int getStatus() {\n return status;\n }", "public int getStatus() {\n return status;\n }", "public int getStatus() {\n return status;\n }", "public int getStatus() {\n return status;\n }", "public int getStatus() {\n return status;\n }", "public String getStatus(){\r\n\t\treturn status;\r\n\t}", "public int status() {\n return status;\n }", "public synchronized String getStatus(){\n\t\treturn status;\n\t}", "boolean getStatus();", "boolean getStatus();", "boolean getStatus();", "public Status getStatus()\n {\n return status;\n }", "public abstract String currentStatus();", "public Status getStatus() {\r\n return status;\r\n }", "@Override\n\tpublic int getStatus();", "@Override\n\tpublic int getStatus();", "public Integer getStatus() {\r\n return status;\r\n }", "public Integer getStatus() {\r\n return status;\r\n }", "public Status getStatus()\n\t{\n\t\treturn status;\n\t}", "public Boolean getStatus() {return status;}", "public int getStatus(){\r\n\t\treturn this.status;\r\n\t}", "UserStatus getStatus();", "public java.lang.Object getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public Integer getStatus() {\n return status;\n }", "public String getStatus() {\r\n return status;\r\n }", "public String getStatus() {\r\n return status;\r\n }", "public String getStatus() {\r\n return status;\r\n }", "public String getStatus() {\r\n return status;\r\n }", "public String getStatus() {\r\n return status;\r\n }", "public String getStatus() {\r\n return status;\r\n }", "public String getStatus() {\r\n return status;\r\n }", "RequestStatus getStatus();", "public Status getStatus(){\n return status;\n }", "public Status getStatus() {\n return status;\n }", "public Status getStatus() {\n return status;\n }", "public Status getStatus() {\n return status;\n }", "public java.lang.String getStatus() {\r\n return status;\r\n }", "public long getStatus() {\r\n return status;\r\n }", "public Status getStatus()\n {\n return (this.status);\n }", "public String getStatus(){\n\t\t\n\t\treturn this.status;\n\t}", "public String getStatus()\n \t{\n \t\treturn m_strStatus;\n \t}", "public StatusCode GetStatus();", "public java.lang.String getStatus () {\r\n\t\treturn status;\r\n\t}", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }", "public int getStatus() {\n return status_;\n }" ]
[ "0.8671553", "0.8603665", "0.8603665", "0.8603665", "0.8591638", "0.8591638", "0.8591638", "0.8591638", "0.8591638", "0.8591638", "0.8591638", "0.8591638", "0.8591638", "0.8591638", "0.8591638", "0.8509997", "0.8509997", "0.844598", "0.844598", "0.844598", "0.844598", "0.841386", "0.841386", "0.841386", "0.841386", "0.841386", "0.8366409", "0.8366409", "0.83104366", "0.82910275", "0.8225007", "0.8200197", "0.8197099", "0.816604", "0.816604", "0.816604", "0.816604", "0.816604", "0.8164198", "0.81603765", "0.815502", "0.8150319", "0.8150319", "0.8150319", "0.8147954", "0.8142296", "0.8138513", "0.8113414", "0.8113414", "0.8108083", "0.8108083", "0.8101527", "0.8086653", "0.8085411", "0.8066903", "0.8063794", "0.80587", "0.80587", "0.80587", "0.80587", "0.80587", "0.80587", "0.80587", "0.80587", "0.80587", "0.80587", "0.80587", "0.80587", "0.80587", "0.80587", "0.80587", "0.80587", "0.80587", "0.80587", "0.80587", "0.80587", "0.8052906", "0.8052906", "0.80478406", "0.80478406", "0.80478406", "0.80478406", "0.80478406", "0.80402994", "0.80346185", "0.8028794", "0.8028794", "0.8028794", "0.8024044", "0.8020716", "0.8019377", "0.8012586", "0.7998058", "0.7995845", "0.79915124", "0.79908085", "0.79908085", "0.79908085", "0.79908085", "0.79908085", "0.79908085" ]
0.0
-1
metohd to get num guests
@Path("numofguests/{num}") @GET @Produces(MediaType.APPLICATION_XML) public Listings getNumOfGuests(@PathParam("num") int num) throws JAXBException, IOException { appR applicationR = getApp(); Listings listings = applicationR.getListings(); Listings ret = new Listings(); for (Listing listing : listings.getList()) { if (listing.getNumguests() == num) { ret.addListing(listing); } } return ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getNumberOfGuests();", "public int getGuestCount() { return _scroller.getGuestCount(); }", "int getGuestAcceleratorsCount();", "public int getguestID(){\n return givedata.returnGuestID();\n }", "public static void incrementGuestRoomCount() {numGuestRooms++;}", "static public int getGUEST() {\n return 2;\n }", "int getPeerCount();", "public void e_Guest(){\n\t\tList<Action> Actions=getCurrentElement().getActions();\n\t\tString ActionValue=Actions.get(0).getScript();\n\t\tNumOfGuests=TrimAction(ActionValue, \"n=\");\n\t\tGuestRow= Integer.parseInt(NumOfGuests);\n\t}", "int getVirtualUsers();", "int getUserCount();", "int getUserCount();", "int getPeersCount();", "public int getNumPeople(){\r\n int num = 0;\r\n return num;\r\n }", "public long getUserCount() throws UserManagementException;", "int getParticipantsCount();", "int getParticipantsCount();", "private int getNumberOfBoxesOfAllShips() {\r\n int count = 30;\r\n return count;\r\n }", "public int countUsers()\n {\n int nbUser = 0;\n pw.println(12);\n try\n {\n nbUser = Integer.parseInt(bis.readLine()) ;\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n return nbUser ;\n }", "int numSeatsAvailable();", "int getSnInfoCount();", "int getSnInfoCount();", "int getSnInfoCount();", "public int getWallItemsCount(String userUuid);", "int countByExample(UcOrderGuestInfoExample example);", "int getUsersCount();", "int getUsersCount();", "int getUsersCount();", "int getSessionCount();", "private int getNbAccountForHost(String host)\n {\n ProtocolProviderFactory factory =\n DictAccRegWizzActivator.getDictProtocolProviderFactory();\n\n ArrayList<AccountID> registeredAccounts \n = factory.getRegisteredAccounts();\n int total = 0;\n\n for (int i = 0; i < registeredAccounts.size(); i++)\n {\n AccountID accountID = registeredAccounts.get(i);\n\n // The host is always stored at the start\n if (accountID.getUserID().startsWith(host.toLowerCase()))\n {\n total++;\n }\n }\n return total;\n }", "public int getCount(){\r\n\t\tif(_serverinfo != null){\r\n\t\t\treturn _serverinfo.length / 6;\r\n\t\t}\r\n\t\treturn 0;\r\n\t}", "public abstract int getNumSessions();", "int getDisksCount();", "int getNumberOfRegsUser(long idUser);", "public int count () {\n return member_id_list.length;\r\n }", "public int getNumberOfPeopleInElevator(int elevator) {\r\n /*\r\n switch(elevator) {\r\n case 1: return 1;\r\n case 2: return 4;\r\n default: return 0;\r\n }\r\n */\r\n int i = 0;\r\n try {\r\n ElevatorScene.personCountMutex.acquire();\r\n i = numberOfSpacesInElevator;\r\n ElevatorScene.personCountMutex.release();\r\n } catch (InterruptedException e) {\r\n // TODO Auto-generated catch block\r\n e.printStackTrace();\r\n } \r\n return i;\r\n }", "public int pideEspectadores (){\n connect();\n int espectadors = 0;\n\n try{\n doStream.writeUTF(\"GIVESPEC\");\n doStream.writeUTF(currentUser.getUserName());\n espectadors = diStream.readInt();\n } catch (IOException e){\n e.printStackTrace();\n }\n disconnect();\n return espectadors;\n }", "private int getLinuxLoggedInUsers() throws IOException {\n String command = \"/usr/bin/users\";\n List<String> users = new ArrayList<String>();\n ProcessBuilder builder = new ProcessBuilder();\n Process proc = null;\n proc = builder.command(command).start();\n \n StreamManager sm = new StreamManager();\n \n try {\n InputStream stdin = sm.handle(proc.getInputStream());\n Reader isr = sm.handle(new InputStreamReader(stdin, \"UTF-8\"));\n BufferedReader br = (BufferedReader) sm.handle(new BufferedReader(isr));\n String line = null;\n while ((line = br.readLine()) != null) {\n users.add(line);\n }\n return users.size();\n } finally {\n // Close all the streams/readers\n sm.closeAll();\n }\n }", "public int getNumberOfAgents()\n {\n return this.numberOfAgents;\n }", "int getDeleteUserMonsterUuidsCount();", "int getCiphersCount();", "public int getUserCount() {\n\t\t\treturn 7;\n\t\t}", "int getAchieveInfoCount();", "public int numberOfHotels() {\r\n \tint anzahlHotel=hotelDAO.getHotelList().size();\r\n \treturn anzahlHotel;\r\n }", "public int getRunningDevicesCount();", "public int getGuestAddress() {\n return guestAddress;\n }", "public int getSizeVirtualMachine(){\n\t\treturn vms.size();\n\t}", "public int getUserCount() {\n return instance.getUserCount();\n }", "long getTotalAcceptCount();", "public int getNumberOfPeopleWaitingAtFloor(int floor) {\r\n return personCount.get(floor);\r\n }", "public int numPlayers(){\n return this.members.size();\n }", "long getTotalServerSocketsCount();", "int getReaultCount();", "private int getWindowsLoggedInUsers() throws IOException {\n String command = System.getenv(\"windir\") + \"\\\\system32\\\\\" + \"tasklist.exe\";\n int userCount = 0;\n ProcessBuilder builder = new ProcessBuilder();\n Process proc = null;\n proc = builder.command(command).start();\n \n StreamManager sm = new StreamManager();\n \n try {\n InputStream stdin = sm.handle(proc.getInputStream());\n Reader isr = sm.handle(new InputStreamReader(stdin));\n BufferedReader br = (BufferedReader) sm.handle(new BufferedReader(isr));\n String line = null;\n while ((line = br.readLine()) != null) {\n if (line.contains(\"explorer.exe\")) {\n userCount++;\n }\n }\n return userCount;\n } finally {\n sm.closeAll();\n }\n }", "public int getNumberOfHostOnMobile(){\n\t\t\treturn vmList.size();\n\t\t}", "int getBlockNumbersCount();", "int getPersonInfoCount();", "@Override\r\n\tpublic int memberCount() {\n\t\treturn sqlSession.selectOne(NAMESPACE + \".member_count_user\");\r\n\t}", "public int getAvailableCount();", "int getFriendCount();", "int getFriendCount();", "int getReplicaCount(Type type);", "@Override\r\n\tpublic int getGeunTaeAdminCnt(HashMap<String, String> params) {\n\t\treturn sqlsession.selectOne(\"GeuntaeMgnt.getGeunTaeAdminCnt\",params);\r\n\t}", "public int getLoggedInUsers();", "public static int getNrReservas() {\r\n\t\tint reservas = 0;\r\n\t\tString sql=\"select count(*) as reservas from reserva;\";\r\n\r\n\t\ttry {\r\n\t\t\tConnection conn=singleton.getConnector().getConnection();\r\n\t\t\tPreparedStatement stat=conn.prepareStatement(sql);\r\n\t\t\tResultSet utils=stat.executeQuery();\r\n\t\t\twhile(utils.next()) {\r\n\t\t\t\treservas = utils.getInt(\"reservas\");\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn reservas;\r\n\t}", "@Override\n public int getG2HashTableNumberOfEntries() throws G2AccessException {\n java.lang.Object retnValue = getAttributeValue (SystemAttributeSymbols.G2_HASH_TABLE_NUMBER_OF_ENTRIES_);\n return ((Integer)retnValue).intValue ();\n }", "public int numberOfAdmin(){\n return administratorMyArray.size();\n }", "private void getNodesCount(HttpServletRequest request, HttpServletResponse response) throws IOException {\n int countNodes = SimApi.getNodesCount();\n response.getWriter().write(Integer.toString(countNodes));\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 }", "public int manyConnections() {\n\t\tint ammound = 0;\n\t\tfor (int i = 0; i < this.size(); i++) {\n\t\t\tif(this.get(i).clientAlive) {\n\t\t\t\tammound++;\n\t\t\t}\n\t\t\tSystem.out.println(\"Ist Client Nr. \" + i + \" frei? \" + !this.get(i).isAlive());\n\t\t}\n\t\treturn ammound;\n\t\t\n\t}", "private int getNumPeers() {\n String[] peerIdList = skylinkConnection.getPeerIdList();\n if (peerIdList == null) {\n return 0;\n }\n // The first Peer is the local Peer.\n return peerIdList.length - 1;\n }", "public int getUsers()\n\t{\n\t\tint users=0;\n\t\tString query=\"select count(*) from login where usertype=?\";\n\t\ttry\n\t\t{\n\t\t\tConnection con=DBInfo.getConn();\t\n\t\t\tPreparedStatement ps=con.prepareStatement(query);\n\t\t\tps.setString(1, \"user\");\n\t\t\tResultSet res=ps.executeQuery();\n\t\t\twhile(res.next())\n\t\t\t{\n\t\t\t\tusers=res.getInt(1);\n\t\t\t}\n\t\t\tcon.close();\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn users;\n\t}", "protected int numPeers() {\n\t\treturn peers.size();\n\t}", "int getAuthenticationCount();", "Integer loadUserCount();", "public int getNumAlive() {\n return numAlive;\n }", "public int getNumberOfPeopleInElevator(int elevator) {\n\t\treturn elevators.get(elevator).getPeopleCount();\n\t}", "int getPartsCount();", "int getPartsCount();", "private static Guest[] makeGuests() {\n\t\treturn null;\n\t}", "int countInstances();", "public int getNickels()\n {\n\treturn nickels;\n }", "int getAoisCount();", "int getReservePokemonCount();", "public int passengers(){\n return currentCapacity(); \n }", "private void getNumPlayers() {\n\t\tSystem.out.println(\"How many people are playing? (must be between \"+MIN_PLAYERS+\" and \"+MAX_PLAYERS+\")\");\n\t\tnumPlayers = GetInput.getInstance().anInteger(MIN_PLAYERS, MAX_PLAYERS);\n\t}", "public int numberUsers() \n\t{\n\t\treturn this.userList.size();\n\t}", "public int getNumberOfUsers() {\n \t\treturn interactionHistorySizes.size();\n \t}", "int getUserQuestJobsCount();", "public static int getMembers() {\n\t\treturn members; \n\t}", "int getSystemCount();", "int getPhoneCount();", "int getPhoneCount();", "@ApiModelProperty(value = \"Guest allows to specifying the amount of memory which is visible inside the Guest OS. The Guest must lie between Requests and Limits from the resources section. Defaults to the requested memory in the resources section if not specified. + optional\")\n public String getGuest() {\n return guest;\n }", "public int getParticipantsCount()\n {\n return participants.size();\n }", "public int getNumVMs() {\n return numVMs;\n }", "public int getNumIdle();", "int getPeerURLsCount();", "int getBlockNumsCount();", "int getBlockNumsCount();", "private int getNumberOfAccounts()\n {\n ProtocolProviderFactory factory =\n DictAccRegWizzActivator.getDictProtocolProviderFactory();\n\n return factory.getRegisteredAccounts().size();\n }" ]
[ "0.83721435", "0.73764646", "0.6857542", "0.64410573", "0.6419513", "0.633889", "0.63238937", "0.6256596", "0.6100547", "0.6080544", "0.6080544", "0.6078125", "0.59695977", "0.58888435", "0.584658", "0.584658", "0.5845553", "0.58425176", "0.578231", "0.5759987", "0.5759987", "0.5759987", "0.57477295", "0.57469463", "0.57429886", "0.57429886", "0.57429886", "0.57248384", "0.572445", "0.5723398", "0.57105035", "0.57023144", "0.5679617", "0.56765574", "0.5651225", "0.56439734", "0.56190336", "0.5616239", "0.56136566", "0.56124365", "0.5579397", "0.5577953", "0.55751765", "0.5572913", "0.5564858", "0.5561622", "0.5554037", "0.5550066", "0.5547282", "0.5529761", "0.5528119", "0.5510626", "0.55082935", "0.5499394", "0.54952824", "0.54902816", "0.5477357", "0.54513955", "0.5450578", "0.5450578", "0.54486114", "0.5444907", "0.54392236", "0.54283094", "0.54279804", "0.5427935", "0.5418224", "0.5410641", "0.53955793", "0.53948784", "0.5390945", "0.5390111", "0.5385643", "0.5384455", "0.5380948", "0.53798586", "0.5374776", "0.5374776", "0.5370785", "0.5367774", "0.5359834", "0.53578967", "0.5347595", "0.53449225", "0.5342111", "0.5335369", "0.53334135", "0.53290033", "0.5327327", "0.53261137", "0.53213227", "0.53213227", "0.5316372", "0.5316212", "0.5313265", "0.5301486", "0.52982664", "0.52909416", "0.52909416", "0.5287569" ]
0.5969642
12
TODO Autogenerated method stub
@Override public void onReceive(Context arg0, Intent arg1) { }
{ "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
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.firstpage, menu); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.actions, menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tgetMenuInflater().inflate(R.menu.actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.actions_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main_actions, menu);\n\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n\t\tinflater.inflate(R.menu.action_bar_menu, menu);\r\n\t\tmMenu = menu;\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.act_bar_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_actions, menu);\r\n\t\treturn true;\r\n //return super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\r\n\t inflater.inflate(R.menu.action_bar_all, menu);\r\n\t return super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\t super.onCreateOptionsMenu(menu);\n\t\tMenuInflater muu= getMenuInflater();\n\t\tmuu.inflate(R.menu.cool_menu, menu);\n\t\treturn true;\n\t\t\n\t\t\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.adventure_archive, menu);\r\n\t\treturn true;\r\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.archive_menu, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n \tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n \t\tinflater.inflate(R.menu.main, menu);\n \t\tsuper.onCreateOptionsMenu(menu, inflater);\n \t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.action_menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater bow=getMenuInflater();\n\t\tbow.inflate(R.menu.menu, menu);\n\t\treturn true;\n\t\t}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.action_menu, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\t\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\t\t\n\t\t/* Inflate the menu; this adds items to the action bar if it is present */\n\t\tgetMenuInflater().inflate(R.menu.act_main, menu);\t\t\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflate = getMenuInflater();\n inflate.inflate(R.menu.menu, ApplicationData.amvMenu.getMenu());\n return true;\n }", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.menu, menu);\n\t\t\treturn true; \n\t\t\t\t\t\n\t\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.main, menu);\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) \n {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_bar, menu);\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_item, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.menu, menu);\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t \n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\t//menu.clear();\n\t\tinflater.inflate(R.menu.soon_to_be, menu);\n\t\t//getActivity().getActionBar().show();\n\t\t//getActivity().getActionBar().setBackgroundDrawable(\n\t\t\t\t//new ColorDrawable(Color.rgb(223, 160, 23)));\n\t\t//return true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n this.getMenuInflater().inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.main, menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu( Menu menu, MenuInflater inflater )\n\t{\n\t\tsuper.onCreateOptionsMenu( menu, inflater );\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\r\n \t// We must call through to the base implementation.\r\n \tsuper.onCreateOptionsMenu(menu);\r\n \t\r\n MenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_menu, menu);\r\n\r\n return true;\r\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.inter_main, menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.action, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu (Menu menu){\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.custom_action_bar, menu);\n\t\treturn true;\n\t}", "public void initMenubar() {\n\t\tremoveAll();\n\n\t\t// \"File\"\n\t\tfileMenu = new FileMenuD(app);\n\t\tadd(fileMenu);\n\n\t\t// \"Edit\"\n\t\teditMenu = new EditMenuD(app);\n\t\tadd(editMenu);\n\n\t\t// \"View\"\n\t\t// #3711 viewMenu = app.isApplet()? new ViewMenu(app, layout) : new\n\t\t// ViewMenuApplicationD(app, layout);\n\t\tviewMenu = new ViewMenuApplicationD(app, layout);\n\t\tadd(viewMenu);\n\n\t\t// \"Perspectives\"\n\t\t// if(!app.isApplet()) {\n\t\t// perspectivesMenu = new PerspectivesMenu(app, layout);\n\t\t// add(perspectivesMenu);\n\t\t// }\n\n\t\t// \"Options\"\n\t\toptionsMenu = new OptionsMenuD(app);\n\t\tadd(optionsMenu);\n\n\t\t// \"Tools\"\n\t\ttoolsMenu = new ToolsMenuD(app);\n\t\tadd(toolsMenu);\n\n\t\t// \"Window\"\n\t\twindowMenu = new WindowMenuD(app);\n\n\t\tadd(windowMenu);\n\n\t\t// \"Help\"\n\t\thelpMenu = new HelpMenuD(app);\n\t\tadd(helpMenu);\n\n\t\t// support for right-to-left languages\n\t\tapp.setComponentOrientation(this);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp=getMenuInflater();\n\t\tblowUp.inflate(R.menu.welcome_menu, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.listing, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.item, menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.resource, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu,menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.home_action_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.template, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n Log.d(\"onCreateOptionsMenu\", \"create menu\");\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.socket_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_menu, menu);//Menu Resource, Menu\n\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actionbar, menu);\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(toolbar_res, menu);\n updateMenuItemsVisibility(menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t// \n\t\tMenuInflater mi = getMenuInflater();\n\t\tmi.inflate(R.menu.thumb_actv_menu, menu);\n\t\t\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.swag_list_activity_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\n\t\treturn true;\n\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.jarvi, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "public void onCreateOptionsMenu(Menu menu, MenuInflater inflater){\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater menuInflater) {\n menuInflater.inflate(R.menu.main, menu);\n\n }", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.add__listing, menu);\r\n\t\treturn true;\r\n\t}", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actmain, menu);\r\n return true;\r\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.buat_menu, menu);\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.layout.menu, menu);\n\t\treturn true;\n\t}", "@Override\npublic boolean onCreateOptionsMenu(Menu menu) {\n\n\t\n\t\n\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\n\treturn super.onCreateOptionsMenu(menu);\n}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ichat, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater)\n\t{\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\tinflater.inflate(R.menu.expenses_menu, menu);\n\t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.action_bar, menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp = getMenuInflater();\n\t\tblowUp.inflate(R.menu.status, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.menu, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ui_main, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_activity_actions, menu);\n return true;\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }" ]
[ "0.7246102", "0.7201358", "0.7194834", "0.7176498", "0.71066517", "0.7039537", "0.7037961", "0.70112145", "0.70094734", "0.69807225", "0.6944953", "0.69389373", "0.6933199", "0.6916928", "0.6916928", "0.6891486", "0.68831646", "0.68754137", "0.68745375", "0.68621665", "0.68621665", "0.68621665", "0.68621665", "0.68515885", "0.68467957", "0.68194443", "0.6817494", "0.6813087", "0.6813087", "0.6812847", "0.6805774", "0.6801204", "0.6797914", "0.6791314", "0.6789091", "0.67883503", "0.6783642", "0.6759701", "0.6757412", "0.67478645", "0.6744127", "0.6744127", "0.67411774", "0.6740183", "0.6726017", "0.6723245", "0.67226785", "0.67226785", "0.67208904", "0.67113477", "0.67079866", "0.6704564", "0.6699229", "0.66989094", "0.6696622", "0.66952467", "0.66865396", "0.6683476", "0.6683476", "0.6682188", "0.6681209", "0.6678941", "0.66772443", "0.6667702", "0.66673946", "0.666246", "0.6657578", "0.6657578", "0.6657578", "0.6656586", "0.66544783", "0.66544783", "0.66544783", "0.66524047", "0.6651954", "0.6650132", "0.66487855", "0.6647077", "0.66467404", "0.6646615", "0.66464466", "0.66449624", "0.6644209", "0.6643461", "0.6643005", "0.66421187", "0.6638628", "0.6634786", "0.6633529", "0.6632049", "0.6632049", "0.6632049", "0.66315657", "0.6628954", "0.66281766", "0.6627182", "0.6626297", "0.6624309", "0.6619582", "0.6618876", "0.6618876" ]
0.0
-1
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml.
@Override public boolean onOptionsItemSelected(MenuItem item) { int id = item.getItemId(); //noinspection SimplifiableIfStatement if (id == R.id.action_settings) { return true; } return super.onOptionsItemSelected(item); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onOptionsItemSelected(MenuItem item) { Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n\n //\n // HANDLE BACK BUTTON\n //\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // Back button clicked\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // app icon in action bar clicked; goto parent activity.\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n switch (id) {\r\n case android.R.id.home:\r\n // app icon in action bar clicked; go home\r\n this.finish();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // app icon in action bar clicked; go home\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n Log.e(\"clik\", \"action bar clicked\");\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n\t public boolean onOptionsItemSelected(MenuItem item) {\n\t int id = item.getItemId();\n\t \n\t\t\tif (id == android.R.id.home) {\n\t\t\t\t// Respond to the action bar's Up/Home button\n\t\t\t\t// NavUtils.navigateUpFromSameTask(this);\n\t\t\t\tonBackPressed();\n\t\t\t\treturn true;\n\t\t\t}\n\t \n\t \n\t return super.onOptionsItemSelected(item);\n\t }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n switch (item.getItemId()) {\r\n // Respond to the action bar's Up/Home button\r\n case android.R.id.home:\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n\n switch (item.getItemId()) {\n case android.R.id.home:\n\n // app icon in action bar clicked; goto parent activity.\n this.finish();\n return true;\n default:\n\n return super.onOptionsItemSelected(item);\n\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n\n switch (item.getItemId()) {\n case android.R.id.home:\n\n // app icon in action bar clicked; goto parent activity.\n this.finish();\n return true;\n default:\n\n return super.onOptionsItemSelected(item);\n\n }\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tonBackPressed();\n\t\t\treturn true;\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Handle presses on the action bar items\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n case R.id.action_clear:\n return true;\n case R.id.action_done:\n\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n onActionHomePressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n switch (item.getItemId())\n {\n case android.R.id.home :\n super.onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId ()) {\n case android.R.id.home:\n onBackPressed ();\n return true;\n\n default:\n break;\n }\n return super.onOptionsItemSelected ( item );\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t switch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\t// app icon in action bar clicked; go home \n\t\t\tIntent intent = new Intent(this, Kelutral.class); \n\t\t\tintent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); \n\t\t\tstartActivity(intent); \n\t\t\treturn true;\t\t\n\t case R.id.Search:\n\t \treturn onSearchRequested();\n\t\tcase R.id.AppInfo:\n\t\t\t// Place holder menu item\n\t\t\tIntent newIntent = new Intent(Intent.ACTION_VIEW,\n\t\t\t\t\tUri.parse(\"http://forum.learnnavi.org/mobile-apps/\"));\n\t\t\tstartActivity(newIntent);\n\t\t\treturn true;\n\t\tcase R.id.Preferences:\n\t\t\tnewIntent = new Intent(getBaseContext(), Preferences.class);\n\t\t\tstartActivity(newIntent);\n\t\t\treturn true;\t\n\t }\n\t return false;\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n\n case android.R.id.home:\n onBackPressed();\n return true;\n\n }\n return super.onOptionsItemSelected(item);\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // Intent homeIntent = new Intent(this, MainActivity.class);\n // homeIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n // startActivity(homeIntent);\n finish();\n return true;\n default:\n return (super.onOptionsItemSelected(item));\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // setResult and close the activity when Action Bar Up Button clicked.\n if (item.getItemId() == android.R.id.home) {\n setResult(RESULT_CANCELED);\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // This ID represents the Home or Up button. In the case of this\n // activity, the Up button is shown. Use NavUtils to allow users\n // to navigate up one level in the application structure. For\n // more details, see the Navigation pattern on Android Design:\n //\n // http://developer.android.com/design/patterns/navigation.html#up-vs-back\n //\n \tgetActionBar().setDisplayHomeAsUpEnabled(false);\n \tgetFragmentManager().popBackStack();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n switch (item.getItemId()) {\n case android.R.id.home:\n super.onBackPressed();\n return true;\n\n default:\n // If we got here, the user's action was not recognized.\n // Invoke the superclass to handle it.\n return super.onOptionsItemSelected(item);\n\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if(id == android.R.id.home){\n onBackPressed();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@RequiresApi(api = Build.VERSION_CODES.M)\n @Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tif(item.getItemId()==android.R.id.home)\r\n\t\t{\r\n\t\t\tgetActivity().onBackPressed();\r\n\t\t}\r\n\t\treturn super.onOptionsItemSelected(item);\r\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if(item.getItemId()==android.R.id.home){\n super.onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n return false;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n //Back arrow\n case android.R.id.home:\n onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // android.R.id.home是Android内置home按钮的id\n finish();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n super.onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n this.onBackPressed();\n return false;\n }\n return false;\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n int id = item.getItemId();\n\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n switch (item.getItemId()) {\r\n\r\n case android.R.id.home:\r\n /*Intent i= new Intent(getApplication(), MainActivity.class);\r\n i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP);\r\n startActivity(i);*/\r\n onBackPressed();\r\n finish();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id){\n case android.R.id.home:\n this.finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Pass the event to ActionBarDrawerToggle, if it returns\n // true, then it has handled the app icon touch event\n if (mDrawerToggle.onOptionsItemSelected(item)) {\n return true;\n }\n\n // Handle your other action bar items...\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n NavUtils.navigateUpFromSameTask(getActivity());\n return true;\n case R.id.action_settings:\n Intent i = new Intent(getActivity(), SettingsActivity.class);\n startActivity(i);\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n //Fixes the Up Button\n if(id == android.R.id.home) {\n BuildRoute.this.finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()){\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return true;\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n\n if (id == android.R.id.home) {\n NavUtils.navigateUpFromSameTask(this);\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\r\n case android.R.id.home:\r\n onBackPressed();\r\n break;\r\n }\r\n return true;\r\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tif (item.getItemId() == android.R.id.home) {\n\t\t\tfinish();\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n onBackPressed();\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n if ( id == android.R.id.home ) {\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.home) {\r\n NavUtils.navigateUpFromSameTask(this);\r\n return true;\r\n }\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.action_about) {\r\n AboutDialog();\r\n return true;\r\n }\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.action_exit) {\r\n finish();\r\n return true;\r\n }\r\n\r\n\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n//noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n// finish the activity\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item)\n {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if( id == android.R.id.home ) // Back button of the actionbar\n {\n finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n\t\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\t\tswitch (item.getItemId()) {\r\n\t\t\tcase android.R.id.home:\r\n\t\t\t\tfinish();\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\treturn super.onOptionsItemSelected(item);\r\n\t\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n\n this.finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n onBackPressed();\n return true;\n }\n return false;\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n\n if(id == android.R.id.home){\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n if (item.getItemId() == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\r\n\t\tcase android.R.id.home:\r\n\t\t\tsetResult(RESULT_OK, getIntent());\r\n\t\t\tfinish();\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n finish();\n return true;\n default:\n // If we got here, the user's action was not recognized.\n // Invoke the superclass to handle it.\n return super.onOptionsItemSelected(item);\n\n }\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\tbreak;\n\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n\n case android.R.id.home:\n this.finish();\n return true;\n }\n return true;\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tint id = item.getItemId();\n\t\tif (id == android.R.id.home) {\n\t\t\tfinish();\n\t\t\treturn true;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n if (id == android.R.id.home) {\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n //NavUtils.navigateUpFromSameTask(this);\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // todo: goto back activity from here\n finish();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n // Handle item selection\r\n switch (item.getItemId()) {\r\n case android.R.id.home:\r\n onBackPressed();\r\n return true;\r\n\r\n case me.cchiang.lookforthings.R.id.action_sample:\r\n// Snackbar.make(parent_view, item.getTitle() + \" Clicked \", Snackbar.LENGTH_SHORT).show();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n\n\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tonBackPressed();\n\t\t\treturn true;\n\t\tcase R.id.scan_menu:\n\t\t\tonScan();\n\t\t\tbreak;\n\t\tcase R.id.opt_about:\n\t\t\t//onAbout();\n\t\t\tbreak;\n\t\tcase R.id.opt_exit:\n\t\t\tfinish();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t\treturn true;\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n super.onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n this.finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(@NonNull MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n\n case android.R.id.home:\n finish();\n return true;\n\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if(id==android.R.id.home){\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\r\n\t switch (item.getItemId()) {\r\n\t \t// back to previous page\r\n\t case android.R.id.home:\r\n\t finish();\r\n\t return true;\r\n\t }\r\n\t return super.onOptionsItemSelected(item);\r\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == android.R.id.home) {\r\n // finish the activity\r\n onBackPressed();\r\n return true;\r\n }\r\n\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == android.R.id.home) {\r\n // finish the activity\r\n onBackPressed();\r\n return true;\r\n }\r\n\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId())\n {\n case android.R.id.home:\n this.finish();\n return (true);\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id){\n case R.id.home:{\n NavUtils.navigateUpFromSameTask(this);\n return true;\n }\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n switch(item.getItemId())\n {\n case android.R.id.home:\n super.onBackPressed();\n break;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\treturn true;\n\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t}", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n\r\n int id = item.getItemId();\r\n if(id==android.R.id.home){\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }" ]
[ "0.79041183", "0.7805934", "0.77659106", "0.7727251", "0.7631684", "0.7621701", "0.75839096", "0.75300384", "0.74873656", "0.7458051", "0.7458051", "0.7438486", "0.742157", "0.7403794", "0.7391802", "0.73870087", "0.7379108", "0.7370295", "0.7362194", "0.7355759", "0.73454577", "0.734109", "0.73295504", "0.7327726", "0.73259085", "0.73188347", "0.731648", "0.73134047", "0.7303978", "0.7303978", "0.7301588", "0.7298084", "0.72932935", "0.7286338", "0.7283324", "0.72808945", "0.72785115", "0.72597474", "0.72597474", "0.72597474", "0.725962", "0.7259136", "0.7249966", "0.7224023", "0.721937", "0.7216621", "0.72045326", "0.7200649", "0.71991026", "0.71923256", "0.71851367", "0.7176769", "0.7168457", "0.71675026", "0.7153402", "0.71533287", "0.71352696", "0.71350807", "0.71350807", "0.7129153", "0.7128639", "0.7124181", "0.7123387", "0.7122983", "0.71220255", "0.711715", "0.711715", "0.711715", "0.711715", "0.7117043", "0.71169263", "0.7116624", "0.71149373", "0.71123946", "0.7109806", "0.7108778", "0.710536", "0.7098968", "0.70981944", "0.7095771", "0.7093572", "0.7093572", "0.70862055", "0.7082207", "0.70808214", "0.7080366", "0.7073644", "0.7068183", "0.706161", "0.7060019", "0.70598614", "0.7051272", "0.70374316", "0.70374316", "0.7035865", "0.70352185", "0.70352185", "0.7031749", "0.703084", "0.7029517", "0.7018633" ]
0.0
-1
Handle navigation view item clicks here.
@SuppressWarnings("StatementWithEmptyBody") @Override public boolean onNavigationItemSelected(MenuItem item) { int id = item.getItemId(); if (id == R.id.nav_timetable) { startActivity(new Intent(getApplicationContext(),timetable.class)); } else if (id == R.id.nav_contact) { startActivity(new Intent(getApplicationContext(),contacts.class)); } else if (id == R.id.nav_majorevents) { startActivity(new Intent(getApplicationContext(),eventspage.class)); } else if (id == R.id.nav_about) { startActivity(new Intent(getApplicationContext(),aboutdevelopers.class)); } else if (id == R.id.nav_form) { startActivity(new Intent(getApplicationContext(),ImportantForms.class)); } DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout); drawer.closeDrawer(GravityCompat.START); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void onNavigationItemClicked(Element element);", "@Override\n public void onClick(View view) { listener.onItemClick(view, getPosition()); }", "void onDialogNavigationItemClicked(Element element);", "@Override\n public void onClick(View view) {\n itemInterface.OnItemClickedListener(tracks, getAdapterPosition());\n }", "@Override\n public void onClickItem(MeowBottomNavigation.Model item) {\n }", "@Override\n public void onClickItem(MeowBottomNavigation.Model item) {\n }", "@Override\n public void onClick(View view) {\n listener.menuButtonClicked(view.getId());\n }", "@Override\r\n\tpublic boolean onNavigationItemSelected(int itemPosition, long itemId) {\n\t\tLog.d(\"SomeTag\", \"Get click event at position: \" + itemPosition);\r\n\t\tswitch (itemPosition) {\r\n\t\tcase 1:\r\n\t\t\tIntent i = new Intent();\r\n\t\t\ti.setClass(getApplicationContext(), MainActivity.class);\r\n\t\t\tstartActivity(i);\r\n\t\t\t//return true;\r\n\t\t\tbreak;\r\n\t\tcase 2 :\r\n\t\t\tIntent intent = new Intent(this,WhiteListActivity.class);\r\n\t\t\tstartActivity(intent);\r\n\t\t\t//return true;\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\t\r\n\t\treturn true;\r\n\t}", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n String name = navDrawerItems.get(position).getListItemName();\n // call a helper method to perform a corresponding action\n performActionOnNavDrawerItem(name);\n }", "@Override\n\tpublic void rightNavClick() {\n\t\t\n\t}", "@Override\n public void OnItemClick(int position) {\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tif (itemClicked != null)\n\t\t\t\t\titemClicked.OnItemClicked((BusinessType)item.getTag(), item);\n\t\t\t}", "@Override\n public void onClick(View view) {\n clickListener.onItemClicked(getBindingAdapterPosition());\n }", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View view,\n\t\t\t\t\tint position, long id) {\n\t\t\t\thandleClick(position);\n\t\t\t}", "@Override\n public void onItemClicked(int itemPosition, Object dataObject) {\n }", "@Override\n public void onItemClick(int pos) {\n }", "@Override\n public void onClick(View v) {\n if (listener != null)\n listener.onItemClick(itemView, getPosition());\n }", "private void handleNavClick(View view) {\n final String label = ((TextView) view).getText().toString();\n if (\"Logout\".equals(label)) {\n logout();\n }\n if (\"Profile\".equals(label)) {\n final Intent intent = new Intent(this, ViewProfileActivity.class);\n startActivity(intent);\n }\n if (\"Search\".equals(label)){\n final Intent intent = new Intent(this, SearchActivity.class);\n startActivity(intent);\n }\n if (\"Home\".equals(label)) {\n final Intent intent = new Intent(this, HomeActivity.class);\n startActivity(intent);\n }\n }", "void onMenuItemClicked();", "@Override\n public void onClick(View view) {\n\n switch (view.getId()) {\n case R.id.tvSomeText:\n listener.sendDataToActivity(\"MainActivity: TextView clicked\");\n break;\n\n case -1:\n listener.sendDataToActivity(\"MainActivity: ItemView clicked\");\n break;\n }\n }", "@Override\n\t\t\t\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\t\t\t\tMainActivity sct = (MainActivity) act;\n\t\t\t\t\t\t\t\t\tsct.onItemClick(posit2, 11);\n\t\t\t\t\t\t\t\t}", "@Override\n\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n\t}", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n\n\t\t\t}", "@Override\n public void onClick(View v) {\n listener.onItemClick(v, position);\n }", "@Override\n\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n\t\t\n\t}", "@Override\n public void onItemClick(View view, String data) {\n }", "abstract public void onSingleItemClick(View view);", "@Override\n public void onClick(View v) {\n this.itemClickListener.onItemClick(v, getLayoutPosition());\n }", "@Override\n public void itemClick(int pos) {\n }", "@Override\n public void onItemClick(AdapterView<?> adapterView, View view, int position, long id) {\n TextView textView = (TextView)view;\n switch(textView.getText().toString()){\n case \"NavBar\":\n Intent nav = new Intent(this, NavDrawerActivity.class);\n startActivity(nav);\n break;\n }\n\n //Toast.makeText(MainActivity.this,\"Go to \" + textView.getText().toString() + \" page.\",Toast.LENGTH_LONG).show();\n }", "@Override\r\n\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n\t\t\r\n\t}", "@Override\n\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\tlong arg3) {\n\t\t\t\n\t\t}", "@Override\n public void onItemClick(Nson parent, View view, int position) {\n }", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\t\t\t\t\tlong arg3) {\n\t\t\t}", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\tlong arg3) {\n\t\t\t\t\n\t\t\t}", "@Override\n public void onClick(View view) {\n int position = getAdapterPosition();\n\n // Check if listener!=null bcz it is not guarantee that we'll call setOnItemClickListener\n // RecyclerView.NO_POSITION - Constant for -1, so that we don't click item at Invalid position (safety measure)\n if (listener != null && position != RecyclerView.NO_POSITION) {\n //listener.onItemClick(notes.get(position)); - used in RecyclerView.Adapter\n listener.onItemClick(getItem(position)); // getting data from superclass\n }\n }", "@Override\n public void onClick(View v) {\n itemClickListener.itemClicked(movieId, v);\n }", "@Override\n\t\tpublic void onClick(View view) {\n\t\t\tif (iOnItemClickListener != null) {\n\t\t\t\tiOnItemClickListener.onItemClick(view, null, getAdapterPosition());\n\t\t\t}\n\t\t}", "@Override\n\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n\n\t}", "@Override\n\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n\n\t}", "public void onItemClick(View view, int position);", "@Override\n public void onClick(View v) {\n if (mListener != null){\n mListener.onItemClick(itemView, getLayoutPosition());\n }\n }", "@Override\n public void onItemClick(int position) {\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\titemClickListener.Callback(itemInfo);\n\t\n\t\t\t}", "@Override\n public void onItemClick(View view, int position) {\n }", "@Override\n public void onItemClick(View view, int position) {\n }", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\tlong arg3) {\n\t\t\t}", "@Override\n public void onItemOfListClicked(Object o) {\n UserProfileFragmentDirections.ActionUserProfileFragmentToEventProfileFragment action = UserProfileFragmentDirections.actionUserProfileFragmentToEventProfileFragment((MyEvent) o);\n navController.navigate(action);\n }", "@Override\n public void onClick(View view) {\n if(mFrom.equals(NetConstants.BOOKMARK_IN_TAB)) {\n IntentUtil.openDetailActivity(holder.itemView.getContext(), NetConstants.G_BOOKMARK_DEFAULT,\n bean.getArticleUrl(), position, bean.getArticleId());\n }\n else {\n IntentUtil.openDetailActivity(holder.itemView.getContext(), mFrom,\n bean.getArticleUrl(), position, bean.getArticleId());\n }\n }", "@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == R.id.nav_ds_note) {\n // Handle the camera action\n } else if (id == R.id.nav_ds_todo) {\n\n } else if (id == R.id.nav_ql_the) {\n\n } else if (id == R.id.nav_tuychinh) {\n Intent intent = new Intent(this, CustomActivity.class);\n startActivity(intent);\n }\n\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }", "@Override\n\t\t\t\t\t\t\t\tpublic void onItemClick(AdapterView<?> parent, View view,\n\t\t\t\t\t\t\t\t\t\tint position, long id) {\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}", "@Override\n public void onItemClick(View view, ListItem obj, int position) {\n }", "@Override\n\tpublic void onItemClick(Object o, int position) {\n\n\t}", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\tlong arg3) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\tlong arg3) {\n\n\t\t\t}", "void onLinkClicked(@Nullable ContentId itemId);", "@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id){\n case R.id.home:\n Intent homeIntent = new Intent(this, MainActivity.class);\n startActivity(homeIntent);\n break;\n case R.id.send_email:\n Intent mailIntent = new Intent(this, ContactActivity.class);\n startActivity(mailIntent);\n break;\n case R.id.send_failure_ticket:\n Intent ticketIntent = new Intent(this, TicketActivity.class);\n startActivity(ticketIntent);\n break;\n case R.id.position:\n Intent positionIntent = new Intent(this, LocationActivity.class);\n startActivity(positionIntent);\n break;\n case R.id.author:\n UrlRedirect urlRed = new UrlRedirect(this.getApplicationContext(),getString(R.string.linkedinDeveloper));\n urlRed.redirect();\n break;\n default:\n break;\n }\n\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout_main_activity);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }", "@SuppressWarnings(\"ConstantConditions\")\n public void onItemClicked(@NonNull Item item) {\n getView().openDetail(item);\n }", "void onItemClick(View view, int position);", "@Override\n public void onClick(View v) {\n startNavigation();\n }", "void onItemClick(int position);", "@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(@NonNull MenuItem item) {\n int id = item.getItemId();\n\n if (id == R.id.nav_logs) {\n startActivity(new Intent(this, LogView.class));\n } else if (id == R.id.nav_signOut) {\n signOut();\n }\n\n DrawerLayout drawer = findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }", "@Override\n public void onClick(View v) {\n if(listener!=null & getLayoutPosition()!=0)\n listener.onItemClick(itemView, getLayoutPosition());\n }", "@Override\n\tpublic void onItemClick(AdapterView<?> parent, View view, int position,\n\t\t\tlong id) {\n\t\tpresenter.onItemClicked(position);\n\t}", "@Override\n public void onClick(View view) {\n listener.onMenuButtonSelected(view.getId());\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view,\n int position, long id) {\n }", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\tlong arg3) {\n\t\t\t\tHashMap<String, Object> item = (HashMap<String, Object>) arg0\n\t\t\t\t\t\t.getAdapter().getItem(arg2);\n\n\t\t\t\tIntent intent = new Intent(ViewActivity.this,\n\t\t\t\t\t\tContentActivity.class);\n\t\t\t\tBundle bundle = new Bundle();\n\t\t\t\tbundle.putString(\"_id\", item.get(\"_id\").toString());\n\t\t\t\tbundle.putString(\"_CityEventID\", item.get(\"_CityEventID\")\n\t\t\t\t\t\t.toString());\n\t\t\t\tbundle.putString(\"_type\", String.valueOf(_type));\n\t\t\t\tintent.putExtras(bundle);\n\t\t\t\tstartActivity(intent);\n\t\t\t}", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onClick(View view) {\n Navigation.findNavController(view).navigate(R.id.addEventFragment);\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n Log.w(TAG , \"POSITION : \" + position);\n\n itemClick(position);\n }", "void clickItem(int uid);", "@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(@NonNull MenuItem item) {\n int id = item.getItemId();\n\n if (id == R.id.nav_categories) {\n Intent intent = new Intent(getApplicationContext(), CategoryActivity.class);\n startActivity(intent, compat.toBundle());\n newsHere.setSourceActivity(\"search\");\n newsHere.setTargetActivity(\"category\");\n\n } else if (id == R.id.nav_top_headlines) {\n newsHere.setSourceActivity(\"search\");\n newsHere.setTargetActivity(\"home\");\n Intent intent = new Intent(getApplicationContext(), HomeActivity.class);\n startActivity(intent, compat.toBundle());\n } else if (id == R.id.nav_search) {\n // Do nothing\n }\n\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }", "@Override\n public void onItemClick(View view, int position) {\n\n }", "@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == R.id.nav_orders) {\n\n Intent orderStatusIntent = new Intent(Home.this , OrderStatus.class);\n startActivity(orderStatusIntent);\n\n } else if (id == R.id.nav_banner) {\n\n Intent bannerIntent = new Intent(Home.this , BannerActivity.class);\n startActivity(bannerIntent);\n }\n\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\n }", "public void onItemClick(View view, int position) {\n\n }", "@Override\n\tpublic void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\n\t}", "@Override\n\tpublic void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\n\t}", "@Override\r\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\r\n\t\t\t\t\tlong arg3) {\n\r\n\t\t\t}", "void onClick(View item, View widget, int position, int which);", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position,\n long id) {\n\n\n }", "@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(MenuItem item) {\n Intent intent;\n switch(item.getItemId()){\n case R.id.nav_home:\n finish();\n intent = new Intent(this, NavigationActivity.class);\n startActivity(intent);\n return true;\n case R.id.nav_calendar:\n finish();\n intent = new Intent(this, EventHome.class);\n startActivity(intent);\n return true;\n case R.id.nav_discussion:\n return true;\n case R.id.nav_settings:\n intent = new Intent(this, SettingsActivity.class);\n startActivity(intent);\n return true;\n case R.id.nav_app_blocker:\n intent = new Intent(this, AppBlockingActivity.class);\n startActivity(intent);\n return true;\n }\n\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }", "@Override\n public boolean onNavigationItemSelected(@NonNull MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n\n case R.id.nav_home:\n break;\n\n case R.id.nav_favourites:\n\n if (User.getInstance().getUser() == null) {\n Intent intent = new Intent(getApplicationContext(), LoginActivity.class);\n startActivity(intent);\n }\n\n Intent intent = new Intent(getApplicationContext(), PlaceItemListActivity.class);\n startActivity(intent);\n\n break;\n }\n\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tonRgtRgtMenuClick(v);\n\t\t\t}", "@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == R.id.nav_camera) {\n // Handle the camera action\n } else if (id == R.id.nav_gallery) {\n Toast.makeText(this, \"gallery is clicked!\", Toast.LENGTH_LONG).show();\n\n } else if (id == R.id.nav_slideshow) {\n\n } else if (id == R.id.nav_manage) {\n\n } else if (id == R.id.nav_share) {\n\n } else if (id == R.id.nav_send) {\n\n }\n\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }", "public void menuClicked(MenuItem menuItemSelected);", "@Override\n public void onItemClick(int position) {\n }", "@Override\n public void onItemClick(int position) {\n }", "@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == R.id.nav_my_account) {\n startActivity(new Intent(this, MyAccountActivity.class));\n } else if (id == R.id.nav_message_inbox) {\n startActivity(new Intent(this, MessageInboxActivity.class));\n } else if (id == R.id.nav_view_offers) {\n //Do Nothing\n } else if (id == R.id.nav_create_listing) {\n startActivity(new Intent(this, CreateListingActivity.class));\n } else if (id == R.id.nav_view_listings) {\n startActivity(new Intent(this, ViewListingsActivity.class));\n }\n\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);\n drawer.closeDrawer(GravityCompat.START);\n return true;\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position,\n long id) {\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position,\n long id) {\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\r\n\t\t\t\tpublic void onItemClick(AdapterView<?> parent, View view,\r\n\t\t\t\t\t\tint position, long id) {\n\t\t\t\t}" ]
[ "0.7882029", "0.7235578", "0.6987005", "0.69458413", "0.6917864", "0.6917864", "0.6883472", "0.6875181", "0.68681556", "0.6766498", "0.67418456", "0.67207", "0.6716157", "0.6713947", "0.6698189", "0.66980195", "0.66793925", "0.66624063", "0.66595167", "0.6646381", "0.6641224", "0.66243863", "0.6624042", "0.66207093", "0.6602551", "0.6602231", "0.6599443", "0.65987265", "0.65935796", "0.6585869", "0.658491", "0.65811735", "0.65765643", "0.65751576", "0.65694076", "0.6561757", "0.65582377", "0.65581614", "0.6552827", "0.6552827", "0.6549224", "0.65389794", "0.65345114", "0.65337104", "0.652419", "0.652419", "0.6522521", "0.652146", "0.6521068", "0.6519354", "0.65165275", "0.65159816", "0.65028816", "0.6498054", "0.6498054", "0.64969087", "0.64937705", "0.6488544", "0.64867324", "0.64866185", "0.64865905", "0.6484047", "0.6481108", "0.6474686", "0.64628965", "0.64551884", "0.6446893", "0.64436555", "0.64436555", "0.64436555", "0.64436555", "0.64436555", "0.64386237", "0.643595", "0.64356565", "0.64329195", "0.6432562", "0.6429554", "0.64255124", "0.64255124", "0.64121485", "0.64102405", "0.64095175", "0.64095175", "0.64094734", "0.640727", "0.64060104", "0.640229", "0.6397359", "0.6392996", "0.63921124", "0.63899696", "0.63885015", "0.63885015", "0.63873845", "0.6368818", "0.6368818", "0.63643163", "0.63643163", "0.63643163", "0.6358884" ]
0.0
-1
The type of the id.
@XmlTransient @JsonIgnore public URI getType() { return this.type == null ? null : this.type.getType(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getId_type() {\n return id_type;\n }", "public String getIdType() {\n return idType;\n }", "public int getIdType() {\r\n return idType;\r\n }", "public Integer getIdType() {\n return idType;\n }", "public String getIDType() {\n return idType;\n }", "public String getTypeId() {\r\n return typeId;\r\n }", "public int getTypeId() {\n return typeId_;\n }", "public Long getTypeId() {\r\n\t\treturn typeId;\r\n\t}", "public Integer getTypeId() {\n return typeId;\n }", "public Long getTypeid() {\n return typeid;\n }", "public TypeId getTypeId() {\r\n return typeId;\r\n }", "public BigDecimal getTypeId() {\n return typeId;\n }", "int getTypeIdValue();", "public int getTypeId() {\n return instance.getTypeId();\n }", "public TypeID getTypeID() {\n\t\treturn typeID;\n\t}", "public int getTypeId();", "public int getTypeId();", "@Override\r\n\tpublic int getTypeId() {\n\t\treturn 0;\r\n\t}", "IDType getID();", "public String getId() {\n return typeDeclaration.getId();\n }", "public long getType() {\r\n return type;\r\n }", "public Class<Long> getIdType() {\n return Long.class;\n }", "public interface ID_TYPE {\r\n public static final int OWNER = 1;\r\n public static final int ATTENDANT = 2;\r\n public static final int DRIVER = 3;\r\n }", "public int getTypeId()\n {\n return (int) getKeyPartLong(KEY_CONTENTTYPEID, -1);\n }", "public void setId_type(String id_type) {\n this.id_type = id_type;\n }", "public int getType() {\n return type_;\n }", "public int getType() {\n return type_;\n }", "public int getType() {\n return type_;\n }", "public int getType() {\n return type_;\n }", "public int getType() {\n return type_;\n }", "public int getType() {\n return type_;\n }", "public int getType() {\n return type_;\n }", "public int getType()\r\n\t{\r\n\t\treturn type;\r\n\t}", "public String getIdentityType() {\n return identityType;\n }", "org.tensorflow.proto.framework.FullTypeId getTypeId();", "public int getType()\n\t{\n\t\treturn type;\n\t}", "public int getType()\r\n {\r\n return type;\r\n }", "public int getType() {\n return type_;\n }", "public int getType() {\n return type_;\n }", "public int getType() {\n return type_;\n }", "public int getType() {\n return type_;\n }", "public int getType() {\n return type_;\n }", "public int getType() {\n return type_;\n }", "public int getType() {\n return type_;\n }", "public String getType() {\n return \"uid\";\n }", "public int getType();", "public int getType();", "public int getType();", "public int getType();", "public int getType();", "@Schema(required = true, description = \"An identifier that is unique for the respective type within a VNF instance, but may not be globally unique. \")\n public String getId() {\n return id;\n }", "public int getType()\n {\n return type;\n }", "public int getType()\n {\n return type;\n }", "final public int getType() {\n return type;\n }", "public int getType(){\r\n\t\treturn type;\r\n\t}", "public int getType(){\n\t\treturn type;\n\t}", "public int getType() {\r\n\t\treturn (type);\r\n\t}", "public int getType() {\n return type;\n }", "public int getType() {\n return type;\n }", "public int getType() {\n return type;\n }", "public int getType() {\n return type;\n }", "public int getType() {\r\n return type;\r\n }", "public int getType() {\r\n return type;\r\n }", "public int getType() {\r\n return type;\r\n }", "public int getType() {\n\t\treturn type;\n\t}", "public int getType() {\n\t\treturn type;\n\t}", "public int getType() {\n\t\treturn type;\n\t}", "public int getType() {\n\t\treturn type;\n\t}", "public int getType() {\n\t\treturn type;\n\t}", "public int getType() {\n\t\treturn type;\n\t}", "public int getData_type_id() {\n return data_type_id;\n }", "public int getType() {\n return type_;\n }", "@Override\n public String getDeviceTypeId() {\n \n return this.strTypId;\n }", "public int getType () {\n return type;\n }", "public int getType () {\n return type;\n }", "public Integer getIdentType() {\n return identType;\n }", "public int getType() {\r\n\t\treturn type;\r\n\t}", "public int getType() {\n return _type;\n }", "public int getType() {\n return _type;\n }", "public int getType() {\n return type;\n }", "public final String type() {\n return type;\n }", "public int getType() {\n\t\treturn 1;\r\n\t}", "public int getType () {\r\n return type;\r\n }", "public int getType(){\n return type;\n }", "public int getType() {\n\t return type;\n\t }", "public String getUIDType() {\n return null;\n }", "public int type() {\n return type;\n }", "public int getType() { return type; }", "public int getType() { return type; }", "public String type(){\n\t\treturn type;\n\t}", "public abstract SoType getTypeId();", "public TypeIdentifierSnippet getTypeIdentifier() {\n return typeIdentifier;\r\n }", "public int getType() {\n return type;\n }", "int getType();", "int getType();", "int getType();", "int getType();", "int getType();", "int getType();", "int getType();", "int getType();" ]
[ "0.8713768", "0.85805726", "0.84317255", "0.8356285", "0.8298169", "0.8256875", "0.81370455", "0.81079584", "0.8054307", "0.7978897", "0.79707587", "0.7815046", "0.77493995", "0.77468383", "0.76915795", "0.75928193", "0.75928193", "0.7573044", "0.75299364", "0.75071424", "0.74933904", "0.7424094", "0.73981375", "0.7334327", "0.7276349", "0.71977365", "0.71977365", "0.71977365", "0.71977365", "0.71977365", "0.71969604", "0.71969604", "0.71833", "0.71767986", "0.7172209", "0.71627617", "0.71489245", "0.7137459", "0.7137459", "0.7137459", "0.7137459", "0.7137459", "0.7137459", "0.7137459", "0.7123836", "0.7121741", "0.7121741", "0.7121741", "0.7121741", "0.7121741", "0.71162474", "0.7110726", "0.7110726", "0.7105972", "0.7105407", "0.7096484", "0.7089731", "0.70875436", "0.70875436", "0.70875436", "0.70875436", "0.7085521", "0.7085521", "0.7085521", "0.7076262", "0.7076262", "0.7076262", "0.7076262", "0.7076262", "0.7076262", "0.7073145", "0.7070162", "0.7068821", "0.7068716", "0.7068716", "0.7067655", "0.70671904", "0.706404", "0.706404", "0.7058548", "0.70460707", "0.70415056", "0.7038406", "0.7031376", "0.7030241", "0.702675", "0.7022047", "0.7019796", "0.7019796", "0.70097655", "0.69783", "0.6959835", "0.69587487", "0.6957692", "0.6957692", "0.6957692", "0.6957692", "0.6957692", "0.6957692", "0.6957692", "0.6957692" ]
0.0
-1
The type of the id.
@JsonIgnore public void setType(URI type) { this.type = type == null ? null : new TypeReference<AlternateIdType>(type); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getId_type() {\n return id_type;\n }", "public String getIdType() {\n return idType;\n }", "public int getIdType() {\r\n return idType;\r\n }", "public Integer getIdType() {\n return idType;\n }", "public String getIDType() {\n return idType;\n }", "public String getTypeId() {\r\n return typeId;\r\n }", "public int getTypeId() {\n return typeId_;\n }", "public Long getTypeId() {\r\n\t\treturn typeId;\r\n\t}", "public Integer getTypeId() {\n return typeId;\n }", "public Long getTypeid() {\n return typeid;\n }", "public TypeId getTypeId() {\r\n return typeId;\r\n }", "public BigDecimal getTypeId() {\n return typeId;\n }", "int getTypeIdValue();", "public int getTypeId() {\n return instance.getTypeId();\n }", "public TypeID getTypeID() {\n\t\treturn typeID;\n\t}", "public int getTypeId();", "public int getTypeId();", "@Override\r\n\tpublic int getTypeId() {\n\t\treturn 0;\r\n\t}", "IDType getID();", "public String getId() {\n return typeDeclaration.getId();\n }", "public long getType() {\r\n return type;\r\n }", "public Class<Long> getIdType() {\n return Long.class;\n }", "public interface ID_TYPE {\r\n public static final int OWNER = 1;\r\n public static final int ATTENDANT = 2;\r\n public static final int DRIVER = 3;\r\n }", "public int getTypeId()\n {\n return (int) getKeyPartLong(KEY_CONTENTTYPEID, -1);\n }", "public void setId_type(String id_type) {\n this.id_type = id_type;\n }", "public int getType() {\n return type_;\n }", "public int getType() {\n return type_;\n }", "public int getType() {\n return type_;\n }", "public int getType() {\n return type_;\n }", "public int getType() {\n return type_;\n }", "public int getType() {\n return type_;\n }", "public int getType() {\n return type_;\n }", "public int getType()\r\n\t{\r\n\t\treturn type;\r\n\t}", "public String getIdentityType() {\n return identityType;\n }", "org.tensorflow.proto.framework.FullTypeId getTypeId();", "public int getType()\n\t{\n\t\treturn type;\n\t}", "public int getType()\r\n {\r\n return type;\r\n }", "public int getType() {\n return type_;\n }", "public int getType() {\n return type_;\n }", "public int getType() {\n return type_;\n }", "public int getType() {\n return type_;\n }", "public int getType() {\n return type_;\n }", "public int getType() {\n return type_;\n }", "public int getType() {\n return type_;\n }", "public String getType() {\n return \"uid\";\n }", "public int getType();", "public int getType();", "public int getType();", "public int getType();", "public int getType();", "@Schema(required = true, description = \"An identifier that is unique for the respective type within a VNF instance, but may not be globally unique. \")\n public String getId() {\n return id;\n }", "public int getType()\n {\n return type;\n }", "public int getType()\n {\n return type;\n }", "final public int getType() {\n return type;\n }", "public int getType(){\r\n\t\treturn type;\r\n\t}", "public int getType(){\n\t\treturn type;\n\t}", "public int getType() {\r\n\t\treturn (type);\r\n\t}", "public int getType() {\n return type;\n }", "public int getType() {\n return type;\n }", "public int getType() {\n return type;\n }", "public int getType() {\n return type;\n }", "public int getType() {\r\n return type;\r\n }", "public int getType() {\r\n return type;\r\n }", "public int getType() {\r\n return type;\r\n }", "public int getType() {\n\t\treturn type;\n\t}", "public int getType() {\n\t\treturn type;\n\t}", "public int getType() {\n\t\treturn type;\n\t}", "public int getType() {\n\t\treturn type;\n\t}", "public int getType() {\n\t\treturn type;\n\t}", "public int getType() {\n\t\treturn type;\n\t}", "public int getData_type_id() {\n return data_type_id;\n }", "public int getType() {\n return type_;\n }", "@Override\n public String getDeviceTypeId() {\n \n return this.strTypId;\n }", "public int getType () {\n return type;\n }", "public int getType () {\n return type;\n }", "public Integer getIdentType() {\n return identType;\n }", "public int getType() {\r\n\t\treturn type;\r\n\t}", "public int getType() {\n return _type;\n }", "public int getType() {\n return _type;\n }", "public int getType() {\n return type;\n }", "public final String type() {\n return type;\n }", "public int getType() {\n\t\treturn 1;\r\n\t}", "public int getType () {\r\n return type;\r\n }", "public int getType(){\n return type;\n }", "public int getType() {\n\t return type;\n\t }", "public String getUIDType() {\n return null;\n }", "public int type() {\n return type;\n }", "public int getType() { return type; }", "public int getType() { return type; }", "public String type(){\n\t\treturn type;\n\t}", "public abstract SoType getTypeId();", "public TypeIdentifierSnippet getTypeIdentifier() {\n return typeIdentifier;\r\n }", "public int getType() {\n return type;\n }", "int getType();", "int getType();", "int getType();", "int getType();", "int getType();", "int getType();", "int getType();", "int getType();" ]
[ "0.8713768", "0.85805726", "0.84317255", "0.8356285", "0.8298169", "0.8256875", "0.81370455", "0.81079584", "0.8054307", "0.7978897", "0.79707587", "0.7815046", "0.77493995", "0.77468383", "0.76915795", "0.75928193", "0.75928193", "0.7573044", "0.75299364", "0.75071424", "0.74933904", "0.7424094", "0.73981375", "0.7334327", "0.7276349", "0.71977365", "0.71977365", "0.71977365", "0.71977365", "0.71977365", "0.71969604", "0.71969604", "0.71833", "0.71767986", "0.7172209", "0.71627617", "0.71489245", "0.7137459", "0.7137459", "0.7137459", "0.7137459", "0.7137459", "0.7137459", "0.7137459", "0.7123836", "0.7121741", "0.7121741", "0.7121741", "0.7121741", "0.7121741", "0.71162474", "0.7110726", "0.7110726", "0.7105972", "0.7105407", "0.7096484", "0.7089731", "0.70875436", "0.70875436", "0.70875436", "0.70875436", "0.7085521", "0.7085521", "0.7085521", "0.7076262", "0.7076262", "0.7076262", "0.7076262", "0.7076262", "0.7076262", "0.7073145", "0.7070162", "0.7068821", "0.7068716", "0.7068716", "0.7067655", "0.70671904", "0.706404", "0.706404", "0.7058548", "0.70460707", "0.70415056", "0.7038406", "0.7031376", "0.7030241", "0.702675", "0.7022047", "0.7019796", "0.7019796", "0.70097655", "0.69783", "0.6959835", "0.69587487", "0.6957692", "0.6957692", "0.6957692", "0.6957692", "0.6957692", "0.6957692", "0.6957692", "0.6957692" ]
0.0
-1
Set the value of the id type from a known alternate id type.
@JsonIgnore public void setKnownType(AlternateIdType knownType) { this.type = knownType == null ? null : new TypeReference<AlternateIdType>(knownType); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setIdType(Integer idType) {\n this.idType = idType;\n }", "public void setId_type(String id_type) {\n this.id_type = id_type;\n }", "public void setIdType(int idType) {\r\n this.idType = idType;\r\n }", "private void setTypeId(int value) {\n \n typeId_ = value;\n }", "public void setType(int id) {\n _type = id;\n }", "public void setIdType(String idType) {\n this.idType = idType == null ? null : idType.trim();\n }", "public void setTypeid(Long typeid) {\n this.typeid = typeid;\n }", "@JsonIgnore\r\n public void setType(URI type) {\r\n this.type = type == null ? null : new TypeReference<AlternateIdType>(type);\r\n }", "public void setData_type_id(int data_type_id) {\n this.data_type_id = data_type_id;\n }", "public HasID put(@SuppressWarnings(\"rawtypes\") Class type, HasID value);", "public void setTypeId(com.walgreens.rxit.ch.cda.POCDMT000040InfrastructureRootTypeId typeId)\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.walgreens.rxit.ch.cda.POCDMT000040InfrastructureRootTypeId target = null;\n target = (com.walgreens.rxit.ch.cda.POCDMT000040InfrastructureRootTypeId)get_store().find_element_user(TYPEID$2, 0);\n if (target == null)\n {\n target = (com.walgreens.rxit.ch.cda.POCDMT000040InfrastructureRootTypeId)get_store().add_element_user(TYPEID$2);\n }\n target.set(typeId);\n }\n }", "public void xsetType(org.apache.xmlbeans.XmlInt type)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlInt target = null;\n target = (org.apache.xmlbeans.XmlInt)get_store().find_attribute_user(TYPE$2);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlInt)get_store().add_attribute_user(TYPE$2);\n }\n target.set(type);\n }\n }", "IDType getID();", "void setDataType(int type );", "@Test\r\n public void testSetTypeId() {\r\n System.out.println(\"setTypeId\");\r\n int tid = 0;\r\n \r\n instance.setTypeId(tid);\r\n assertEquals(tid, instance.getTypeId());\r\n \r\n }", "public void setTypeID(TypeID typeID) {\n\t\tthis.typeID = typeID;\n\t}", "public String getIDType() {\n return idType;\n }", "public void setTypeId(Integer typeId) {\n this.typeId = typeId;\n }", "public void setType(int atype)\n {\n type = atype;\n }", "public interface ID_TYPE {\r\n public static final int OWNER = 1;\r\n public static final int ATTENDANT = 2;\r\n public static final int DRIVER = 3;\r\n }", "public Variable castOidType(OIDType type, String value) {\n Variable oidValue = null;\n switch (type) {\n case INTEGER32:\n oidValue = new Integer32(Integer.parseInt(value));\n break;\n case UNSIGNED32:\n oidValue = new UnsignedInteger32(Integer.parseInt(value));\n break;\n case COUNTER32:\n oidValue = new Counter32(Long.parseLong(value));\n break;\n case GAUGE32:\n oidValue = new Gauge32(Long.parseLong(value));\n break;\n case OCTETSTRING:\n oidValue = new OctetString(value);\n break;\n case BITSTRING:\n int val = Integer.parseInt(value);\n int arrayIndex = val / 8;\n byte[] buf = new byte[] { 0x00, 0x00, 0x00, 0x00 };\n buf[arrayIndex] |= 1 << (8 - (val % 8));\n OctetString oct = new OctetString();\n oct.append(buf);\n oidValue = new OctetString(oct);\n break;\n default:\n break;\n }\n return oidValue;\n }", "public void setType(int value) {\n this.type = value;\n }", "public void setType(int t){\n this.type = t;\n }", "public void setType(int t) {\r\n\t\ttype = t;\r\n\t}", "public String getId_type() {\n return id_type;\n }", "public Integer getIdType() {\n return idType;\n }", "public void setType(int type)\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(TYPE$2);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(TYPE$2);\n }\n target.setIntValue(type);\n }\n }", "private void setID(gw.pl.persistence.core.Key value) {\n __getInternalInterface().setFieldValue(ID_PROP.get(), value);\n }", "private void setID(gw.pl.persistence.core.Key value) {\n __getInternalInterface().setFieldValue(ID_PROP.get(), value);\n }", "private void setID(gw.pl.persistence.core.Key value) {\n __getInternalInterface().setFieldValue(ID_PROP.get(), value);\n }", "public void setTypeId(Long typeId) {\r\n\t\tthis.typeId = typeId;\r\n\t}", "public void setType( int type ) {\r\n typ = type;\r\n }", "public void setIdForDataType(String idForDataType) {\n this.idForDataType = idForDataType;\n }", "public int getIdType() {\r\n return idType;\r\n }", "public void setType(long type) {\r\n this.type = type;\r\n }", "public String getIdType() {\n return idType;\n }", "public void setType(int type) {\n type_ = type;\n }", "public void setID(java.lang.Integer value);", "public abstract void setId(T obj, long id);", "@RdfProperty(\"http://www.coadunation.net/schema/rdf/1.0/base#IdValue\")\n public abstract void setValue(String value);", "public void setType(final int t) {\n\t\ttype = t;\n\t}", "void setUniformTypeIdentifier(String v) {\n if (v == null) {\n throw new IllegalArgumentException(\"Uniform Type Identifier is missing\");\n }\n uti = v;\n }", "@SuppressWarnings(\"unchecked\")\n @Override\n public <Y> ErraiSingularAttribute<? super X, Y> getId(Class<Y> type) {\n return (ErraiSingularAttribute<? super X, Y>) id;\n }", "public void setIdVoteType( int idVoteType )\n {\n _nIdVoteType = idVoteType;\n }", "@Test\n public void setGetID() {\n final CourseType courseType = new CourseType();\n final String ID = \"ID\";\n courseType.setId(ID);\n\n assertSame(ID, courseType.getId());\n }", "void setID(int val)\n throws RemoteException;", "public ID(String id) {\n this.type = id.charAt(0);\n this.UID = id;\n }", "public void setId(byte value) {\r\n this.id = value;\r\n }", "public void setType(int tmp) {\n this.type = tmp;\n }", "public void setIdentType(Integer identType) {\n this.identType = identType;\n }", "private void setId(int ida2) {\n\t\tthis.id=ida;\r\n\t}", "void setType(java.lang.String type);", "int getTypeIdValue();", "public Builder setTypeId(int value) {\n copyOnWrite();\n instance.setTypeId(value);\n return this;\n }", "public void setType(String type);", "public void setType(String type);", "public void setType(String type);", "public void setType(Integer type) {\r\n\t\tthis.type = type;\r\n\t}", "protected void setTypeId(String typeId) {\n\t\tcontext.getElement().setAttribute(\"typeId\", \"org.csstudio.opibuilder.widgets.\" + typeId);\n\t}", "public void setType(Integer type) {\n this.type = type;\n }", "public void setType(Integer type) {\n this.type = type;\n }", "public void setType(Integer type) {\n this.type = type;\n }", "public void setType(Integer type) {\n this.type = type;\n }", "public void setType(Integer type) {\n this.type = type;\n }", "public void setType(Integer type) {\n this.type = type;\n }", "public void setType(Integer type) {\n this.type = type;\n }", "public void setTypeId(String typeId) {\r\n this.typeId = typeId == null ? null : typeId.trim();\r\n }", "public void setType (String type) { n.setAttribute(ATTNAMECOMMONPREFIX + ATTNAMESUFFIX_TYPE , type); }", "public void setType(String val) {\n type = val;\n }", "private void setAId(int value) {\n \n aId_ = value;\n }", "public void setTypeId(String typeId) {\r\n\t\t\tthis.typeId = typeId;\r\n\t\t}", "public void setType(int type) {\r\n this.type = type;\r\n }", "public void setType(int type) {\r\n this.type = type;\r\n }", "@SuppressWarnings(\"unchecked\")\r\n public static String assignIdentifier(PatientIdentifierType type) {\t\t\r\n\t\ttry {\r\n\t\t\tClass identifierSourceServiceClass = Context.loadClass(\"org.openmrs.module.idgen.service.IdentifierSourceService\");\r\n\t\t\tObject idgen = Context.getService(identifierSourceServiceClass);\r\n\t Method generateIdentifier = identifierSourceServiceClass.getMethod(\"generateIdentifier\", PatientIdentifierType.class, String.class);\r\n\t \r\n\t // note that generate identifier returns null if this identifier type is not set to be auto-generated\r\n\t return (String) generateIdentifier.invoke(idgen, type, \"auto-assigned during patient creation\");\r\n\t\t}\r\n\t\tcatch (Exception e) {\r\n\t\t\tlog.error(\"Unable to access IdentifierSourceService for automatic id generation. Is the Idgen module installed and up-to-date?\", e);\r\n\t\t} \r\n\t\t\r\n\t\treturn null;\r\n\t}", "public void setType (int type) {\n this.type = type;\n }", "public void setType (int type) {\n this.type = type;\n }", "public void setId_types(HashMap<String, Integer> id_types) {\n this.id_types = id_types;\n }", "public void set(String type, int value){\n\t\tif (type.toLowerCase().equals(\"hi\"))\n\t\t\tHI = value;\n\t\telse if (type.toLowerCase().equals(\"lo\"))\n\t\t\tLO = value;\n\t\telse if (type.toLowerCase().equals(\"pc\"))\n\t\t\tpc = value;\n\t}", "public void setType(java.lang.Integer type) {\n this.type = type;\n }", "public void setType(java.lang.Integer type) {\n this.type = type;\n }", "void setId(int val);", "void setNilID();", "public abstract void setTica_id(java.lang.String newTica_id);", "public void setType(Integer type) {\n\t\tthis.type = type;\n\t}", "IdentifierType createIdentifierType();", "public void setType(String aType) {\n iType = aType;\n }", "public void setSessionIdType(Enumerator newValue);", "public void setType(String value) {\n this.type = value;\n }", "public abstract void setEspe_id(java.lang.Integer newEspe_id);", "private void setOtherId(int value) {\n \n otherId_ = value;\n }", "protected void setPrefValue(String type, String id, String name){\n //adds a key value pair to pref\n edit.putString(AppCSTR.ACCOUNT_TYPE, type);\n edit.putString(AppCSTR.ACCOUNT_ID, id);\n edit.putString(AppCSTR.ACCOUNT_NAME, name);\n //records changes\n edit.commit();\n }", "public void setSubtype(typekey.LocationNamedInsured value);", "public void setType(int type) {\n this.type = type;\n }", "public void setType(int nType) { m_nType = nType; }", "public void setID(Number numID);", "public void setTypeId(final ReferenceTypeId typeId);", "public void setType(int type)\n\t{\n\t\tthis.type = type;\n\t}", "public void set_type(String t)\n {\n type =t;\n }", "public void setType(String inType)\n {\n\ttype = inType;\n }", "public void setIdentifier(String value) {\n/* 214 */ setValue(\"identifier\", value);\n/* */ }" ]
[ "0.7294372", "0.72934055", "0.72280204", "0.7194069", "0.69411314", "0.68660814", "0.68427384", "0.6759094", "0.66336715", "0.63986015", "0.6234808", "0.6173006", "0.615656", "0.6086607", "0.60835236", "0.6048567", "0.6044805", "0.6037478", "0.60292137", "0.6018203", "0.5990048", "0.59814525", "0.5920184", "0.5877602", "0.58737993", "0.5856428", "0.58499914", "0.58445716", "0.58445716", "0.58445716", "0.5831939", "0.5831938", "0.5830319", "0.5826346", "0.5810344", "0.5787609", "0.57869023", "0.57493687", "0.57438546", "0.5742167", "0.5737821", "0.5735303", "0.5710178", "0.57057935", "0.56900126", "0.5684187", "0.5676905", "0.5669387", "0.56597537", "0.56538314", "0.5642197", "0.5640572", "0.5615224", "0.5612545", "0.56114477", "0.56114477", "0.56114477", "0.56047547", "0.56021774", "0.56016344", "0.56016344", "0.56016344", "0.56016344", "0.56016344", "0.56016344", "0.56016344", "0.5600064", "0.5587008", "0.5584679", "0.5562871", "0.55609494", "0.5557825", "0.5557825", "0.55548084", "0.55518115", "0.55518115", "0.5548359", "0.5539544", "0.55394787", "0.55394787", "0.5532373", "0.55305105", "0.55293316", "0.5520441", "0.5511793", "0.5498392", "0.5494901", "0.5484576", "0.548342", "0.5472005", "0.5471152", "0.54711205", "0.54669225", "0.54664004", "0.5461933", "0.5455291", "0.5451935", "0.544743", "0.5446392", "0.5440918" ]
0.6824458
7
Provide a simple toString() method.
@Override public String toString() { return (value == null) ? "" : value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "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() ;", "public abstract String toString();", "public abstract String toString();", "public abstract String toString();", "public abstract String toString();", "public abstract String toString();", "public abstract String toString();", "public abstract String toString();", "public abstract String toString();", "public abstract String toString();", "public abstract String toString();", "public abstract String toString();", "public abstract String toString();", "public abstract String toString();", "public abstract String toString();", "public abstract String toString();", "public abstract String toString();", "@Override public String toString();", "@Override\r\n\tpublic String toString();", "@Override\r\n String toString();", "public 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();", "String toString();", "@Override String toString();", "@Override\n\tString toString();", "@Override\n\tpublic String toString();", "@Override\n String toString();", "@Override\n String toString();", "@Override\r\n public String toString();", "@Override\n\tpublic abstract String toString();", "@Override\n public abstract String toString();", "@Override\n public abstract String toString();", "@Override\n public abstract String toString();", "@Override\n public abstract String toString();", "@Override\n public abstract String toString();", "@Override\n public abstract String toString();", "@Override\n public abstract String toString();", "@Override\n\tpublic abstract String toString ();", "abstract public String toString();", "@Override\n public String toString();", "@Override\n public String toString();", "public String toString() {\n\t}", "@Override\n String toString();", "public String toString() { return stringify(this, true); }", "@Override\n public abstract String toString();", "abstract public String toString ();", "@Override\n public String toString() {\n return toString(false, true, true, null);\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 toString() {\n String str = \"\";\n\n //TODO: Complete Method\n\n return str;\n }", "public String toString() { return \"\"; }", "public String toString() { return \"\"; }", "public String toString() {\n StringWriter writer = new StringWriter();\n this.write(writer);\n return writer.toString();\n }", "@Override\n public native String toString();" ]
[ "0.88812536", "0.88812536", "0.88812536", "0.88812536", "0.88812536", "0.88812536", "0.88812536", "0.88812536", "0.88812536", "0.88812536", "0.88812536", "0.88812536", "0.88812536", "0.88812536", "0.88812536", "0.88812536", "0.88812536", "0.88812536", "0.88812536", "0.88812536", "0.88812536", "0.88812536", "0.88174427", "0.86833656", "0.86833656", "0.86833656", "0.86833656", "0.86833656", "0.86833656", "0.86833656", "0.86833656", "0.86833656", "0.86833656", "0.86833656", "0.86833656", "0.86833656", "0.86833656", "0.86833656", "0.86833656", "0.8663965", "0.86492574", "0.8628187", "0.86274445", "0.8607976", "0.8607976", "0.8607976", "0.8607976", "0.8607976", "0.8607976", "0.8607976", "0.8607976", "0.8607976", "0.8607976", "0.8607976", "0.8607976", "0.8607976", "0.8607976", "0.8607976", "0.8607976", "0.8607976", "0.8607976", "0.8607976", "0.8607976", "0.8607976", "0.8607976", "0.8607976", "0.8607976", "0.8607976", "0.8607976", "0.8607976", "0.8607976", "0.859673", "0.85964483", "0.85840905", "0.8576244", "0.8576244", "0.8572428", "0.8549482", "0.851905", "0.851905", "0.851905", "0.851905", "0.851905", "0.851905", "0.851905", "0.85099006", "0.8501071", "0.8485443", "0.8485443", "0.8459484", "0.8372644", "0.8298321", "0.8290816", "0.8221454", "0.8149592", "0.81345296", "0.8126936", "0.8094785", "0.8094785", "0.8091186", "0.80708784" ]
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) throws MalformedURLException { AndroidDriver<AndroidElement> driver = Capabilities(); //Put implicit timeout so that system wont break before this time driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS); //The below code explain how to scroll and select the appropriate element. ((FindsByAndroidUIAutomator<AndroidElement>) driver).findElementByAndroidUIAutomator("new UiScrollable(new UiSelector().scrollable(true).instance(0)).scrollIntoView(new UiSelector().textContains(\"Views\").instance(0))"); driver.findElement(By.xpath("//android.widget.TextView[@text='Views']")).click(); //1. Tap Gesture: using TouchAction class TouchAction t = new TouchAction(driver); WebElement expandList = driver.findElement(By.xpath("//android.widget.TextView[@text='Expandable Lists']")); t.tap(tapOptions().withElement(element(expandList))).perform(); //2. Longpress gesture using TouchAction class driver.findElement(By.xpath("//android.widget.TextView[@text='1. Custom Adapter']")).click(); WebElement pnames= driver.findElement(By.xpath("//android.widget.TextView[@text='People Names']")); t.longPress(longPressOptions().withElement(element(pnames)).withDuration(ofSeconds(2))).release().perform(); //Validate that Sample menu is displayed after longpress. System.out.println(driver.findElementById("android:id/title").isDisplayed()); }
{ "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
Este metodo recupera um registro de DvdCd pelo id correspondente
@Override public DvdCd getById(Integer id) { logger.info("Buscando DVD/CD por ID "+id); Optional<DvdCd> obj = itemRepository.findById(id); if (!obj.isPresent()) { logger.error("DvdCd nao encontrado, "+DvdCdServiceImpl.class); throw new ObjectNotFoundException("DvdCd nao encontrado, id: "+id); } return obj.get(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public DVDDetails getDetails(String dvdID);", "public So_cdVO getById(String so_cd);", "DireccionDTO consultarDireccion(long idDireccion);", "public Coche consultarUno(int id) {\n Coche coche =cochedao.consultarUno(id);\r\n \r\n return coche;\r\n }", "Object getDados(long id);", "public Cd getById(int id) {\n\t\tString sql = \" from Cd where id=:id\";\n\t\tQuery query = HibernateUtil.getSession().createQuery(sql).setParameter(\"id\", id);\n\t\treturn (Cd)findOne(query);\n\t\t\n\t}", "public String getDenumireCaroserie(int id) {\n c = db.rawQuery(\"select denumire from caroserii where id='\" + id + \"'\", new String[]{});\n StringBuffer buffer = new StringBuffer();\n while (c.moveToNext()) {\n String denumire = c.getString(0);\n buffer.append(\"\" + denumire);\n }\n return buffer.toString();\n }", "MVoucherDTO selectByPrimaryKey(String id);", "DetalleVenta buscarDetalleVentaPorId(Long id) throws Exception;", "public String getDenumireCombustibil(String id){\n c = db.rawQuery(\"select denumire from combustibil where id='\" + id + \"'\", new String[]{});\n StringBuffer buffer = new StringBuffer();\n while (c.moveToNext()) {\n String denumire = c.getString(0);\n buffer.append(\"\" + denumire);\n }\n return buffer.toString();\n }", "Depart selectByPrimaryKey(String id);", "public long getDossierId();", "@Override\n\tpublic br.ce.Disciplina.entity.Disciplina recuperar(Long cdId) {\n\t\treturn null;\n\t}", "@Override\r\npublic Detalle_pedido read(int id) {\n\treturn detalle_pedidoDao.read(id);\r\n}", "public String getDenumireExperienta(String id) {\n c = db.rawQuery(\"select denumire from experienta where id='\" + id + \"'\", new String[]{});\n StringBuffer buffer = new StringBuffer();\n while (c.moveToNext()) {\n String denumire = c.getString(0);\n buffer.append(\"\" + denumire);\n }\n return buffer.toString();\n }", "@Override\r\n public int createDetalleventa(Detalleventa dv) {\r\n sql = \"INSERT INTO public.detalle_venta(id_venta, item, igv, sub_total, descuento, id_producto_stock, cantidad, precio_unit) \"\r\n + \"VALUES(\"+dv.getId_venta()+\",\"+dv.getItem()+\",\"+dv.getIgv()+\",\"+dv.getSub_total()+\",\"+dv.getDescuento()+\",\"+dv.getId_producto_stock()+\",\"+dv.getCantidad()+\", \"+dv.getPrecio_unit()+\")\";\r\n return cx.performKeys(sql);\r\n }", "public String getDenumireBuget(String id){\n c = db.rawQuery(\"select denumire from buget where id='\" + id + \"'\", new String[]{});\n StringBuffer buffer = new StringBuffer();\n while (c.moveToNext()) {\n String denumire = c.getString(0);\n buffer.append(\"\" + denumire);\n }\n return buffer.toString();\n }", "@Override\n public Venda Buscar(int id) {\n Venda v;\n\n v = em.find(Venda.class, id);\n\n// transaction.commit();\n return v;\n }", "public Integer getdId() {\n return dId;\n }", "public void setdId(Integer dId) {\n this.dId = dId;\n }", "@Override\r\n public QuestaoDiscursiva consultarQuestaoDiscursivaPorId(long id)\r\n throws Exception {\n return rnQuestaoDiscursiva.consultarPorId(id);\r\n }", "Dress selectByPrimaryKey(Integer did);", "DepAcctDO selectByPrimaryKey(String depCode);", "@Override\n public Venta BuscarporID(int ID) {\n DAOUsuarios dao_e = new DAOUsuarios();\n try {\n sql = \"SELECT * FROM VENTA WHERE idventa=\"+ID;\n conex=getConexion();\n pstm=conex.prepareStatement(sql);\n rsset=pstm.executeQuery();\n \n Usuario ne;\n Venta ven = null;\n \n while(rsset.next()){\n int numventa = rsset.getInt(1);\n String fechaE = rsset.getString(4);\n ne = dao_e.BuscarporID(rsset.getInt(2));\n \n List<DET_Venta> compras = Ver_DET_VENTAS(numventa);\n ven = new Venta(rsset.getString(1),rsset.getDouble(5), fechaE, ne,null,compras); \n }\n return ven;\n } catch (SQLException | ClassNotFoundException ex) {\n Logger.getLogger(DAOVentas.class.getName()).log(Level.SEVERE, null, ex);\n }finally{\n try {\n conex.close();\n pstm.close();\n rsset.close();\n } catch (SQLException ex) {\n Logger.getLogger(DAOVentas.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n return null;\n }", "public String getCopii(int id) {\n String denumiri=new String();\n String selectQuery = \"SELECT denumire FROM copii WHERE id=\"+id;\n Cursor cursor = db.rawQuery(selectQuery, new String[]{});\n if (cursor.moveToFirst()) {\n do {\n denumiri = cursor.getString(0);\n } while (cursor.moveToNext());\n }\n return denumiri;\n }", "public int getContrcdId() {\n return contrcdId;\n }", "public DTODireccion obtenerDireccionPorOID(Long oidDireccion) throws MareException {\n UtilidadesLog.info(\"DAOMAEMaestroClientes.obtenerDireccionPorOID(Long oidDireccion): Entrada\");\n \n BelcorpService bs = UtilidadesEJB.getBelcorpService();\n StringBuffer query = new StringBuffer();\n \n query.append(\" SELECT dir.tidc_oid_tipo_dire, dir.tivi_oid_tipo_via, val.oid_valo_estr_geop \");\n query.append(\" , dir.zvia_oid_via, dir.num_ppal, dir.val_cod_post, dir.val_obse \");\n query.append(\" , dir.ind_dire_ppal, dir.val_nomb_via, val.des_geog \");\n query.append(\" FROM mae_clien_direc dir\");\n query.append(\" , zon_valor_estru_geopo val\");\n query.append(\" , zon_terri terr \");\n query.append(\" WHERE DIR.OID_CLIE_DIRE = \").append(oidDireccion);\n query.append(\" AND dir.terr_oid_terr = terr.oid_terr\");\n query.append(\" AND terr.vepo_oid_valo_estr_geop = val.oid_valo_estr_geop \");\n \n RecordSet resultado = null;\n try {\n resultado = bs.dbService.executeStaticQuery(query.toString());\n } catch (Exception e) {\n String error = CodigosError.ERROR_DE_LECTURA_EN_BASE_DE_DATOS;\n throw new MareException(e, UtilidadesError.armarCodigoError(error));\n }\n \n DTODireccion dir = null;\n if (resultado != null && !resultado.esVacio()) {\n \n dir = new DTODireccion();\n \n dir.setOid(oidDireccion);\n dir.setTipoDireccion(UtilidadesBD.convertirALong(resultado.getValueAt(0, \"TIDC_OID_TIPO_DIRE\")));\n dir.setTipoVia(UtilidadesBD.convertirALong(resultado.getValueAt(0, \"TIVI_OID_TIPO_VIA\")));\n dir.setUnidadGeografica(UtilidadesBD.convertirALong(resultado.getValueAt(0, \"OID_VALO_ESTR_GEOP\")));\n dir.setVia(UtilidadesBD.convertirALong(resultado.getValueAt(0, \"ZVIA_OID_VIA\")));\n dir.setNumeroPrincipal((String)resultado.getValueAt(0, \"NUM_PPAL\"));\n dir.setCodigoPostal((String)resultado.getValueAt(0, \"VAL_COD_POST\"));\n dir.setObservaciones((String)resultado.getValueAt(0, \"VAL_OBSE\"));\n dir.setEsDireccionPrincipal(UtilidadesBD.convertirABoolean(resultado.getValueAt(0, \"IND_DIRE_PPAL\")));\n dir.setNombreVia((String)resultado.getValueAt(0, \"VAL_NOMB_VIA\"));\n dir.setNombreUnidadGeografica((String)resultado.getValueAt(0, \"DES_GEOG\"));\n \n }\n \n UtilidadesLog.info(\"DAOMAEMaestroClientes.obtenerDireccionPorOID(Long oidDireccion): Salida\");\n return dir;\n }", "ClinicalData selectByPrimaryKey(Long id);", "public void create(int id, DVD dvd, Categorie categorie);", "DictDoseUnit selectByPrimaryKey(Long dduId);", "@Override\n public DetalleVenta get(int id) {\n return detalleVentaJpaRepository.getOne(id);\n }", "public String cargaDatosPatientxId(){\r\n\t\tString vista = \"exito\";\r\n\t\tlog.debug(\"Ingresando al metodo cargaDatos de Paciente\");\t\r\n\t\tlog.debug(\"ID de usuario a buscar DM \" + idBuscar);\r\n\t\t// Invocar a los servicios necesarios\t\r\n\t\ttry {\r\n\t\t\tpaciente = pacienteService.buscarUsuario(idBuscar) ; \r\n\t\t\tlog.debug(\"DNI usuario a buscar DM \" + paciente.getDni());\r\n\t\t\t\r\n\t\t\tdmpaciente=pacienteService.DMxIdPaciente(idBuscar);\r\n\t\t\tif(dmpaciente!=null){\r\n\t\t\t\tlog.debug(\"dump DMPaciente\");\r\n\t\t\t\tlog.debug(\"\"+dmpaciente.getIdPersona());\r\n\t\t\t\tlog.debug(\"\"+dmpaciente.getIdDMPaciente());\r\n\t\t\t\t//le asignamos el valor del DNI del paciente al DM buscado\r\n\t\t\t\tdmpaciente.setDni(paciente.getDni());\r\n\t\t\t\tlog.debug(\"\"+dmpaciente.getDni());\r\n\t\t\t\t/*log.debug(\"\"+dmpaciente.getAlergia());\r\n\t\t\t\tlog.debug(\"\"+dmpaciente.getAsma());\r\n\t\t\t\tlog.debug(\"\"+dmpaciente.getCefalea());\r\n\t\t\t\tlog.debug(\"\"+dmpaciente.getOtros());*/\r\n\t\t\t\t\r\n\t\t\t\tlog.debug(\"\"+dmpaciente.isAlergia());\r\n\t\t\t\tlog.debug(\"\"+dmpaciente.isAsma());\r\n\t\t\t\tlog.debug(\"\"+dmpaciente.isCefalea());\r\n\t\t\t\tlog.debug(\"\"+dmpaciente.isOtros());\r\n\t\t\t\t\r\n\t\t\t\tlog.debug(\"\"+dmpaciente.getEspecificacion());\r\n\t\t\t\tlog.debug(\"\"+dmpaciente.getGrupoSanguineo());\r\n\t\t\t\tlog.debug(\"\"+dmpaciente.getPeso());\r\n\t\t\t\tlog.debug(\"fin dump\");\r\n\t\t\t\t\r\n\t\t\t}else{\r\n\t\t\t\tlog.debug(\"dmpaciente es nulo !!!\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\treturn vista;\r\n\t\r\n\t}", "public DcSquadDO loadById(long id) throws DataAccessException;", "public static Periode getRecordById(int id){ \n Periode p=null; \n try{ \n //membuka koneksi\n Connection con=Koneksi.openConnection(); \n //melakukan query database untuk menampilkan data berdasarkan id atau primary key \n PreparedStatement ps=con.prepareStatement(\"select * from periode where id=?\"); \n ps.setInt(1,id); \n ResultSet rs=ps.executeQuery(); \n while(rs.next()){ \n p = new Periode(); \n p.setId(rs.getInt(\"id\")); \n p.setTahun(rs.getString(\"tahun\")); \n p.setAwal(rs.getString(\"awal\")); \n p.setAkhir(rs.getString(\"akhir\"));\n p.setStatus(rs.getString(\"status\"));\n } \n }catch(Exception e){System.out.println(e);} \n return p; \n }", "public Cliente carregarPorId(int id) throws Exception {\n \n Cliente c = new Cliente();\n String sql = \"SELECT * FROM cliente WHERE idCliente = ?\";\n PreparedStatement pst = conn.prepareStatement(sql);\n pst.setInt(1, id);\n ResultSet rs = pst.executeQuery();\n if (rs.next()) {\n c.setIdCliente(rs.getInt(\"idCliente\"));\n c.setEndereco(rs.getString(\"endereco\"));\n c.setCidade(rs.getString(\"cidade\"));\n c.setDdd(rs.getInt(\"ddd\"));\n c.setNome(rs.getString(\"nome\"));\n c.setUf(rs.getString(\"uf\"));\n c.setTelefone(rs.getString(\"telefone\"));\n Empresa e = new Empresa();\n EmpresaDAO ePB = new EmpresaDAO();\n ePB.conectar();\n e = ePB.carregarPorCnpj(rs.getString(\"Empresa_cnpj\"));\n ePB.desconectar();\n Usuario p = new Usuario();\n UsuarioDAO pPB = new UsuarioDAO();\n pPB.conectar();\n p = pPB.carregarPorId(rs.getInt(\"Usuario_idUsuario\"));\n pPB.desconectar();\n c.setEmpresa(e);\n c.setUsuario(p);\n }\n return c;\n }", "@Override\n public BorrowDO selectByPrimaryKey(Long id){\n return borrowExtMapper.selectByPrimaryKey(id);\n }", "CraftAdvReq selectByPrimaryKey(Integer id);", "public void findbyid() throws Exception {\n try {\n Ume_unidade_medidaDAO ume_unidade_medidaDAO = getUme_unidade_medidaDAO();\n List<Ume_unidade_medidaT> listTemp = ume_unidade_medidaDAO.getByPK( ume_unidade_medidaT);\t \n\n ume_unidade_medidaT= listTemp.size()>0?listTemp.get(0):new Ume_unidade_medidaT();\n \n } catch (Exception e) {\n e.printStackTrace();\n setMsg(\"Falha ao realizar consulta!\");\t\n } finally {\n\tclose();\n }\n }", "CartDO selectByPrimaryKey(Integer id);", "D getById(K id);", "Movimiento selectByPrimaryKey(Integer idMovCta);", "UvStatDay selectByPrimaryKey(Long id);", "Dormitory selectByPrimaryKey(Integer id);", "public ResponseEntity<GrupoDS> recuperarGrupoPorId(@ApiParam(value = \"ID do grupo.\",required=true) @PathVariable(\"id\") Long id) {\n Optional<GrupoModel> optional = grupoRepository.findById(id);\n if (optional != null) {\n \treturn new ResponseEntity<GrupoDS>(new GrupoDS(optional.get()), HttpStatus.OK);\n }\n return new ResponseEntity<GrupoDS>(HttpStatus.NOT_FOUND);\n }", "O obtener(PK id) throws DAOException;", "public DyMscMgwSccp selectByPrimaryKey(Date day, String mscid) {\r\n DyMscMgwSccp key = new DyMscMgwSccp();\r\n key.setDay(day);\r\n key.setMscid(mscid);\r\n DyMscMgwSccp record = (DyMscMgwSccp) getSqlMapClientTemplate().queryForObject(\"DY_MSC_MGW_SCCP.ibatorgenerated_selectByPrimaryKey\", key);\r\n return record;\r\n }", "public DVD(int id) {\n this.id = id;\n }", "public Vendedor getVendedor(Long id);", "public int getId()\r\n/* 53: */ {\r\n/* 54: 79 */ return this.idDetalleComponenteCosto;\r\n/* 55: */ }", "Prueba selectByPrimaryKey(Integer id);", "public DichVuBean getDV_iD(String iDDV) throws ClassNotFoundException, SQLException{\n\t\treturn dichVuDAO.getDV_iD(iDDV);\n\t}", "public Reporteador cargarDetalle(int idReporte)\r\n/* 197: */ {\r\n/* 198:214 */ return this.reporteadorDao.cargarDetalle(idReporte);\r\n/* 199: */ }", "public void findbyid() throws Exception {\n try {\n Con_contadorDAO con_contadorDAO = getCon_contadorDAO();\n List<Con_contadorT> listTemp = con_contadorDAO.getByPK( con_contadorT);\n\n con_contadorT= listTemp.size()>0?listTemp.get(0):new Con_contadorT();\n \n } catch (Exception e) {\n e.printStackTrace();\n setMsg(\"Falha ao realizar consulta!\");\t\n } finally {\n\tclose();\n }\n }", "Dish selectByPrimaryKey(String id);", "UploadStateRegDTO selectByPrimaryKey(Integer id);", "public Proveedor buscarPorId(Integer id) {\r\n\r\n if (id != 22 && id < 123) {\r\n\r\n return ServiceLocator.getInstanceProveedorDAO().find(id);\r\n }\r\n return null;\r\n\r\n }", "public long getDossierStatusId();", "public void addDvd(DVDDetails details) throws InvalidDvdIdException;", "UsuarioDetalle cargaDetalle(int id);", "public AnuncioDTO ObtenerAnuncioID(int id){\n AnuncioDTO anuncioDTO=null;\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(\"getById.Anuncio\"));\n ps.setInt(1, id);\n ResultSet rs = ps.executeQuery();\n while(rs.next()){\n \n TipoAnuncio tipoAnuncio = TipoAnuncio.valueOf(rs.getString(2));\n String titulo = rs.getString(3);\n String cuerpo = rs.getString(4);\n Date fechaPublicacion = new Date(rs.getDate(5).getTime());\n Date fechaFin=null;\n if(tipoAnuncio.equals(TipoAnuncio.Flash)){\n fechaFin = new Date(rs.getDate(6).getTime());\n }\n String emailPropietario = rs.getString(7);\n EstadoAnuncio estadoAnuncio = EstadoAnuncio.valueOf(rs.getString(8));\n \n ArrayList<String>temas = null;\n if(tipoAnuncio.equals(TipoAnuncio.Tematico))\n temas=new ArrayList<String>(Arrays.asList(rs.getString(9).split(\",\")));\n\n ArrayList<String>destinatarios = ObtenerDestinatariosAnuncio(id);\n anuncioDTO= new AnuncioDTO(id, tipoAnuncio, titulo, cuerpo, fechaPublicacion, fechaFin, emailPropietario, estadoAnuncio, temas, destinatarios);\n }\n }catch(Exception e){\n e.printStackTrace();\n }\n return anuncioDTO;\n }", "BeanPedido getPedido(UUID idPedido);", "public void setDossierId(long dossierId);", "public comercio portalComercioDatos(int idcomer) {\n comercio o = null;\n try {\n Connection conn = DriverManager.getConnection(CONN, USER, PASS);\n\n PreparedStatement st = conn.prepareStatement(\"select nombre, Informacion, direccion, telefono, redSocial, id_comercio, ruta, id_rubro\\n\"\n + \"from Comercios \\n\"\n + \"where id_comercio = ?\");\n st.setInt(1, idcomer);\n ResultSet rs = st.executeQuery();\n\n if (rs.next()) {\n\n String nombre = rs.getString(1);\n String Informacion = rs.getString(2);\n String direccion = rs.getString(3);\n String telefono = rs.getString(4);\n String redsocial = rs.getString(5);\n int id = rs.getInt(6);\n String imagen= rs.getString(7);\n int idr = rs.getInt(8);\n rubro r = new rubro(idr, \"\", true, \"\", \"\");\n o = new comercio(nombre, direccion, telefono, id, true, Informacion, redsocial, r, imagen);\n\n }\n\n st.close();\n conn.close();\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n return o;\n }", "CGcontractCredit selectByPrimaryKey(Integer id);", "public CalendarioFecha obtenerPorEvento(int id) throws Exception { \n\t \n\t\t CalendarioFecha datos = new CalendarioFecha(); \n\t\t Session em = sesionPostgres.getSessionFactory().openSession(); \t\n\t try { \t\n\t\t datos = (CalendarioFecha) em.get(CalendarioFecha.class, id); \n\t } catch (Exception e) { \n\t \n\t throw new Exception(e.getMessage(),e.getCause());\n\t } finally { \n\t em.close(); \n\t } \n\t \n\t return datos; \n\t}", "public Fornecedor BuscarPorID(int codigo) throws SQLException {\r\n\t\ttry {\r\n\t\t\tString query = \"select * from fornecedor where cd_fornecedor=?\";\r\n\t\t\tPreparedStatement preparedStatement = this.connection.prepareStatement(query);\r\n\t\t\tpreparedStatement.setInt(1, codigo);\r\n\r\n\t\t\tResultSet rs = preparedStatement.executeQuery();\r\n\t\t\tFornecedor fornecedor = new Fornecedor();\r\n\r\n\t\t\tif (rs.next()) {\r\n\t\t\t\tfornecedor.setCodigoFornecedor(rs.getInt(\"cd_fornecedor\"));\r\n\t\t\t\tfornecedor.setNomeLocal(rs.getString(\"nm_local\"));\r\n\t\t\t\tfornecedor.setValorFornecedor(rs.getDouble(\"vl_fornecedor\"));\r\n\t\t\t\tfornecedor.setQuantidadePeso(rs.getInt(\"qt_peso\"));\r\n\t\t\t\tfornecedor.setNomeFornecedor(rs.getString(\"nm_fornecedor\"));\r\n\t\t\t\tfornecedor.setDescricao(rs.getString(\"ds_descricao\"));\r\n\t\t\t}\r\n\r\n\t\t\treturn fornecedor;\r\n\t\t} catch (SQLException e) {\r\n\t\t\tthrow e;\r\n\t\t} finally {\r\n\t\t\tthis.connection.close();\r\n\t\t}\r\n\t}", "public Treatment consultarTratamiento(int id){\n Treatment tratamiento = null;\n String[] campos = {\"_id\",\"fecha\",\"tipoTratamiento\",\"hora\"};\n String[] args = {Integer.toString(id)};\n Cursor c = db.query(\"tratamiento\",campos,\"_id=?\",args,null,null,null);\n if(c.moveToFirst()){\n\n do{\n tratamiento = new Treatment(c.getInt(0),c.getString(1),c.getString(2));\n tratamiento.setHora(c.getString(3));\n }while(c.moveToNext());\n\n }\n return tratamiento;\n }", "public Cliente buscarClientePorDocumento(String id) throws ExceptionService {\n Optional<Cliente> verificar = repositorio.findById(Long.parseLong(id));\n if (verificar.isPresent()) { //verificamos que traiga un resultado\n Cliente cliente = verificar.get(); //con el get obtenemos del optional el objeto en este caso de tipo cliente\n return cliente;\n } else {\n throw new ExceptionService(\"no se encontro el cliente con el documento indicado\");\n }\n }", "Enfermedad selectByPrimaryKey(Integer idenfermedad);", "@GetMapping(\"/detalle-ordens/{id}\")\n @Timed\n public ResponseEntity<DetalleOrdenDTO> getDetalleOrden(@PathVariable Long id) {\n log.debug(\"REST request to get DetalleOrden : {}\", id);\n Optional<DetalleOrdenDTO> detalleOrdenDTO = detalleOrdenService.findOne(id);\n return ResponseUtil.wrapOrNotFound(detalleOrdenDTO);\n }", "public long getIdCadastroSelecionado(){\r\n \treturn idCadastroSelecionado;\r\n }", "Videogioco findVideogiocoById(int id);", "public Reporteador buscarPorId(Integer id)\r\n/* 192: */ {\r\n/* 193:209 */ return (Reporteador)this.reporteadorDao.buscarPorId(id);\r\n/* 194: */ }", "List<CustomerDDPay> selectCustomerDDPay(CustomerDDPay cddp);", "@Override\r\n\tpublic ConsigMetalDt findOne(int id) {\n\t\treturn consigMetalDtRepository.findOne(id);\r\n\t}", "@Override\n @Transactional(readOnly = true)\n public AdChoiseDTO findOne(Long id) {\n log.debug(\"Request to get AdChoise : {}\", id);\n AdChoise adChoise = adChoiseRepository.findOne(id);\n return adChoiseMapper.toDto(adChoise);\n }", "@Override\n\tpublic Marca obtener(int id) {\n\t\treturn marcadao.obtener(id);\n\t}", "Tipologia selectByPrimaryKey(BigDecimal id);", "public AsxDataVO findOne(String id) {\n\t\t return (AsxDataVO) mongoTemplate.findOne(new Query(Criteria.where(\"id\").is(id)), AsxDataVO.class); \r\n\t}", "@Override\r\n public ReactivoDTO obtener(Integer id) {\n return null;\r\n }", "@Override\n public CerereDePrietenie findOne(Long aLong) {\n// String SQL = \"SELECT id,id_1,id_2,status,datac\"\n// + \"FROM cereredeprietenie \"\n// + \"WHERE id = ?\";\n//\n// try (Connection conn = connect();\n// PreparedStatement pstmt = conn.prepareStatement(SQL)) {\n//\n// pstmt.setInt(1, Math.toIntExact(aLong));\n// ResultSet rs = pstmt.executeQuery();\n//\n// while(rs.next()) {\n// Long id = rs.getLong(\"id\");\n// Long id_1 = rs.getLong(\"id_1\");\n// Long id_2 = rs.getLong(\"id_2\");\n//\n// String status = rs.getString(\"status\");\n// LocalDateTime data = rs.getObject( 5,LocalDateTime.class);\n//\n// Utilizator u1=repository.findOne(id_1);\n// Utilizator u2=repository.findOne(id_2);\n//\n// CerereDePrietenie u =new CerereDePrietenie(u1,u2);\n// u.setId(id);\n// u.setStatus(status);\n// u.setData(data);\n// return u;\n// }\n//\n//\n// } catch (SQLException ex) {\n// System.out.println(ex.getMessage());\n// }\n//\n// return null;\n List<CerereDePrietenie> list=new ArrayList<>();\n findAll().forEach(list::add);\n for(CerereDePrietenie cerere: list){\n if(cerere.getId() == aLong)\n return cerere;\n }\n return null;\n }", "@Override\n public KlantBedrijf select(int id) {\n return null;\n }", "PrescriptionVerifyRecordDetail selectByPrimaryKey(String id);", "@Query(value = \"SELECT * FROM proveedor WHERE id=:id\", nativeQuery = true)\n public Proveedor obtenerPorId(@Param(\"id\") int id);", "Disease selectByPrimaryKey(Integer id);", "public void setDtVencimento(int dtVencimento) {\n this.dtVencimento = dtVencimento;\n }", "BusinessRepayment selectByPrimaryKey(String id);", "@Transactional(readOnly = true)\n public Optional<DRkDTO> findOne(Long id) {\n log.debug(\"Request to get DRk : {}\", id);\n return dRkRepository.findById(id).map(dRkMapper::toDto);\n }", "WayShopCateRoot selectByPrimaryKey(Integer id);", "public Objet getObjetById(int id){\n \n Objet ob=null;\n String query=\" select * from objet where id_objet=\"+id;\n \n try { \n Statement state = Connect.getInstance().createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);\n ResultSet res = state.executeQuery(query);\n while(res.next()) ob=new Objet(res.getInt(\"id_objet\"),res.getInt(\"id_user\"),res.getInt(\"qte\"),res.getString(\"types\"),res.getString(\"description\"));\n res.close();\n state.close();\n \n } catch (SQLException e) {\n e.printStackTrace();\n }\n \n return ob;\n }", "public Pedido select(Integer codigo) {\r\n\t\ttry (Connection con = db.getConnection()) {\r\n\r\n\t\t\tString sql = \"SELECT * FROM pedidos WHERE codigo = ?\";\r\n\r\n\t\t\tPreparedStatement cmd = con.prepareStatement(sql);\r\n\r\n\t\t\tcmd.setInt(1, codigo);\r\n\t\t\tResultSet rs = cmd.executeQuery();\r\n\r\n\t\t\tif (rs.next()) {\r\n\t\t\t\tPedido pedido = new Pedido();\r\n\t\t\t\tpedido.setCodigo(codigo);\r\n\t\t\t\tpedido.setCod_vend(rs.getInt(\"cod_vend\"));\r\n\t\t\t\tpedido.setCod_cli(rs.getInt(\"cod_cli\"));\r\n\t\t\t\tpedido.setData_pedido(rs.getDate(\"data_pedido\"));\r\n\t\t\t\tpedido.setData_entrega(rs.getDate(\"data_entrega\"));\r\n\t\t\t\tpedido.setFrete(rs.getDouble(\"frete\"));\r\n\t\t\t\tpedido.setStatus(Status_ped.valueOf(rs.getString(\"status\")));\r\n\t\t\t\t\r\n\t\t\t\tList<Item> itens = new ArrayList();\r\n\t\t\t\tsql = \"SELECT * FROM detalhes_pedidos WHERE cod_ped = ?\";\r\n\t\t\t\tcmd = con.prepareStatement(sql);\r\n\t\t\t\tcmd.setInt(1, codigo);\r\n\t\t\t\trs = cmd.executeQuery();\r\n\t\t\t\twhile(rs.next()){\r\n\t\t\t\t\tItem item = new Item();\r\n\t\t\t\t\titem.setCod_ped(rs.getInt(\"cod_ped\"));\r\n\t\t\t\t\titem.setProduto(ProdutoDAO.select(rs.getInt(\"cod_prod\")));\r\n\t\t\t\t\titem.setQuantidade(rs.getInt(\"quantidade\"));\r\n\t\t\t\t\titens.add(item);\r\n\t\t\t\t}\r\n\t\t\t\tpedido.setItens(itens);\r\n\t\t\t\t\r\n\t\t\t\treturn pedido;\r\n\t\t\t}\r\n\t\t\treturn null;\r\n\t\t} catch (Exception e) {\r\n\t\t\tthrow new RuntimeException(e);\r\n\t\t}\r\n\t}", "CCustomer selectByPrimaryKey(Integer id);", "@Override\n\tpublic car getById(int id) {\n\t\ttry{\n\t\t\tcar so=carDataRepository.getById(id);\n\t\t\t\n\t\t\treturn so;\n\t\t\t}\n\t\t\tcatch(Exception ex)\n\t\t\t{\n\t\t\t\tex.printStackTrace();\n\t\t\t\treturn null;\n\t\t\t}\n\t}", "CityDO selectByPrimaryKey(Integer id);", "public int getIdCandidatura(){\n return idCandidatura;\n }", "@Override\n\t@Transactional(readOnly = true)\n\tpublic ProdutoPedido buscarPorId(Long id) {\n\t\treturn dao.findById(id);\n\t}", "public Paciente get( Long id ) {\r\n\t\t\tlogger.debug(\"Retrieving codigo with id: \" + id);\r\n\t\t\t\r\n\t\t\t/*for (Paciente paciente:codigos) {\r\n\t\t\t\tif (paciente.getId().longValue() == id.longValue()) {\r\n\t\t\t\t\tlogger.debug(\"Found record\");\r\n\t\t\t\t\treturn paciente;\r\n\t\t\t\t}\r\n\t\t\t}*/\r\n\t\t\t\r\n\t\t\tlogger.debug(\"No records found\");\r\n\t\t\treturn null;\r\n\t\t}", "@Override\n public Object recuperarElemento(Class clase, long id) {\n Query query = database.query();\n query.constrain(clase);\n query.descend(\"id\").constrain(id);\n ObjectSet result = query.execute();\n if (result.hasNext())\n return result.next();\n else return null;\n }", "WizardValuationHistoryEntity selectByPrimaryKey(Integer id);", "@Override\n\tpublic Dates find(int id) {\n\t\tDates date = new Dates();\n\t\tString query = \"SELECT * FROM dates WHERE ID = ? \";\n\t\ttry {\n\t\t\tjava.sql.PreparedStatement statement = this.connect.prepareStatement(query);\n\t\t\tstatement.setInt(1, id);\n\t\t\tResultSet result = statement.executeQuery();\n\n\t\t\tif (result.first()) {\n\t\t\t\t\n\t\t\t\tdate = new Dates(id, result.getString(\"Dates\"));\n\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn date;\n\t}" ]
[ "0.6516871", "0.64433455", "0.635816", "0.62756604", "0.6218484", "0.619498", "0.61718893", "0.61507803", "0.61397916", "0.60835785", "0.60619897", "0.60448337", "0.5979608", "0.5928841", "0.58979523", "0.5896957", "0.58931607", "0.58820665", "0.5881075", "0.58700365", "0.5855539", "0.5833497", "0.58326364", "0.5817617", "0.580132", "0.5774655", "0.5771697", "0.5767587", "0.5756671", "0.5745762", "0.5739493", "0.5729399", "0.57167804", "0.5705014", "0.56976575", "0.5688493", "0.56883407", "0.5677622", "0.56668466", "0.56632864", "0.56520265", "0.5646168", "0.56369793", "0.56352913", "0.5634926", "0.5634637", "0.563134", "0.5622677", "0.5617158", "0.56019604", "0.55829173", "0.55826354", "0.5581703", "0.55776006", "0.5568552", "0.55670387", "0.55640686", "0.5559798", "0.5559795", "0.55396104", "0.5536549", "0.5534851", "0.55348057", "0.5532334", "0.5531475", "0.5531222", "0.5527599", "0.552397", "0.5519088", "0.5516761", "0.5516199", "0.5512008", "0.5510787", "0.55103946", "0.550893", "0.55083585", "0.55046225", "0.55016685", "0.5497807", "0.54924625", "0.54907876", "0.54845023", "0.54793835", "0.5478699", "0.5476378", "0.5474203", "0.5474065", "0.54660374", "0.5463402", "0.5457253", "0.5455054", "0.5453137", "0.5451156", "0.54485023", "0.54478085", "0.54422456", "0.54377574", "0.5437527", "0.5435796", "0.5428004" ]
0.6819827
0
Este metodo lista todos os registros de DvdCd
@Override public List<DvdCd> getAll() { logger.info("Listando todos os DVDs/CDs"); return itemRepository.findAll(UserServiceImpl.authenticated().getId()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void listarRegistros() {\n System.out.println(\"\\nLISTA DE TODOS LOS REGISTROS\\n\");\n for (persona ps: pd.listaPersonas()){\n System.out.println(ps.getId()+ \" \"+\n ps.getNombre()+ \" \"+\n ps.getAp_paterno()+ \" \"+ \n ps.getAp_materno()+ \" DIRECCION: \"+ \n ps.getDireccion()+ \" SEXO: \"+ ps.getSexo());\n }\n }", "public List<Consultor> getConsultores()\n\t{\n\t\tList<Consultor> nombres = new ArrayList<Consultor>();\n\t\tLinkedList<Consultor> tb = Consultor.findAll();\n\t\tfor(Consultor c : tb)\n\t\t{\n\t\t\tnombres.add(c);\n\t\t}\n\t\treturn nombres;\t\n\t}", "public void listarTodosLosVideojuegosRegistrados()\n {\n System.out.println(\"Videojuegos disponibles: \");\n for(Videojuegos videojuego : listaDeVideojuegos) {\n System.out.println(videojuego.getDatosVideojuego());\n }\n }", "public List<LocalCentroComercial> consultarLocalesCentroComercialRegistrados();", "public void consultarListaDeContatos() {\n\t\tfor (int i = 0; i < listaDeContatos.size(); i++) {\n\t\t\tSystem.out.printf(\"%d %s \\n\", i, listaDeContatos.get(i));\n\t\t}\n\t}", "public static void viewListOfRegistrants() {\n\t\tArrayList<Registrant> list_reg = getRegControl().listOfRegistrants();\r\n\t\tif (list_reg.size() == 0) {\r\n\t\t\tSystem.out.println(\"No Registrants loaded yet\\n\");\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\"List of registrants:\\n\");\r\n\t\t\tfor (Registrant registrant : list_reg) {\r\n\t\t\t\tSystem.out.println(registrant.toString());\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void remplireListeOptions(){\r\n bddOptions.add(\"id\");\r\n bddOptions.add(\"EnvoieMail\");\r\n bddOptions.add(\"MailPeriode\");\r\n bddOptions.add(\"PeriodeJour\");\r\n bddOptions.add(\"PeriodeHeure\");\r\n bddOptions.add(\"PeriodeLun\");\r\n bddOptions.add(\"PeriodeMar\");\r\n bddOptions.add(\"PeriodeMerc\");\r\n bddOptions.add(\"PeriodeJeu\");\r\n bddOptions.add(\"PeriodeVen\");\r\n bddOptions.add(\"PeriodeSam\");\r\n bddOptions.add(\"PeriodeDim\");\r\n }", "public List<ReceitaDTO> listarReceitas() {\n return receitaOpenHelper.listar();\n }", "public List<DIS001> findAll_DIS001();", "public Collection<OrdenCompra> traerTodasLasOrdenesDeCompra() {\n Collection<OrdenCompra> resultado = null;\n try {\n controlOC = new ControlOrdenCompra();\n bitacora.info(\"Registro OrdenCompra Iniciado correctamente\");\n resultado = controlOC.traerTodasLasOrdenesDeCompra();\n } catch (IOException ex) {\n bitacora.error(\"No se pudo iniciar el registro OrdenCompra por \" + ex.getMessage());\n }\n return resultado;\n }", "public List<String> verCarrito(){\n\t\treturn this.compras;\n\t}", "public List getReCaseReportRegs(ReCaseReportReg reCaseReportReg);", "public void listarCarros() {\n System.err.println(\"Carros: \\n\");\n if (carrosCadastrados.isEmpty()) {\n System.err.println(\"Nao existem carros cadastrados\");\n } else {\n System.err.println(Arrays.toString(carrosCadastrados.toArray()));\n }\n }", "public List<String> retornaDatasComprasDeClientes () {\n return this.contasClientes\n .values()\n .stream()\n .flatMap((Conta conta) -> conta.retornaDatasDasCompras().stream())\n .collect(Collectors.toList());\n }", "private void getAllIds() {\n try {\n ArrayList<String> NicNumber = GuestController.getAllIdNumbers();\n for (String nic : NicNumber) {\n combo_nic.addItem(nic);\n\n }\n } catch (Exception ex) {\n Logger.getLogger(ModifyRoomReservation.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public static ArrayList<String> getReglesNoms() throws IOException{\n return ctrl_Persistencia.llistaFitxers(\"@../../Dades\",\"regles\");\n }", "private String[] createDvdListWithIds() {\n if (dao.listAll().size() > 0) {\n //create string array set to the size of the dvds that exist\n String[] acceptable = new String[dao.listAll().size()];\n //index counter\n int i = 0;\n //iterate through dvds that exist\n for (DVD currentDVD : dao.listAll()) {\n //at the index set the current Dvd's id, a delimeter, and the title\n acceptable[i] = currentDVD.getId() + \", \" + currentDVD.getTitle();\n //increase the index counter\n i++;\n }\n //return the string array\n return acceptable;\n }\n return null;\n }", "private void listaContatos() throws SQLException {\n limpaCampos();\n DAOLivro d = new DAOLivro();\n livros = d.getLista(\"%\" + jTPesquisar.getText() + \"%\"); \n \n // Após pesquisar os contatos, executa o método p/ exibir o resultado na tabela pesquisa\n mostraPesquisa(livros);\n livros.clear();\n }", "public abstract List<String> getValidDescriptors();", "protected List<String> listaVociCorrelate() {\n return null;\n }", "@Override\n\tpublic List<RegistrationForm> findAll(int start, int num) {\n\t\tlogger.info(\"select all registration form\");\n\t\treturn rfi.findAll(start, num);\n\t}", "public List<ConceptoRetencionSRI> autocompletarConceptoRetencionIVASRI(String consulta)\r\n/* 550: */ {\r\n/* 551:583 */ String consultaMayuscula = consulta.toUpperCase();\r\n/* 552:584 */ List<ConceptoRetencionSRI> lista = new ArrayList();\r\n/* 553:586 */ for (ConceptoRetencionSRI conceptoRetencionSRI : getListaConceptoRetencionSRI()) {\r\n/* 554:587 */ if (((conceptoRetencionSRI.getCodigo().toUpperCase().contains(consultaMayuscula)) || \r\n/* 555:588 */ (conceptoRetencionSRI.getNombre().toUpperCase().contains(consultaMayuscula))) && \r\n/* 556:589 */ (conceptoRetencionSRI.getTipoConceptoRetencion().equals(TipoConceptoRetencion.IVA))) {\r\n/* 557:590 */ lista.add(conceptoRetencionSRI);\r\n/* 558: */ }\r\n/* 559: */ }\r\n/* 560:594 */ return lista;\r\n/* 561: */ }", "public String[] getListaDinastie() {\n\t\treturn WikiImperatoriRomaniPagina.getInstance().getElencoDinastie();\n\t}", "private void listaContatos() throws SQLException {\n limpaCampos();\n BdLivro d = new BdLivro();\n livros = d.getLista(\"%\" + jTPesquisar.getText() + \"%\");\n\n // Após pesquisar os contatos, executa o método p/ exibir o resultado na tabela pesquisa\n mostraPesquisa(livros);\n livros.clear();\n }", "public List<Consulta> listagemConsultas(){\r\n\t\tList<Consulta>col1;\r\n\t\tcol1=new ArrayList<Consulta>();\r\n\t\tfor (Consulta c : col){\r\n\t\t\tif (c.toString()!=null){\r\n\t\t\t\tcol1.add(c);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn col1;\r\n\t}", "public static List getAllNames() {\n List polovniautomobili = new ArrayList<>();\n try {\n CONNECTION = DriverManager.getConnection(URL, USERNAME, PASSWORD);\n String query = \"SELECT naziv FROM polovni\";\n try (PreparedStatement ps = CONNECTION.prepareStatement(query)) {\n ResultSet result = ps.executeQuery();\n while (result.next()) {\n String naziv = result.getString(\"naziv\");\n polovniautomobili.add(naziv);\n\n }\n\n ps.close();\n CONNECTION.close();\n }\n CONNECTION.close();\n } catch (SQLException ex) {\n Logger.getLogger(Register.class.getName()).log(Level.SEVERE, null, ex);\n }\n return polovniautomobili;\n }", "public List<String> getCaroserii() {\n SQLiteDatabase db = openHelper.getReadableDatabase();\n List<String> denumiri = new ArrayList<String>();\n String selectQuery = \"SELECT denumire FROM caroserii\";\n Cursor cursor = db.rawQuery(selectQuery, new String[]{});\n if (cursor.moveToFirst()) {\n do {\n String s = cursor.getString(0);\n denumiri.add(s);\n } while (cursor.moveToNext());\n }\n return denumiri;\n }", "public List<DetalleFacturaProveedorSRI> getListaDetalleFacturaProveedorSRI()\r\n/* 371: */ {\r\n/* 372:362 */ List<DetalleFacturaProveedorSRI> detalle = new ArrayList();\r\n/* 373:363 */ for (DetalleFacturaProveedorSRI dfpSRI : getFacturaProveedorSRI().getListaDetalleFacturaProveedorSRI()) {\r\n/* 374:364 */ if ((!dfpSRI.isEliminado()) && (dfpSRI.getTipoConceptoRetencion().equals(TipoConceptoRetencion.FUENTE))) {\r\n/* 375:365 */ detalle.add(dfpSRI);\r\n/* 376: */ }\r\n/* 377: */ }\r\n/* 378:368 */ return detalle;\r\n/* 379: */ }", "public List<Telefono> getTelefonos(String dni);", "public List<MotorCycle> getListMototCycleNameAndCylinder(){\r\n\t\treturn motorCycleDao.getListMotorNameAndCylinder();\r\n\t}", "List<Celda> obtenerCeldasValidas(Celda origen);", "public void consultaRadicacionesSegumiento() {\r\n try {\r\n ListSeguimientoRadicacionesConCita = Rad.ConsultasRadicacionYSeguimiento(2, mBsesion.codigoMiSesion());\r\n Conexion.Conexion.CloseCon();\r\n } catch (Exception e) {\r\n mbTodero.setMens(\"Error en el metodo '\" + this.getClass() + \".consultaRadicacionesSegumiento()' causado por: \" + e.getMessage());\r\n mbTodero.error();\r\n }\r\n\r\n }", "public ArrayList<DataRestaurante> listarRestaurantes(String patron) throws Exception;", "public List<DadosDiariosVO> validaSelecionaAcumuladoDadosDiarios(String ano) {\n\n\t\tList<DadosDiariosVO> listaDadosDiarios = validaSelecionaDetalhesDadosDiarios(ano);\n\n\t\tList<DadosDiariosVO> listaFiltradaDadosDiarios = new ArrayList<DadosDiariosVO>();\n\t\tList<DadosDiariosVO> listaFaturamentoDiario = new ArrayList<DadosDiariosVO>();\n\t\tList<DadosDiariosVO> listaFaturamentoAcumulado = new ArrayList<DadosDiariosVO>();\n\n\t\t/* Ordena a lista em EMITIDOS;EMITIDOS CANCELADOS;EMITIDOS RESTITUIDOS */\n\n\t\tfor (int i = 0; i < listaDadosDiarios.size(); i++) {\n\t\t\tString dataParaComparacao = listaDadosDiarios.get(i).getAnoMesDia();\n\n\t\t\tfor (int j = 0; j < listaDadosDiarios.size(); j++) {\n\n\t\t\t\tif (dataParaComparacao.equals(listaDadosDiarios.get(j).getAnoMesDia())) {\n\t\t\t\t\tDadosDiariosVO dados = new DadosDiariosVO();\n\t\t\t\t\tdados.setAnoMesDia(listaDadosDiarios.get(j).getAnoMesDia());\n\t\t\t\t\tdados.setProduto(listaDadosDiarios.get(j).getProduto());\n\t\t\t\t\tdados.setTipo(listaDadosDiarios.get(j).getTipo());\n\t\t\t\t\tdados.setValorDoDia(listaDadosDiarios.get(j).getValorDoDia());\n\n\t\t\t\t\tlistaFiltradaDadosDiarios.add(dados);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\touter: for (int i = listaFiltradaDadosDiarios.size() - 1; i >= 0; i--) {\n\t\t\tfor (int j = 0; j < listaFiltradaDadosDiarios.size(); j++) {\n\t\t\t\tif (listaFiltradaDadosDiarios.get(i).getAnoMesDia()\n\t\t\t\t\t\t.equalsIgnoreCase(listaFiltradaDadosDiarios.get(j).getAnoMesDia())\n\t\t\t\t\t\t&& listaFiltradaDadosDiarios.get(i).getProduto()\n\t\t\t\t\t\t\t\t.equalsIgnoreCase(listaFiltradaDadosDiarios.get(j).getProduto())\n\t\t\t\t\t\t&& listaFiltradaDadosDiarios.get(i).getTipo()\n\t\t\t\t\t\t\t\t.equalsIgnoreCase(listaFiltradaDadosDiarios.get(j).getTipo())\n\t\t\t\t\t\t&& listaFiltradaDadosDiarios.get(i).getValorDoDia()\n\t\t\t\t\t\t\t\t.equalsIgnoreCase(listaFiltradaDadosDiarios.get(j).getValorDoDia())) {\n\t\t\t\t\tif (i != j) {\n\n\t\t\t\t\t\tlistaFiltradaDadosDiarios.remove(i);\n\t\t\t\t\t\tcontinue outer;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t/* Ordena por data */\n\t\tCollections.sort(listaFiltradaDadosDiarios, DadosDiariosVO.anoMesDiaCoparator);\n\n\t\tString dataTemp = \"\";\n\t\tBigDecimal somaAcumulada = new BigDecimal(\"0.0\");\n\n\t\t/* abaixo a visao da faturamento de cada dia */\n\t\tDadosDiariosVO faturamentoDiario = new DadosDiariosVO();\n\n\t\ttry {\n\n\t\t\tfor (int i = 0; i <= listaFiltradaDadosDiarios.size(); i++) {\n\n\t\t\t\tif (i == 0) {\n\t\t\t\t\tdataTemp = listaFiltradaDadosDiarios.get(i).getAnoMesDia();\n\n\t\t\t\t\tfaturamentoDiario.setAnoMesDia(listaFiltradaDadosDiarios.get(i).getAnoMesDia());\n\t\t\t\t\tfaturamentoDiario.setProduto(listaFiltradaDadosDiarios.get(i).getProduto());\n\t\t\t\t\tfaturamentoDiario.setTipo(\"FATURAMENTO\");\n\t\t\t\t}\n\n\t\t\t\tif ((i != listaFiltradaDadosDiarios.size())\n\t\t\t\t\t\t&& dataTemp.equals(listaFiltradaDadosDiarios.get(i).getAnoMesDia())) {\n\n\t\t\t\t\tsomaAcumulada = new BigDecimal(listaFiltradaDadosDiarios.get(i).getValorDoDia()).add(somaAcumulada);\n\n\t\t\t\t} else {\n\t\t\t\t\tif (listaFiltradaDadosDiarios.size() == i) {\n\t\t\t\t\t\tfaturamentoDiario.setValorDoDia(somaAcumulada.toString());\n\t\t\t\t\t\tlistaFaturamentoDiario.add(faturamentoDiario);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tfaturamentoDiario.setValorDoDia(somaAcumulada.toString());\n\t\t\t\t\t\tlistaFaturamentoDiario.add(faturamentoDiario);\n\t\t\t\t\t}\n\n\t\t\t\t\tdataTemp = listaFiltradaDadosDiarios.get(i).getAnoMesDia();\n\t\t\t\t\tsomaAcumulada = new BigDecimal(listaFiltradaDadosDiarios.get(i).getValorDoDia());\n\n\t\t\t\t\tfaturamentoDiario = new DadosDiariosVO();\n\t\t\t\t\tfaturamentoDiario.setAnoMesDia(listaFiltradaDadosDiarios.get(i).getAnoMesDia());\n\t\t\t\t\tfaturamentoDiario.setProduto(listaFiltradaDadosDiarios.get(i).getProduto());\n\t\t\t\t\tfaturamentoDiario.setTipo(\"FATURAMENTO\");\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (IndexOutOfBoundsException ioobe) {\n\t\t\tSystem.err.println(\n\t\t\t\t\t\"VisãoExecutiva_Diaria_BO - método validaSelecionaAcumuladoDadosDiarios - adicionando dados fictícios...\");\n\t\t\tDadosDiariosVO dados = new DadosDiariosVO();\n\t\t\tdados.setAnoMesDia(\"2015-10-02\");\n\t\t\tdados.setProduto(\"TESTE\");\n\t\t\tdados.setTipo(\"FATURAMENTO\");\n\t\t\tdados.setValorDoDia(\"0.0\");\n\t\t\tlistaFaturamentoDiario.add(dados);\n\t\t\tSystem.err.println(\"... dados inseridos\");\n\t\t}\n\n\t\t/* abaixo construimos a visao acumulada */\n\t\tBigDecimal somaAnterior = new BigDecimal(\"0.0\");\n\t\tint quantidadeDias = 0;\n\t\tfor (int i = 0; i < listaFaturamentoDiario.size(); i++) {\n\n\t\t\tDadosDiariosVO faturamentoDiarioAcumulado = new DadosDiariosVO();\n\t\t\tif (i == 0) {\n\t\t\t\tfaturamentoDiarioAcumulado.setAnoMesDia(listaFaturamentoDiario.get(i).getAnoMesDia());\n\t\t\t\tfaturamentoDiarioAcumulado.setProduto(listaFaturamentoDiario.get(i).getProduto());\n\t\t\t\tfaturamentoDiarioAcumulado.setTipo(listaFaturamentoDiario.get(i).getTipo());\n\t\t\t\tfaturamentoDiarioAcumulado.setValorDoDia(listaFaturamentoDiario.get(i).getValorDoDia());\n\n\t\t\t\tsomaAnterior = somaAnterior.add(new BigDecimal(listaFaturamentoDiario.get(i).getValorDoDia()));\n\t\t\t\tquantidadeDias++;\n\t\t\t\tlistaFaturamentoAcumulado.add(faturamentoDiarioAcumulado);\n\n\t\t\t} else {\n\t\t\t\tfaturamentoDiarioAcumulado.setAnoMesDia(listaFaturamentoDiario.get(i).getAnoMesDia());\n\t\t\t\tfaturamentoDiarioAcumulado.setProduto(listaFaturamentoDiario.get(i).getProduto());\n\t\t\t\tfaturamentoDiarioAcumulado.setTipo(listaFaturamentoDiario.get(i).getTipo());\n\t\t\t\tfaturamentoDiarioAcumulado.setValorDoDia(\n\t\t\t\t\t\tsomaAnterior.add(new BigDecimal(listaFaturamentoDiario.get(i).getValorDoDia())).toString());\n\n\t\t\t\tsomaAnterior = somaAnterior.add(new BigDecimal(listaFaturamentoDiario.get(i).getValorDoDia()));\n\t\t\t\tquantidadeDias++;\n\t\t\t\tlistaFaturamentoAcumulado.add(faturamentoDiarioAcumulado);\n\t\t\t}\n\t\t}\n\n\t\tUteis uteis = new Uteis();\n\t\tString dataAtualSistema = new SimpleDateFormat(\"dd/MM/yyyy\").format(new Date(System.currentTimeMillis()));\n\t\tString dataCut[] = dataAtualSistema.split(\"/\");\n\t\tString mes_SO;\n\t\tmes_SO = dataCut[1];\n\n\t\t/* BP */\n\t\tList<FaturamentoVO> listaBP = dadosFaturamentoDetalhado;\n\t\tint mes_SO_int = Integer.parseInt(mes_SO);\n\t\tString bpMes = listaBP.get(0).getMeses()[mes_SO_int - 1];\n\t\tint diasUteis = uteis.retornaDiasUteisMes(mes_SO_int - 1);\n\t\tBigDecimal bpPorDia = new BigDecimal(bpMes).divide(new BigDecimal(diasUteis), 6, RoundingMode.HALF_DOWN);\n\n\t\tBigDecimal somaAnteriorBp = new BigDecimal(\"0.0\");\n\t\tfor (int i = 0; i < quantidadeDias; i++) {\n\t\t\tDadosDiariosVO faturamentoDiarioAcumulado = new DadosDiariosVO();\n\t\t\tif (i == 0) {\n\t\t\t\tfaturamentoDiarioAcumulado.setAnoMesDia(listaFaturamentoAcumulado.get(i).getAnoMesDia());\n\t\t\t\tfaturamentoDiarioAcumulado.setProduto(listaFaturamentoAcumulado.get(i).getProduto());\n\t\t\t\tfaturamentoDiarioAcumulado.setTipo(\"BP\");\n\t\t\t\tfaturamentoDiarioAcumulado.setValorDoDia(bpPorDia.toString());\n\n\t\t\t\tsomaAnteriorBp = somaAnteriorBp.add(bpPorDia);\n\t\t\t\tlistaFaturamentoAcumulado.add(faturamentoDiarioAcumulado);\n\n\t\t\t} else {\n\t\t\t\tfaturamentoDiarioAcumulado.setAnoMesDia(listaFaturamentoAcumulado.get(i).getAnoMesDia());\n\t\t\t\tfaturamentoDiarioAcumulado.setProduto(listaFaturamentoAcumulado.get(i).getProduto());\n\t\t\t\tfaturamentoDiarioAcumulado.setTipo(\"BP\");\n\n\t\t\t\tsomaAnteriorBp = somaAnteriorBp.add(bpPorDia);\n\n\t\t\t\tfaturamentoDiarioAcumulado.setValorDoDia(somaAnteriorBp.toString());\n\n\t\t\t\tlistaFaturamentoAcumulado.add(faturamentoDiarioAcumulado);\n\t\t\t}\n\t\t}\n\n\t\treturn listaFaturamentoAcumulado;\n\t}", "public List<EntradaDeMaterial> buscarEntradasDisponibles();", "public java.lang.String getDOCHBListResult() {\r\n return localDOCHBListResult;\r\n }", "public java.util.List<VDU> getVdusList() {\n return vdus_;\n }", "public void searchPorts() {\r\n try {\r\n Enumeration pList = CommPortIdentifier.getPortIdentifiers();\r\n System.out.println(\"Porta =: \" + pList.hasMoreElements());\r\n while (pList.hasMoreElements()) {\r\n portas = (CommPortIdentifier) pList.nextElement();\r\n if (portas.getPortType() == CommPortIdentifier.PORT_SERIAL) {\r\n System.out.println(\"Serial USB Port: \" + portas.getName());\r\n } else if (portas.getPortType() == CommPortIdentifier.PORT_PARALLEL) {\r\n System.out.println(\"Parallel Port: \" + portas.getName());\r\n } else {\r\n System.out.println(\"Unknown Port: \" + portas.getName());\r\n }\r\n portaCOM = portas.getName();\r\n }\r\n System.out.println(\"Porta escolhida =\" + portaCOM);\r\n } catch (Exception e) {\r\n System.out.println(\"*****Erro ao escolher a porta******\");\r\n }\r\n }", "public List<DvdCd> buscaPorFiltro(TipoFiltro tipoFiltro, String filtro){\n\t\tif(tipoFiltro.equals(TipoFiltro.TITULO)) {\n\t\t\tlogger.info(\"Buscando por filtro de titulo :\"+filtro);\n\t\t\treturn itemRepository.filtraPorTitulo(UserServiceImpl.authenticated().getId(), filtro);\n\t\t}\n\t\t\n\t\telse if (tipoFiltro.equals(TipoFiltro.MARCA)) {\n\t\t\tlogger.info(\"Buscando por filtro de marca: \"+filtro);\n\t\t\treturn itemRepository.filtraPorMarca(UserServiceImpl.authenticated().getId(), filtro);\n\t\t}\n\t\t\n\t\treturn itemRepository.findAll(UserServiceImpl.authenticated().getId());\n\t}", "public void listarCarpetas() {\n\t\tFile ruta = new File(\"C:\" + File.separator + \"Users\" + File.separator + \"ram\" + File.separator + \"Desktop\" + File.separator+\"leyendo_creando\");\n\t\t\n\t\t\n\t\tSystem.out.println(ruta.getAbsolutePath());\n\t\t\n\t\tString[] nombre_archivos = ruta.list();\n\t\t\n\t\tfor (int i=0; i<nombre_archivos.length;i++) {\n\t\t\t\n\t\t\tSystem.out.println(nombre_archivos[i]);\n\t\t\t\n\t\t\tFile f = new File (ruta.getAbsoluteFile(), nombre_archivos[i]);//SE ALMACENA LA RUTA ABSOLUTA DE LOS ARCHIVOS QUE HAY DENTRO DE LA CARPTEA\n\t\t\t\n\t\t\tif(f.isDirectory()) {\n\t\t\t\tString[] archivos_subcarpeta = f.list();\n\t\t\t\tfor (int j=0; j<archivos_subcarpeta.length;j++) {\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(archivos_subcarpeta[j]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t}", "public void searchAll() {\r\n\t\tconfiguracionUoDet = new ConfiguracionUoDet();\r\n\t\tidConfiguracionUoDet = null;\r\n\t\tidBarrio = null;\r\n\t\tidCiudad = null;\r\n\t\tidCpt = null;\r\n\t\tidDpto = null;\r\n\t\tmodalidadOcupacion = null;\r\n\t\tcodigoUnidOrgDep = null;\r\n\t\tdenominacion = null;\r\n\t\tllenarListado1();\r\n\t}", "public List<Consulta> getPorCPF(String cpf) throws BusinessException;", "public List<DetalleFacturaProveedorSRI> getListaDetalleIVAFacturaProveedorSRI()\r\n/* 382: */ {\r\n/* 383:372 */ List<DetalleFacturaProveedorSRI> detalle = new ArrayList();\r\n/* 384:373 */ for (DetalleFacturaProveedorSRI dfpSRI : getFacturaProveedorSRI().getListaDetalleFacturaProveedorSRI()) {\r\n/* 385:374 */ if ((!dfpSRI.isEliminado()) && (dfpSRI.getTipoConceptoRetencion().equals(TipoConceptoRetencion.IVA))) {\r\n/* 386:375 */ detalle.add(dfpSRI);\r\n/* 387: */ }\r\n/* 388: */ }\r\n/* 389:378 */ return detalle;\r\n/* 390: */ }", "@Override\n\tpublic synchronized List<Plantilla> findAll(String filtro){\n\t\tList<Plantilla> lista = new ArrayList<>();\n\t\tfor(Plantilla p:listaPlantillas()){\n\t\t\ttry{\n\t\t\t\tboolean pasoFiltro = (filtro==null||filtro.isEmpty())\n\t\t\t\t\t\t||p.getNombrePlantilla().toLowerCase().contains(filtro.toLowerCase());\n\t\t\t\tif(pasoFiltro){\n\t\t\t\t\tlista.add(p.clone());\n\t\t\t\t}\n\t\t\t}catch(CloneNotSupportedException ex) {\n\t\t\t\tLogger.getLogger(ServicioPlantillaImpl.class.getName()).log(null, ex);\n\t\t\t}\n\t\t}\n\t\tCollections.sort(lista, new Comparator<Plantilla>() {\n\n\t\t\t@Override\n\t\t\tpublic int compare(Plantilla o1, Plantilla o2) {\n\t\t\t\treturn (int) (o2.getId() - o1.getId());\n\t\t\t}});\n\t\t\n\t\treturn lista;\n\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 static ArrayList<String> getResultatNoms() throws IOException{\n return ctrl_Persistencia.llistaFitxers(\"@../../Dades\",\"resultats\");\n }", "public ArrayList getCaroserie(String denumire) {\n c = db.rawQuery(\"select firma, ute_id, cpi_id, concediu, sex_id, exp_id, principala from caroserii where denumire='\" + denumire + \"'\", new String[]{});\n ArrayList lista = new ArrayList();\n while (c.moveToNext()) {\n int firma = c.getInt(0);\n String utilizare = c.getString(1);\n int familie = c.getInt(2);\n int concediu = c.getInt(3);\n String sex = c.getString(4);\n String experienta = c.getString(5);\n int principala = c.getInt(6);\n lista.add(firma);\n lista.add(utilizare);\n lista.add(familie);\n lista.add(concediu);\n lista.add(sex);\n lista.add(experienta);\n lista.add(principala);\n }\n return lista;\n }", "public ArrayList<RdV> afficherRdV(LocalDate d1, LocalDate d2) {\n ArrayList<RdV> plage_RdV = new ArrayList();\n if (this.getAgenda() != null) {\n for (RdV elem_agenda : this.getAgenda()) {\n //si le rdv inscrit dans l'agenda est compris entre d1 et d2\n //d1<elem_agenda<d2 (OU d2<elem_agenda<d1 si d2<d1)\n if ((elem_agenda.getDate().isAfter(d1) && elem_agenda.getDate().isBefore(d2))\n || (elem_agenda.getDate().isAfter(d2) && elem_agenda.getDate().isBefore(d1))) {\n plage_RdV.add(elem_agenda);\n }\n }\n //on print la liste de rdv avant tri\n System.out.print(plage_RdV);\n //on print la liste de rdv avant tri\n System.out.print(\"\\n\");\n Collections.sort(plage_RdV);\n System.out.print(plage_RdV);\n\n }\n\n return plage_RdV;\n\n }", "private void registrarDetallesVenta() {\r\n\t\tdetalleEJB.registrarDetalleVenta(productosCompra, factura);\r\n\r\n\t\ttry {\r\n\r\n\t\t\taccion = \"Crear DetalleVenta\";\r\n\t\t\tString browserDetail = Faces.getRequest().getHeader(\"User-Agent\");\r\n\t\t\tauditoriaEJB.crearAuditoria(\"AuditoriaDetalleVenta\", accion, \"DT creada: \" + factura.getId(),\r\n\t\t\t\t\tsesion.getUser().getCedula(), browserDetail);\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t}", "public List<Vendedor> listarVendedor();", "public List<ConceptoRetencionSRI> autocompletarConceptoRetencionSRI(String consulta)\r\n/* 536: */ {\r\n/* 537:568 */ String consultaMayuscula = consulta.toUpperCase();\r\n/* 538:569 */ List<ConceptoRetencionSRI> lista = new ArrayList();\r\n/* 539:571 */ for (ConceptoRetencionSRI conceptoRetencionSRI : getListaConceptoRetencionSRI()) {\r\n/* 540:572 */ if (((conceptoRetencionSRI.getCodigo().toUpperCase().contains(consultaMayuscula)) || \r\n/* 541:573 */ (conceptoRetencionSRI.getNombre().toUpperCase().contains(consultaMayuscula))) && \r\n/* 542:574 */ (conceptoRetencionSRI.getTipoConceptoRetencion().equals(TipoConceptoRetencion.FUENTE))) {\r\n/* 543:575 */ lista.add(conceptoRetencionSRI);\r\n/* 544: */ }\r\n/* 545: */ }\r\n/* 546:579 */ return lista;\r\n/* 547: */ }", "public List<SelectItem>getListaCiudadOrigen(){\r\n\t\tList<SelectItem>selectItems= new ArrayList<SelectItem>();\r\n\t\tList<Ciudad>ciudades= ciudadEJB.listarCiudad();\r\n\t\tselectItems.add(new SelectItem(0,\"Seleccione una ciudad\"));\r\n\t\tfor (int i = 0; i < ciudades.size(); i++) {\r\n\t\t\t\r\n\t\t\tSelectItem se = new SelectItem(ciudades.get(i).getId(), ciudades.get(i).getNombre());\r\n\t\t\t\r\n\t\t\tselectItems.add(se);\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\treturn selectItems;\r\n\t\t\r\n\t}", "public List<DVDCategorie> listDVDCategorie();", "@Test\n\tpublic void validarPeticionListAllRegistros() {\n\t\t// Arrange\n\t\tint cantidadRegistros = 1;\n\t\t// Act\n\t\tList<Registro> registroRecuperados = (List<Registro>) registroService.listAllRegistro();\n\t\tint cantidadRegistrosRecuperdos = registroRecuperados.size();\n\t\t// Assert\n\t\tAssert.assertEquals(\"Valor recuperado es igual\", cantidadRegistrosRecuperdos, cantidadRegistros);\n\t}", "public ArrayList<String> ListDepartamentos(String faculdadeTemp) throws RemoteException;", "List<Seguimiento> listarSeguimientosxDocenteMateria(Integer fcdcId, Integer mtrId);", "public void listarExamesDaDisciplina(){\r\n System.out.println(\"Docentes da disciplina\");\r\n for(int i=0;i<exames.size();i++){\r\n System.out.println(exames.get(i).getDisciplina().getNome());\r\n }\r\n }", "@Override\n\tpublic List getListByResId(Integer resid) {\n\t\tString sql = \"select g.resid from GroupFunres g where resid = '\" + resid + \"'\";\n\t\tList list = this.queryForList(sql);\n\t\tList idList=new ArrayList();\n\t\tif (list != null && list.size() > 0) {\n\t\t\tfor(int i=0;i<list.size();i++){\n\t\t\t\tidList.add(list.get(i));\n\t\t\t}\n\t\t\treturn idList;\n\t\t}\n\t\treturn null;\n\t}", "private Doctor buscarDoctor() {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tint size = cbxDoctor.getSelectedItem().toString().length(); \r\n\t\t\t\t\t\tString cedula = (cbxDoctor.getSelectedItem().toString()).substring(size - 14, size - 1);\r\n\t\t\t\t\t\treturn (Doctor) Clinica.getInstance().findByCedula(cedula);\r\n\r\n\t\t\t\t\t}", "@Override\r\n public List<QuestaoDiscursiva> consultarTodosQuestaoDiscursiva()\r\n throws Exception {\n return rnQuestaoDiscursiva.consultarTodos();\r\n }", "private void CargarListaFincas() {\n listaFincas = controlgen.GetComboBox(\"SELECT '-1' AS ID, 'Seleccionar' AS DESCRIPCION\\n\" +\n \"UNION\\n\" +\n \"SELECT `id` AS ID, `descripcion` AS DESCRIPCION\\n\" +\n \"FROM `fincas`\\n\"+\n \"/*UNION \\n\"+\n \"SELECT 'ALL' AS ID, 'TODOS' AS DESCRIPCION*/\");\n \n Utilidades.LlenarComboBox(cbFinca, listaFincas, \"DESCRIPCION\");\n \n }", "List<Registration> allRegTrail(long idTrail);", "public ArrayList<Consulta> recuperaAllServicios() {\r\n\t\treturn servicioConsulta.recuperaAllServicios();\r\n\t}", "List<Materia> listarMateriasxCarrera(Integer fcdcId, Integer crrId);", "public Collection<String> listDevices();", "private void ListForeignDatei () {\n\n ForeignDataDbSource foreignDataDbSource = new ForeignDataDbSource();\n\n List<ForeignData> foreignDataList= foreignDataDbSource.getAllForeignData();\n Log.d(LOG_TAG,\"=============================================================\");\n\n for (int i= 0; i < foreignDataList.size(); i++){\n String output = \"Foreign_ID_Node: \"+ foreignDataList.get(i).getUid() +\n //\"\\n Status: \"+ foreignDataList.get(i).isChecked() +\n \"\\n Foto ID: \"+ foreignDataList.get(i).getFotoId() +\n \"\\n Punkt X: \"+ foreignDataList.get(i).getPunktX() +\n \"\\n Punkt Y: \"+ foreignDataList.get(i).getPunktY() +\n \"\\n IP: \"+ foreignDataList.get(i).getForeignIp() ;\n\n Log.d(LOG_TAG, output);\n }\n Log.d(LOG_TAG,\"=============================================================\");\n }", "public String[] DevuelvecabeceraRen(){\r\n\t\tString vec[]={\" \",\"id\",\"int\",\"-\",\"*\",\"/\",\"(\",\")\",\"$\",\"E\",\"T\",\"F\"};\r\n\t\treturn vec;\r\n\t\t\r\n\t}", "public void construirTercerSetDeDominiosReglaCompleja() {\n\n\t\tlabeltituloSeleccionDominios = new JLabel();\n\n\t\tcomboDominiosSet3ReglaCompleja = new JComboBox(dominio);// creamos el Tercer combo,y le pasamos un array de cadenas\n\t\tcomboDominiosSet3ReglaCompleja.setSelectedIndex(0);// por defecto quiero visualizar el Tercer item\n\t\titemscomboDominiosSet3ReglaCompleja = new JComboBox();// creamo el Tercer combo, vacio\n\t\titemscomboDominiosSet3ReglaCompleja.setEnabled(false);// //por defecto que aparezca deshabilitado\n\n\t\tlabeltituloSeleccionDominios.setText(\"Seleccione el Tercer Dominio de regla compleja\");\n\t\tpanelCentral.add(labeltituloSeleccionDominios);\n\t\tlabeltituloSeleccionDominios.setBounds(30, 30, 50, 20);\n\t\tpanelCentral.add(comboDominiosSet3ReglaCompleja);\n\t\tcomboDominiosSet1ReglaCompleja.setBounds(100, 30, 150, 24);\n\t\tpanelCentral.add(itemscomboDominiosSet3ReglaCompleja);\n\t\titemscomboDominiosSet3ReglaCompleja.setBounds(100, 70, 150, 24);\n\n\t\tpanelCentral.setBounds(10, 50, 370, 110);\n\n\t\t/* Creamos el objeto controlador, para manejar los eventos */\n\t\tControlDemoCombo controlDemoCombo = new ControlDemoCombo(this);\n\t\tcomboDominiosSet4ReglaCompleja.addActionListener(controlDemoCombo);// agregamos escuchas\n\n\t}", "public List<SelectItem> getInstituciones() {\r\n\t\tList<SelectItem> lista = new ArrayList<SelectItem>();\r\n\t\tlista.add(new SelectItem(0, \"TODAS\"));\r\n\t\ttry {\r\n\t\t\tfor (ColInstitucion ins : mngCon.findAllInstituciones()) {\r\n\t\t\t\tlista.add(new SelectItem(ins.getInsId(),ins.getInsNombre()));\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tMensaje.crearMensajeERROR(\"Error al cargar las Instituciones. \"\r\n\t\t\t\t\t+ e.getMessage());\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn lista;\r\n\t}", "public List<DietaBalanceada> consultar_dietaBalanceada();", "private ArrayList<Character> retornarListaCaracteres() {\n ArrayList<Character> validaciones = new ArrayList<Character>();\n validaciones.add('.');\n validaciones.add('/');\n validaciones.add('|');\n validaciones.add('=');\n validaciones.add('?');\n validaciones.add('¿');\n validaciones.add('´');\n validaciones.add('¨');\n validaciones.add('{');\n validaciones.add('}');\n validaciones.add(';');\n validaciones.add(':');\n validaciones.add('_');\n validaciones.add('^');\n validaciones.add('-');\n validaciones.add('!');\n validaciones.add('\"');\n validaciones.add('#');\n validaciones.add('$');\n validaciones.add('%');\n validaciones.add('&');\n validaciones.add('(');\n validaciones.add(')');\n validaciones.add('¡');\n validaciones.add(']');\n validaciones.add('*');\n validaciones.add('[');\n validaciones.add(',');\n validaciones.add('°');\n\n return validaciones;\n }", "public List<Departamento> obtenerInstancias() {\n List<Departamento> lstDepas = new ArrayList();\n if (conectado) {\n try {\n String Query = \"SELECT * FROM instancias ORDER BY nombre ASC\";\n Statement st = Conexion.createStatement();\n ResultSet resultSet;\n resultSet = st.executeQuery(Query);\n while (resultSet.next()) {\n Departamento depa = new Departamento();\n depa.setCodigo(resultSet.getString(\"codigo\"));\n depa.setNombre(resultSet.getString(\"nombre\"));\n depa.setJefe(resultSet.getString(\"jefe\"));\n lstDepas.add(depa);\n }\n Logy.m(\"Consulta de datos de las instancias: exitosa\");\n return lstDepas;\n\n } catch (SQLException ex) {\n Logy.me(\"Error!! en la consulta de datos en la tabla instancias\");\n return new ArrayList();\n }\n } else {\n Logy.me(\"Error!!! no se ha establecido previamente una conexion a la DB\");\n return lstDepas;\n }\n }", "List<Reservation> trouverlisteDeReservationAyantUneDateDenvoieDeMail();", "@Override\n\tpublic List<BeanDistrito> listar() {\n\t\tList<BeanDistrito> lista = new ArrayList<BeanDistrito>();\n\t\tBeanDistrito distrito = null;\n\t\tConnection con = MySQLDaoFactory.obtenerConexion();\n\t\ttry {\n\t\t\n\t\t\tString sql=\"SELECT * FROM t_distrito ORDER BY codDistrito\";\n\t\t\tStatement stmt = con.createStatement();\n\t\t\tResultSet rs = stmt.executeQuery(sql);\n\t\t\t\n\t\t\twhile(rs.next()){\n\t\t\t\tdistrito = new BeanDistrito();\n\t\t\t\tdistrito.setCodDistrito(rs.getInt(1));\n\t\t\t\tdistrito.setNombre(rs.getString(2));\n\t\t\t\t\n\t\t\t\tlista.add(distrito);\n\t\t\t}\n\t\t\tcon.close();\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\ttry {\n\t\t\t\tcon.close();\n\t\t\t} catch (SQLException e1) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te1.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn lista;\n\t}", "public List<Veiculo> listarTodosVeiculos(){\n\t\tList<Veiculo> listar = null;\n\t\t\n\t\ttry{\n\t\t\tlistar = veiculoDAO.listarTodosVeiculos();\n\t\t}catch(Exception e){\n\t\t\te.getMessage();\n\t\t}\n\t\treturn listar;\n\t}", "public ArrayList<String> Info_Disc_Pel_Compras(String genero) {\r\n ArrayList<String> Lista_nombre = Info_Disco_Pel_Rep4(genero);\r\n ArrayList<String> Lista_datos_compras = new ArrayList();\r\n String line;\r\n try (BufferedReader br = new BufferedReader(new FileReader(\"src/Archivos/Compra_Peliculas.txt\"))) {\r\n while ((line = br.readLine()) != null) {\r\n String[] info_disco_compra = line.split(\";\");\r\n for (int s = 0; s < Lista_nombre.size(); s++) {\r\n if (Lista_nombre.get(s).equals(info_disco_compra[3])) {\r\n Lista_datos_compras.add(info_disco_compra[3]);\r\n Lista_datos_compras.add(info_disco_compra[5]);\r\n }\r\n }\r\n }\r\n } catch (IOException ex) {\r\n System.out.println(ex);\r\n }\r\n return Lista_datos_compras;\r\n }", "public static List<Cliente> consultarCliente(String caracteres) {\n\t\treturn daocliente.consultarCliente(caracteres);\n\t}", "public List<String> getMarci() {\n List<String> denumiri = new ArrayList<String>();\n String selectQuery = \"SELECT denumire FROM marci\";\n Cursor cursor = db.rawQuery(selectQuery, new String[]{});\n if (cursor.moveToFirst()) {\n do {\n String s = cursor.getString(0);\n denumiri.add(s);\n } while (cursor.moveToNext());\n }\n return denumiri;\n }", "@Override\n public List<String> getFormattedRegNumForCarsWithColor(String vehicleColor) {\n List<String> retVal = new ArrayList<>();\n\n List<Slot> slots = getSlots();\n if (slots == null) {\n retVal.add(NOT_FOUND);\n return retVal;\n }\n\n String fromatedRegString = slots.stream()\n .filter(x -> x.getVehicle() != null && x.getVehicle().getColor().equals(vehicleColor))\n .map(y -> y.getVehicle().getRegistrationNumber())\n .collect(Collectors.joining(\", \"));\n\n if (fromatedRegString == null || \"\".equals(fromatedRegString)) {\n retVal.add(NOT_FOUND);\n } else {\n retVal.add(fromatedRegString);\n }\n\n return retVal;\n }", "public void llenadoDeCombos() {\n PerfilDAO asignaciondao = new PerfilDAO();\n List<Perfil> asignacion = asignaciondao.listar();\n cbox_perfiles.addItem(\"\");\n for (int i = 0; i < asignacion.size(); i++) {\n cbox_perfiles.addItem(Integer.toString(asignacion.get(i).getPk_id_perfil()));\n }\n \n }", "public static List<List<Object>> getDefaultDstDrugs() {\r\n \tList<List<Object>> drugs = new LinkedList<List<Object>>();\r\n \t\r\n \tString defaultDstDrugs = Context.getAdministrationService().getGlobalProperty(\"mdrtb.defaultDstDrugs\");\r\n \t\r\n \tif(StringUtils.isNotBlank(defaultDstDrugs)) {\r\n \t\t// split on the pipe\r\n \t\tfor (String drugString : defaultDstDrugs.split(\"\\\\|\")) {\r\n \t\t\t\r\n \t\t\t// now split into a name and concentration \r\n \t\t\tString drug = drugString.split(\":\")[0];\r\n \t\t\tString concentration = null;\r\n \t\t\tif (drugString.split(\":\").length > 1) {\r\n \t\t\t\tconcentration = drugString.split(\":\")[1];\r\n \t\t\t}\r\n \t\t\t\r\n \t\t\ttry {\r\n \t\t\t\t// see if this is a concept id\r\n \t\t\t\tInteger conceptId = Integer.valueOf(drug);\r\n \t\t\t\tConcept concept = Context.getConceptService().getConcept(conceptId);\r\n \t\t\t\t\r\n \t\t\t\tif (concept == null) {\r\n \t\t\t\t\tlog.error(\"Unable to find concept referenced by id \" + conceptId);\r\n \t\t\t\t}\r\n \t\t\t\t// add the concept/concentration pair to the list\r\n \t\t\t\telse {\r\n \t\t\t\t\taddDefaultDstDrugToMap(drugs, concept, concentration);\r\n \t\t\t\t}\r\n \t\t\t} \t\r\n \t\t\tcatch (NumberFormatException e) {\r\n \t\t\t\t// if not a concept id, must be a concept map\r\n \t\t\t\tConcept concept = Context.getService(MdrtbService.class).getConcept(drug);\r\n \t\t\t\t\r\n \t\t\t\tif (concept == null) {\r\n \t\t\t\t\tlog.error(\"Unable to find concept referenced by \" + drug);\r\n \t\t\t\t}\r\n \t\t\t\t// add the concept to the list\r\n \t\t\t\telse {\r\n \t\t\t\t\taddDefaultDstDrugToMap(drugs, concept, concentration);\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t}\r\n \t}\r\n \t\r\n \treturn drugs;\r\n }", "public List<Arresto> getArresto(String dni);", "public Collection getDemandasContribuyente() throws RemoteException, Exception {\n return this.demandasContribuyente;\n }", "private static void mostrarListaDeComandos() {\n System.out.println(\"Lista de comandos:\");\n for (int i = 0; i < comandos.length; i++){\n System.out.println(comandos[i]);\n }\n }", "public List<Madeira> buscaCidadesEstado(String estado);", "public static List<String> form_list() {\n\t try{\n\t Connection connection = getConnection();\n\n\t List<String> forms = new ArrayList<String>();\n\n\t try {\n\t PreparedStatement statement = connection.prepareStatement(\"SELECT DISTINCT form_name FROM template_fields\");\n\t ResultSet rs = statement.executeQuery();\n\n\t while (rs.next()) {\n\t String form = rs.getString(\"form_name\");\n\t forms.add(form);\n\t }\n\t statement.close();\n\t connection.close();\n\t } catch (SQLException ex) {\n\t ex.printStackTrace();\n\t }\n\n\t return forms;\n\t } catch (Exception e) {\n\t e.printStackTrace();\n\t return null;\n\t }\n\t }", "public HashSet<String> getAllDrugs(){\r\n\t\tlogger.info(\"* Get All PharmGKB Drugs... \");\t\t\r\n\t\tHashSet<String> drugList = new HashSet<String>();\r\n\t\tint nbAdded = 0;\r\n\t\ttry{\r\n\t\t\tGetPgkbDrugList myClientLauncher = new GetPgkbDrugList();\r\n\t\t\tdrugList = myClientLauncher.getList();\r\n\t\t}catch(Exception e){\r\n\t\t\tlogger.error(\"** PROBLEM ** Problem with PharmGKB web service specialSearch.pl 6\", e);\r\n\t\t}\r\n\t\tnbAdded = drugList.size();\r\n\t\tlogger.info((nbAdded)+\" drugs found.\");\r\n\t\treturn drugList;\r\n\t}", "List<Vehiculo>listar();", "private void getReconsentimientos(){\n mReconsentimientos = estudioAdapter.getListaReConsentimientoDensSinEnviar();\n //ca.close();\n }", "@Override\r\n public List<Registration> getRegistrationList(Long doctorId, Registration.Status stuats) {\n Doctor doctor = doctorDao.getOne(doctorId);\r\n List<Registration> registrationList;\r\n if (doctor.getDoctorType() == Doctor.Doctor_Type.Clinic_Boss) {\r\n List<Long> doctorList = Lists.newArrayList();\r\n doctorDao.findDocAndSubDoctorPage(doctorId).forEach(doc -> doctorList.add(doc.getId()));\r\n\r\n registrationList = registrationDao.findByDoctorIdAndStatusOrderByCreateOn(doctorList, stuats, DateUtils.getDayEndMaxTime());\r\n } else {\r\n registrationList = registrationDao.findByDoctorIdAndStatusOrderByCreateOn(doctorId, stuats, DateUtils.getDayEndMaxTime());\r\n }\r\n //现场挂号List\r\n List<Registration> localeRegList = Lists.newArrayList();\r\n //正在叫号微信List\r\n List<Registration> nowCallList = Lists.newArrayList();\r\n //已经过号微信List\r\n List<Registration> passWxList = Lists.newArrayList();\r\n //排队中微信List\r\n List<Registration> paiDuiWxList = Lists.newArrayList();\r\n\r\n long nowDate = new Date().getTime();\r\n registrationList.forEach(registration -> {\r\n //如果是微信排队\r\n if (registration.getRegistrationType() == Registration.RegistrationTypeEnum.WECHAT) {\r\n // 开始时间 >=现在 && 结束时间 <=现在 说明是 正在叫号队列\r\n if (registration.getCreateOn().getTime() <= nowDate && registration.getCompleteOn().getTime() >= nowDate) {\r\n nowCallList.add(registration);\r\n } else //开始时间 <现在 说明还没到预约时间 进入正常排队队列\r\n if (registration.getCreateOn().getTime() > nowDate) {\r\n paiDuiWxList.add(registration);\r\n } else //结束时间已经小于现在时间 说明 微信预约已经过号 进入过号队列\r\n if (registration.getCompleteOn().getTime() < nowDate) {\r\n passWxList.add(registration);\r\n }\r\n //如果是现场挂号\r\n } else {\r\n localeRegList.add(registration);\r\n }\r\n });\r\n // 微信排队和现场排队进行时间排序\r\n paiDuiWxList.addAll(localeRegList);\r\n paiDuiWxList.addAll(passWxList);\r\n paiDuiWxList.sort((o1, o2) -> {\r\n if (o1.getCreateOn().getTime() <= o2.getCreateOn().getTime()) {\r\n return -1;\r\n }\r\n return 0;\r\n });\r\n\r\n// nowCallList.addAll(passWxList);\r\n nowCallList.addAll(paiDuiWxList);\r\n\r\n return nowCallList.size() > 12 ? nowCallList.subList(0, 12) : nowCallList;\r\n }", "public void mostrarDatos() {\n\t\tSystem.out.println(\"DNI: \" + dni);\n\t\tSystem.out.println(\"Nombre: \" + nombre);\n\t\tdireccion.mostrarDatos();\n\t\tSystem.out.println(\"Telefono 1: \" + telefonos[0]);\n\t\tSystem.out.println(\"Telefono 2: \" + telefonos[1]);\n\t\tSystem.out.println(\"Fecha de Nacimiento: \" + fecha_nac.getDayOfMonth() + \"-\" + fecha_nac.getMonth() + \"-\"\n\t\t\t\t+ fecha_nac.getYear());\n\t\tcurso.mostrarDatos();\n\t\tSystem.out.println(\"Motrando todas las notas registradas:\");\n\t\tnotas.stream().forEach(notas -> notas.mostrarDatos());\n\t}", "public void PagarConsulta() {\n\t\tSystem.out.println(\"el patronato es gratiuto y no necesita pagar \");\r\n\t}", "@Override\n\tpublic List<Commande> getAll() {\n\n\t\ttry {\n\n\t\t\tps = this.connection.prepareStatement(\"SELECT * FROM commandes\");\n\n\t\t\trs = ps.executeQuery();\n\n\t\t\tList<Commande> listeCommandesBDD = new ArrayList<>();\n\t\t\tCommande commande = null;\n\n\t\t\twhile (rs.next()) {\n\n\t\t\t\tcommande = new Commande(rs.getInt(1), rs.getDate(2), rs.getInt(3));\n\t\t\t\tlisteCommandesBDD.add(commande);\n\n\t\t\t} // end while\n\n\t\t\treturn listeCommandesBDD;\n\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(\"...(CommandeDAOImpl) erreur de l'execution de getAll()...\");\n\t\t\te.printStackTrace();\n\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\trs.close();\n\t\t\t\tps.close();\n\t\t\t} catch (SQLException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t} // end finally\n\n\t\treturn null;\n\n\t}", "public String[] listarInstitutos();", "public ColecaoConsultas() {\r\n\t\tcol = new ArrayList<Consulta>();\r\n\t}", "public void listarProvincia() {\n provincias = JPAFactoryDAO.getFactory().getProvinciaDAO().find();\n// for(int i=0;i<provincias.size();i++ ){\n// System.out.println(\"lista:\"+provincias.get(i).getNombreprovincia());\n// }\n }", "@DISPID(10)\n\t// = 0xa. The runtime will prefer the VTID if present\n\t@VTID(19)\n\t@ReturnValue(type = NativeType.Dispatch)\n\tcom4j.Com4jObject list();", "public List<Mobibus> darMobibus();", "public List<DistinguishedName> getValidDN();", "@Override\r\n\tpublic List<relocationProject> listRelocation(relocationProject params) throws Exception {\n\t\tList<relocationProject> datalist= (List<relocationProject> )dao.findForList(\"RelocationProjectDao.get_rp_by_id\", params);\t\t\r\n\t\trelocationProject c=new relocationProject();\r\n\t\tSimpleDateFormat fmt = new SimpleDateFormat(\"yyyy-MM-dd\");\r\n\t\t for(int i=0;i<datalist.size();i++){\r\n\t\t\t c=datalist.get(i);\r\n\t\t\t convertTodata(c);//鏃ユ湡杞崲涓烘暟鍊兼牸寮�(\"yyyy-MM-dd\");\r\n\t\t\t }\r\n\t\treturn datalist;\r\n\t}" ]
[ "0.69704497", "0.59142673", "0.5837024", "0.5803179", "0.57393235", "0.5650391", "0.5605999", "0.5600491", "0.55954206", "0.55787766", "0.5571285", "0.5567562", "0.5559726", "0.5537597", "0.55296034", "0.5514353", "0.55038637", "0.5499336", "0.5497563", "0.54901904", "0.54767793", "0.54690784", "0.5464676", "0.54594857", "0.5454071", "0.5445481", "0.5427957", "0.54233193", "0.54136395", "0.5413133", "0.54048824", "0.53901315", "0.53877676", "0.53857946", "0.5357237", "0.5356273", "0.53466177", "0.5340631", "0.53391093", "0.532307", "0.5318", "0.5307323", "0.5305254", "0.53044486", "0.53012216", "0.5292672", "0.528639", "0.5285239", "0.52804023", "0.52680165", "0.5262873", "0.52593774", "0.5248167", "0.52464974", "0.52455616", "0.52427113", "0.52168757", "0.52099967", "0.5207072", "0.5204808", "0.52003616", "0.51982415", "0.5194358", "0.51900667", "0.5187575", "0.5175948", "0.51740277", "0.5169152", "0.516553", "0.51624674", "0.5146659", "0.51445925", "0.51420724", "0.51379335", "0.51366204", "0.5133211", "0.5131398", "0.51307064", "0.5127436", "0.51243883", "0.5121097", "0.51202816", "0.51201546", "0.51123327", "0.51102275", "0.51050115", "0.5102567", "0.5091793", "0.5089984", "0.5088883", "0.5087196", "0.5086159", "0.50854236", "0.508536", "0.50833166", "0.5082807", "0.50774443", "0.5077224", "0.507609", "0.5075708" ]
0.56075317
6
Este metodo edita um registro de DvdCd
@Override public DvdCd update(Integer dvdCdId, DvdCd dvdCdDetails) { DvdCd dvd_cd = (DvdCd) this.getById(dvdCdId); logger.info("Atualizando DVD/CD "+dvd_cd.getTitulo()); dvd_cd.setTitulo(dvdCdDetails.getTitulo()); dvd_cd.setPreco(dvdCdDetails.getPreco()); dvd_cd.setObservacoes(dvdCdDetails.getObservacoes()); dvd_cd.setConteudo(dvdCdDetails.getConteudo()); dvd_cd.setEstado(dvdCdDetails.getEstado()); dvd_cd.setMarca(dvdCdDetails.getMarca()); dvd_cd.setStatusDeUso(dvdCdDetails.isStatusDeUso()); DvdCd updatedDvdCd = itemRepository.save(dvd_cd); return updatedDvdCd; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void editar(Contato contato) {\n\t\tthis.dao.editar(contato);\n\t\t\n\t}", "public void editar() {\n try {\n ClienteDao fdao = new ClienteDao();\n fdao.Atualizar(cliente);\n\n JSFUtil.AdicionarMensagemSucesso(\"Cliente editado com sucesso!\");\n\n } catch (RuntimeException e) {\n JSFUtil.AdicionarMensagemErro(\"ex.getMessage()\");\n e.printStackTrace();\n }\n }", "public void editarProveedor() {\n try {\n proveedorFacadeLocal.edit(proTemporal);\n this.proveedor = new Proveedor();\n FacesContext.getCurrentInstance().addMessage(null, new FacesMessage(FacesMessage.SEVERITY_INFO, \"Proveedor editado\", \"Proveedor editado\"));\n } catch (Exception e) {\n \n }\n\n }", "@Override\n\tpublic void editDomanda(Long id, String newCatName) {\n\t\tDB db = getDB();\n\t\tMap<Long, Domanda> domande = db.getTreeMap(\"domande\");\n\t\tlong hash = id.hashCode();\n\t\tDomanda domanda = domande.get(hash);\n\t\tdomanda.getCat().setNome(newCatName);\n\t\tdomande.put(hash, domanda);\n\t\tdb.commit();\n\t}", "private void edit() {\n if (String.valueOf(tgl_pengobatanField.getText()).equals(null)\n || String.valueOf(waktu_pengobatanField.getText()).equals(null)) {\n Toast.makeText(getApplicationContext(),\n \"Ada Yang Belum Terisi\", Toast.LENGTH_SHORT).show();\n } else {\n SQLite.update(Integer.parseInt(idField.getText().toString().trim()),nama_pasien2,nama_dokter2, tgl_pengobatanField.getText().toString().trim(),waktu_pengobatanField.getText().toString(),\n keluhan_pasienField.getText().toString().trim(),hasil_diagnosaField.getText().toString().trim(),\n biayaField.getText().toString().trim());\n blank();\n finish();\n }\n }", "DenialReasonDto edit(int id, DenialReasonDto denialReason);", "public void editarData(){\n\t\talunoTurmaService.inserirAlterar(alunoTurmaAltera);\n\t\t\n\t\t\n\t\tmovimentacao.setDataMovimentacao(alunoTurmaAltera.getDataMudanca());\n\t\tmovimentacaoService.inserirAlterar(movimentacao);\n\t\t\n\t\tFecharDialog.fecharDialogDATAAluno();\n\t\tExibirMensagem.exibirMensagem(Mensagem.SUCESSO);\n\t\talunoTurmaAltera = new AlunoTurma();\n\t\tmovimentacao = new Movimentacao();\n\t\t\n\t\tatualizarListas();\n\t}", "public void edit() {\n\t\tlogger.debug(\"Entering IVR dtmf edit method...\");\n\t\tif (selectedDtmfId != null && selectedDtmfId.intValue() != -1) {\n\t\t\ttry {\n\t\t\t\tIvrDtmf entry = ivrDtmfDao.findById(selectedDtmfId);\n\t\t\t\tdtmfId = entry.getDtmfId();\n\t\t\t\tdtmfName = entry.getDtmfName();\n\t\t\t\tdtmfDigit = entry.getDtmfDigit();\n\t\t\t\tdtmfDescription = entry.getDtmfDescription();\n\t\t\t\tdtmfCreateDate = entry.getDtmfCreateDate();\n\t\t\t\tdtmfUpdateDate = entry.getDtmfUpdateDate();\n\t\t\t\tselectedDtmfId = -1;\n\t\t\t} catch (Exception ex) {\n\t\t\t\tlogger.error(\"Failed to fetch the element data from db, Cause: \"+ex.getMessage(), ex);\n\t\t\t\tFacesContext.getCurrentInstance().addMessage(null, new FacesMessage(\"Failed to fetch the element data from db, Cause: \"+ex.getMessage()));\n\t\t\t}\n\t\t} else {\n\t\t\treset();\n\t\t}\n\t}", "private void editDVD() throws DVDLibraryDaoException {\n view.displayEditDVDBanner();\n String title = view.getDVDChoice();\n DVD currentDVD = dao.removeDVD(title); \n //here I have the DVD I want to edit and it has been removed from the collection\n boolean done = false; //loop so I can edit all the fields I want\n\n while (!done) {\n int selection = view.printEditMenuAndGetSelection();\n\n switch (selection) {\n case 1: //releasDate\n String releaseDate = view.editDVDField(\"Please enter updated release date\");\n currentDVD.setReleaseDate(releaseDate);\n break;\n case 2: //rating\n String rating = view.editDVDField(\"Please enter updated MPAA rating\");\n currentDVD.setMPAArating(rating);\n break;\n case 3: //director\n String directorName = view.editDVDField(\"Please enter the director's name\");\n currentDVD.setDirectorName(directorName);\n break;\n case 4: //studio\n String studio = view.editDVDField(\"Please enter the studio\");\n currentDVD.setStudio(studio);\n break;\n case 5: //notes\n String userNotes = view.editDVDField(\"Add additional notes if desired\");\n currentDVD.setUserNotes(userNotes);\n break;\n case 6:\n done = true;\n break;\n }\n }\n dao.addDVD(title, currentDVD); //adds DVD back to collection and writes t0 file\n view.displayEditSuccessBanner();\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\n\tpublic void editar(ProdutoPedido produtoPedido) {\n\t\tdao.update(produtoPedido);\n\t}", "public String edit(Entidades entidade) {\n\t\tif(verificaPermissao()) {\n\t\t\tEntidadesDAO.saveOrUpdate(entidade);\n\t\t\tthis.entidades = new Entidades();\n\t\t}\n\t\treturn \"/Consulta/consulta_entidades\";\n\t}", "public String editar()\r\n/* 86: */ {\r\n/* 87:112 */ if (getDimensionContable().getId() != 0)\r\n/* 88: */ {\r\n/* 89:113 */ this.dimensionContable = this.servicioDimensionContable.cargarDetalle(this.dimensionContable.getId());\r\n/* 90:114 */ String[] filtro = { \"indicadorValidarDimension\" + getDimension(), \"true\" };\r\n/* 91:115 */ this.listaCuentaContableBean.agregarFiltro(filtro);\r\n/* 92:116 */ this.listaCuentaContableBean.setIndicadorSeleccionarTodo(true);\r\n/* 93:117 */ verificaDimension();\r\n/* 94:118 */ setEditado(true);\r\n/* 95: */ }\r\n/* 96: */ else\r\n/* 97: */ {\r\n/* 98:120 */ addInfoMessage(getLanguageController().getMensaje(\"msg_info_seleccionar\"));\r\n/* 99: */ }\r\n/* 100:123 */ return \"\";\r\n/* 101: */ }", "@Override\n public void edit(ReporteAccidente rep) {\n repr.save(rep);\n }", "private void edit() {\n\n\t}", "public String editar()\r\n/* 59: */ {\r\n/* 60: 74 */ if ((getMotivoLlamadoAtencion() != null) && (getMotivoLlamadoAtencion().getIdMotivoLlamadoAtencion() != 0)) {\r\n/* 61: 75 */ setEditado(true);\r\n/* 62: */ } else {\r\n/* 63: 77 */ addInfoMessage(getLanguageController().getMensaje(\"msg_info_seleccionar\"));\r\n/* 64: */ }\r\n/* 65: 79 */ return \"\";\r\n/* 66: */ }", "boolean editEntry(String id, String val, String colName) throws Exception;", "@Override\n\tpublic Integer edit(SocialInsuranceRecord insuranceRecord, Integer id) {\n\t\treturn dao.updateByPrimaryKey(insuranceRecord, id);\n\t}", "@Override\r\n\tpublic void edit() {\n\t\t\r\n\t}", "@Override\n public void editar(EntidadeBase entidade) throws EditarEntidadeException, ValidacaoEntidadeException, Exception {\n setOperacao(OPERACAO_EDITAR);\n // validar se os campos vêm todos bem preenchidos\n boolean isValido = validarCampos(entidade);\n\n // se estiver bem preenchido,\n // avança para a edição\n if (isValido) {\n\n lista.put(entidade.getCodigo(), entidade);\n } else {\n // senão, retorna erro\n throw new EditarEntidadeException();\n }\n }", "@Override\n\tpublic Cliente editarCliente(Integer idcliente) {\n\t\treturn clienteDao.editarCliente(idcliente);\n\t}", "void edit(Price Price);", "public Boolean edit(Paciente codigo) {\r\n\t\t\tlogger.debug(\"Editing codigo with id: \" + codigo.getId());\r\n\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\t/*for (Paciente p:codigos) {\r\n\t\t\t\t\tif (p.getId().longValue() == codigo.getId().longValue()) {\r\n\t\t\t\t\t\tlogger.debug(\"Found record\");\r\n\t\t\t\t\t\tcodigos.remove(p);\r\n\t\t\t\t\t\tcodigos.add(codigo);\r\n\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t}\r\n\t\t\t\t}*/\r\n\t\t\t\t\r\n\t\t\t\tlogger.debug(\"No records found\");\r\n\t\t\t\treturn false;\r\n\t\t\t\t\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tlogger.error(e);\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}", "private void btnEditActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnEditActionPerformed\n boolean flag = this.cutiController.save(txtCutiID.getText(), (txtTglAwal.getText()), (txtTglAkhir.getText()),\n txtKet.getText(), cmbCutiKhususID.getSelectedIndex());\n String message = \"Failed to edit data\";\n if (flag){\n message = \"Success to edit data\";\n }\n JOptionPane.showMessageDialog(this, message, \"Notification\", JOptionPane.INFORMATION_MESSAGE);\n bindingTable();\n reset();\n }", "boolean edit(InvoiceDTO invoiceDTO);", "private void editarResidencia(Residencias residencia, Residenciasobservaciones obs) {\n\t\t\n\t\t\n\t\tif(obs==null) {\t\t\t\t\n\t\t\thibernateController.updateResidencia(residencia);\t\t\t\n\t\t\t\n\t\t}else {\t\t\t\n\t\t\thibernateController.updateResidenciaObservacion(residencia, obs);\n\t\t}\n\t\t\n\t\tupdateContent();\t\n\t\t\n\t}", "BaseRecord editRecord(String id, String fieldName, String newValue, String clientId) throws Exception;", "@Override\r\npublic int update(Detalle_pedido d) {\n\treturn detalle_pedidoDao.update(d);\r\n}", "public void editar(AplicacionOferta aplicacionOferta){\n try{\n aplicacionOfertaDao.edit(aplicacionOferta);\n }catch(Exception e){\n Logger.getLogger(AplicacionOfertaServicio.class.getName()).log(Level.SEVERE, null, e);\n }\n }", "@Override\n public DVD editDVD(String title, String directorsName, DVD editedDVD) \n throws DVDLibraryDaoException{\n loadDVDLibrary();\n for (int i = 0; i < dvds.size(); i++) {\n if (dvds.get(i).getTitle().equalsIgnoreCase(title) &&\n dvds.get(i).getDirectorsName().equalsIgnoreCase(directorsName)) {\n dvds.set(i, editedDVD);\n writeDVDLibrary();\n return dvds.get(i);\n }\n }\n return null;\n }", "@Override\r\n\tpublic void edit(SecondCategory scategory) {\n\t\tscategory.setIs_delete(0);\r\n\t\tscategoryDao.update(scategory);\r\n\t}", "public void editar(String update){\n try {\n Statement stm = Conexion.getInstancia().createStatement();\n stm.executeUpdate(update);\n }\n catch (Exception ex){\n ex.printStackTrace();\n }\n }", "public void editarAlimento(int id_alimento, String nombre, String estado, float caloria, float proteinas,float grasas ,float hidratos_de_carbono, float H20, float NE, float vitamina_a, float vitamina_B1, float vitamina_B2, float vitamina_C, float Niac, float sodio, float potasio, float calcio, float magnesio, float cobre, float hierro, float fosforo, float azufre, float cloro, float Fen, float Ileu, float Leu, float Lis, float Met, float Tre, float Tri, float Val, float Acid, float AlCAL);", "public static void editarEstudiante(Estudiante estudiante) {\r\n //metimos este método a la base de datos\r\n try {\r\n Class.forName(\"com.mysql.jdbc.Driver\");\r\n Connection conexion = DriverManager.getConnection(\"jdbc:mysql://localhost/registrolaboratorios\", \"root\", \"admin\");\r\n System.out.print(\"Conexion establecida!\");\r\n Statement sentencia = conexion.createStatement();\r\n int insert = sentencia.executeUpdate(\"update docente set \"\r\n + \"Nro_de_ID='\" + estudiante.getNro_de_ID()\r\n + \"',Nombres='\" + estudiante.getNombres()\r\n + \"',Apellidos='\" + estudiante.getApellidos()\r\n + \"',Laboratorio='\" + estudiante.getLaboratorio()\r\n + \"',Carrera='\" + estudiante.getCarrera()\r\n + \"',Modulo='\" + estudiante.getModulo()\r\n + \"',Materia='\" + estudiante.getMateria()\r\n + \"',Fecha='\" + estudiante.getFecha()\r\n + \"',Hora_Ingreso='\" + estudiante.getHora_Ingreso()\r\n + \"',Hora_salida='\" + estudiante.getHora_Salida()\r\n + \"'where Nro_de_ID='\" + estudiante.getNro_de_ID() + \"';\");\r\n\r\n sentencia.close();\r\n conexion.close();\r\n\r\n } catch (Exception ex) {\r\n System.out.print(\"Error en la conexion\" + ex);\r\n }\r\n }", "@Override\r\n public ExpedienteGSMDTO editarExpedienteOrdenServicio(ExpedienteGSMDTO expedienteDTO, String codigoTipoSupervisor, PersonalDTO personalDest, UsuarioDTO usuarioDTO) throws ExpedienteException {\r\n LOG.error(\"editarExpediente\");\r\n ExpedienteGSMDTO retorno= new ExpedienteGSMDTO();\r\n try {\r\n PghExpediente registro = crud.find(expedienteDTO.getIdExpediente(), PghExpediente.class);\r\n registro.setIdFlujoSiged(new PghFlujoSiged(expedienteDTO.getFlujoSiged().getIdFlujoSiged()));\r\n registro.setIdProceso(new PghProceso(expedienteDTO.getProceso().getIdProceso()));\r\n registro.setIdObligacionTipo(new PghObligacionTipo(expedienteDTO.getObligacionTipo().getIdObligacionTipo()));\r\n registro.setAsuntoSiged(expedienteDTO.getAsuntoSiged());\r\n registro.setIdUnidadSupervisada(new MdiUnidadSupervisada(expedienteDTO.getUnidadSupervisada().getIdUnidadSupervisada()));\r\n registro.setIdEmpresaSupervisada(new MdiEmpresaSupervisada(expedienteDTO.getEmpresaSupervisada().getIdEmpresaSupervisada()));\r\n registro.setDatosAuditoria(usuarioDTO);\r\n if(expedienteDTO.getObligacionSubTipo()!=null && expedienteDTO.getObligacionSubTipo().getIdObligacionSubTipo()!=null){\r\n registro.setIdObligacionSubTipo(new PghObligacionSubTipo(expedienteDTO.getObligacionSubTipo().getIdObligacionSubTipo()));\r\n }else{\r\n registro.setIdObligacionSubTipo(null);\r\n }\r\n crud.update(registro);\r\n retorno = ExpedienteGSMBuilder.toExpedienteDto(registro); \r\n \r\n Long idLocador=codigoTipoSupervisor.equals(Constantes.CODIGO_TIPO_SUPERVISOR_PERSONA_NATURAL)?expedienteDTO.getOrdenServicio().getLocador().getIdLocador():null;\r\n Long idSupervisoraEmpresa=codigoTipoSupervisor.equals(Constantes.CODIGO_TIPO_SUPERVISOR_PERSONA_JURIDICA)?expedienteDTO.getOrdenServicio().getSupervisoraEmpresa().getIdSupervisoraEmpresa():null;\r\n \r\n String flagConfirmaTipoAsignacion=(!StringUtil.isEmpty(expedienteDTO.getFlagEvaluaTipoAsignacion())?Constantes.ESTADO_ACTIVO:null);\r\n OrdenServicioDTO OrdenServicioDTO=ordenServicioDAO.editarExpedienteOrdenServicio(expedienteDTO.getOrdenServicio().getIdOrdenServicio(), expedienteDTO.getOrdenServicio().getIdTipoAsignacion(), codigoTipoSupervisor, idLocador, idSupervisoraEmpresa, usuarioDTO,flagConfirmaTipoAsignacion);\r\n \r\n EstadoProcesoDTO estadoProcesoDto=estadoProcesoDAO.find(new EstadoProcesoFilter(Constantes.IDENTIFICADOR_ESTADO_PROCESO_OS_REGISTRO)).get(0);\r\n MaestroColumnaDTO tipoHistoricoOS=maestroColumnaDAO.findMaestroColumna(Constantes.DOMINIO_TIPO_COMPONENTE, Constantes.APLICACION_INPS, Constantes.CODIGO_TIPO_COMPONENTE_ORDEN_SERVICIO).get(0);\r\n HistoricoEstadoDTO historicoEstadoOS=historicoEstadoDAO.registrar(null, OrdenServicioDTO.getIdOrdenServicio(), estadoProcesoDto.getIdEstadoProceso(), expedienteDTO.getPersonal().getIdPersonal(), personalDest.getIdPersonal(), tipoHistoricoOS.getIdMaestroColumna(),null,null, null, usuarioDTO); \r\n LOG.info(\"historicoEstadoOS:\"+historicoEstadoOS);\r\n \r\n retorno.setOrdenServicio(new OrdenServicioDTO(OrdenServicioDTO.getIdOrdenServicio(),OrdenServicioDTO.getNumeroOrdenServicio()));\r\n \r\n }catch(Exception e){\r\n LOG.error(\"error en editarExpediente\",e);\r\n throw new ExpedienteException(e.getMessage(), e);\r\n }\r\n return retorno;\r\n }", "public void editHandler(View v) {\n LinearLayout vwParentRow = (LinearLayout)v.getParent();\n TextView id =(TextView) vwParentRow.findViewById(R.id._id);\n Intent intent = new Intent(Hates.this, Formulario.class);\n\n intent.putExtra(C_MODO, C_EDITAR);\n intent.putExtra(C_TIPO, love_hate);\n intent.putExtra(mDbHelper.ID, Long.valueOf((String)id.getText()));\n\n\n this.startActivityForResult(intent, C_EDITAR);\n }", "public void editOperation() {\n\t\t\r\n\t}", "@Override\r\n\tpublic String modificarCiudad(CiudadVO ciudad) {\n\t\ttry {\r\n\t\t\tConnection connection = null;\r\n\t\t\tconnection = crearConexion(connection);\r\n\t\t\tString query = \"UPDATE CIUDADES SET NOMBRE = ?, PAIS_ID = ? WHERE ID = ?\";\r\n\t\t\tPreparedStatement statement = connection.prepareStatement(query);\r\n\t\t\tstatement.setString(1, ciudad.getNombre());\r\n\t\t\tstatement.setInt(2, ciudad.getPais_id());\r\n\t\t\tstatement.setInt(3, ciudad.getId());\r\n\t\t\tSystem.out.println(this.getClass() + \" -> MiSQL-> \" + query);\r\n\t\t\tstatement.executeUpdate();\r\n\t\t\tResultSet resultSet = statement.getResultSet();\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tcerrarConexion(resultSet, statement, connection);\r\n\t\t\treturn \"1\";\r\n\t\t\t}catch(Exception ex) {\r\n\t\t\t\tex.printStackTrace();\r\n\t\t\t\tSystem.out.println(\"Error en el DAO\");\r\n\t\t\t\treturn \"0\";\r\n\t\t\t}\r\n\t\t\t\r\n\t}", "@Test\n public void testEdit() {\n lib.addDVD(dvd1);\n lib.addDVD(dvd2);\n \n dvd1.setTitle(\"Ghostbusters II\");\n lib.edit(dvd1);\n \n Assert.assertEquals(\"Ghostbusters II\", lib.getById(0).getTitle());\n }", "public Equipamento editar(Equipamento eq) {\r\n\t\t\tthis.conexao.abrirConexao();\r\n\t\t\tString sqlUpdate = \"UPDATE equipamentos SET nome=?,descricao=?, id_usuario=? WHERE id_equipamentos=?\";\r\n\t\t\ttry {\r\n\t\t\t\tPreparedStatement statement = (PreparedStatement) this.conexao.getConexao().prepareStatement(sqlUpdate);\r\n\t\t\t\tstatement.setString(1, eq.getNome());\r\n\t\t\t\tstatement.setString(2, eq.getDescricao());\r\n\t\t\t\tstatement.setLong(3, eq.getUsuario().getId());\r\n\t\t\t\tstatement.setLong(4, eq.getId());\r\n\t\t\t\t/*int linhasAfetadas = */statement.executeUpdate();\r\n\t\t\t\t\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t} finally {\r\n\t\t\t\tthis.conexao.fecharConexao();\r\n\t\t\t}\r\n\t\t\treturn eq;\r\n\t\t}", "@FXML\r\n private void editar(ActionEvent event) {\n selecionado = tabelaCliente.getSelectionModel()\r\n .getSelectedItem();\r\n\r\n //Se tem algum cliente selecionado\r\n if (selecionado != null) { //tem clienteonado\r\n //Pegar os dados do cliente e jogar nos campos do\r\n //formulario\r\n textFieldNumeroCliente.setText(\r\n String.valueOf( selecionado.getIdCliente() ) );\r\n textfieldNome.setText( selecionado.getNome() ); \r\n textFieldEmail.setText(selecionado.getEmail());\r\n textFieldCpf.setText(selecionado.getCpf());\r\n textFieldRg.setText(selecionado.getRg());\r\n textFieldRua.setText(selecionado.getRua());\r\n textFieldCidade.setText(selecionado.getCidade());\r\n textFieldBairro.setText(selecionado.getBairro());\r\n textFieldNumeroCasa.setText(selecionado.getNumeroCasa());\r\n textFieldDataDeNascimento.setValue(selecionado.getDataNascimemto());\r\n textFieldTelefone1.setText(selecionado.getTelefone1());\r\n textFieldTelefone2.setText(selecionado.getTelefone2());\r\n textFieldCep.setText(selecionado.getCep());\r\n \r\n \r\n \r\n }else{ //não tem cliente selecionado na tabela\r\n mensagemErro(\"Selecione um cliente.\");\r\n }\r\n\r\n }", "@FXML\n public void alteraCidade(){\n \tCidade sel = tblCidade.getSelectionModel().getSelectedItem();\n \t\n \tif(sel!=null){\n \t\tsel.setNome(txtNome.getText());\n \t\tsel.setUf(txtUf.getSelectionModel().getSelectedItem());\n \t\tsel.altera(conn);\n \t\tattTblCidade();\n \t\tlimpaCidade();\n \t}else{\n \t\tMensagens.msgErro(\"FALHA\", \"Selecione uma cidade\");\n \t}\n }", "@Override\n\tpublic String editDoctor(String doctor) {\n\t\treturn null;\n\t}", "public void updateDoctor() {\n\n\t\tSystem.out.println(\"\\n----Update Doctor----\");\n\t\tSystem.out.print(\"\\nEnter Doctor Id : \");\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tString did = sc.nextLine();\n\n\t\tMap<String, String> map = null;\n\t\ttry {\n\t\t\tmap = doctorDao.searchById(did);\n\t\t} catch (SQLException e) {\n\t\t\tlogger.info(e.getMessage());\n\t\t\treturn;\n\t\t}\n\n\t\tif (map == null || map.size() == 0) {\n\t\t\tlogger.info(\"Doctor Not Found!\");\n\t\t} else {\n\n\t\t\tprintPreviousDataOfDoctor(map);\n\n\t\t\tSystem.out.print(\"\\nEnter New Doctor Name : \");\n\t\t\tmap.put(\"dname\", sc.nextLine());\n\t\t\tSystem.out.print(\"\\nEnter New Doctor Speciality : \");\n\t\t\tmap.put(\"speciality\", sc.nextLine());\n\n\t\t\ttry {\n\t\t\t\tif (doctorDao.update(map) > 0) {\n\t\t\t\t\tlogger.info(\"Data Update Successfully...\");\n\t\t\t\t} else {\n\t\t\t\t\tlogger.info(\"Data update unsucessful!\");\n\t\t\t\t}\n\t\t\t} catch (Exception e) {\n\t\t\t\tlogger.info(e.getMessage());\n\t\t\t}\n\t\t}\n\t}", "Product editProduct(Product product);", "@Override\n\tpublic void editar(Cliente cliente) throws ExceptionUtil {\n\t\t\n\t}", "public void beforeEdit(Librerias.ZafTblUti.ZafTblEvt.ZafTableEvent evt) {\n// strEstCncDia=tblDat.getValueAt(tblDat.getSelectedRow(), INT_TBL_DAT_EST_CON)==null?\"\":tblDat.getValueAt(tblDat.getSelectedRow(), INT_TBL_DAT_EST_CON).toString();\n// if(strEstCncDia.equals(\"S\")){\n// mostrarMsgInf(\"<HTML>La cuenta ya fue conciliada.<BR>Desconcilie la cuenta en el documento a modificar y vuelva a intentarlo.</HTML>\");\n//// fireAsiDiaListener(new ZafAsiDiaEvent(this), INT_BEF_EDI_CEL);\n// objTblCelEdiTxtVcoCta.setCancelarEdicion(true);\n// }\n// else if(strEstCncDia.equals(\"B\")){\n// mostrarMsgInf(\"<HTML>No se puede cambiar el valor de la cuenta<BR>Este valor proviene de la transferencia ingresada.</HTML>\");\n// objTblCelEdiTxtVcoCta.setCancelarEdicion(true);\n// }\n// else{\n// //Permitir de manera predeterminada la operaci�n.\n// blnCanOpe=false;\n// //Generar evento \"beforeEditarCelda()\".\n// fireAsiDiaListener(new ZafAsiDiaEvent(this), INT_BEF_EDI_CEL);\n// //Permitir/Cancelar la edici�n de acuerdo a \"cancelarOperacion\".\n// if (blnCanOpe)\n// {\n// objTblCelEdiTxtVcoCta.setCancelarEdicion(true);\n// }\n// }\n }", "@Override\n\tpublic void editRecord(String RecordID, String FieldName, String FieldValue) throws RemoteException \n\t{\n\t\ttry\n\t\t{\n\t\t\tStaffRecords.Edit(RecordID, FieldName, FieldValue);\n\t\t}\n\t\tcatch(Exception ex)\n\t\t{\n\t\t\t\n\t\t}\n\t}", "@Override\n\tpublic int edit(Zongjie zongjie) {\n\t\treturn zongjieDao.edit(zongjie);\n\t}", "public void modificarPaciente(String idpac, String dni, String nom, String ape, String dir, String ubig, String tel1, String tel2, String edad)\n {\n try\n {\n PreparedStatement pstm=(PreparedStatement)\n con.getConnection().prepareStatement(\"UPDATE paciente SET DNI='\"+dni+\"' , nombres='\"+nom+\"', apellidos='\"+ape+\"', direccion='\"+dir+\"', ubigeo='\"+ubig+\"', telefono1='\"+tel1+\"', telefono2='\"+tel2+\"', edad='\"+edad+\"' WHERE IdPaciente='\"+idpac+\"'\");\n pstm.executeUpdate();\n pstm.close();\n }\n catch(SQLException e)\n {\n System.out.println(e);\n }\n }", "@Override\n\tpublic void edit(HttpServletRequest request,HttpServletResponse response) {\n\t\tint id=Integer.parseInt(request.getParameter(\"id\"));\n\t\tQuestionVo qv=new QuestionVo().getInstance(id);\n\t\tcd.edit(qv);\n\t\ttry{\n\t\t\tresponse.sendRedirect(\"Admin/question.jsp\");\n\t\t\t}\n\t\t\tcatch(Exception e){}\n\t}", "public void editFood(Food editedFood) {\n\t\t\n\t\tfoodDao.editFood(editedFood);\n\t\t\n\t}", "@Override\n\tpublic void editAction(int id) {\n\t\t\n\t}", "private void edit() {\r\n if (String.valueOf(txt_name.getText()).equals(\"\") || String.valueOf(txt_bagian.getText()).equals(\"\")|| String.valueOf(txt_address.getText()).equals(\"\")|| String.valueOf(txt_telp.getText()).equals(\"\")) {\r\n Toast.makeText(getApplicationContext(),\r\n \"Anda belum memasukan Nama atau ALamat ...\", Toast.LENGTH_SHORT).show();\r\n } else {\r\n SQLite.update(Integer.parseInt(txt_id.getText().toString().trim()),txt_name.getText().toString().trim(),\r\n txt_bagian.getText().toString().trim(),\r\n txt_address.getText().toString().trim(),\r\n txt_telp.getText().toString().trim());\r\n Toast.makeText(getApplicationContext(),\"Data berhasil di Ubah\",Toast.LENGTH_SHORT).show();\r\n blank();\r\n finish();\r\n }\r\n }", "public void edit() throws Exception {\n\t\topenPrimaryButtonDropdown();\n\t\tgetControl(\"editButton\").click();\n\t}", "T edit(long id, T obj);", "public void update(DatiBancariPk pk, DatiBancari dto) throws DatiBancariDaoException;", "@Override\r\n\tpublic Loja editar(String nomeResponsavel, int telefoneEmpresa, String rua, String cidade, String estado, String pais,\r\n\t\t\tint cep, int cnpj, String razaoSocial, String email, String nomeEmpresa, String senha) {\n\t\treturn null;\r\n\t}", "@Override\n public void editClick(int pos) {\n editPos = pos;\n\n Calendar c = Calendar.getInstance();\n year = c.get(Calendar.YEAR);\n month = c.get(Calendar.MONTH);\n day = c.get(Calendar.DAY_OF_MONTH);\n\n DatePickerDialog datePickerDialog = new DatePickerDialog(AdminCalendar.this, AdminCalendar.this, year, month, day);\n datePickerDialog.show();\n }", "public Boolean editRecord(String recordID, String fieldName, String newValue, String managerID);", "boolean edit(DishCategory oldDishCategory, DishCategory newDishCategory);", "public void EditarCadastroCliente(Cliente cliente) throws SQLException {\r\n String query = \"UPDATE cliente \"\r\n + \"SET nome = ?, data_nascimento = ?,sexo = ?, cep = ?,rua = ?,numero = ?,bairro = ?,cidade = ?, estado = ?, \"\r\n + \"telefone_residencial = ?,celular = ?,email = ?, senha = ? \"\r\n + \"WHERE cpf = ?\";\r\n update(query, cliente.getNome(), cliente.getCpf(), cliente.getData_nascimento(), cliente.getSexo(), cliente.getCep(), cliente.getRua(), cliente.getNumero(), cliente.getBairro(), cliente.getCidade(), cliente.getEstado(), cliente.getTelefone_residencial(), cliente.getCelular(), cliente.getEmail(), cliente.getSenha());\r\n }", "public void editCustomer() {\n int id = this.id;\n PersonInfo personInfo = dbHendler.getCustInfo(id);\n String name = personInfo.getName().toString().trim();\n String no = personInfo.getPhoneNumber().toString().trim();\n float custNo = personInfo.get_rootNo();\n String cUSTnO = String.valueOf(custNo);\n int fees = personInfo.get_fees();\n String fEES = Integer.toString(fees);\n int balance = personInfo.get_balance();\n String bALANCE = Integer.toString(balance);\n String nName = personInfo.get_nName().toString().trim();\n String startdate = personInfo.get_startdate();\n int areaID = personInfo.get_area();\n String area = dbHendler.getAreaName(areaID);\n person_name.setText(name);\n contact_no.setText(no);\n rootNo.setText(cUSTnO);\n monthly_fees.setText(fEES);\n balance_.setText(bALANCE);\n nickName.setText(nName);\n this.startdate.setText(startdate);\n // retrieving the index of element u\n int retval = items.indexOf(area);\n\n spinner.setSelection(retval);\n }", "@Override\r\n public void editarCliente(Cliente cliente) throws Exception {\r\n entity.getTransaction().begin();//inicia la edicion\r\n entity.merge(cliente);//realiza la edicion.\r\n entity.getTransaction().commit();//finaliza la edicion\r\n }", "int updateEstancia(final Long srvcId);", "public void Editproduct(Product objproduct) {\n\t\t\n\t}", "public void editPrioritaet(int prioID, String bezeichnung) throws Exception;", "int updateByPrimaryKey(CrmDept record);", "public EditarDados(Produto dados) {\n \tthis.dados = dados;\n initComponents();\n setLocationRelativeTo(null);\n }", "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 }", "private static void editStudent () {\n System.out.println(\"Here is a list of Students..\");\n showStudentDB();\n System.out.println(\"Enter Id of student you want to edit: \");\n int studentId = input.nextInt();\n input.nextLine();\n Student student = null;\n\n for(Student s: studentDB) {\n if(s.getID() == studentId) {\n student = s;\n }\n }\n\n if(student != null) {\n System.out.println(\"Enter New Name\");\n String str = input.nextLine();\n student.setName(str);\n System.out.println(\"Name is changed!\");\n System.out.println(\"Id: \" + student.getID() + \"\\n\" + \"Name: \" + student.getName() );\n } else {\n System.out.println(\"Invalid Person!\");\n }\n }", "public abstract void setCod_dpto(java.lang.String newCod_dpto);", "public void editaLivro(Livro livro) {\n itemLivroDAOBD.editarLivro(livro);\n }", "int updateByPrimaryKey(CTipoComprobante record) throws SQLException;", "public boolean editarCliente(Cliente cliente){\n\t\ttry{\n\t\t\tString insert = \"UPDATE clientes SET nit=?, email=?, pais=?, \"\n + \"fecharegistro=?, razonsocial=?, idioma=?, categoria=? WHERE codigo = ? ;\";\n\t\t\tPreparedStatement ps = con.prepareStatement(insert);\n\t\t\tps.setString(1, cliente.getNit());\n\t\t\tps.setString(2, cliente.getEmail());\n ps.setString(3, cliente.getPais());\n ps.setDate(4, new java.sql.Date(cliente.getFechaRegistro().getTime()));\n ps.setString(5, cliente.getRazonSocial());\n ps.setString(6, cliente.getIdioma());\n ps.setString(7, cliente.getCategoria());\n ps.setInt(8, cliente.getCodigo());\n\t\t\tSavepoint sp1 = con.setSavepoint(\"SAVE_POINT_ONE\");\n\t\t\tps.executeUpdate();\t\n\t\t\tcon.commit();\n\t\t\treturn true;\n\t\t}catch(Exception e){\n System.out.println(e.getMessage());\n e.printStackTrace();\n\t\t\treturn false;\n\t\t}\n\t}", "@RequestMapping(value = { \"/edit-{id}\" }, method = RequestMethod.GET)\n\tpublic String editEntity(@PathVariable ID id, ModelMap model,\n\t\t\t@RequestParam(required = false) Integer idEstadia) {\n\t\tENTITY entity = abm.buscarPorId(id);\n\t\tmodel.addAttribute(\"entity\", entity);\n\t\tmodel.addAttribute(\"edit\", true);\n\n\t\tif(idEstadia != null){\n\t\t\tmodel.addAttribute(\"idEstadia\", idEstadia);\n\t\t}\n\n\t\tmodel.addAttribute(\"loggedinuser\", getPrincipal());\n\t\treturn viewBaseLocation + \"/form\";\n\t}", "public void update(TipologiaStrutturaPk pk, TipologiaStruttura dto) throws TipologiaStrutturaDaoException;", "@GetMapping(\"/doctorinfo/{id}\")\n public String edit(@PathVariable(name = \"id\") Integer id,\n Model model){\n doctorDTO doctor = doctorService.getById(id);\n model.addAttribute(\"Did\",doctor.getDid());\n model.addAttribute(\"Dname\",doctor.getDname());\n model.addAttribute(\"Dsex\",doctor.getDsex());\n model.addAttribute(\"Dtel\",doctor.getDtel());\n model.addAttribute(\"Dlevel\",doctor.getDlevel());\n model.addAttribute(\"Hid\",doctor.getHospitalId());\n model.addAttribute(\"Dmajor\",doctor.getDmajor());\n model.addAttribute(\"Dinfo\",doctor.getDinfo());\n model.addAttribute(\"Dphoto\",doctor.getDphoto());\n model.addAttribute(\"password\",doctor.getPassword());\n return \"doctorinfo\";\n }", "public void update(CrGrupoFormularioPk pk, CrGrupoFormulario dto) throws CrGrupoFormularioDaoException;", "public void editarHospede() {\n int i;\n if (hospedesCadastrados.isEmpty()) {\n System.err.println(\"Nao existe hospedes cadastrados\\n\");\n } else {\n listarHospedes();\n int cpf = verifica();\n for (i = 0; i < hospedesCadastrados.size(); i++) {\n if (hospedesCadastrados.get(i).getCpf() == cpf) {//hospede\n System.err.println(\"O que deseja editar:\\n Nome(1)\\n\"\n + \"Cpf(2)\\nE-MAIL(3)\");\n int a = verifica();\n switch (a) {\n case 1:\n System.err.println(\"Digite o novo nome do hospede:\\n\");\n String nome = ler.next();\n hospedesCadastrados.get(i).setNome(nome);\n System.err.println(\"Atualzacao concluida!\\n\");\n break;\n case 2:\n System.err.println(\"Digite o novo CPF do hospede:\\n\");\n int cpf1 = verifica();\n hospedesCadastrados.get(i).setCpf(cpf1);\n System.err.println(\"Atualzacao concluida!\\n\");\n break;\n case 3:\n System.err.println(\"Digite o novo E-MAIL do hospede:\\n\");\n String email = ler.next();\n hospedesCadastrados.get(i).setEmail(email);\n System.err.println(\"Atualzacao concluida!\\n\");\n break;\n }\n\n } else if (hospedesCadastrados.size() == i) {\n System.err.println(\"Nao existem hospedes com esse cpf cadastrados!\\n\");\n }\n }\n }\n }", "@Override\n public Patient editPatient(Patient patient) {\n return patientRepository.save(patient);\n }", "public void editarMateria() {\n materia.setIdDepartamento(departamento);\n ejbFacade.edit(materia);\n RequestContext requestContext = RequestContext.getCurrentInstance();\n requestContext.execute(\"PF('MateriaEditDialog').hide()\");\n ejbFacade.limpiarCache();\n items = ejbFacade.findAll();\n departamento = new Departamento();\n materia = new Materia();\n// FacesContext.getCurrentInstance().addMessage(null, new FacesMessage(FacesMessage.SEVERITY_INFO, \"Información\", \"La materia se editó con éxito\"));\n// requestContext.execute(\"PF('mensajeRegistroExitoso').show()\");\n\n FacesMessage msg = new FacesMessage(FacesMessage.SEVERITY_INFO, \"Información\", \"La materia se editó con éxito\");\n FacesContext.getCurrentInstance().addMessage(null, msg);\n\n requestContext.update(\"msg\");//Actualiza la etiqueta growl para que el mensaje pueda ser mostrado\n\n requestContext.update(\"MateriaListForm\");\n requestContext.update(\"MateriaCreateForm\");\n\n }", "protected void editarContato(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\n\t\tSystem.out.println(request.getParameter(\"id\"));\n\t\tSystem.out.println(request.getParameter(\"nome\"));\n\t\tSystem.out.println(request.getParameter(\"telefone\"));\n\t\tSystem.out.println(request.getParameter(\"email\"));\n\t\t\n\n\t\t// fim do teste//\n\n\t\tcontato.setId(request.getParameter(\"id\"));\n\t\tcontato.setNome(request.getParameter(\"nome\"));\n\t\tcontato.setFone(request.getParameter(\"telefone\"));\n\t\tcontato.setEmail(request.getParameter(\"email\"));\n\t\t// executar o metodo alterarContato - execute method alterarContato\n\t\tdao.alterarContato(contato);\n\t\t// redirecionar para agenda.jsp - redirect to agenda.jsp\n\t\tresponse.sendRedirect(\"main\");\n\n\t}", "@Override\n\tpublic int edit(FoodCategory foodCategory) {\n\t\treturn foodCategoryDao.edit(foodCategory);\n\t}", "@Override\r\n\t\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\t\tbe.setNom(textFieldMarque.getText());\r\n\t\t\t\t\t\tbe.setPrenom(textFieldModele.getText());\r\n\t\t\t\t\t\tbe.setAge(Integer.valueOf(textFieldAge.getText()));\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\tbs.update(be);\r\n\t\t\t\t\t\t} catch (DaoException e1) {\r\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tdispose();\r\n\t\t\t\t\t}", "public abstract void edit();", "Meal editMeal(MealEditDTO mealEditDTO);", "SrInwardTruckQualityCheck edit(SrInwardTruckQualityCheck srInwardTruckQualityCheck);", "public void editar(ParadaUtil paradaUtil) {\n\t\tiniciarTransacao();\r\n\t\ttry {\r\n\t\t\ts.update(paradaUtil);\r\n\t\t\ttx.commit();\r\n\t\t} catch (Exception e) {\r\n\t\t} finally {\r\n\t\t\ts.close();\r\n\t\t}\r\n\t}", "int updateByPrimaryKey(DepAcctDO record);", "@Override\r\n\t\t\tpublic void handle(CellEditEvent<Products, String> arg0) {\n\t\t\t\targ0.getTableView().getItems().get(arg0.getTablePosition().getRow()).setExpiry_date(arg0.getNewValue());\r\n\t\t\t\tProducts data=(Products) tbl_view.getSelectionModel().getSelectedItem();\r\n\t\t\t\tSystem.out.println(data.toString());\r\n\t\t\t\tConnectionManager.queryInsert(conn, \"UPDATE dbo.product SET expiry_date='\"+data.getExpiry_date()+\"' WHERE id=\"+data.getId());\r\n\t\t\t\ttxt_cost.clear();\r\n\t\t\t\ttxt_date.clear();\r\n\t\t\t\ttxt_name.clear();\r\n\t\t\t\ttxt_price.clear();\r\n\t\t\t\ttxt_qty.clear();\r\n\t\t\t\ttxt_reorder.clear();\r\n\t\t\t\ttxt_search.clear();\r\n\t\t\t\tfetchData(FETCH_DATA);\r\n\t\t\t}", "public <T> boolean editObject(T entity) throws DataAccessException {\n\t\tboolean flag = false;\n try {\n mapper.editDept((DeptVO) entity);\n flag = true;\n } catch (DataAccessException e) {\n flag = false;\n throw e;\n }\n return flag;\n\t}", "public boolean modificarproducto(ProductoDTO c) {\r\n\r\n try {\r\n PreparedStatement ps;\r\n ps = conn.getConn().prepareStatement(SQL_UPDATE);\r\n ps.setString(1, c.getDescripcion());\r\n ps.setString(2, c.getFechaproducto());\r\n ps.setInt(3, c.getStock());\r\n ps.setInt(4, c.getPrecio());\r\n ps.setString(5, c.getNombre());\r\n ps.setString(6, c.getFechacaducidad());\r\n ps.setString(7, c.getFechaelaboracion());\r\n ps.setString(8, c.getNombrecategoria());\r\n ps.setInt(9, c.getId());\r\n\r\n if (ps.executeUpdate() > 0) {\r\n JOptionPane.showMessageDialog(null, \"Modificado correctamente\");\r\n return true;\r\n }\r\n\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ProductoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n } finally {\r\n\r\n conn.cerrarconexion();\r\n }\r\n JOptionPane.showMessageDialog(null, \"no se ha podido modificar\");\r\n return false;\r\n }", "public void editSelectedItem() {\n\t\tfinal ColumnInfo oldinfo = m_view.getSelectedItem();\n\t\tif (oldinfo != null) {\n\t\t\tfinal TableId tableid = m_view.getModel().getTableId();\n\t\t\tfinal TSConnection tsconn = m_view.getModel().getConnection();\n\t\t\tSQLCommandDialog dlg = SQLCommandDialog.createDialog(tsconn, true);\n\t\t\tdlg.setMessage(I18N.getLocalizedMessage(\"Modify Column\"));\n\n\t\t\tModelerFactory factory = ModelerFactory.getFactory(tsconn);\n\t\t\tfinal ColumnPanel panel = factory.createColumnPanel(tsconn, tableid, oldinfo, false);\n\t\t\tdlg.setPrimaryPanel(panel);\n\t\t\tdlg.addValidator(panel);\n\t\t\tdlg.setSize(dlg.getPreferredSize());\n\t\t\tdlg.addDialogListener(new SQLDialogListener() {\n\t\t\t\tpublic boolean cmdOk() throws SQLException {\n\t\t\t\t\tTSTable tablesrv = (TSTable) tsconn.getImplementation(TSTable.COMPONENT_ID);\n\t\t\t\t\tColumnInfo newinfo = panel.getColumnInfo();\n\t\t\t\t\ttablesrv.modifyColumn(tableid, newinfo, oldinfo);\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t});\n\t\t\tdlg.showCenter();\n\t\t\tif (dlg.isOk()) {\n\t\t\t\tSystem.out.println(\"AlterColumnsController.editSelected item: \" + tableid);\n\t\t\t\ttsconn.getModel(tableid.getCatalog()).reloadTable(tableid);\n\t\t\t\tm_view.getModel().setTableId(tableid);\n\t\t\t}\n\t\t}\n\t}", "public void update(SgfensBancoPk pk, SgfensBanco dto) throws SgfensBancoDaoException;", "public boolean updVeh() {\n\t\ttry\n\t\t{\n\t\t\n\t\t\tString filename=\"src/FilesTXT/vehicule.txt\";\n\t\t\tFileInputStream is = new FileInputStream(filename);\n\t\t InputStreamReader isr = new InputStreamReader(is);\n\t\t BufferedReader buffer = new BufferedReader(isr);\n\t\t \n\t\t String line = buffer.readLine();\n\t \tString[] split;\n\t \tString Contenu=\"\";\n\n\t\t while(line != null){\n\t\t \tsplit = line.split(\" \");\n\t\t\t if(this.getId_vehi()==Integer.parseInt(split[0])) {\n\t\t\t \tContenu+=this.getId_vehi()+\" \"+this.getDate_achat()+\" \"+this.getNb_places()+\" \"+this.getStatut()+\" \"+this.getPrix()+\" \"+this.getImage()+\" \"+this.getCouleur()+\" \"+this.getModele()+\" \"+this.getMarque()+\" \"+this.getDate_fabrication()+\"\\n\";\n\t\t\t \tSystem.out.println(this.getId_vehi()+\" \"+this.getId_vehi()+\" \"+this.getDate_fabrication());\n\t\t\t }else {\n\t\t\t \t Contenu+=line+\"\\n\";\n\t\t\t }\n\t\t \tline = buffer.readLine();\n\t\t }\n\t\t \n\t\t buffer.close();\n\t\t \n\t\t filename=\"src/FilesTXT/vehicule.txt\";\n\t\t\t FileWriter fw = new FileWriter(filename);\n\t\t\t fw.write(Contenu);\n\t\t\t fw.close();\n\t\t \n\t\t return true;\n\t\t}\n\t\tcatch(IOException ioe)\n\t\t{\n\t\t System.err.println(\"IOException: \"+ ioe.getMessage());\n\t\t}\n\t\treturn false;\n\t}", "public void update(ClientePk pk, Cliente dto) throws ClienteDaoException;", "public int Editcomp(Long comp_id, String compname, String address, String city,\r\n\t\tString state, Long offno, Long faxno, String website, String e_mail) throws SQLException {\nint i =DbConnect.getStatement().executeUpdate(\"update company set address='\"+address+\"',city='\"+city+\"',state='\"+state+\"',offno=\"+offno+\",faxno=\"+faxno+\",website='\"+website+\"',email='\"+e_mail+\"'where comp_id=\"+comp_id+\" \");\r\n\treturn i;\r\n}", "public static void editButtonAction(ActionContext actionContext){\n Table dataTable = actionContext.getObject(\"dataTable\");\n Shell shell = actionContext.getObject(\"shell\");\n Thing store = actionContext.getObject(\"store\");\n \n TableItem[] items = dataTable.getSelection();\n if(items == null || items.length == 0){\n MessageBox box = new MessageBox(shell, SWT.ICON_WARNING | SWT.OK);\n box.setText(\"警告\");\n box.setMessage(\"请先选择一条记录!\");\n box.open();\n return;\n }\n \n store.doAction(\"openEditForm\", actionContext, \"record\", items[0].getData());\n }", "public boolean editBike(Bike bike){//Edits the desired bike with matching bikeId\n if(!findBike(bike.getBikeId())){\n return false;\n //Bike_ID not registered in database, can't edit what's not there\n }else{\n try(Connection con = DatabaseConnector.getConnection();\n PreparedStatement ps = con.prepareStatement(EDIT)){\n \n ps.setDate(1, bike.getSqlDate());\n ps.setDouble(2, bike.getPrice());\n ps.setString(3, bike.getMake());\n ps.setInt(4,bike.getTypeId());\n if(bike.getStationId() == 0){\n ps.setNull(5, INTEGER);\n }else{\n ps.setInt(5, bike.getStationId());\n }\n ps.setInt(6, bike.getBikeId());\n ps.executeUpdate();\n return true;\n }catch(Exception e){\n System.out.println(\"Exception: \" + e);\n }\n }\n return false;\n }" ]
[ "0.678156", "0.672827", "0.66526544", "0.6605244", "0.65877396", "0.6563122", "0.652152", "0.6513", "0.6455344", "0.64390653", "0.6432357", "0.6351865", "0.63343084", "0.6332086", "0.63249356", "0.63084096", "0.62373745", "0.62145585", "0.6208564", "0.6199848", "0.6192135", "0.6158072", "0.6147721", "0.61385185", "0.61323446", "0.61282307", "0.6120243", "0.6099169", "0.60928535", "0.60921574", "0.6082951", "0.6079166", "0.606048", "0.60544294", "0.6038577", "0.60378265", "0.6023518", "0.6013932", "0.6004978", "0.5984059", "0.59698427", "0.5965364", "0.59463966", "0.5945086", "0.5942523", "0.59390044", "0.59320426", "0.5928536", "0.59203255", "0.5906464", "0.5891471", "0.58882344", "0.5876518", "0.58693343", "0.5865277", "0.5855931", "0.58491534", "0.5842208", "0.5836335", "0.58016056", "0.5796074", "0.5793972", "0.57938516", "0.57907283", "0.5785531", "0.57852274", "0.57757586", "0.5774966", "0.5772702", "0.5751427", "0.57503045", "0.5746872", "0.57418376", "0.5732651", "0.57279056", "0.5727876", "0.57269204", "0.57243884", "0.57198817", "0.57196003", "0.5714965", "0.57136494", "0.57115906", "0.57108176", "0.5706723", "0.57037264", "0.57025254", "0.56862485", "0.5679812", "0.56661063", "0.5661359", "0.56533283", "0.56486565", "0.56426126", "0.5640998", "0.56351125", "0.5634648", "0.5631206", "0.5626941", "0.5626324" ]
0.5661642
90
Busca DvdCd por filtro e tipo de filtro
public List<DvdCd> buscaPorFiltro(TipoFiltro tipoFiltro, String filtro){ if(tipoFiltro.equals(TipoFiltro.TITULO)) { logger.info("Buscando por filtro de titulo :"+filtro); return itemRepository.filtraPorTitulo(UserServiceImpl.authenticated().getId(), filtro); } else if (tipoFiltro.equals(TipoFiltro.MARCA)) { logger.info("Buscando por filtro de marca: "+filtro); return itemRepository.filtraPorMarca(UserServiceImpl.authenticated().getId(), filtro); } return itemRepository.findAll(UserServiceImpl.authenticated().getId()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getDataItemFilter();", "public static String buildTypeSourceWhereFilter() {\n PDCOptionData pcOptions = PDCOptionData.getInstance();\n StringBuilder buffer = new StringBuilder();\n String returnValue = null;\n\n for (int i = 0; i < pcOptions.getTypeSourceChosenList().size(); i++) {\n buffer.append(\" '\" + pcOptions.getTypeSourceChosenList().get(i)\n + \"' \");\n\n if (i != pcOptions.getTypeSourceChosenCount() - 1) {\n buffer.append(\", \");\n }\n }\n\n if (pcOptions.getTypeSourceChosenCount() > 0) {\n returnValue = \" and ts in (\" + buffer.toString() + \") \";\n } else {\n returnValue = \"\";\n }\n\n return returnValue;\n }", "Collection<GestionPrecioDTO> findCampaniasFiltros (GestionPrecioDTO gestionPrecio,String estadoCobro);", "public void filtro() {\n int columnaABuscar = 0;\n \n \n if (comboFiltro.getSelectedItem() == \"nombre\") {\n columnaABuscar = 0;\n }\n if (comboFiltro.getSelectedItem().toString() == \"Apellido\") {\n columnaABuscar = 1;\n }\n \n trsFiltro.setRowFilter(RowFilter.regexFilter(txtfiltro.getText(), columnaABuscar));\n }", "public void filtroCedula(String pCedula){\n \n }", "public abstract String getCrcdReimbTypeCd();", "String getTypeFilter(String column, Collection<FxType> types);", "public short getSearchTypCd()\n\t{\n\t\treturn mSearchTypCd;\n\t}", "public Vector FilterRecordByType(int FKComp, int resType, int companyID, int orgID) throws SQLException, Exception {\n\t\tString query = \"\";\n\t\t\n\t\t// Changed by Ha 10/06/08 change ResType-->resType\n\t\tif(FKComp != 0 && resType != 0) {\n\t\t\tquery = query + \"Select tblDRARes.ResID, tblDRARes.Resource, tblDRARes.ResType, tblOrigin.Description \";\n\t\t\tquery = query + \"from tblDRARes \";\n\t\t\tquery = query + \" inner join tblOrigin on tblDRARes.IsSystemGenerated = tblOrigin.PKIsSystemGenerated \";\n\t\t\tquery = query + \"where (CompetencyID = \" + FKComp;\n\t\t\tquery = query + \" and tblDRARes.ResType = \" + resType;\n\t\t\tquery = query + \" and FKCompanyID = \" + companyID + \" and FKOrganizationID = \" + orgID;\n\t\t\tquery = query + \") or (CompetencyID = \" + FKComp;\n\t\t\tquery = query + \" and tblDRARes.ResType = \" + resType;\n\t\t\tquery = query + \" and IsSystemGenerated = 1) order by \";\n\t\t\t\n\t\t} else if(FKComp == 0 && resType != 0) {\n\t\t\tquery = query + \"SELECT ResID, Resource, ResType, Description FROM tblDRARes \";\n\t\t\tquery = query + \" inner join tblOrigin on tblDRARes.IsSystemGenerated = tblOrigin.PKIsSystemGenerated \";\n\t\t\tquery = query + \" WHERE (ResType = \" + resType;\n\t\t\tquery = query + \" and FKCompanyID = \" + companyID + \" and FKOrganizationID = \" + orgID;\n\t\t\tquery = query + \") or (tblDRARes.ResType = \" + resType;\n\t\t\tquery = query + \" and IsSystemGenerated = 1)\";\n\t\t\tquery = query + \" ORDER BY \";\n\t\t\t\n\t\t} else if(FKComp != 0 && resType == 0) {\n\t\t\tquery = query + \"Select tblDRARes.ResID, tblDRARes.Resource, tblDRARes.ResType, tblOrigin.Description \";\n\t\t\tquery = query + \"from tblDRARes \";\n\t\t\tquery = query + \" inner join tblOrigin on tblDRARes.IsSystemGenerated = tblOrigin.PKIsSystemGenerated \";\n\t\t\tquery = query + \"where (CompetencyID = \" + FKComp;\n\t\t\tquery = query + \" and FKCompanyID = \" + companyID + \" and FKOrganizationID = \" + orgID;\n\t\t\tquery = query + \") or (CompetencyID = \" + FKComp;\n\t\t\tquery = query + \" and IsSystemGenerated = 1) order by \";\n\t\t\t\n\t\t} else {\n\t\t\tquery = query + \"Select tblDRARes.ResID, tblDRARes.Resource, tblDRARes.ResType, tblOrigin.Description \";\n\t\t\tquery = query + \"from tblDRARes \";\n\t\t\tquery = query + \" inner join tblOrigin on tblDRARes.IsSystemGenerated = tblOrigin.PKIsSystemGenerated \";\n\t\t\tquery = query + \"where (FKCompanyID = \" + companyID + \" and FKOrganizationID = \" + orgID;\n\t\t\tquery = query + \") or (IsSystemGenerated = 1) order by \";\n\t\t}\n\t\t\n\t\tif(SortType == 1)\n\t\t\tquery = query + \"tblDRARes.Resource\";\n\t\telse\n\t\t\tquery = query + \"IsSystemGenerated\";\n\n\t\tif(Toggle[SortType - 1] == 1)\n\t\t\tquery = query + \" DESC\";\n\t\t\n\t\tVector v=new Vector();\n\t\t\n\t\tConnection con = null;\n\t\tStatement st = null;\n\t\tResultSet rs = null;\n\n\t\ttry{\n\t\t\tcon=ConnectionBean.getConnection();\n\t\t\tst=con.createStatement();\n\t\t\trs=st.executeQuery(query);\n\t\t\twhile(rs.next()){\n\t\t\t\t//tblDRARes.ResID, tblDRARes.Resource, tblDRARes.ResType, tblOrigin.Description \n\t\t\t\tvotblDRARES vo=new votblDRARES();\n\t\t\t\t\n\t\t\t\tvo.setResID(rs.getInt(\"ResID\"));\n\t\t\t\tvo.setResource(rs.getString(\"Resource\"));\n\t\t\t\tvo.setResType(rs.getInt(\"ResType\"));\n\t\t\t\tvo.setDescription(rs.getString(\"Description\"));\n\t\t\t\tv.add(vo);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}catch(Exception e){\n\t\t\tSystem.out.println(\"DevelpmentResources.java - FilterRecordByType - \"+e);\n\t\t}finally{\n\t\t\tConnectionBean.closeRset(rs); //Close ResultSet\n\t\t\tConnectionBean.closeStmt(st); //Close statement\n\t\t\tConnectionBean.close(con); //Close connection\n\n\t\t}\n\t\tSystem.out.println(\"QUERY: \"+query);\n\t\treturn v;\n\t}", "public String getFilter() {\n if(isHot) {\n // buy = max\n // view = max\n }\n String s = \"oderby @exo:\"+orderBy + \" \" + orderType;\n return null;\n }", "@DISPID(5) //= 0x5. The runtime will prefer the VTID if present\n @VTID(11)\n java.lang.String getFilterText();", "public String getValueCd() {\n return this.valueCd;\n }", "public String applyFilter() {\n if (!filterSelectedField.equals(\"-1\")) {\n Class<?> fieldClass = getFieldType(filterSelectedField);\n\n if ((fieldClass.equals(Integer.class) && !NumberUtil.isInteger(filterCriteria))\n || (fieldClass.equals(Long.class) && !NumberUtil.isLong(filterCriteria))\n || (fieldClass.equals(BigInteger.class) && !NumberUtil.isBigInteger(filterCriteria))) {\n setWarnMessage(i18n.iValue(\"web.client.backingBean.abstractCrudBean.message.MustBeInteger\"));\n filterCriteria = \"\";\n } else {\n signalRead();\n }\n paginationHelper = null; // For pagination recreation\n dataModel = null; // For data model recreation\n selectedItems = null; // For clearing selection\n } else {\n setWarnMessage(i18n.iValue(\"web.client.backingBean.abstractCrudBean.message.MustSelectFindOption\"));\n }\n return null;\n }", "public void setSearchTypCd(short searchTypCd)\n\t{\n\t\tmSearchTypCd = searchTypCd;\n\t}", "private Filtro getFiltroFissiGiornoConto(Date data, int codConto) {\n /* variabili e costanti locali di lavoro */\n Filtro filtro = null;\n Filtro filtroDate = null;\n Filtro filtroInizio = null;\n Filtro filtroSincro;\n Filtro filtroVuota;\n Filtro filtroIntervallo;\n Filtro filtroFine;\n Filtro filtroConto = null;\n Modulo modConto;\n Date dataVuota;\n\n try { // prova ad eseguire il codice\n\n modConto = Progetto.getModulo(Conto.NOME_MODULO);\n\n filtroDate = new Filtro();\n\n filtroInizio = FiltroFactory.crea(Cam.dataInizioValidita.get(),\n Filtro.Op.MINORE_UGUALE,\n data);\n filtroSincro = FiltroFactory.crea(Cam.dataSincro.get(), Filtro.Op.MINORE, data);\n dataVuota = Lib.Data.getVuota();\n filtroVuota = FiltroFactory.crea(Cam.dataSincro.get(), dataVuota);\n\n filtroFine = FiltroFactory.crea(Cam.dataFineValidita.get(),\n Filtro.Op.MAGGIORE_UGUALE,\n data);\n filtroIntervallo = new Filtro();\n filtroIntervallo.add(filtroSincro);\n filtroIntervallo.add(filtroFine);\n\n filtroDate.add(filtroIntervallo);\n filtroDate.add(Filtro.Op.OR, filtroVuota);\n\n /* filtro per il conto */\n filtroConto = FiltroFactory.codice(modConto, codConto);\n\n filtro = new Filtro();\n filtro.add(filtroInizio);\n filtro.add(filtroDate);\n filtro.add(filtroConto);\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n /* valore di ritorno */\n return filtro;\n }", "private Filtro filtroEscludiRiga(int codice) {\n /* variabili e costanti locali di lavoro */\n Filtro filtro = null;\n Campo campo = null;\n\n try { // prova ad eseguire il codice\n campo = this.getModulo().getCampoChiave();\n filtro = FiltroFactory.crea(campo, Operatore.DIVERSO, codice);\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n } // fine del blocco try-catch\n\n /* valore di ritorno */\n return filtro;\n }", "ColumnInfoFilter getColumnInfoFilter();", "@PostMapping(value = \"/readSoftwareFilterByDeptCd\")\n\tpublic @ResponseBody ResultVO readSoftwareFilterByDeptCd(HttpServletRequest req) {\n\t\tResultVO resultVO = new ResultVO();\n\t\tString deptCd = req.getParameter(\"deptCd\");\n\t\ttry {\n\t\t\tif (deptCd != null && deptCd.trim().length() > 0) {\n\t\t\t\tResultVO userRoleInfo = userService.getUserConfIdByDeptCd(deptCd);\n\t\t\t\tif (GPMSConstants.MSG_SUCCESS.equals(userRoleInfo.getStatus().getResult())) {\n\t\t\t\t\tUserRoleVO vo = (UserRoleVO) userRoleInfo.getData()[0];\n\t\t\t\t\tif (vo.getFilteredSoftwareRuleId() != null && vo.getFilteredSoftwareRuleId().length() > 0) {\n\t\t\t\t\t\tresultVO = getSoftwareFilterByRoleId(vo.getFilteredSoftwareRuleId(),\n\t\t\t\t\t\t\t\tGPMSConstants.RULE_GRADE_DEPT);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tresultVO = getSoftwareFilterByRoleId(null, GPMSConstants.RULE_GRADE_DEFAULT);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tresultVO = getSoftwareFilterByRoleId(null, GPMSConstants.RULE_GRADE_DEFAULT);\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception ex) {\n\t\t\tlogger.error(\"error in readSoftwareFilterByDeptCd : {}, {}, {}\", GPMSConstants.CODE_SYSERROR,\n\t\t\t\t\tMessageSourceHelper.getMessage(GPMSConstants.MSG_SYSERROR), ex.toString());\n\t\t\tif (resultVO != null) {\n\t\t\t\tresultVO.setStatus(new StatusVO(GPMSConstants.MSG_FAIL, GPMSConstants.CODE_SYSERROR,\n\t\t\t\t\t\tMessageSourceHelper.getMessage(GPMSConstants.MSG_SYSERROR)));\n\t\t\t}\n\t\t}\n\n\t\treturn resultVO;\n\t}", "java.lang.String getField1997();", "private void handleDDCTypeChange() {\n\t\tString ddc = cbDDC.getText();\n\n\t\tif (optionC[1].equals(ddc)) {\n\t\t\ttxtDDC_minPerLR.setEnabled(true);\n\t\t\ttxtDDC_chargeArticle.setEnabled(true);\n\t\t} else {\n\t\t\ttxtDDC_minPerLR.setText(EMPTYSTRING);\n\t\t\ttxtDDC_minPerLR.setEnabled(false);\n\n\t\t\tif (optionC[0].equals(ddc)) {\n\t\t\t\ttxtDDC_chargeArticle.setEnabled(true);\n\t\t\t} else {\n\t\t\t\ttxtDDC_chargeArticle.setEnabled(false);\n\t\t\t\ttxtDDC_chargeArticle.setText(EMPTYSTRING);\n\t\t\t}\n\t\t}\n\t}", "protected void filtrarEstCid() {\r\n\t\tif (cmbx_cidade.getSelectedItem() != \"\" && cmbx_estado.getSelectedItem() != \"\") {\r\n\t\t\tStringBuilder filtracomando = new StringBuilder();\r\n\r\n\t\t\tfiltracomando\r\n\t\t\t\t\t.append(comando + \" WHERE ESTADO = '\" + Estado.validar(cmbx_estado.getSelectedItem().toString())\r\n\t\t\t\t\t\t\t+ \"' AND CIDADE = '\" + cmbx_cidade.getSelectedItem().toString() + \"'\");\r\n\t\t\tlistacliente = tabelaCliente.mostraRelatorio(filtracomando.toString());\r\n\r\n\t\t\ttablecliente.setModel(tabelaCliente);\r\n\r\n\t\t} else {\r\n\t\t\tJOptionPane.showMessageDialog(null, \"Escolha a Cidade e o Estado que deseja Filtrar\");\r\n\t\t}\r\n\t}", "private void cbFiltreActionPerformed(java.awt.event.ActionEvent evt) { \n if (cbFiltre.getSelectedIndex() == 0) {\n agenda.filtreazaNrFix();\n }\n if (cbFiltre.getSelectedIndex() == 1) {\n agenda.filtreazaNrMobil();\n }\n if (cbFiltre.getSelectedIndex() == 2) {\n agenda.filtreazaNascutiAstazi();\n }\n if (cbFiltre.getSelectedIndex() == 3) {\n agenda.filtreazaNascutiLunaCurenta();\n }\n if (cbFiltre.getSelectedIndex() == 4) {\n agenda.filtreazaPersonalizat(tfPersonalizat.getText());\n }\n }", "java.lang.String getField1700();", "public static void hddFilter(){\r\n try {\r\n String choice = home_RegisterUser.comboFilter.getSelectedItem().toString();\r\n ResultSet rs = null;\r\n singleton.dtm = new DefaultTableModel();\r\n \r\n singleton.dtm.setColumnIdentifiers(hdd);\r\n home_RegisterUser.table.setModel(singleton.dtm);\r\n Statement stmt = singleton.conn.createStatement();\r\n \r\n switch (choice) {\r\n case \"Nombre\":\r\n //BUSCA POR NOMBRE\r\n if(!home_RegisterUser.filterField.getText().equals(\"\")){\r\n rs = stmt.executeQuery(\"SELECT * FROM articulos a,dd r WHERE a.codigo = r.codart AND nombre LIKE '%\"+home_RegisterUser.filterField.getText()+\"%'\");\r\n while(rs.next()){\r\n int stock = rs.getInt(\"stock\");\r\n String stock2;\r\n if(stock>0){\r\n stock2 = \"Esta en Stock\";\r\n }else{\r\n stock2 = \"No esta en Stock\";\r\n }\r\n singleton.dtm.addRow(getArrayDeObjectosHDD(rs.getInt(\"codigo\"),rs.getString(\"nombre\"),rs.getString(\"fabricante\"),rs.getFloat(\"precio\"),stock2,rs.getInt(\"capacidad\"),rs.getInt(\"rpm\"),rs.getString(\"tipo\")));\r\n }\r\n }else{\r\n searchHdd();\r\n }\r\n break;\r\n case \"Precio mayor que\":\r\n //BUSCA POR PRECIO MAYOR\r\n if(!home_RegisterUser.filterField.getText().equals(\"\")){\r\n rs = stmt.executeQuery(\"SELECT * FROM articulos a,dd r WHERE a.codigo = r.codart AND precio > '\"+home_RegisterUser.filterField.getText()+\"'\");\r\n while(rs.next()){\r\n int stock = rs.getInt(\"stock\");\r\n String stock2;\r\n if(stock>0){\r\n stock2 = \"Esta en Stock\";\r\n }else{\r\n stock2 = \"No esta en Stock\";\r\n }\r\n singleton.dtm.addRow(getArrayDeObjectosHDD(rs.getInt(\"codigo\"),rs.getString(\"nombre\"),rs.getString(\"fabricante\"),rs.getFloat(\"precio\"),stock2,rs.getInt(\"capacidad\"),rs.getInt(\"rpm\"),rs.getString(\"tipo\")));\r\n }\r\n }else{\r\n searchHdd();\r\n }\r\n break;\r\n case \"Precio menor que\":\r\n //BUSCA POR PRECIO MENOR\r\n if(!home_RegisterUser.filterField.getText().equals(\"\")){\r\n rs = stmt.executeQuery(\"SELECT * FROM articulos a,dd r WHERE a.codigo = r.codart AND precio < '\"+home_RegisterUser.filterField.getText()+\"'\");\r\n while(rs.next()){\r\n int stock = rs.getInt(\"stock\");\r\n String stock2;\r\n if(stock>0){\r\n stock2 = \"Esta en Stock\";\r\n }else{\r\n stock2 = \"No esta en Stock\";\r\n }\r\n singleton.dtm.addRow(getArrayDeObjectosHDD(rs.getInt(\"codigo\"),rs.getString(\"nombre\"),rs.getString(\"fabricante\"),rs.getFloat(\"precio\"),stock2,rs.getInt(\"capacidad\"),rs.getInt(\"rpm\"),rs.getString(\"tipo\")));\r\n }\r\n }else{\r\n searchHdd();\r\n }\r\n break; \r\n case \"Fabricante\":\r\n //BUSCA POR FABRICANTE\r\n if(!home_RegisterUser.filterField.getText().equals(\"\")){\r\n rs = stmt.executeQuery(\"SELECT * FROM articulos a,dd r WHERE a.codigo = r.codart AND fabricante LIKE '%\"+home_RegisterUser.filterField.getText()+\"%'\");\r\n while(rs.next()){\r\n int stock = rs.getInt(\"stock\");\r\n String stock2;\r\n if(stock>0){\r\n stock2 = \"Esta en Stock\";\r\n }else{\r\n stock2 = \"No esta en Stock\";\r\n }\r\n singleton.dtm.addRow(getArrayDeObjectosHDD(rs.getInt(\"codigo\"),rs.getString(\"nombre\"),rs.getString(\"fabricante\"),rs.getFloat(\"precio\"),stock2,rs.getInt(\"capacidad\"),rs.getInt(\"rpm\"),rs.getString(\"tipo\")));\r\n }\r\n }else{\r\n searchHdd();\r\n }\r\n break;\r\n case \"Capacidad\":\r\n if(!home_RegisterUser.filterField.getText().equals(\"\")){\r\n rs = stmt.executeQuery(\"SELECT * FROM articulos a,dd r WHERE a.codigo = r.codart AND capacidad LIKE '%\"+home_RegisterUser.filterField.getText()+\"%'\");\r\n while(rs.next()){\r\n int stock = rs.getInt(\"stock\");\r\n String stock2;\r\n if(stock>0){\r\n stock2 = \"Esta en Stock\";\r\n }else{\r\n stock2 = \"No esta en Stock\";\r\n }\r\n singleton.dtm.addRow(getArrayDeObjectosHDD(rs.getInt(\"codigo\"),rs.getString(\"nombre\"),rs.getString(\"fabricante\"),rs.getFloat(\"precio\"),stock2,rs.getInt(\"capacidad\"),rs.getInt(\"rpm\"),rs.getString(\"tipo\")));\r\n }\r\n }else{\r\n searchHdd();\r\n }\r\n break;\r\n case \"RPM\":\r\n //BUSCA POR RESOLUCION\r\n if(!home_RegisterUser.filterField.getText().equals(\"\")){\r\n rs = stmt.executeQuery(\"SELECT * FROM articulos a,dd r WHERE a.codigo = r.codart AND rpm LIKE '%\"+home_RegisterUser.filterField.getText()+\"%'\");\r\n while(rs.next()){\r\n int stock = rs.getInt(\"stock\");\r\n String stock2;\r\n if(stock>0){\r\n stock2 = \"Esta en Stock\";\r\n }else{\r\n stock2 = \"No esta en Stock\";\r\n }\r\n singleton.dtm.addRow(getArrayDeObjectosHDD(rs.getInt(\"codigo\"),rs.getString(\"nombre\"),rs.getString(\"fabricante\"),rs.getFloat(\"precio\"),stock2,rs.getInt(\"capacidad\"),rs.getInt(\"rpm\"),rs.getString(\"tipo\")));\r\n }\r\n }else{\r\n searchHdd();\r\n }\r\n break;\r\n case \"Tipo\":\r\n //BUSCA POR RESOLUCION\r\n if(!home_RegisterUser.filterField.getText().equals(\"\")){\r\n rs = stmt.executeQuery(\"SELECT * FROM articulos a,dd r WHERE a.codigo = r.codart AND tipo LIKE '%\"+home_RegisterUser.filterField.getText()+\"%'\");\r\n while(rs.next()){\r\n int stock = rs.getInt(\"stock\");\r\n String stock2;\r\n if(stock>0){\r\n stock2 = \"Esta en Stock\";\r\n }else{\r\n stock2 = \"No esta en Stock\";\r\n }\r\n singleton.dtm.addRow(getArrayDeObjectosHDD(rs.getInt(\"codigo\"),rs.getString(\"nombre\"),rs.getString(\"fabricante\"),rs.getFloat(\"precio\"),stock2,rs.getInt(\"capacidad\"),rs.getInt(\"rpm\"),rs.getString(\"tipo\")));\r\n }\r\n }else{\r\n searchHdd();\r\n }\r\n break;\r\n }\r\n } catch (SQLException ex) {\r\n System.err.println(\"SQL Error: \"+ex);\r\n }catch(Exception ex){\r\n System.err.println(\"Error: \"+ex);\r\n }\r\n }", "String getFilter();", "public DataTableFilterType getFilterType( )\n {\n return _filterType;\n }", "java.lang.String getField1998();", "java.lang.String getField1515();", "protected DataTableFilter( DataTableFilterType filterType, String strParameterName, String strFilterLabel )\n {\n _filterType = filterType;\n _strParameterName = strParameterName;\n _strFilterLabel = strFilterLabel;\n }", "public static String getDadoFormatado(String pDado, TiposDadosQuery pTipo) {\n String dadoFormatado;\n if (pDado != null) {\n switch (pTipo)\n {\n case TEXTO:\n dadoFormatado = \"'\" + verificaAspaSimples(pDado) + \"'\";\n break;\n case DATA:\n dadoFormatado = \"'\" + pDado + \"'\";\n break;\n default:\n dadoFormatado = pDado; \n break;\n }\n }\n else {\n dadoFormatado = \"null\";\n }\n \n return dadoFormatado;\n \n }", "public List< CategoriaPassageiro> buscarPorFiltro(String var) throws DaoException;", "java.lang.String getField1021();", "java.lang.String getField1032();", "java.lang.String getField1993();", "private void showFilter() {\n dtmStok.getDataVector().removeAllElements();\n String pilih = cbFilter.getSelectedItem().toString();\n List<Stokdigudang> hasil = new ArrayList<>();\n\n int pan = tfFilter.getText().length();\n String banding = \"\";\n\n if (pilih.equals(\"Brand\")) {\n for (Stokdigudang s : listStok) {\n banding = s.getBrand().substring(0, pan);\n if (banding.equals(tfFilter.getText())) {\n hasil.add(s);\n }\n }\n } else if (pilih.equals(\"Kategori\")) {\n for (Stokdigudang s : listStok) {\n banding = s.getIDKategori().getNamaKategori().substring(0, pan);\n if (banding.equals(tfFilter.getText())) {\n hasil.add(s);\n }\n }\n } else if (pilih.equals(\"Supplier\")) {\n for (Stokdigudang s : listStok) {\n banding = s.getIDSupplier().getNamaPerusahaan().substring(0, pan);\n if (banding.equals(tfFilter.getText())) {\n hasil.add(s);\n }\n }\n } else {\n JOptionPane.showMessageDialog(this, \"Pilih Filter !\");\n }\n\n if (hasil.isEmpty()) {\n JOptionPane.showMessageDialog(this, \"Tidak ada stok yang ditemukan !\");\n } else {\n for (Stokdigudang s : hasil) {\n dtmStok.addRow(new Object[]{\n s.getIDBarang(),\n s.getNamaBarang(),\n s.getStok(),\n s.getBrand(),\n s.getHarga(),\n s.getIDKategori().getNamaKategori(),\n s.getIDSupplier().getNamaPerusahaan(),\n s.getTanggalDidapat()\n });\n }\n\n tableStok.setModel(dtmStok);\n }\n }", "private void filteringWithTypesOtherThanString() {\n PersonService personService = new PersonService(500);\n\n ComboBox<Person> comboBox = new ComboBox<>(\"Person\");\n comboBox.setPlaceholder(\"Enter minimum age to filter\");\n comboBox.setPattern(\"^\\\\d+$\");\n comboBox.setAllowedCharPattern(\"^\\\\d+$\");\n\n // Configuring fetch callback with a filter converter, so entered filter\n // strings can refer also to other typed properties like age (integer):\n comboBox.setItemsWithFilterConverter(\n query -> personService.fetchOlderThan(\n query.getFilter().orElse(null), query.getOffset(),\n query.getLimit()),\n ageStr -> ageStr.trim().isEmpty() ? null\n : Integer.parseInt(ageStr));\n comboBox.setItemLabelGenerator(person -> person.getFirstName() + \" \"\n + person.getLastName() + \" - \" + person.getAge());\n comboBox.setClearButtonVisible(true);\n comboBox.setWidth(WIDTH_STRING);\n addCard(\"Filtering\", \"Filtering with types other than String\",\n comboBox);\n }", "java.lang.String getField1161();", "java.lang.String getField1202();", "private void handleDCCTypeChange() {\n\t\tString dcc = cbDCC.getText();\n\t\tif (optionB[2].equals(dcc) || optionB[3].equals(dcc)) {\n\t\t\ttxtDCCValue.setEnabled(false);\n\t\t\ttxtDCCValue.setText(EMPTYSTRING);\n\t\t} else {\n\t\t\ttxtDCCValue.setEnabled(true);\n\t\t}\n\t}", "public String getFilter();", "java.lang.String getField1005();", "java.lang.String getField1818();", "@Override\n protected FilterResults performFiltering(CharSequence constraint) {\n FilterResults results = new FilterResults();\n if (constraint != null && constraint.length() > 0) {\n //CONSTARINT TO UPPER\n constraint = constraint.toString().toUpperCase();\n List<Product> filters = new ArrayList<Product>();\n //get specific items\n for (int i = 0; i < filterList.size(); i++) {\n if (filterList.get(i).getAdi().toUpperCase().contains(constraint)) {\n Product p = new Product(filterList.get(i).getIncKey(),filterList.get(i).getCicekPasta(),filterList.get(i).getUrunKodu(),\n filterList.get(i).getSatisFiyat(),filterList.get(i).getKdv(),filterList.get(i).getResimKucuk(),\n filterList.get(i).getSiparisSayi(),filterList.get(i).getDefaultKategori(),filterList.get(i).getCicekFiloFiyat(),\n filterList.get(i).getAdi(), filterList.get(i).getResimBuyuk(), filterList.get(i).getIcerik());\n filters.add(p);\n }\n }\n results.count = filters.size();\n results.values = filters;\n if(filters.size()==0){ // if not found result\n TextView tv= (TextView) mainActivity.findViewById(R.id.sonucyok);\n tv.setText(\"Üzgünüz, aradığınız sonucu bulamadık..\");\n Log.e(\"bbı\",\"oıfnot\");\n }\n else\n mainActivity.findViewById(R.id.sonucyok).setVisibility(View.INVISIBLE);\n\n } else {\n results.count = filterList.size();\n results.values = filterList;\n }\n return results;\n }", "java.lang.String getField1710();", "java.lang.String getField1159();", "private void reportexfiltro() {\n switch (idcombo){\n\n case 0:\n consultarlistareportes();\n AdaptadorReportes adaptadora=new AdaptadorReportes(listarreportesinc);\n adaptadora.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n //codreporte=codrep.toString();\n Toast.makeText(getApplicationContext(), \"Se obtiene el reporte\" +listarreportesinc.get(mRecyclerview.\n getChildAdapterPosition(v)).getCodreporte(),Toast.LENGTH_SHORT).show();\n Intent detalle= new Intent(PanelIncidentes.this,DetalleIncidente.class);\n variab=listarreportesinc.get(mRecyclerview.getChildAdapterPosition(v)).getCodreporte().toString();\n detalle.putExtra(\"pasar_codigo\",variab);\n startActivity(detalle);\n }\n });\n mRecyclerview.setAdapter(adaptadora);\n break;\n default:\n consultarlistareportesxiltro();\n AdaptadorReportes adaptadorb=new AdaptadorReportes(listarreportesinc);\n adaptadorb.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n //codreporte=codrep.toString();\n Toast.makeText(getApplicationContext(), \"Se obtiene el reporte\" +listarreportesinc.get(mRecyclerview.\n getChildAdapterPosition(v)).getCodreporte(),Toast.LENGTH_SHORT).show();\n Intent detalle= new Intent(PanelIncidentes.this,DetalleIncidente.class);\n variab=listarreportesinc.get(mRecyclerview.getChildAdapterPosition(v)).getCodreporte().toString();\n detalle.putExtra(\"pasar_codigo\",variab);\n startActivity(detalle);\n }\n });\n mRecyclerview.setAdapter(adaptadorb);\n break;\n }\n }", "java.lang.String getField1150();", "java.lang.String getField1100();", "public String askDepFilter();", "java.lang.String getField1995();", "void browse(Datatype dt, FlavorCreationDirective fcd, CompositeProfileDataExtension repo) {\n\t\tif(dt instanceof ComplexDatatype) {\n\t\t\tfor(Component field: ((ComplexDatatype) dt).getComponents()) {\n\t\t\t\tDatatype dtt = this.datatypeService.findById(field.getRef().getId());\n\t\t\t\tthis.browse(dtt, fcd, repo);\n\t\t\t}\n\t\t}\n\t}", "java.lang.String getField1162();", "java.lang.String getField1012();", "java.lang.String getField1111();", "java.lang.String getField1509();", "java.lang.String getField1216();", "java.lang.String getField1994();", "java.lang.String getField1196();", "java.lang.String getField1610();", "java.lang.String getField1158();", "java.lang.String getField1409();", "private int getSortValue() {\n\t\tint sortBy = DisplaySpecServices.ORDERDATESORT; // default sort option -\n\t\t// ORDERDATE\n\t\tif (this.searchNotSort == false) {\n\t\t\ttry {\n\t\t\t\tsortBy = Integer.parseInt(this.sortOption);\n\t\t\t} catch (NumberFormatException nfe) {\n\t\t\t\tsortBy = DisplaySpecServices.ORDERDATESORT; // default sort\n\t\t\t\t// option\n\t\t\t}\n\t\t} else {\n\t\t\tString searchOption = this.getSearchOption();\n\n\t\t\ttry {\n\t\t\t\tint searchOptValue = Integer.parseInt(searchOption);\n\t\t\t\tswitch (searchOptValue) {\n\t\t\t\tcase DisplaySpecServices.ORDERDATEFILTER:\n\t\t\t\t\tsortBy = DisplaySpecServices.ORDERDATESORT;\n\t\t\t\t\tthis.sortOption = String.valueOf(sortBy);\n\t\t\t\t\tbreak;\n\t\t\t\tcase DisplaySpecServices.REPUBLICATIONDATEFILTER:\n\t\t\t\t\tsortBy = DisplaySpecServices.REPUBLICATIONDATESORT;\n\t\t\t\t\tthis.sortOption = String.valueOf(sortBy);\n\t\t\t\t\tbreak;\n\t\t\t\tcase DisplaySpecServices.PUBLICATIONTITLEFILTER:\n\t\t\t\t\tsortBy = DisplaySpecServices.PUBLICATIONTITLESORT;\n\t\t\t\t\tthis.sortOption = String.valueOf(sortBy);\n\t\t\t\t\tbreak;\n\t\t\t\tcase DisplaySpecServices.ORDERDETAILIDFILTER:\n\t\t\t\t\tsortBy = DisplaySpecServices.ORDERDETAILIDSORT;\n\t\t\t\t\tthis.sortOption = String.valueOf(sortBy);\n\t\t\t\t\tbreak;\n\t\t\t\tcase DisplaySpecServices.PERMISSIONTYPEFILTER:\n\t\t\t\t\tsortBy = DisplaySpecServices.PERMISSIONTYPESORT; // 2ndary\n\t\t\t\t\t// sort\n\t\t\t\t\t// Order\n\t\t\t\t\t// Date\n\t\t\t\t\tthis.sortOption = String.valueOf(sortBy);\n\t\t\t\t\tbreak;\n\t\t\t\tcase DisplaySpecServices.PERMISSIONSTATUSFILTER:\n\t\t\t\t\tsortBy = DisplaySpecServices.PERMISSIONSTATUSSORT; // 2ndary\n\t\t\t\t\t// sort\n\t\t\t\t\t// Order\n\t\t\t\t\t// Date\n\t\t\t\t\tthis.sortOption = String.valueOf(sortBy);\n\t\t\t\t\tbreak;\n\t\t\t\tcase DisplaySpecServices.BILLINGSTATUSFILTER:\n\t\t\t\t\tsortBy = DisplaySpecServices.ORDERDATESORT;\n\t\t\t\t\tthis.sortOption = String.valueOf(sortBy);\n\t\t\t\t\tbreak;\n\t\t\t\tcase DisplaySpecServices.YOURREFERENCEFILTER:\n\t\t\t\t\tsortBy = DisplaySpecServices.YOURREFERENCESORT;\n\t\t\t\t\tthis.sortOption = String.valueOf(sortBy);\n\t\t\t\t\tbreak;\n\t\t\t\tcase DisplaySpecServices.INVOICENUMBERFILTER:\n\t\t\t\t\tsortBy = DisplaySpecServices.INVOICENUMBERSORT;\n\t\t\t\t\tthis.sortOption = String.valueOf(sortBy);\n\t\t\t\t\tbreak;\n\t\t\t\tcase DisplaySpecServices.REPUBLICATIONTITLEFILTER:\n\t\t\t\t\tsortBy = DisplaySpecServices.REPUBLICATIONTITLESORT;\n\t\t\t\t\tthis.sortOption = String.valueOf(sortBy);\n\t\t\t\t\tbreak;\n\t\t\t\tcase DisplaySpecServices.REPUBLICATIONPUBLISHERFILTER:\n\t\t\t\t\tsortBy = DisplaySpecServices.REPUBLICATIONPUBLISHERSORT;\n\t\t\t\t\tthis.sortOption = String.valueOf(sortBy);\n\t\t\t\t\tbreak;\n\t\t\t\tcase DisplaySpecServices.LASTUPDATEDATESORT:\n\t\t\t\t\tsortBy = DisplaySpecServices.LASTUPDATEDATESORT;\n\t\t\t\t\tthis.sortOption = String.valueOf(sortBy);\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tsortBy = DisplaySpecServices.ORDERDATESORT; // default\n\t\t\t\t\tthis.sortOption = String.valueOf(sortBy);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t} catch (NumberFormatException nfe) {\n\t\t\t\tsortBy = DisplaySpecServices.ORDERDATESORT; // default\n\t\t\t\tthis.sortOption = String.valueOf(sortBy);\n\t\t\t}\n\t\t}\n\t\treturn sortBy;\n\t}", "java.lang.String getField1259();", "java.lang.String getField1996();", "public void formatarDadosEntidade(){\n\t\tcodigoMunicipioOrigem = Util.completarStringZeroEsquerda(codigoMunicipioOrigem, 10);\n\t\tcodigoClasseConsumo = Util.completarStringZeroEsquerda(codigoClasseConsumo, 2);\n\n\t}", "java.lang.String getField1609();", "java.lang.String getField1502();", "java.lang.String getField1206();", "java.lang.String getField1999();", "java.lang.String getField1275();", "java.lang.String getField1059();", "@RequestMapping(value = \"/filter\", method = RequestMethod.POST)\n\tpublic String filter(Model model, @RequestParam(value = \"type\", required = false) String type, @RequestParam(value = \"id\", required = false) String id ) {\n\t\t\n\t\t/* return list of comics with specific filter */\n\t\t/*-Types- */\n\t\t/* 2 = comics by genre */\n\t\t/* 3 = comics by author */\n\t\tList<Comic> comics = new ArrayList<Comic>();\n\t\tif(type.equals(\"2\")){\n\t\t\tcomics = comicService.findByGenre(Integer.parseInt(id));\n\t\t}else if(type.equals(\"3\")){\n\t\t\tcomics = comicService.findByAuthor(Integer.parseInt(id));\n\t\t}\n\t\t//contenuto dei selectbox\n\t\tmodel.addAttribute(\"comics\", comics);\n\t\tmodel.addAttribute(\"authors\", authorService.restart().find());\n\t\tmodel.addAttribute(\"genres\", genreService.restart().find());\n\t\t\n\t\t//chiama la pagina di listaggio\n\t\treturn \"admin/comic/comic\";\n\t}", "java.lang.String getFilter();", "java.lang.String getField1506();", "java.lang.String getField1521();", "@VTID(6)\n String convertLogicalToVisualDateType(\n int fieldType,\n boolean skipEqualityInVerification,\n String logicalDate);", "java.lang.String getField1605();", "java.lang.String getField1209();", "private void cargarFiltros(Map<String, String> filters)\r\n/* 81: */ {\r\n/* 82:107 */ filters.put(\"numero\", String.valueOf(getDimension()));\r\n/* 83: */ }", "java.lang.String getField1709();", "@Override\n public ArrayList<Propiedad> getPropiedadesFiltroAgente(String pCriterio, String pDato, String pId)\n throws SQLException {\n ArrayList<Propiedad> resultado = new ArrayList<Propiedad>();\n resultado = (ArrayList<Propiedad>) bdPropiedad.selectQuery(\"SELECT * FROM PROPIEDAD WHERE ID_AGENTE \"\n + \"= '\" + pId + \"' AND \" + pCriterio + \" = '\" + pDato + \"'\");\n return resultado;\n }", "java.lang.String getField1221();", "@Override\n protected FilterResults performFiltering(CharSequence constraint) {\n\n FilterResults results=new FilterResults();\n\n if(constraint != null && constraint.length()>0)\n {\n //CONSTARINT TO UPPER\n constraint=constraint.toString().toUpperCase();\n\n ArrayList<Busqueda> filters=new ArrayList<Busqueda>();\n\n //get specific items\n for(int i=0;i<FilterDatos.size();i++)\n {\n if(FilterDatos.get(i).getTitulo().toUpperCase().contains(constraint))\n {\n Busqueda p=new Busqueda();\n p.setId(FilterDatos.get(i).getId());\n p.setTitulo(FilterDatos.get(i).getTitulo());\n p.setDescripcion(FilterDatos.get(i).getDescripcion());\n p.setContraseña(FilterDatos.get(i).getContraseña());\n p.setLongitud(FilterDatos.get(i).getLongitud());\n p.setTerminada(FilterDatos.get(i).getTerminada());\n p.setPuntos(FilterDatos.get(i).getPuntos());\n filters.add(p);\n }\n }\n\n results.count=filters.size();\n results.values=filters;\n\n }else\n {\n results.count=FilterDatos.size();\n results.values=FilterDatos;\n\n }\n\n return results;\n }", "java.lang.String getField1198();", "java.lang.String getField1066();", "java.lang.String getField1300();", "java.lang.String getField1195();", "public DVDDetails getDetails(String dvdID);", "java.lang.String getField1296();", "java.lang.String getField1190();", "java.lang.String getField1115();", "java.lang.String getField1203();", "java.lang.String getField1014();", "public String generateStringCamposFiltro() {\r\n\t\treturn inicializarCamposComunes();\r\n\t}", "java.lang.String getField1133();", "java.lang.String getField1096();", "java.lang.String getField1646();", "java.lang.String getField1621();", "java.lang.String getField1299();", "java.lang.String getField1712();" ]
[ "0.5904323", "0.563782", "0.5541004", "0.5499943", "0.54802406", "0.5444873", "0.5326664", "0.5316321", "0.5285792", "0.5227783", "0.5227019", "0.5220961", "0.52085555", "0.5207145", "0.51850015", "0.5170918", "0.51486194", "0.51473826", "0.5113818", "0.51027757", "0.5047639", "0.5044348", "0.5018231", "0.5004313", "0.4979751", "0.4969259", "0.4963173", "0.4956341", "0.49541315", "0.4952167", "0.49494553", "0.4943845", "0.49435493", "0.49384725", "0.49383512", "0.49321833", "0.4926838", "0.49268368", "0.4924798", "0.49233055", "0.49225095", "0.4921003", "0.4918352", "0.49154916", "0.49139467", "0.49118263", "0.4905883", "0.48993698", "0.48979938", "0.48971426", "0.4893685", "0.4888343", "0.48883393", "0.48850977", "0.4882431", "0.48804033", "0.48788083", "0.48679966", "0.48656812", "0.48656687", "0.48654467", "0.48622468", "0.48617494", "0.48603228", "0.48588765", "0.48585156", "0.48568386", "0.48557997", "0.48545727", "0.4853405", "0.48524854", "0.4846042", "0.48451936", "0.48435345", "0.4840812", "0.4838212", "0.48283702", "0.4828165", "0.4827468", "0.4824249", "0.48239598", "0.4823193", "0.4822211", "0.48175642", "0.48171416", "0.48171166", "0.4816386", "0.48142827", "0.4813615", "0.48122853", "0.48122478", "0.48113242", "0.48106515", "0.48091075", "0.4806136", "0.4805424", "0.48041606", "0.4803945", "0.48007584", "0.48002282" ]
0.6318113
0
/ renamed from: a
public void mo8812a(int i) { if (i == 1) { C2331d.m10114a((Activity) C3720a.this, C2328a.ON_ERROR_REMAIN_ZERO, (Bundle) null); } else if (i == 2) { C2331d.m10114a((Activity) C3720a.this, C2328a.ON_ERROR_SD_LOCK_MOVIE, (Bundle) null); } else if (i == 3) { C2331d.m10114a((Activity) C3720a.this, C2328a.ON_ERROR_MOVIE_RECORD_FAIL, (Bundle) null); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed from: a */\n void mo85415a(String str);\n }", "interface C10331b {\n /* renamed from: a */\n void mo26876a(int i);\n }", "public interface C0779a {\n /* renamed from: a */\n void mo2311a();\n}", "public interface C6788a {\n /* renamed from: a */\n void mo20141a();\n }", "public interface C0237a {\n /* renamed from: a */\n void mo1791a(String str);\n }", "public interface C35013b {\n /* renamed from: a */\n void mo88773a(int i);\n}", "public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }", "interface C0312e {\n /* renamed from: a */\n void mo4671a(View view, int i, int i2, int i3, int i4);\n }", "public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }", "public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }", "private String convertir(String a) {\n StringBuilder atributo = new StringBuilder(a);\n atributo.insert(0, Character.toUpperCase(atributo.charAt(0)));\n return atributo.deleteCharAt(1).toString();\n }", "protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }", "public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }", "private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }", "public interface C3598a {\n /* renamed from: a */\n void mo11024a(int i, int i2, String str);\n }", "public interface C2459d {\n /* renamed from: a */\n C2451d mo3408a(C2457e c2457e);\n}", "public interface am extends ak {\r\n /* renamed from: a */\r\n void mo194a(int i) throws RemoteException;\r\n\r\n /* renamed from: a */\r\n void mo195a(List<LatLng> list) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo196b(float f) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo197b(boolean z);\r\n\r\n /* renamed from: c */\r\n void mo198c(boolean z) throws RemoteException;\r\n\r\n /* renamed from: g */\r\n float mo199g() throws RemoteException;\r\n\r\n /* renamed from: h */\r\n int mo200h() throws RemoteException;\r\n\r\n /* renamed from: i */\r\n List<LatLng> mo201i() throws RemoteException;\r\n\r\n /* renamed from: j */\r\n boolean mo202j();\r\n\r\n /* renamed from: k */\r\n boolean mo203k();\r\n}", "public interface C32459e<T> {\n /* renamed from: a */\n void mo83698a(T t);\n }", "public interface C32458d<T> {\n /* renamed from: a */\n void mo83695a(T t);\n }", "public interface C5482b {\n /* renamed from: a */\n void mo27575a();\n\n /* renamed from: a */\n void mo27576a(int i);\n }", "public interface C27084a {\n /* renamed from: a */\n void mo69874a();\n\n /* renamed from: a */\n void mo69875a(List<Aweme> list, boolean z);\n }", "public void a() {\n ((a) this.a).a();\n }", "public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }", "public interface C13373b {\n /* renamed from: a */\n void mo32681a(String str, int i, boolean z);\n}", "public interface C40453c {\n /* renamed from: a */\n void mo100442a(C40429b bVar);\n\n /* renamed from: a */\n void mo100443a(List<String> list);\n\n /* renamed from: b */\n void mo100444b(List<C40429b> list);\n}", "public interface AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }", "@Override\r\n\tpublic void a() {\n\t\t\r\n\t}", "public interface C43270a {\n /* renamed from: a */\n void mo64942a(String str, long j, long j2);\n}", "public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}", "public interface C0087c {\n /* renamed from: a */\n String mo150a(String str);\n}", "public interface C1529m {\n /* renamed from: a */\n void mo3767a(int i);\n\n /* renamed from: a */\n void mo3768a(String str);\n}", "interface C4483e {\n /* renamed from: a */\n boolean mo34114a();\n}", "public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}", "public interface C10965j<T> {\n /* renamed from: a */\n T mo26439a();\n}", "public interface C28772a {\n /* renamed from: a */\n View mo73990a(View view);\n }", "@Override\n\tpublic void a() {\n\t\t\n\t}", "public interface C8326b {\n /* renamed from: a */\n C8325a mo21498a(String str);\n\n /* renamed from: a */\n void mo21499a(C8325a aVar);\n}", "void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}", "public interface C2367a {\n /* renamed from: a */\n C2368d mo1698a();\n }", "interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }", "public interface C4211a {\n\n /* renamed from: com.iab.omid.library.oguryco.c.a$a */\n public interface C4212a {\n /* renamed from: a */\n void mo28760a(View view, C4211a aVar, JSONObject jSONObject);\n }\n\n /* renamed from: a */\n JSONObject mo28758a(View view);\n\n /* renamed from: a */\n void mo28759a(View view, JSONObject jSONObject, C4212a aVar, boolean z);\n}", "public interface C4697a extends C5595at {\n /* renamed from: a */\n void mo12634a();\n\n /* renamed from: a */\n void mo12635a(String str);\n\n /* renamed from: a */\n void mo12636a(boolean z);\n\n /* renamed from: b */\n void mo12637b();\n\n /* renamed from: c */\n void mo12638c();\n }", "public interface C4773c {\n /* renamed from: a */\n void m15858a(int i);\n\n /* renamed from: a */\n void m15859a(int i, int i2);\n\n /* renamed from: a */\n void m15860a(int i, int i2, int i3);\n\n /* renamed from: b */\n void m15861b(int i, int i2);\n}", "public interface C4869f {\n /* renamed from: a */\n C4865b mo6249a();\n}", "public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }", "public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}", "public interface C0601aq {\n /* renamed from: a */\n void mo9148a(int i, ArrayList<C0889x> arrayList);\n}", "public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}", "public interface AbstractC6461g {\n /* renamed from: a */\n String mo42332a();\n}", "public interface AbstractC1645a {\n /* renamed from: a */\n String mo17375a();\n }", "public interface C6178c {\n /* renamed from: a */\n Map<String, String> mo14888a();\n}", "public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}", "public interface C19045k {\n /* renamed from: a */\n void mo50368a(int i, Object obj);\n\n /* renamed from: b */\n void mo50369b(int i, Object obj);\n}", "public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }", "public interface C7720a {\n /* renamed from: a */\n long mo20406a();\n}", "public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }", "public interface ayt {\n /* renamed from: a */\n int mo1635a(long j, List list);\n\n /* renamed from: a */\n long mo1636a(long j, alb alb);\n\n /* renamed from: a */\n void mo1637a();\n\n /* renamed from: a */\n void mo1638a(long j, long j2, List list, ayp ayp);\n\n /* renamed from: a */\n void mo1639a(ayl ayl);\n\n /* renamed from: a */\n boolean mo1640a(ayl ayl, boolean z, Exception exc, long j);\n}", "public interface C24221b extends C28343z<C28318an> {\n /* renamed from: a */\n void mo62991a(int i);\n\n String aw_();\n\n /* renamed from: e */\n Aweme mo62993e();\n}", "public interface C4051c {\n /* renamed from: a */\n boolean mo23707a();\n}", "public interface C45112b {\n /* renamed from: a */\n List<C45111a> mo107674a(Integer num);\n\n /* renamed from: a */\n List<C45111a> mo107675a(Integer num, Integer num2);\n\n /* renamed from: a */\n void mo107676a(C45111a aVar);\n\n /* renamed from: b */\n void mo107677b(Integer num);\n\n /* renamed from: c */\n long mo107678c(Integer num);\n}", "public void acionou(int a){\n\t\t\tb=a;\n\t\t}", "public interface C44963i {\n /* renamed from: a */\n void mo63037a(int i, int i2);\n\n void aA_();\n\n /* renamed from: b */\n void mo63039b(int i, int i2);\n}", "public interface C32457c<T> {\n /* renamed from: a */\n void mo83699a(T t, int i, int i2, String str);\n }", "public interface C5861g {\n /* renamed from: a */\n void mo18320a(C7251a aVar);\n\n @Deprecated\n /* renamed from: a */\n void mo18321a(C7251a aVar, String str);\n\n /* renamed from: a */\n void mo18322a(C7252b bVar);\n\n /* renamed from: a */\n void mo18323a(C7253c cVar);\n\n /* renamed from: a */\n void mo18324a(C7260j jVar);\n}", "public interface C0937a {\n /* renamed from: a */\n void mo3807a(C0985po[] poVarArr);\n }", "public interface C8466a {\n /* renamed from: a */\n void mo25956a(int i);\n\n /* renamed from: a */\n void mo25957a(long j, long j2);\n }", "public interface C39684b {\n /* renamed from: a */\n void mo98969a();\n\n /* renamed from: a */\n void mo98970a(C29296g gVar);\n\n /* renamed from: a */\n void mo98971a(C29296g gVar, int i);\n }", "public interface C43470b {\n /* renamed from: a */\n void mo61496a(C43469a aVar, C43471c cVar);\n }", "public interface AbstractC18255a {\n /* renamed from: a */\n void mo88521a();\n\n /* renamed from: a */\n void mo88522a(String str);\n\n /* renamed from: b */\n void mo88523b();\n\n /* renamed from: c */\n void mo88524c();\n }", "public interface C1436d {\n /* renamed from: a */\n C1435c mo1754a(C1433a c1433a, C1434b c1434b);\n}", "public interface C4150sl {\n /* renamed from: a */\n void mo15005a(C4143se seVar);\n}", "public void a(nm paramnm)\r\n/* 28: */ {\r\n/* 29:45 */ paramnm.a(this);\r\n/* 30: */ }", "public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }", "public interface C11113o {\n /* renamed from: a */\n void mo37759a(String str);\n }", "public interface C39504az {\n /* renamed from: a */\n int mo98207a();\n\n /* renamed from: a */\n void mo98208a(boolean z);\n\n /* renamed from: b */\n int mo98209b();\n\n /* renamed from: c */\n int mo98355c();\n\n /* renamed from: d */\n int mo98356d();\n\n /* renamed from: e */\n int mo98357e();\n\n /* renamed from: f */\n int mo98358f();\n}", "protected a<T> a(Tag.e<T> var0) {\n/* 80 */ Tag.a var1 = b(var0);\n/* 81 */ return new a<>(var1, this.c, \"vanilla\");\n/* */ }", "public interface C35565a {\n /* renamed from: a */\n C45321i mo90380a();\n }", "public interface C21298a {\n /* renamed from: a */\n void mo57275a();\n\n /* renamed from: a */\n void mo57276a(Exception exc);\n\n /* renamed from: b */\n void mo57277b();\n\n /* renamed from: c */\n void mo57278c();\n }", "public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }", "public interface C0456a {\n /* renamed from: a */\n void mo2090a(C0455b bVar);\n\n /* renamed from: a */\n boolean mo2091a(C0455b bVar, Menu menu);\n\n /* renamed from: a */\n boolean mo2092a(C0455b bVar, MenuItem menuItem);\n\n /* renamed from: b */\n boolean mo2093b(C0455b bVar, Menu menu);\n }", "public interface C4724o {\n /* renamed from: a */\n void mo4872a(int i, String str);\n\n /* renamed from: a */\n void mo4873a(C4718l c4718l);\n\n /* renamed from: b */\n void mo4874b(C4718l c4718l);\n}", "public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }", "public interface C2603a {\n /* renamed from: a */\n String mo1889a(String str, String str2, String str3, String str4);\n }", "public interface afp {\n /* renamed from: a */\n C0512sx mo169a(C0497si siVar, afj afj, afr afr, Context context);\n}", "public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}", "public interface a {\n\n /* renamed from: c.b.a.c.b.b.a$a reason: collision with other inner class name */\n /* compiled from: DiskCache */\n public interface C0054a {\n a build();\n }\n\n /* compiled from: DiskCache */\n public interface b {\n boolean a(File file);\n }\n\n File a(c cVar);\n\n void a(c cVar, b bVar);\n}", "public interface C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }", "public interface AbstractC17368c {\n /* renamed from: a */\n void mo84656a(float f);\n }", "interface C0932a {\n /* renamed from: a */\n void mo7438a(int i, int i2);\n\n /* renamed from: b */\n void mo7439b(C0933b bVar);\n\n /* renamed from: c */\n void mo7440c(int i, int i2, Object obj);\n\n /* renamed from: d */\n void mo7441d(C0933b bVar);\n\n /* renamed from: e */\n RecyclerView.ViewHolder mo7442e(int i);\n\n /* renamed from: f */\n void mo7443f(int i, int i2);\n\n /* renamed from: g */\n void mo7444g(int i, int i2);\n\n /* renamed from: h */\n void mo7445h(int i, int i2);\n }", "public interface C10330c {\n /* renamed from: a */\n C7562b<C10403b, C10328a> mo25041a();\n}", "public interface C3819a {\n /* renamed from: a */\n void mo23214a(Message message);\n }", "private Proof atoAImpl(Expression a) {\n Proof where = axm2(a, arrow(a, a), a); //a->(a->a) -> (a->(a->a)->a) -> (a -> a)\n Proof one = axm1(a, a); //a->a->a\n Proof two = axm1(a, arrow(a, a)); //a->(a->a)->A\n return mpTwice(where, one, two);\n }", "interface C1939a {\n /* renamed from: a */\n Bitmap mo1406a(Bitmap bitmap, float f);\n}", "public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }", "public b[] a() {\n/* 95 */ return this.a;\n/* */ }", "interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }" ]
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064", "0.5794689", "0.57890314", "0.57838726", "0.5775679", "0.57694733", "0.5769128", "0.57526815", "0.56907034", "0.5677874", "0.5670547", "0.56666386", "0.56592244", "0.5658682", "0.56574154", "0.5654324", "0.5644676", "0.56399715", "0.5638734", "0.5630582", "0.56183887", "0.5615435", "0.56069666", "0.5605207", "0.56005067", "0.559501", "0.55910283", "0.5590222", "0.55736613", "0.5556682", "0.5554544", "0.5550076", "0.55493855", "0.55446684", "0.5538079", "0.5529058", "0.5528109", "0.552641", "0.5525864", "0.552186", "0.5519972", "0.5509587", "0.5507195", "0.54881203", "0.5485328", "0.54826045", "0.5482066", "0.5481586", "0.5479751", "0.54776895", "0.54671466", "0.5463307", "0.54505056", "0.54436916", "0.5440517", "0.5439747", "0.5431944", "0.5422869", "0.54217863", "0.5417556", "0.5403905", "0.5400223", "0.53998446", "0.5394735", "0.5388649", "0.5388258", "0.5374842", "0.5368887", "0.53591394", "0.5357029", "0.5355688", "0.535506", "0.5355034", "0.53494394", "0.5341044", "0.5326166", "0.53236824", "0.53199095", "0.53177035", "0.53112453", "0.5298229" ]
0.0
-1
/ renamed from: b
public void mo8818b(int i) { if (i == 1) { C2331d.m10114a((Activity) C3720a.this, C2328a.ON_ERROR_REMAIN_ZERO, (Bundle) null); } else if (i == 2) { C2331d.m10114a((Activity) C3720a.this, C2328a.ON_ERROR_SD_LOCK_PICTURE, (Bundle) null); } else if (i == 3) { C2331d.m10114a((Activity) C3720a.this, C2328a.ON_ERROR_PIC_CAPTURE_FAIL, (Bundle) null); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void mo2508a(bxb bxb);", "@Override\n public void func_104112_b() {\n \n }", "@Override\n public void b() {\n }", "public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }", "@Override\n\tpublic void b2() {\n\t\t\n\t}", "void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "@Override\n\tpublic void b() {\n\n\t}", "interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }", "public bb b() {\n return a(this.a);\n }", "@Override\n\tpublic void b1() {\n\t\t\n\t}", "public void b() {\r\n }", "@Override\n\tpublic void bbb() {\n\t\t\n\t}", "public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }", "public abstract void b(StringBuilder sb);", "public void b() {\n }", "public void b() {\n }", "protected b(int mb) {\n/* 87 */ this.b = mb;\n/* */ }", "public u(b paramb)\r\n/* 7: */ {\r\n/* 8: 9 */ this.a = paramb;\r\n/* 9: */ }", "public interface b {\n void H_();\n\n void I_();\n\n void J_();\n\n void a(C0063d dVar);\n\n void a(byte[] bArr);\n\n void b(boolean z);\n }", "public b[] a() {\n/* 95 */ return this.a;\n/* */ }", "public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }", "public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }", "public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}", "public void b() {\n ((a) this.a).b();\n }", "public np a()\r\n/* 33: */ {\r\n/* 34:49 */ return this.b;\r\n/* 35: */ }", "b(a aVar) {\n super(0);\n this.this$0 = aVar;\n }", "public t b() {\n return a(this.a);\n }", "public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }", "public static String a(int c) {\n/* 89 */ return b.a(c);\n/* */ }", "private void m678b(byte b) {\n byte[] bArr = this.f523r;\n bArr[0] = b;\n this.f552g.mo502b(bArr);\n }", "public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }", "public abstract T zzm(B b);", "public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }", "public void b(World paramaqu, BlockPosition paramdt, Block parambec)\r\n/* 27: */ {\r\n/* 28: 47 */ bcm localbcm = paramaqu.s(paramdt);\r\n/* 29: 48 */ if ((localbcm instanceof bdv)) {\r\n/* 30: 49 */ ((bdv)localbcm).h();\r\n/* 31: */ } else {\r\n/* 32: 51 */ super.b(paramaqu, paramdt, parambec);\r\n/* 33: */ }\r\n/* 34: */ }", "public abstract void zzc(B b, int i, int i2);", "public interface b {\n}", "public interface b {\n}", "private void m10263b(byte b) throws cf {\r\n this.f6483r[0] = b;\r\n this.g.m10347b(this.f6483r);\r\n }", "BSubstitution createBSubstitution();", "public void b(ahd paramahd) {}", "void b();", "public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}", "B database(S database);", "public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}", "public abstract C0631bt mo9227aB();", "public an b() {\n return a(this.a);\n }", "protected abstract void a(bru parambru);", "static void go(Base b) {\n\t\tb.add(8);\n\t}", "void mo46242a(bmc bmc);", "public interface b extends c {\n void a(Float f);\n\n void a(Integer num);\n\n void b(Float f);\n\n void c(Float f);\n\n String d();\n\n void d(Float f);\n\n void d(String str);\n\n void e(Float f);\n\n void e(String str);\n\n void f(String str);\n\n void g(String str);\n\n Long j();\n\n LineChart k();\n }", "public interface bca extends bbn {\n bca a();\n\n bca a(String str);\n\n bca b(String str);\n\n bca c(String str);\n}", "public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }", "public abstract BoundType b();", "public void b(amj paramamj)\r\n/* 538: */ {\r\n/* 539:579 */ this.f = paramamj;\r\n/* 540: */ }", "b(a aVar, com.bytedance.jedi.model.h.a aVar2) {\n super(aVar2);\n this.f21531a = aVar;\n this.f21532b = new com.bytedance.jedi.model.h.f(aVar);\n }", "private void b(int paramInt)\r\n/* 193: */ {\r\n/* 194:203 */ this.h.a(a(paramInt));\r\n/* 195: */ }", "public void b(ahb paramahb)\r\n/* 583: */ {\r\n/* 584:625 */ for (int i = 0; i < this.a.length; i++) {\r\n/* 585:626 */ this.a[i] = amj.b(paramahb.a[i]);\r\n/* 586: */ }\r\n/* 587:628 */ for (i = 0; i < this.b.length; i++) {\r\n/* 588:629 */ this.b[i] = amj.b(paramahb.b[i]);\r\n/* 589: */ }\r\n/* 590:631 */ this.c = paramahb.c;\r\n/* 591: */ }", "interface b {\n\n /* compiled from: CreditAccountContract */\n public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }\n\n /* compiled from: CreditAccountContract */\n public interface b extends c {\n void a(Float f);\n\n void a(Integer num);\n\n void b(Float f);\n\n void c(Float f);\n\n String d();\n\n void d(Float f);\n\n void d(String str);\n\n void e(Float f);\n\n void e(String str);\n\n void f(String str);\n\n void g(String str);\n\n Long j();\n\n LineChart k();\n }\n}", "@Override\n\tpublic void visit(PartB partB) {\n\n\t}", "public abstract void zzb(B b, int i, long j);", "public abstract void zza(B b, int i, zzeh zzeh);", "int metodo2(int a, int b) {\r\n\r\n\t\tthis.a += 5; // se modifica el campo del objeto, el uso de la palabra reservada this se utiliza para referenciar al campo.\r\n\t\tb += 7;\r\n\t\treturn a; // modifica en la asignaci\\u00f3n\r\n\t}", "private void internalCopy(Board b) {\n for (int i = 0; i < SIDE * SIDE; i += 1) {\n set(i, b.get(i));\n }\n\n _directions = b._directions;\n _whoseMove = b._whoseMove;\n _history = b._history;\n }", "public int b()\r\n/* 69: */ {\r\n/* 70:74 */ return this.b;\r\n/* 71: */ }", "public void b(StringBuilder sb) {\n sb.append(this.a);\n sb.append(')');\n }", "public void b() {\n e$a e$a;\n try {\n e$a = this.b;\n }\n catch (IOException iOException) {\n return;\n }\n Object object = this.c;\n e$a.b(object);\n }", "public abstract void a(StringBuilder sb);", "public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}", "public abstract void zzf(Object obj, B b);", "public interface bdp {\n\n /* renamed from: a */\n public static final bdp f3422a = new bdo();\n\n /* renamed from: a */\n bdm mo1784a(akh akh);\n}", "@Override\n\tpublic void parse(Buffer b) {\n\t\t\n\t}", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "public abstract void a(b paramb, int paramInt1, int paramInt2);", "public void mo1945a(byte b) throws cf {\r\n m10263b(b);\r\n }", "void mo83703a(C32456b<T> bVar);", "public void a(String str) {\n ((b.b) this.b).d(str);\n }", "public void selectB() { }", "BOperation createBOperation();", "void metodo1(int a, int b) {\r\n\t\ta += 5;//par\\u00e1metro con el mismo nombre que el campo.\r\n\t\tb += 7;\r\n\t}", "private static void m2196a(StringBuffer stringBuffer, byte b) {\n stringBuffer.append(\"0123456789ABCDEF\".charAt((b >> 4) & 15)).append(\"0123456789ABCDEF\".charAt(b & 15));\n }", "public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }", "public void b(fv paramfv)\r\n/* 408: */ {\r\n/* 409:423 */ this.a = new amj[36];\r\n/* 410:424 */ this.b = new amj[4];\r\n/* 411:425 */ for (int i = 0; i < paramfv.c(); i++)\r\n/* 412: */ {\r\n/* 413:426 */ fn localfn = paramfv.b(i);\r\n/* 414:427 */ int j = localfn.d(\"Slot\") & 0xFF;\r\n/* 415:428 */ amj localamj = amj.a(localfn);\r\n/* 416:429 */ if (localamj != null)\r\n/* 417: */ {\r\n/* 418:430 */ if ((j >= 0) && (j < this.a.length)) {\r\n/* 419:431 */ this.a[j] = localamj;\r\n/* 420: */ }\r\n/* 421:433 */ if ((j >= 100) && (j < this.b.length + 100)) {\r\n/* 422:434 */ this.b[(j - 100)] = localamj;\r\n/* 423: */ }\r\n/* 424: */ }\r\n/* 425: */ }\r\n/* 426: */ }", "public void b(String str) {\n ((b.b) this.b).e(str);\n }", "public String b()\r\n/* 35: */ {\r\n/* 36:179 */ return a();\r\n/* 37: */ }", "public abstract void zza(B b, int i, T t);", "public Item b(World paramaqu, BlockPosition paramdt)\r\n/* 189: */ {\r\n/* 190:220 */ return null;\r\n/* 191: */ }", "public abstract void zza(B b, int i, long j);", "public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}", "private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }", "public abstract void mo9798a(byte b);", "public void mo9798a(byte b) {\n if (this.f9108f == this.f9107e) {\n mo9827i();\n }\n byte[] bArr = this.f9106d;\n int i = this.f9108f;\n this.f9108f = i + 1;\n bArr[i] = b;\n this.f9109g++;\n }", "public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}", "private void m676a(TField bkVar, byte b) {\n if (b == -1) {\n b = m687e(bkVar.f538b);\n }\n short s = bkVar.f539c;\n short s2 = this.f519n;\n if (s <= s2 || s - s2 > 15) {\n m678b(b);\n mo446a(bkVar.f539c);\n } else {\n m686d(b | ((s - s2) << 4));\n }\n this.f519n = bkVar.f539c;\n }", "private static void m831a(C0741g<?> gVar, C0747b bVar) {\n gVar.mo9477a(C0743i.f718b, (C0739e<? super Object>) bVar);\n gVar.mo9476a(C0743i.f718b, (C0738d) bVar);\n gVar.mo9474a(C0743i.f718b, (C0736b) bVar);\n }", "public interface C40453c {\n /* renamed from: a */\n void mo100442a(C40429b bVar);\n\n /* renamed from: a */\n void mo100443a(List<String> list);\n\n /* renamed from: b */\n void mo100444b(List<C40429b> list);\n}", "private void j()\n/* */ {\n/* 223 */ c localc = this.b;\n/* 224 */ this.b = this.c;\n/* 225 */ this.c = localc;\n/* 226 */ this.c.b();\n/* */ }", "public lj ar(byte b) {\n throw new Runtime(\"d2j fail translate: java.lang.RuntimeException: can not merge I and Z\\r\\n\\tat com.googlecode.dex2jar.ir.TypeClass.merge(TypeClass.java:100)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeRef.updateTypeClass(TypeTransformer.java:174)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.provideAs(TypeTransformer.java:780)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.e1expr(TypeTransformer.java:496)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:713)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:703)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.enexpr(TypeTransformer.java:698)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:719)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:703)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.s1stmt(TypeTransformer.java:810)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.sxStmt(TypeTransformer.java:840)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.analyze(TypeTransformer.java:206)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer.transform(TypeTransformer.java:44)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar$2.optimize(Dex2jar.java:162)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertCode(Dex2Asm.java:414)\\r\\n\\tat com.googlecode.d2j.dex.ExDex2Asm.convertCode(ExDex2Asm.java:42)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar$2.convertCode(Dex2jar.java:128)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertMethod(Dex2Asm.java:509)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertClass(Dex2Asm.java:406)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertDex(Dex2Asm.java:422)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar.doTranslate(Dex2jar.java:172)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar.to(Dex2jar.java:272)\\r\\n\\tat com.googlecode.dex2jar.tools.Dex2jarCmd.doCommandLine(Dex2jarCmd.java:108)\\r\\n\\tat com.googlecode.dex2jar.tools.BaseCmd.doMain(BaseCmd.java:288)\\r\\n\\tat com.googlecode.dex2jar.tools.Dex2jarCmd.main(Dex2jarCmd.java:32)\\r\\n\");\n }", "public interface AbstractC10485b {\n /* renamed from: a */\n void mo64153a(boolean z);\n }", "public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }", "interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }" ]
[ "0.64558864", "0.6283203", "0.6252635", "0.6250949", "0.6244743", "0.6216273", "0.6194491", "0.6193556", "0.61641675", "0.6140157", "0.60993093", "0.60974354", "0.6077849", "0.6001867", "0.5997364", "0.59737104", "0.59737104", "0.5905105", "0.5904295", "0.58908087", "0.5886636", "0.58828026", "0.5855491", "0.584618", "0.5842517", "0.5824137", "0.5824071", "0.58097327", "0.5802052", "0.58012927", "0.579443", "0.5792392", "0.57902914", "0.5785124", "0.57718205", "0.57589084", "0.5735892", "0.5735892", "0.5734873", "0.5727929", "0.5720821", "0.5712531", "0.5706813", "0.56896514", "0.56543154", "0.5651059", "0.5649904", "0.56496733", "0.5647035", "0.5640965", "0.5640109", "0.563993", "0.5631903", "0.5597427", "0.55843794", "0.5583287", "0.557783", "0.55734867", "0.55733293", "0.5572254", "0.55683887", "0.55624336", "0.55540246", "0.5553985", "0.55480546", "0.554261", "0.5535739", "0.5529958", "0.5519634", "0.5517503", "0.55160624", "0.5511545", "0.5505353", "0.5500533", "0.5491741", "0.5486198", "0.5481978", "0.547701", "0.54725856", "0.5471632", "0.5463497", "0.5460805", "0.5454913", "0.5454885", "0.54519916", "0.5441594", "0.5436747", "0.5432453", "0.5425923", "0.5424724", "0.54189867", "0.54162544", "0.54051477", "0.53998184", "0.53945845", "0.53887725", "0.5388146", "0.5387678", "0.53858143", "0.53850687", "0.5384439" ]
0.0
-1
/ renamed from: a
public void mo8813a(int i, int i2) { if (i == 2) { C2331d.m10114a((Activity) C3720a.this, C2328a.ON_ERROR_SD_UNSET_MOVIE, (Bundle) null); } else if (i == 3) { C2331d.m10114a((Activity) C3720a.this, C2328a.ON_ERROR_SD_LOCK_MOVIE, (Bundle) null); } else if (i == 4) { C2331d.m10114a((Activity) C3720a.this, C2328a.ON_ERROR_SD_REPAIRED_MOVIE, (Bundle) null); } else if (i2 == 2) { C2331d.m10114a((Activity) C3720a.this, C2328a.ON_ERROR_SD_UNSET_PICTURE, (Bundle) null); } else if (i2 == 3) { C2331d.m10114a((Activity) C3720a.this, C2328a.ON_ERROR_SD_LOCK_PICTURE, (Bundle) null); } else if (i2 == 4) { C2331d.m10114a((Activity) C3720a.this, C2328a.ON_ERROR_SD_REPAIRED_PICTURE, (Bundle) null); } else if (i != 1 || i2 != 1) { } else { if (C2331d.m10125b((Activity) C3720a.this, C2328a.ON_ERROR_SD_UNSET_MOVIE) || C2331d.m10125b((Activity) C3720a.this, C2328a.ON_ERROR_SD_LOCK_MOVIE) || C2331d.m10125b((Activity) C3720a.this, C2328a.ON_ERROR_SD_REPAIRED_MOVIE) || C2331d.m10125b((Activity) C3720a.this, C2328a.ON_ERROR_SD_UNSET_PICTURE) || C2331d.m10125b((Activity) C3720a.this, C2328a.ON_ERROR_SD_LOCK_PICTURE) || C2331d.m10125b((Activity) C3720a.this, C2328a.ON_ERROR_SD_REPAIRED_PICTURE)) { C2331d.m10100a((Activity) C3720a.this); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed from: a */\n void mo85415a(String str);\n }", "interface C10331b {\n /* renamed from: a */\n void mo26876a(int i);\n }", "public interface C0779a {\n /* renamed from: a */\n void mo2311a();\n}", "public interface C6788a {\n /* renamed from: a */\n void mo20141a();\n }", "public interface C0237a {\n /* renamed from: a */\n void mo1791a(String str);\n }", "public interface C35013b {\n /* renamed from: a */\n void mo88773a(int i);\n}", "public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }", "interface C0312e {\n /* renamed from: a */\n void mo4671a(View view, int i, int i2, int i3, int i4);\n }", "public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }", "public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }", "private String convertir(String a) {\n StringBuilder atributo = new StringBuilder(a);\n atributo.insert(0, Character.toUpperCase(atributo.charAt(0)));\n return atributo.deleteCharAt(1).toString();\n }", "protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }", "public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }", "private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }", "public interface C3598a {\n /* renamed from: a */\n void mo11024a(int i, int i2, String str);\n }", "public interface C2459d {\n /* renamed from: a */\n C2451d mo3408a(C2457e c2457e);\n}", "public interface am extends ak {\r\n /* renamed from: a */\r\n void mo194a(int i) throws RemoteException;\r\n\r\n /* renamed from: a */\r\n void mo195a(List<LatLng> list) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo196b(float f) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo197b(boolean z);\r\n\r\n /* renamed from: c */\r\n void mo198c(boolean z) throws RemoteException;\r\n\r\n /* renamed from: g */\r\n float mo199g() throws RemoteException;\r\n\r\n /* renamed from: h */\r\n int mo200h() throws RemoteException;\r\n\r\n /* renamed from: i */\r\n List<LatLng> mo201i() throws RemoteException;\r\n\r\n /* renamed from: j */\r\n boolean mo202j();\r\n\r\n /* renamed from: k */\r\n boolean mo203k();\r\n}", "public interface C32459e<T> {\n /* renamed from: a */\n void mo83698a(T t);\n }", "public interface C32458d<T> {\n /* renamed from: a */\n void mo83695a(T t);\n }", "public interface C5482b {\n /* renamed from: a */\n void mo27575a();\n\n /* renamed from: a */\n void mo27576a(int i);\n }", "public interface C27084a {\n /* renamed from: a */\n void mo69874a();\n\n /* renamed from: a */\n void mo69875a(List<Aweme> list, boolean z);\n }", "public void a() {\n ((a) this.a).a();\n }", "public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }", "public interface C13373b {\n /* renamed from: a */\n void mo32681a(String str, int i, boolean z);\n}", "public interface C40453c {\n /* renamed from: a */\n void mo100442a(C40429b bVar);\n\n /* renamed from: a */\n void mo100443a(List<String> list);\n\n /* renamed from: b */\n void mo100444b(List<C40429b> list);\n}", "public interface AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }", "@Override\r\n\tpublic void a() {\n\t\t\r\n\t}", "public interface C43270a {\n /* renamed from: a */\n void mo64942a(String str, long j, long j2);\n}", "public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}", "public interface C0087c {\n /* renamed from: a */\n String mo150a(String str);\n}", "public interface C1529m {\n /* renamed from: a */\n void mo3767a(int i);\n\n /* renamed from: a */\n void mo3768a(String str);\n}", "interface C4483e {\n /* renamed from: a */\n boolean mo34114a();\n}", "public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}", "public interface C10965j<T> {\n /* renamed from: a */\n T mo26439a();\n}", "public interface C28772a {\n /* renamed from: a */\n View mo73990a(View view);\n }", "@Override\n\tpublic void a() {\n\t\t\n\t}", "public interface C8326b {\n /* renamed from: a */\n C8325a mo21498a(String str);\n\n /* renamed from: a */\n void mo21499a(C8325a aVar);\n}", "void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}", "public interface C2367a {\n /* renamed from: a */\n C2368d mo1698a();\n }", "interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }", "public interface C4211a {\n\n /* renamed from: com.iab.omid.library.oguryco.c.a$a */\n public interface C4212a {\n /* renamed from: a */\n void mo28760a(View view, C4211a aVar, JSONObject jSONObject);\n }\n\n /* renamed from: a */\n JSONObject mo28758a(View view);\n\n /* renamed from: a */\n void mo28759a(View view, JSONObject jSONObject, C4212a aVar, boolean z);\n}", "public interface C4697a extends C5595at {\n /* renamed from: a */\n void mo12634a();\n\n /* renamed from: a */\n void mo12635a(String str);\n\n /* renamed from: a */\n void mo12636a(boolean z);\n\n /* renamed from: b */\n void mo12637b();\n\n /* renamed from: c */\n void mo12638c();\n }", "public interface C4773c {\n /* renamed from: a */\n void m15858a(int i);\n\n /* renamed from: a */\n void m15859a(int i, int i2);\n\n /* renamed from: a */\n void m15860a(int i, int i2, int i3);\n\n /* renamed from: b */\n void m15861b(int i, int i2);\n}", "public interface C4869f {\n /* renamed from: a */\n C4865b mo6249a();\n}", "public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }", "public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}", "public interface C0601aq {\n /* renamed from: a */\n void mo9148a(int i, ArrayList<C0889x> arrayList);\n}", "public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}", "public interface AbstractC6461g {\n /* renamed from: a */\n String mo42332a();\n}", "public interface AbstractC1645a {\n /* renamed from: a */\n String mo17375a();\n }", "public interface C6178c {\n /* renamed from: a */\n Map<String, String> mo14888a();\n}", "public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}", "public interface C19045k {\n /* renamed from: a */\n void mo50368a(int i, Object obj);\n\n /* renamed from: b */\n void mo50369b(int i, Object obj);\n}", "public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }", "public interface C7720a {\n /* renamed from: a */\n long mo20406a();\n}", "public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }", "public interface ayt {\n /* renamed from: a */\n int mo1635a(long j, List list);\n\n /* renamed from: a */\n long mo1636a(long j, alb alb);\n\n /* renamed from: a */\n void mo1637a();\n\n /* renamed from: a */\n void mo1638a(long j, long j2, List list, ayp ayp);\n\n /* renamed from: a */\n void mo1639a(ayl ayl);\n\n /* renamed from: a */\n boolean mo1640a(ayl ayl, boolean z, Exception exc, long j);\n}", "public interface C24221b extends C28343z<C28318an> {\n /* renamed from: a */\n void mo62991a(int i);\n\n String aw_();\n\n /* renamed from: e */\n Aweme mo62993e();\n}", "public interface C4051c {\n /* renamed from: a */\n boolean mo23707a();\n}", "public interface C45112b {\n /* renamed from: a */\n List<C45111a> mo107674a(Integer num);\n\n /* renamed from: a */\n List<C45111a> mo107675a(Integer num, Integer num2);\n\n /* renamed from: a */\n void mo107676a(C45111a aVar);\n\n /* renamed from: b */\n void mo107677b(Integer num);\n\n /* renamed from: c */\n long mo107678c(Integer num);\n}", "public void acionou(int a){\n\t\t\tb=a;\n\t\t}", "public interface C44963i {\n /* renamed from: a */\n void mo63037a(int i, int i2);\n\n void aA_();\n\n /* renamed from: b */\n void mo63039b(int i, int i2);\n}", "public interface C32457c<T> {\n /* renamed from: a */\n void mo83699a(T t, int i, int i2, String str);\n }", "public interface C5861g {\n /* renamed from: a */\n void mo18320a(C7251a aVar);\n\n @Deprecated\n /* renamed from: a */\n void mo18321a(C7251a aVar, String str);\n\n /* renamed from: a */\n void mo18322a(C7252b bVar);\n\n /* renamed from: a */\n void mo18323a(C7253c cVar);\n\n /* renamed from: a */\n void mo18324a(C7260j jVar);\n}", "public interface C0937a {\n /* renamed from: a */\n void mo3807a(C0985po[] poVarArr);\n }", "public interface C8466a {\n /* renamed from: a */\n void mo25956a(int i);\n\n /* renamed from: a */\n void mo25957a(long j, long j2);\n }", "public interface C39684b {\n /* renamed from: a */\n void mo98969a();\n\n /* renamed from: a */\n void mo98970a(C29296g gVar);\n\n /* renamed from: a */\n void mo98971a(C29296g gVar, int i);\n }", "public interface C43470b {\n /* renamed from: a */\n void mo61496a(C43469a aVar, C43471c cVar);\n }", "public interface AbstractC18255a {\n /* renamed from: a */\n void mo88521a();\n\n /* renamed from: a */\n void mo88522a(String str);\n\n /* renamed from: b */\n void mo88523b();\n\n /* renamed from: c */\n void mo88524c();\n }", "public interface C1436d {\n /* renamed from: a */\n C1435c mo1754a(C1433a c1433a, C1434b c1434b);\n}", "public interface C4150sl {\n /* renamed from: a */\n void mo15005a(C4143se seVar);\n}", "public void a(nm paramnm)\r\n/* 28: */ {\r\n/* 29:45 */ paramnm.a(this);\r\n/* 30: */ }", "public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }", "public interface C11113o {\n /* renamed from: a */\n void mo37759a(String str);\n }", "public interface C39504az {\n /* renamed from: a */\n int mo98207a();\n\n /* renamed from: a */\n void mo98208a(boolean z);\n\n /* renamed from: b */\n int mo98209b();\n\n /* renamed from: c */\n int mo98355c();\n\n /* renamed from: d */\n int mo98356d();\n\n /* renamed from: e */\n int mo98357e();\n\n /* renamed from: f */\n int mo98358f();\n}", "protected a<T> a(Tag.e<T> var0) {\n/* 80 */ Tag.a var1 = b(var0);\n/* 81 */ return new a<>(var1, this.c, \"vanilla\");\n/* */ }", "public interface C35565a {\n /* renamed from: a */\n C45321i mo90380a();\n }", "public interface C21298a {\n /* renamed from: a */\n void mo57275a();\n\n /* renamed from: a */\n void mo57276a(Exception exc);\n\n /* renamed from: b */\n void mo57277b();\n\n /* renamed from: c */\n void mo57278c();\n }", "public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }", "public interface C0456a {\n /* renamed from: a */\n void mo2090a(C0455b bVar);\n\n /* renamed from: a */\n boolean mo2091a(C0455b bVar, Menu menu);\n\n /* renamed from: a */\n boolean mo2092a(C0455b bVar, MenuItem menuItem);\n\n /* renamed from: b */\n boolean mo2093b(C0455b bVar, Menu menu);\n }", "public interface C4724o {\n /* renamed from: a */\n void mo4872a(int i, String str);\n\n /* renamed from: a */\n void mo4873a(C4718l c4718l);\n\n /* renamed from: b */\n void mo4874b(C4718l c4718l);\n}", "public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }", "public interface C2603a {\n /* renamed from: a */\n String mo1889a(String str, String str2, String str3, String str4);\n }", "public interface afp {\n /* renamed from: a */\n C0512sx mo169a(C0497si siVar, afj afj, afr afr, Context context);\n}", "public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}", "public interface a {\n\n /* renamed from: c.b.a.c.b.b.a$a reason: collision with other inner class name */\n /* compiled from: DiskCache */\n public interface C0054a {\n a build();\n }\n\n /* compiled from: DiskCache */\n public interface b {\n boolean a(File file);\n }\n\n File a(c cVar);\n\n void a(c cVar, b bVar);\n}", "public interface C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }", "public interface AbstractC17368c {\n /* renamed from: a */\n void mo84656a(float f);\n }", "interface C0932a {\n /* renamed from: a */\n void mo7438a(int i, int i2);\n\n /* renamed from: b */\n void mo7439b(C0933b bVar);\n\n /* renamed from: c */\n void mo7440c(int i, int i2, Object obj);\n\n /* renamed from: d */\n void mo7441d(C0933b bVar);\n\n /* renamed from: e */\n RecyclerView.ViewHolder mo7442e(int i);\n\n /* renamed from: f */\n void mo7443f(int i, int i2);\n\n /* renamed from: g */\n void mo7444g(int i, int i2);\n\n /* renamed from: h */\n void mo7445h(int i, int i2);\n }", "public interface C10330c {\n /* renamed from: a */\n C7562b<C10403b, C10328a> mo25041a();\n}", "public interface C3819a {\n /* renamed from: a */\n void mo23214a(Message message);\n }", "private Proof atoAImpl(Expression a) {\n Proof where = axm2(a, arrow(a, a), a); //a->(a->a) -> (a->(a->a)->a) -> (a -> a)\n Proof one = axm1(a, a); //a->a->a\n Proof two = axm1(a, arrow(a, a)); //a->(a->a)->A\n return mpTwice(where, one, two);\n }", "interface C1939a {\n /* renamed from: a */\n Bitmap mo1406a(Bitmap bitmap, float f);\n}", "public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }", "public b[] a() {\n/* 95 */ return this.a;\n/* */ }", "interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }" ]
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064", "0.5794689", "0.57890314", "0.57838726", "0.5775679", "0.57694733", "0.5769128", "0.57526815", "0.56907034", "0.5677874", "0.5670547", "0.56666386", "0.56592244", "0.5658682", "0.56574154", "0.5654324", "0.5644676", "0.56399715", "0.5638734", "0.5630582", "0.56183887", "0.5615435", "0.56069666", "0.5605207", "0.56005067", "0.559501", "0.55910283", "0.5590222", "0.55736613", "0.5556682", "0.5554544", "0.5550076", "0.55493855", "0.55446684", "0.5538079", "0.5529058", "0.5528109", "0.552641", "0.5525864", "0.552186", "0.5519972", "0.5509587", "0.5507195", "0.54881203", "0.5485328", "0.54826045", "0.5482066", "0.5481586", "0.5479751", "0.54776895", "0.54671466", "0.5463307", "0.54505056", "0.54436916", "0.5440517", "0.5439747", "0.5431944", "0.5422869", "0.54217863", "0.5417556", "0.5403905", "0.5400223", "0.53998446", "0.5394735", "0.5388649", "0.5388258", "0.5374842", "0.5368887", "0.53591394", "0.5357029", "0.5355688", "0.535506", "0.5355034", "0.53494394", "0.5341044", "0.5326166", "0.53236824", "0.53199095", "0.53177035", "0.53112453", "0.5298229" ]
0.0
-1
/ renamed from: a
public void mo8811a() { C3720a.this._cameraUtil.mo6032a((Runnable) new Runnable() { public void run() { C2331d.m10114a((Activity) C3720a.this, C2328a.ON_PROGRESS, (Bundle) null); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed from: a */\n void mo85415a(String str);\n }", "interface C10331b {\n /* renamed from: a */\n void mo26876a(int i);\n }", "public interface C0779a {\n /* renamed from: a */\n void mo2311a();\n}", "public interface C6788a {\n /* renamed from: a */\n void mo20141a();\n }", "public interface C0237a {\n /* renamed from: a */\n void mo1791a(String str);\n }", "public interface C35013b {\n /* renamed from: a */\n void mo88773a(int i);\n}", "public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }", "interface C0312e {\n /* renamed from: a */\n void mo4671a(View view, int i, int i2, int i3, int i4);\n }", "public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }", "public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }", "private String convertir(String a) {\n StringBuilder atributo = new StringBuilder(a);\n atributo.insert(0, Character.toUpperCase(atributo.charAt(0)));\n return atributo.deleteCharAt(1).toString();\n }", "protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }", "public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }", "private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }", "public interface C3598a {\n /* renamed from: a */\n void mo11024a(int i, int i2, String str);\n }", "public interface C2459d {\n /* renamed from: a */\n C2451d mo3408a(C2457e c2457e);\n}", "public interface am extends ak {\r\n /* renamed from: a */\r\n void mo194a(int i) throws RemoteException;\r\n\r\n /* renamed from: a */\r\n void mo195a(List<LatLng> list) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo196b(float f) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo197b(boolean z);\r\n\r\n /* renamed from: c */\r\n void mo198c(boolean z) throws RemoteException;\r\n\r\n /* renamed from: g */\r\n float mo199g() throws RemoteException;\r\n\r\n /* renamed from: h */\r\n int mo200h() throws RemoteException;\r\n\r\n /* renamed from: i */\r\n List<LatLng> mo201i() throws RemoteException;\r\n\r\n /* renamed from: j */\r\n boolean mo202j();\r\n\r\n /* renamed from: k */\r\n boolean mo203k();\r\n}", "public interface C32459e<T> {\n /* renamed from: a */\n void mo83698a(T t);\n }", "public interface C32458d<T> {\n /* renamed from: a */\n void mo83695a(T t);\n }", "public interface C5482b {\n /* renamed from: a */\n void mo27575a();\n\n /* renamed from: a */\n void mo27576a(int i);\n }", "public interface C27084a {\n /* renamed from: a */\n void mo69874a();\n\n /* renamed from: a */\n void mo69875a(List<Aweme> list, boolean z);\n }", "public void a() {\n ((a) this.a).a();\n }", "public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }", "public interface C13373b {\n /* renamed from: a */\n void mo32681a(String str, int i, boolean z);\n}", "public interface C40453c {\n /* renamed from: a */\n void mo100442a(C40429b bVar);\n\n /* renamed from: a */\n void mo100443a(List<String> list);\n\n /* renamed from: b */\n void mo100444b(List<C40429b> list);\n}", "public interface AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }", "@Override\r\n\tpublic void a() {\n\t\t\r\n\t}", "public interface C43270a {\n /* renamed from: a */\n void mo64942a(String str, long j, long j2);\n}", "public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}", "public interface C0087c {\n /* renamed from: a */\n String mo150a(String str);\n}", "public interface C1529m {\n /* renamed from: a */\n void mo3767a(int i);\n\n /* renamed from: a */\n void mo3768a(String str);\n}", "interface C4483e {\n /* renamed from: a */\n boolean mo34114a();\n}", "public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}", "public interface C10965j<T> {\n /* renamed from: a */\n T mo26439a();\n}", "public interface C28772a {\n /* renamed from: a */\n View mo73990a(View view);\n }", "@Override\n\tpublic void a() {\n\t\t\n\t}", "public interface C8326b {\n /* renamed from: a */\n C8325a mo21498a(String str);\n\n /* renamed from: a */\n void mo21499a(C8325a aVar);\n}", "void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}", "public interface C2367a {\n /* renamed from: a */\n C2368d mo1698a();\n }", "interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }", "public interface C4211a {\n\n /* renamed from: com.iab.omid.library.oguryco.c.a$a */\n public interface C4212a {\n /* renamed from: a */\n void mo28760a(View view, C4211a aVar, JSONObject jSONObject);\n }\n\n /* renamed from: a */\n JSONObject mo28758a(View view);\n\n /* renamed from: a */\n void mo28759a(View view, JSONObject jSONObject, C4212a aVar, boolean z);\n}", "public interface C4697a extends C5595at {\n /* renamed from: a */\n void mo12634a();\n\n /* renamed from: a */\n void mo12635a(String str);\n\n /* renamed from: a */\n void mo12636a(boolean z);\n\n /* renamed from: b */\n void mo12637b();\n\n /* renamed from: c */\n void mo12638c();\n }", "public interface C4773c {\n /* renamed from: a */\n void m15858a(int i);\n\n /* renamed from: a */\n void m15859a(int i, int i2);\n\n /* renamed from: a */\n void m15860a(int i, int i2, int i3);\n\n /* renamed from: b */\n void m15861b(int i, int i2);\n}", "public interface C4869f {\n /* renamed from: a */\n C4865b mo6249a();\n}", "public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }", "public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}", "public interface C0601aq {\n /* renamed from: a */\n void mo9148a(int i, ArrayList<C0889x> arrayList);\n}", "public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}", "public interface AbstractC6461g {\n /* renamed from: a */\n String mo42332a();\n}", "public interface AbstractC1645a {\n /* renamed from: a */\n String mo17375a();\n }", "public interface C6178c {\n /* renamed from: a */\n Map<String, String> mo14888a();\n}", "public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}", "public interface C19045k {\n /* renamed from: a */\n void mo50368a(int i, Object obj);\n\n /* renamed from: b */\n void mo50369b(int i, Object obj);\n}", "public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }", "public interface C7720a {\n /* renamed from: a */\n long mo20406a();\n}", "public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }", "public interface ayt {\n /* renamed from: a */\n int mo1635a(long j, List list);\n\n /* renamed from: a */\n long mo1636a(long j, alb alb);\n\n /* renamed from: a */\n void mo1637a();\n\n /* renamed from: a */\n void mo1638a(long j, long j2, List list, ayp ayp);\n\n /* renamed from: a */\n void mo1639a(ayl ayl);\n\n /* renamed from: a */\n boolean mo1640a(ayl ayl, boolean z, Exception exc, long j);\n}", "public interface C24221b extends C28343z<C28318an> {\n /* renamed from: a */\n void mo62991a(int i);\n\n String aw_();\n\n /* renamed from: e */\n Aweme mo62993e();\n}", "public interface C4051c {\n /* renamed from: a */\n boolean mo23707a();\n}", "public interface C45112b {\n /* renamed from: a */\n List<C45111a> mo107674a(Integer num);\n\n /* renamed from: a */\n List<C45111a> mo107675a(Integer num, Integer num2);\n\n /* renamed from: a */\n void mo107676a(C45111a aVar);\n\n /* renamed from: b */\n void mo107677b(Integer num);\n\n /* renamed from: c */\n long mo107678c(Integer num);\n}", "public void acionou(int a){\n\t\t\tb=a;\n\t\t}", "public interface C44963i {\n /* renamed from: a */\n void mo63037a(int i, int i2);\n\n void aA_();\n\n /* renamed from: b */\n void mo63039b(int i, int i2);\n}", "public interface C32457c<T> {\n /* renamed from: a */\n void mo83699a(T t, int i, int i2, String str);\n }", "public interface C5861g {\n /* renamed from: a */\n void mo18320a(C7251a aVar);\n\n @Deprecated\n /* renamed from: a */\n void mo18321a(C7251a aVar, String str);\n\n /* renamed from: a */\n void mo18322a(C7252b bVar);\n\n /* renamed from: a */\n void mo18323a(C7253c cVar);\n\n /* renamed from: a */\n void mo18324a(C7260j jVar);\n}", "public interface C0937a {\n /* renamed from: a */\n void mo3807a(C0985po[] poVarArr);\n }", "public interface C8466a {\n /* renamed from: a */\n void mo25956a(int i);\n\n /* renamed from: a */\n void mo25957a(long j, long j2);\n }", "public interface C39684b {\n /* renamed from: a */\n void mo98969a();\n\n /* renamed from: a */\n void mo98970a(C29296g gVar);\n\n /* renamed from: a */\n void mo98971a(C29296g gVar, int i);\n }", "public interface C43470b {\n /* renamed from: a */\n void mo61496a(C43469a aVar, C43471c cVar);\n }", "public interface AbstractC18255a {\n /* renamed from: a */\n void mo88521a();\n\n /* renamed from: a */\n void mo88522a(String str);\n\n /* renamed from: b */\n void mo88523b();\n\n /* renamed from: c */\n void mo88524c();\n }", "public interface C1436d {\n /* renamed from: a */\n C1435c mo1754a(C1433a c1433a, C1434b c1434b);\n}", "public interface C4150sl {\n /* renamed from: a */\n void mo15005a(C4143se seVar);\n}", "public void a(nm paramnm)\r\n/* 28: */ {\r\n/* 29:45 */ paramnm.a(this);\r\n/* 30: */ }", "public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }", "public interface C11113o {\n /* renamed from: a */\n void mo37759a(String str);\n }", "public interface C39504az {\n /* renamed from: a */\n int mo98207a();\n\n /* renamed from: a */\n void mo98208a(boolean z);\n\n /* renamed from: b */\n int mo98209b();\n\n /* renamed from: c */\n int mo98355c();\n\n /* renamed from: d */\n int mo98356d();\n\n /* renamed from: e */\n int mo98357e();\n\n /* renamed from: f */\n int mo98358f();\n}", "protected a<T> a(Tag.e<T> var0) {\n/* 80 */ Tag.a var1 = b(var0);\n/* 81 */ return new a<>(var1, this.c, \"vanilla\");\n/* */ }", "public interface C35565a {\n /* renamed from: a */\n C45321i mo90380a();\n }", "public interface C21298a {\n /* renamed from: a */\n void mo57275a();\n\n /* renamed from: a */\n void mo57276a(Exception exc);\n\n /* renamed from: b */\n void mo57277b();\n\n /* renamed from: c */\n void mo57278c();\n }", "public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }", "public interface C0456a {\n /* renamed from: a */\n void mo2090a(C0455b bVar);\n\n /* renamed from: a */\n boolean mo2091a(C0455b bVar, Menu menu);\n\n /* renamed from: a */\n boolean mo2092a(C0455b bVar, MenuItem menuItem);\n\n /* renamed from: b */\n boolean mo2093b(C0455b bVar, Menu menu);\n }", "public interface C4724o {\n /* renamed from: a */\n void mo4872a(int i, String str);\n\n /* renamed from: a */\n void mo4873a(C4718l c4718l);\n\n /* renamed from: b */\n void mo4874b(C4718l c4718l);\n}", "public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }", "public interface C2603a {\n /* renamed from: a */\n String mo1889a(String str, String str2, String str3, String str4);\n }", "public interface afp {\n /* renamed from: a */\n C0512sx mo169a(C0497si siVar, afj afj, afr afr, Context context);\n}", "public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}", "public interface a {\n\n /* renamed from: c.b.a.c.b.b.a$a reason: collision with other inner class name */\n /* compiled from: DiskCache */\n public interface C0054a {\n a build();\n }\n\n /* compiled from: DiskCache */\n public interface b {\n boolean a(File file);\n }\n\n File a(c cVar);\n\n void a(c cVar, b bVar);\n}", "public interface C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }", "public interface AbstractC17368c {\n /* renamed from: a */\n void mo84656a(float f);\n }", "interface C0932a {\n /* renamed from: a */\n void mo7438a(int i, int i2);\n\n /* renamed from: b */\n void mo7439b(C0933b bVar);\n\n /* renamed from: c */\n void mo7440c(int i, int i2, Object obj);\n\n /* renamed from: d */\n void mo7441d(C0933b bVar);\n\n /* renamed from: e */\n RecyclerView.ViewHolder mo7442e(int i);\n\n /* renamed from: f */\n void mo7443f(int i, int i2);\n\n /* renamed from: g */\n void mo7444g(int i, int i2);\n\n /* renamed from: h */\n void mo7445h(int i, int i2);\n }", "public interface C10330c {\n /* renamed from: a */\n C7562b<C10403b, C10328a> mo25041a();\n}", "public interface C3819a {\n /* renamed from: a */\n void mo23214a(Message message);\n }", "private Proof atoAImpl(Expression a) {\n Proof where = axm2(a, arrow(a, a), a); //a->(a->a) -> (a->(a->a)->a) -> (a -> a)\n Proof one = axm1(a, a); //a->a->a\n Proof two = axm1(a, arrow(a, a)); //a->(a->a)->A\n return mpTwice(where, one, two);\n }", "interface C1939a {\n /* renamed from: a */\n Bitmap mo1406a(Bitmap bitmap, float f);\n}", "public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }", "public b[] a() {\n/* 95 */ return this.a;\n/* */ }", "interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }" ]
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064", "0.5794689", "0.57890314", "0.57838726", "0.5775679", "0.57694733", "0.5769128", "0.57526815", "0.56907034", "0.5677874", "0.5670547", "0.56666386", "0.56592244", "0.5658682", "0.56574154", "0.5654324", "0.5644676", "0.56399715", "0.5638734", "0.5630582", "0.56183887", "0.5615435", "0.56069666", "0.5605207", "0.56005067", "0.559501", "0.55910283", "0.5590222", "0.55736613", "0.5556682", "0.5554544", "0.5550076", "0.55493855", "0.55446684", "0.5538079", "0.5529058", "0.5528109", "0.552641", "0.5525864", "0.552186", "0.5519972", "0.5509587", "0.5507195", "0.54881203", "0.5485328", "0.54826045", "0.5482066", "0.5481586", "0.5479751", "0.54776895", "0.54671466", "0.5463307", "0.54505056", "0.54436916", "0.5440517", "0.5439747", "0.5431944", "0.5422869", "0.54217863", "0.5417556", "0.5403905", "0.5400223", "0.53998446", "0.5394735", "0.5388649", "0.5388258", "0.5374842", "0.5368887", "0.53591394", "0.5357029", "0.5355688", "0.535506", "0.5355034", "0.53494394", "0.5341044", "0.5326166", "0.53236824", "0.53199095", "0.53177035", "0.53112453", "0.5298229" ]
0.0
-1
/ renamed from: b
public void mo8817b() { C3720a.this._cameraUtil.mo6032a((Runnable) new Runnable() { public void run() { C2331d.m10100a((Activity) C3720a.this); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void mo2508a(bxb bxb);", "@Override\n public void func_104112_b() {\n \n }", "@Override\n public void b() {\n }", "public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }", "@Override\n\tpublic void b2() {\n\t\t\n\t}", "void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "@Override\n\tpublic void b() {\n\n\t}", "interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }", "public bb b() {\n return a(this.a);\n }", "@Override\n\tpublic void b1() {\n\t\t\n\t}", "public void b() {\r\n }", "@Override\n\tpublic void bbb() {\n\t\t\n\t}", "public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }", "public abstract void b(StringBuilder sb);", "public void b() {\n }", "public void b() {\n }", "protected b(int mb) {\n/* 87 */ this.b = mb;\n/* */ }", "public u(b paramb)\r\n/* 7: */ {\r\n/* 8: 9 */ this.a = paramb;\r\n/* 9: */ }", "public interface b {\n void H_();\n\n void I_();\n\n void J_();\n\n void a(C0063d dVar);\n\n void a(byte[] bArr);\n\n void b(boolean z);\n }", "public b[] a() {\n/* 95 */ return this.a;\n/* */ }", "public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }", "public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }", "public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}", "public void b() {\n ((a) this.a).b();\n }", "public np a()\r\n/* 33: */ {\r\n/* 34:49 */ return this.b;\r\n/* 35: */ }", "b(a aVar) {\n super(0);\n this.this$0 = aVar;\n }", "public t b() {\n return a(this.a);\n }", "public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }", "public static String a(int c) {\n/* 89 */ return b.a(c);\n/* */ }", "private void m678b(byte b) {\n byte[] bArr = this.f523r;\n bArr[0] = b;\n this.f552g.mo502b(bArr);\n }", "public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }", "public abstract T zzm(B b);", "public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }", "public void b(World paramaqu, BlockPosition paramdt, Block parambec)\r\n/* 27: */ {\r\n/* 28: 47 */ bcm localbcm = paramaqu.s(paramdt);\r\n/* 29: 48 */ if ((localbcm instanceof bdv)) {\r\n/* 30: 49 */ ((bdv)localbcm).h();\r\n/* 31: */ } else {\r\n/* 32: 51 */ super.b(paramaqu, paramdt, parambec);\r\n/* 33: */ }\r\n/* 34: */ }", "public abstract void zzc(B b, int i, int i2);", "public interface b {\n}", "public interface b {\n}", "private void m10263b(byte b) throws cf {\r\n this.f6483r[0] = b;\r\n this.g.m10347b(this.f6483r);\r\n }", "BSubstitution createBSubstitution();", "public void b(ahd paramahd) {}", "void b();", "public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}", "B database(S database);", "public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}", "public abstract C0631bt mo9227aB();", "public an b() {\n return a(this.a);\n }", "protected abstract void a(bru parambru);", "static void go(Base b) {\n\t\tb.add(8);\n\t}", "void mo46242a(bmc bmc);", "public interface b extends c {\n void a(Float f);\n\n void a(Integer num);\n\n void b(Float f);\n\n void c(Float f);\n\n String d();\n\n void d(Float f);\n\n void d(String str);\n\n void e(Float f);\n\n void e(String str);\n\n void f(String str);\n\n void g(String str);\n\n Long j();\n\n LineChart k();\n }", "public interface bca extends bbn {\n bca a();\n\n bca a(String str);\n\n bca b(String str);\n\n bca c(String str);\n}", "public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }", "public abstract BoundType b();", "public void b(amj paramamj)\r\n/* 538: */ {\r\n/* 539:579 */ this.f = paramamj;\r\n/* 540: */ }", "b(a aVar, com.bytedance.jedi.model.h.a aVar2) {\n super(aVar2);\n this.f21531a = aVar;\n this.f21532b = new com.bytedance.jedi.model.h.f(aVar);\n }", "private void b(int paramInt)\r\n/* 193: */ {\r\n/* 194:203 */ this.h.a(a(paramInt));\r\n/* 195: */ }", "public void b(ahb paramahb)\r\n/* 583: */ {\r\n/* 584:625 */ for (int i = 0; i < this.a.length; i++) {\r\n/* 585:626 */ this.a[i] = amj.b(paramahb.a[i]);\r\n/* 586: */ }\r\n/* 587:628 */ for (i = 0; i < this.b.length; i++) {\r\n/* 588:629 */ this.b[i] = amj.b(paramahb.b[i]);\r\n/* 589: */ }\r\n/* 590:631 */ this.c = paramahb.c;\r\n/* 591: */ }", "interface b {\n\n /* compiled from: CreditAccountContract */\n public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }\n\n /* compiled from: CreditAccountContract */\n public interface b extends c {\n void a(Float f);\n\n void a(Integer num);\n\n void b(Float f);\n\n void c(Float f);\n\n String d();\n\n void d(Float f);\n\n void d(String str);\n\n void e(Float f);\n\n void e(String str);\n\n void f(String str);\n\n void g(String str);\n\n Long j();\n\n LineChart k();\n }\n}", "@Override\n\tpublic void visit(PartB partB) {\n\n\t}", "public abstract void zzb(B b, int i, long j);", "public abstract void zza(B b, int i, zzeh zzeh);", "int metodo2(int a, int b) {\r\n\r\n\t\tthis.a += 5; // se modifica el campo del objeto, el uso de la palabra reservada this se utiliza para referenciar al campo.\r\n\t\tb += 7;\r\n\t\treturn a; // modifica en la asignaci\\u00f3n\r\n\t}", "private void internalCopy(Board b) {\n for (int i = 0; i < SIDE * SIDE; i += 1) {\n set(i, b.get(i));\n }\n\n _directions = b._directions;\n _whoseMove = b._whoseMove;\n _history = b._history;\n }", "public int b()\r\n/* 69: */ {\r\n/* 70:74 */ return this.b;\r\n/* 71: */ }", "public void b(StringBuilder sb) {\n sb.append(this.a);\n sb.append(')');\n }", "public void b() {\n e$a e$a;\n try {\n e$a = this.b;\n }\n catch (IOException iOException) {\n return;\n }\n Object object = this.c;\n e$a.b(object);\n }", "public abstract void a(StringBuilder sb);", "public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}", "public abstract void zzf(Object obj, B b);", "public interface bdp {\n\n /* renamed from: a */\n public static final bdp f3422a = new bdo();\n\n /* renamed from: a */\n bdm mo1784a(akh akh);\n}", "@Override\n\tpublic void parse(Buffer b) {\n\t\t\n\t}", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "public abstract void a(b paramb, int paramInt1, int paramInt2);", "public void mo1945a(byte b) throws cf {\r\n m10263b(b);\r\n }", "void mo83703a(C32456b<T> bVar);", "public void a(String str) {\n ((b.b) this.b).d(str);\n }", "public void selectB() { }", "BOperation createBOperation();", "void metodo1(int a, int b) {\r\n\t\ta += 5;//par\\u00e1metro con el mismo nombre que el campo.\r\n\t\tb += 7;\r\n\t}", "private static void m2196a(StringBuffer stringBuffer, byte b) {\n stringBuffer.append(\"0123456789ABCDEF\".charAt((b >> 4) & 15)).append(\"0123456789ABCDEF\".charAt(b & 15));\n }", "public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }", "public void b(fv paramfv)\r\n/* 408: */ {\r\n/* 409:423 */ this.a = new amj[36];\r\n/* 410:424 */ this.b = new amj[4];\r\n/* 411:425 */ for (int i = 0; i < paramfv.c(); i++)\r\n/* 412: */ {\r\n/* 413:426 */ fn localfn = paramfv.b(i);\r\n/* 414:427 */ int j = localfn.d(\"Slot\") & 0xFF;\r\n/* 415:428 */ amj localamj = amj.a(localfn);\r\n/* 416:429 */ if (localamj != null)\r\n/* 417: */ {\r\n/* 418:430 */ if ((j >= 0) && (j < this.a.length)) {\r\n/* 419:431 */ this.a[j] = localamj;\r\n/* 420: */ }\r\n/* 421:433 */ if ((j >= 100) && (j < this.b.length + 100)) {\r\n/* 422:434 */ this.b[(j - 100)] = localamj;\r\n/* 423: */ }\r\n/* 424: */ }\r\n/* 425: */ }\r\n/* 426: */ }", "public void b(String str) {\n ((b.b) this.b).e(str);\n }", "public String b()\r\n/* 35: */ {\r\n/* 36:179 */ return a();\r\n/* 37: */ }", "public abstract void zza(B b, int i, T t);", "public Item b(World paramaqu, BlockPosition paramdt)\r\n/* 189: */ {\r\n/* 190:220 */ return null;\r\n/* 191: */ }", "public abstract void zza(B b, int i, long j);", "public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}", "private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }", "public abstract void mo9798a(byte b);", "public void mo9798a(byte b) {\n if (this.f9108f == this.f9107e) {\n mo9827i();\n }\n byte[] bArr = this.f9106d;\n int i = this.f9108f;\n this.f9108f = i + 1;\n bArr[i] = b;\n this.f9109g++;\n }", "public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}", "private void m676a(TField bkVar, byte b) {\n if (b == -1) {\n b = m687e(bkVar.f538b);\n }\n short s = bkVar.f539c;\n short s2 = this.f519n;\n if (s <= s2 || s - s2 > 15) {\n m678b(b);\n mo446a(bkVar.f539c);\n } else {\n m686d(b | ((s - s2) << 4));\n }\n this.f519n = bkVar.f539c;\n }", "private static void m831a(C0741g<?> gVar, C0747b bVar) {\n gVar.mo9477a(C0743i.f718b, (C0739e<? super Object>) bVar);\n gVar.mo9476a(C0743i.f718b, (C0738d) bVar);\n gVar.mo9474a(C0743i.f718b, (C0736b) bVar);\n }", "public interface C40453c {\n /* renamed from: a */\n void mo100442a(C40429b bVar);\n\n /* renamed from: a */\n void mo100443a(List<String> list);\n\n /* renamed from: b */\n void mo100444b(List<C40429b> list);\n}", "private void j()\n/* */ {\n/* 223 */ c localc = this.b;\n/* 224 */ this.b = this.c;\n/* 225 */ this.c = localc;\n/* 226 */ this.c.b();\n/* */ }", "public lj ar(byte b) {\n throw new Runtime(\"d2j fail translate: java.lang.RuntimeException: can not merge I and Z\\r\\n\\tat com.googlecode.dex2jar.ir.TypeClass.merge(TypeClass.java:100)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeRef.updateTypeClass(TypeTransformer.java:174)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.provideAs(TypeTransformer.java:780)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.e1expr(TypeTransformer.java:496)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:713)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:703)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.enexpr(TypeTransformer.java:698)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:719)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:703)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.s1stmt(TypeTransformer.java:810)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.sxStmt(TypeTransformer.java:840)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.analyze(TypeTransformer.java:206)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer.transform(TypeTransformer.java:44)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar$2.optimize(Dex2jar.java:162)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertCode(Dex2Asm.java:414)\\r\\n\\tat com.googlecode.d2j.dex.ExDex2Asm.convertCode(ExDex2Asm.java:42)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar$2.convertCode(Dex2jar.java:128)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertMethod(Dex2Asm.java:509)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertClass(Dex2Asm.java:406)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertDex(Dex2Asm.java:422)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar.doTranslate(Dex2jar.java:172)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar.to(Dex2jar.java:272)\\r\\n\\tat com.googlecode.dex2jar.tools.Dex2jarCmd.doCommandLine(Dex2jarCmd.java:108)\\r\\n\\tat com.googlecode.dex2jar.tools.BaseCmd.doMain(BaseCmd.java:288)\\r\\n\\tat com.googlecode.dex2jar.tools.Dex2jarCmd.main(Dex2jarCmd.java:32)\\r\\n\");\n }", "public interface AbstractC10485b {\n /* renamed from: a */\n void mo64153a(boolean z);\n }", "public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }", "interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }" ]
[ "0.64558864", "0.6283203", "0.6252635", "0.6250949", "0.6244743", "0.6216273", "0.6194491", "0.6193556", "0.61641675", "0.6140157", "0.60993093", "0.60974354", "0.6077849", "0.6001867", "0.5997364", "0.59737104", "0.59737104", "0.5905105", "0.5904295", "0.58908087", "0.5886636", "0.58828026", "0.5855491", "0.584618", "0.5842517", "0.5824137", "0.5824071", "0.58097327", "0.5802052", "0.58012927", "0.579443", "0.5792392", "0.57902914", "0.5785124", "0.57718205", "0.57589084", "0.5735892", "0.5735892", "0.5734873", "0.5727929", "0.5720821", "0.5712531", "0.5706813", "0.56896514", "0.56543154", "0.5651059", "0.5649904", "0.56496733", "0.5647035", "0.5640965", "0.5640109", "0.563993", "0.5631903", "0.5597427", "0.55843794", "0.5583287", "0.557783", "0.55734867", "0.55733293", "0.5572254", "0.55683887", "0.55624336", "0.55540246", "0.5553985", "0.55480546", "0.554261", "0.5535739", "0.5529958", "0.5519634", "0.5517503", "0.55160624", "0.5511545", "0.5505353", "0.5500533", "0.5491741", "0.5486198", "0.5481978", "0.547701", "0.54725856", "0.5471632", "0.5463497", "0.5460805", "0.5454913", "0.5454885", "0.54519916", "0.5441594", "0.5436747", "0.5432453", "0.5425923", "0.5424724", "0.54189867", "0.54162544", "0.54051477", "0.53998184", "0.53945845", "0.53887725", "0.5388146", "0.5387678", "0.53858143", "0.53850687", "0.5384439" ]
0.0
-1
/ renamed from: c
public void mo8819c() { C3720a.this._cameraUtil.mo6032a((Runnable) new Runnable() { public void run() { C2331d.m10100a((Activity) C3720a.this); C2331d.m10114a((Activity) C3720a.this, C2328a.ON_DISCONNECT_NO_FINISH, (Bundle) null); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void mo5289a(C5102c c5102c);", "public static void c0() {\n\t}", "void mo57278c();", "private static void cajas() {\n\t\t\n\t}", "void mo5290b(C5102c c5102c);", "void mo80457c();", "void mo12638c();", "void mo28717a(zzc zzc);", "void mo21072c();", "@Override\n\tpublic void ccc() {\n\t\t\n\t}", "public void c() {\n }", "void mo17012c();", "C2451d mo3408a(C2457e c2457e);", "void mo88524c();", "void mo86a(C0163d c0163d);", "void mo17021c();", "public abstract void mo53562a(C18796a c18796a);", "void mo4874b(C4718l c4718l);", "void mo4873a(C4718l c4718l);", "C12017a mo41088c();", "public abstract void mo70702a(C30989b c30989b);", "void mo72114c();", "public void mo12628c() {\n }", "C2841w mo7234g();", "public interface C0335c {\n }", "public void mo1403c() {\n }", "public static void c3() {\n\t}", "public static void c1() {\n\t}", "void mo8712a(C9714a c9714a);", "void mo67924c();", "public void mo97906c() {\n }", "public abstract void mo27385c();", "String mo20731c();", "public int c()\r\n/* 74: */ {\r\n/* 75:78 */ return this.c;\r\n/* 76: */ }", "public interface C0939c {\n }", "void mo1582a(String str, C1329do c1329do);", "void mo304a(C0366h c0366h);", "void mo1493c();", "private String getString(byte c) {\n\t\treturn c==1? \"$ \": \" \";\n\t}", "java.lang.String getC3();", "C45321i mo90380a();", "public interface C11910c {\n}", "void mo57277b();", "String mo38972c();", "static int type_of_cnc(String passed){\n\t\treturn 1;\n\t}", "public static void CC2_1() {\n\t}", "static int type_of_cc(String passed){\n\t\treturn 1;\n\t}", "public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }", "public void mo56167c() {\n }", "public interface C0136c {\n }", "private void kk12() {\n\n\t}", "abstract String mo1748c();", "public abstract void mo70710a(String str, C24343db c24343db);", "public interface C0303q extends C0291e {\n /* renamed from: a */\n void mo1747a(int i);\n\n /* renamed from: a */\n void mo1749a(C0288c cVar);\n\n /* renamed from: a */\n void mo1751a(byte[] bArr);\n\n /* renamed from: b */\n void mo1753b(int i);\n\n /* renamed from: c */\n void mo1754c(int i);\n\n /* renamed from: d */\n void mo1755d(int i);\n\n /* renamed from: e */\n int mo1756e(int i);\n\n /* renamed from: g */\n int mo1760g();\n\n /* renamed from: g */\n void mo1761g(int i);\n\n /* renamed from: h */\n void mo1763h(int i);\n}", "C3577c mo19678C();", "public abstract int c();", "public abstract int c();", "public final void mo11687c() {\n }", "byte mo30283c();", "private java.lang.String c(java.lang.String r7) {\n /*\n r6 = this;\n r2 = \"\";\n r0 = r6.e;\t Catch:{ FileNotFoundException -> 0x0052 }\n if (r0 == 0) goto L_0x0050;\n L_0x0006:\n r0 = new java.lang.StringBuilder;\t Catch:{ FileNotFoundException -> 0x0052 }\n r1 = java.lang.String.valueOf(r7);\t Catch:{ FileNotFoundException -> 0x0052 }\n r0.<init>(r1);\t Catch:{ FileNotFoundException -> 0x0052 }\n r1 = \".\";\n r0 = r0.append(r1);\t Catch:{ FileNotFoundException -> 0x0052 }\n r1 = r6.e;\t Catch:{ FileNotFoundException -> 0x0052 }\n r0 = r0.append(r1);\t Catch:{ FileNotFoundException -> 0x0052 }\n r0 = r0.toString();\t Catch:{ FileNotFoundException -> 0x0052 }\n L_0x001f:\n r1 = r6.d;\t Catch:{ FileNotFoundException -> 0x0052 }\n r1 = r1.openFileInput(r0);\t Catch:{ FileNotFoundException -> 0x0052 }\n L_0x0025:\n r3 = new java.io.BufferedReader;\n r4 = new java.io.InputStreamReader;\n r0 = r1;\n r0 = (java.io.InputStream) r0;\n r5 = \"UTF-8\";\n r5 = java.nio.charset.Charset.forName(r5);\n r4.<init>(r0, r5);\n r3.<init>(r4);\n r0 = new java.lang.StringBuffer;\n r0.<init>();\n L_0x003d:\n r4 = r3.readLine();\t Catch:{ IOException -> 0x0065, all -> 0x0073 }\n if (r4 != 0) goto L_0x0061;\n L_0x0043:\n r0 = r0.toString();\t Catch:{ IOException -> 0x0065, all -> 0x0073 }\n r1 = (java.io.InputStream) r1;\t Catch:{ IOException -> 0x007d }\n r1.close();\t Catch:{ IOException -> 0x007d }\n r3.close();\t Catch:{ IOException -> 0x007d }\n L_0x004f:\n return r0;\n L_0x0050:\n r0 = r7;\n goto L_0x001f;\n L_0x0052:\n r0 = move-exception;\n r0 = r6.d;\t Catch:{ IOException -> 0x005e }\n r0 = r0.getAssets();\t Catch:{ IOException -> 0x005e }\n r1 = r0.open(r7);\t Catch:{ IOException -> 0x005e }\n goto L_0x0025;\n L_0x005e:\n r0 = move-exception;\n r0 = r2;\n goto L_0x004f;\n L_0x0061:\n r0.append(r4);\t Catch:{ IOException -> 0x0065, all -> 0x0073 }\n goto L_0x003d;\n L_0x0065:\n r0 = move-exception;\n r1 = (java.io.InputStream) r1;\t Catch:{ IOException -> 0x0070 }\n r1.close();\t Catch:{ IOException -> 0x0070 }\n r3.close();\t Catch:{ IOException -> 0x0070 }\n r0 = r2;\n goto L_0x004f;\n L_0x0070:\n r0 = move-exception;\n r0 = r2;\n goto L_0x004f;\n L_0x0073:\n r0 = move-exception;\n r1 = (java.io.InputStream) r1;\t Catch:{ IOException -> 0x007f }\n r1.close();\t Catch:{ IOException -> 0x007f }\n r3.close();\t Catch:{ IOException -> 0x007f }\n L_0x007c:\n throw r0;\n L_0x007d:\n r1 = move-exception;\n goto L_0x004f;\n L_0x007f:\n r1 = move-exception;\n goto L_0x007c;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.tencent.a.b.b.c(java.lang.String):java.lang.String\");\n }", "@Override\n\tpublic void compile(CodeBlock c, CompilerEnvironment environment) {\n\n\t}", "public interface C3196it extends C3208jc {\n /* renamed from: a */\n void mo30275a(long j);\n\n /* renamed from: b */\n C3197iu mo30281b(long j);\n\n /* renamed from: b */\n boolean mo30282b();\n\n /* renamed from: c */\n byte mo30283c();\n\n /* renamed from: c */\n String mo30285c(long j);\n\n /* renamed from: d */\n void mo30290d(long j);\n\n /* renamed from: e */\n int mo30291e();\n\n /* renamed from: f */\n long mo30295f();\n}", "public static void mmcc() {\n\t}", "java.lang.String getCit();", "public abstract C mo29734a();", "C15430g mo56154a();", "void mo41086b();", "@Override\n public void func_104112_b() {\n \n }", "public interface C9223b {\n }", "public abstract String mo11611b();", "void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);", "String getCmt();", "interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }", "interface C2578d {\n}", "public interface C1803l extends C1813t {\n /* renamed from: b */\n C1803l mo7382b(C2778au auVar);\n\n /* renamed from: f */\n List<C1700ar> mo7233f();\n\n /* renamed from: g */\n C2841w mo7234g();\n\n /* renamed from: q */\n C1800i mo7384q();\n}", "double fFromC(double c) {\n return (c * 9 / 5) + 32;\n }", "void mo72113b();", "void mo1749a(C0288c cVar);", "public interface C0764b {\n}", "void mo41083a();", "String[] mo1153c();", "C1458cs mo7613iS();", "public interface C0333a {\n }", "public abstract int mo41077c();", "public interface C8843g {\n}", "public abstract void mo70709a(String str, C41018cm c41018cm);", "void mo28307a(zzgd zzgd);", "public static void mcdc() {\n\t}", "public interface C2459d {\n /* renamed from: a */\n C2451d mo3408a(C2457e c2457e);\n}", "C1435c mo1754a(C1433a c1433a, C1434b c1434b);", "public interface C0389gj extends C0388gi {\n}", "C5727e mo33224a();", "C12000e mo41087c(String str);", "public abstract String mo118046b();", "public interface C11113o {\n /* renamed from: a */\n void mo37759a(String str);\n }", "public interface C0938b {\n }", "void mo80455b();", "public interface C0385a {\n }", "public interface C5527c {\n /* renamed from: a */\n int mo4095a(int i);\n\n /* renamed from: b */\n C5537g mo4096b(int i);\n}", "public interface C32231g {\n /* renamed from: a */\n void mo8280a(int i, int i2, C1207m c1207m);\n}", "public interface C11994b {\n /* renamed from: a */\n C11996a mo41079a(String str);\n\n /* renamed from: a */\n C11996a mo41080a(String str, C11997b bVar, String... strArr);\n\n /* renamed from: a */\n C11998c mo41081a(String str, C11999d dVar, String... strArr);\n\n /* renamed from: a */\n C12000e mo41082a(String str, C12001f fVar, String... strArr);\n\n /* renamed from: a */\n void mo41083a();\n\n /* renamed from: a */\n void mo41084a(C12018b bVar, ConnectionState... connectionStateArr);\n\n /* renamed from: b */\n C11996a mo41085b(String str);\n\n /* renamed from: b */\n void mo41086b();\n\n /* renamed from: c */\n C12000e mo41087c(String str);\n\n /* renamed from: c */\n C12017a mo41088c();\n\n /* renamed from: d */\n void mo41089d(String str);\n\n /* renamed from: e */\n C11998c mo41090e(String str);\n\n /* renamed from: f */\n C12000e mo41091f(String str);\n\n /* renamed from: g */\n C11998c mo41092g(String str);\n}" ]
[ "0.64592767", "0.644052", "0.6431582", "0.6418656", "0.64118475", "0.6397491", "0.6250796", "0.62470585", "0.6244832", "0.6232792", "0.618864", "0.61662376", "0.6152657", "0.61496663", "0.6138441", "0.6137171", "0.6131197", "0.6103783", "0.60983956", "0.6077118", "0.6061723", "0.60513836", "0.6049069", "0.6030368", "0.60263443", "0.60089093", "0.59970635", "0.59756917", "0.5956231", "0.5949343", "0.5937446", "0.5911776", "0.59034705", "0.5901311", "0.5883238", "0.5871533", "0.5865361", "0.5851141", "0.581793", "0.5815705", "0.58012", "0.578891", "0.57870495", "0.5775621", "0.57608724", "0.5734331", "0.5731584", "0.5728505", "0.57239383", "0.57130504", "0.57094604", "0.570793", "0.5697671", "0.56975955", "0.56911296", "0.5684489", "0.5684489", "0.56768984", "0.56749034", "0.5659463", "0.56589085", "0.56573", "0.56537443", "0.5651912", "0.5648272", "0.5641736", "0.5639226", "0.5638583", "0.56299245", "0.56297386", "0.56186295", "0.5615729", "0.56117755", "0.5596015", "0.55905765", "0.55816257", "0.55813104", "0.55723965", "0.5572061", "0.55696625", "0.5566985", "0.55633485", "0.555888", "0.5555646", "0.55525774", "0.5549722", "0.5548184", "0.55460495", "0.5539394", "0.5535825", "0.55300397", "0.5527975", "0.55183905", "0.5517322", "0.5517183", "0.55152744", "0.5514932", "0.55128884", "0.5509501", "0.55044043", "0.54984957" ]
0.0
-1
/ renamed from: d
public void mo8820d() { if (!((Activity) C3720a.this._context).getClass().getSimpleName().equalsIgnoreCase(LiveViewMoviePantilterCheckRangeActivity.class.getSimpleName())) { C2331d.m10114a((Activity) C3720a.this, C2328a.ON_PANTILTER_NO_CONNECT, (Bundle) null); } else { C3720a.this.finish(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void d() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "public int d()\r\n/* 79: */ {\r\n/* 80:82 */ return this.d;\r\n/* 81: */ }", "public String d_()\r\n/* 445: */ {\r\n/* 446:459 */ return \"container.inventory\";\r\n/* 447: */ }", "public abstract int d();", "private void m2248a(double d, String str) {\n this.f2954c = d;\n this.f2955d = (long) d;\n this.f2953b = str;\n this.f2952a = ValueType.doubleValue;\n }", "public int d()\n {\n return 1;\n }", "public interface C19512d {\n /* renamed from: dd */\n void mo34676dd(int i, int i2);\n }", "void mo21073d();", "@Override\n public boolean d() {\n return false;\n }", "int getD();", "public void dor(){\n }", "public int getD() {\n\t\treturn d;\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}", "public String getD() {\n return d;\n }", "@Override\n\tpublic void dibuja() {\n\t\t\n\t}", "public final void mo91715d() {\n }", "public D() {}", "void mo17013d();", "public int getD() {\n return d_;\n }", "void mo83705a(C32458d<T> dVar);", "public void d() {\n\t\tSystem.out.println(\"d method\");\n\t}", "double d();", "public float d()\r\n/* 15: */ {\r\n/* 16:163 */ return this.b;\r\n/* 17: */ }", "protected DNA(Population pop, DNA d) {\n\t\t// TODO: implement this\n\t}", "public ahb(ahd paramahd)\r\n/* 12: */ {\r\n/* 13: 36 */ this.d = paramahd;\r\n/* 14: */ }", "public abstract C17954dh<E> mo45842a();", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\n\tpublic void visitTdetree(Tdetree p) {\n\n\t}", "public abstract void mo56925d();", "void mo54435d();", "public void mo21779D() {\n }", "public void d() {\n this.f20599d.a(this.f20598c);\n this.f20598c.a(this);\n this.f20601f = new a(new d());\n d.a(this.f20596a, this.f20597b, this.f20601f);\n this.f20596a.setLayoutManager(new NPALinearLayoutManager(getContext()));\n ((s) this.f20596a.getItemAnimator()).setSupportsChangeAnimations(false);\n this.f20596a.setAdapter(this.f20601f);\n this.f20598c.a(this.f20602g);\n }", "@Override\r\n public String getStringRepresentation()\r\n {\r\n return \"D\";\r\n }", "void mo28307a(zzgd zzgd);", "List<String> d();", "d(l lVar, m mVar, b bVar) {\n super(mVar);\n this.f11484d = lVar;\n this.f11483c = bVar;\n }", "public int getD() {\n return d_;\n }", "public void addDField(String d){\n\t\tdfield.add(d);\n\t}", "public void mo3749d() {\n }", "public a dD() {\n return new a(this.HG);\n }", "public String amd_to_dma(java.sql.Date d)\n {\n String resp = \"\";\n if (d!=null)\n {\n String sdat = d.toString();\n String sano = sdat.substring(0,4);\n String smes = sdat.substring(5,7);\n String sdia = sdat.substring(8,10);\n resp = sdia+\"/\"+smes+\"/\"+sano;\n }\n return resp;\n }", "public void mo130970a(double d) {\n SinkDefaults.m149818a(this, d);\n }", "public abstract int getDx();", "public void mo97908d() {\n }", "public com.c.a.d.d d() {\n return this.k;\n }", "private static String toPsString(double d) {\n return \"(\" + d + \")\";\n }", "public boolean d() {\n return false;\n }", "void mo17023d();", "String dibujar();", "@Override\n\tpublic void setDurchmesser(int d) {\n\n\t}", "public void mo2470d() {\n }", "public abstract VH mo102583a(ViewGroup viewGroup, D d);", "public abstract String mo41079d();", "public void setD ( boolean d ) {\n\n\tthis.d = d;\n }", "public Dx getDx() {\n/* 32 */ return this.dx;\n/* */ }", "DoubleNode(int d) {\n\t data = d; }", "DD createDD();", "@java.lang.Override\n public float getD() {\n return d_;\n }", "public void setD(String d) {\n this.d = d == null ? null : d.trim();\n }", "public int d()\r\n {\r\n return 20;\r\n }", "float getD();", "public static int m22546b(double d) {\n return 8;\n }", "void mo12650d();", "String mo20732d();", "static void feladat4() {\n\t}", "void mo130799a(double d);", "public void mo2198g(C0317d dVar) {\n }", "@Override\n public void d(String TAG, String msg) {\n }", "private double convert(double d){\n\t\tDecimalFormatSymbols symbols = DecimalFormatSymbols.getInstance();\n\t\tsymbols.setDecimalSeparator('.');\n\t\tDecimalFormat df = new DecimalFormat(\"#.##\",symbols); \n\t\treturn Double.valueOf(df.format(d));\n\t}", "public void d(String str) {\n ((b.b) this.b).g(str);\n }", "public abstract void mo42329d();", "public abstract long mo9229aD();", "public abstract String getDnForPerson(String inum);", "public interface ddd {\n public String dan();\n\n}", "@Override\n public void func_104112_b() {\n \n }", "public Nodo (String d){\n\t\tthis.dato = d;\n\t\tthis.siguiente = null; //para que apunte el nodo creado a nulo\n\t}", "public void mo5117a(C0371d c0371d, double d) {\n new C0369b(this, c0371d, d).start();\n }", "public interface C27442s {\n /* renamed from: d */\n List<EffectPointModel> mo70331d();\n}", "public final void m22595a(double d) {\n mo4383c(Double.doubleToRawLongBits(d));\n }", "public void d() {\n this.f23522d.a(this.f23521c);\n this.f23521c.a(this);\n this.i = new a();\n this.i.a(new ae(this.f23519a));\n this.f23519a.setAdapter(this.i);\n this.f23519a.setOnItemClickListener(this);\n this.f23521c.e();\n this.h.a(hashCode(), this.f23520b);\n }", "public Vector2d(double d) {\n\t\tthis.x = d;\n\t\tthis.y = d;\n\t}", "DomainHelper dh();", "private Pares(PLoc p, PLoc s, int d){\n\t\t\tprimero=p;\n\t\t\tsegundo=s;\n\t\t\tdistancia=d;\n\t\t}", "static double DEG_to_RAD(double d) {\n return d * Math.PI / 180.0;\n }", "@java.lang.Override\n public float getD() {\n return d_;\n }", "private final VH m112826b(ViewGroup viewGroup, D d) {\n return mo102583a(viewGroup, d);\n }", "public Double getDx();", "public void m25658a(double d) {\n if (d <= 0.0d) {\n d = 1.0d;\n }\n this.f19276f = (float) (50.0d / d);\n this.f19277g = new C4658a(this, this.f19273c);\n }", "boolean hasD();", "public abstract void mo27386d();", "MergedMDD() {\n }", "@ReflectiveMethod(name = \"d\", types = {})\n public void d(){\n NMSWrapper.getInstance().exec(nmsObject);\n }", "@Override\n public Chunk d(int i0, int i1) {\n return null;\n }", "public void d(World paramaqu, BlockPosition paramdt, Block parambec)\r\n/* 47: */ {\r\n/* 48: 68 */ BlockPosition localdt = paramdt.offset(((EnumDirection)parambec.getData(a)).opposite());\r\n/* 49: 69 */ Block localbec = paramaqu.getBlock(localdt);\r\n/* 50: 70 */ if (((localbec.getType() instanceof bdq)) && (((Boolean)localbec.getData(bdq.b)).booleanValue())) {\r\n/* 51: 71 */ paramaqu.g(localdt);\r\n/* 52: */ }\r\n/* 53: */ }", "double defendre();", "public static int setDimension( int d ) {\n int temp = DPoint.d;\n DPoint.d = d;\n return temp;\n }", "public Datum(Datum d) {\n this.dan = d.dan;\n this.mesec = d.mesec;\n this.godina = d.godina;\n }", "public Nodo (String d, Nodo n){\n\t\tdato = d;\n\t\tsiguiente=n;\n\t}" ]
[ "0.63810617", "0.616207", "0.6071929", "0.59959275", "0.5877492", "0.58719957", "0.5825175", "0.57585526", "0.5701679", "0.5661244", "0.5651699", "0.56362265", "0.562437", "0.5615328", "0.56114155", "0.56114155", "0.5605659", "0.56001145", "0.5589302", "0.5571578", "0.5559222", "0.5541367", "0.5534182", "0.55326", "0.550431", "0.55041796", "0.5500838", "0.54946786", "0.5475938", "0.5466879", "0.5449981", "0.5449007", "0.54464436", "0.5439673", "0.543565", "0.5430978", "0.5428843", "0.5423923", "0.542273", "0.541701", "0.5416963", "0.54093426", "0.53927654", "0.53906536", "0.53793144", "0.53732955", "0.53695524", "0.5366731", "0.53530186", "0.535299", "0.53408253", "0.5333639", "0.5326304", "0.53250664", "0.53214055", "0.53208005", "0.5316437", "0.53121597", "0.52979535", "0.52763224", "0.5270543", "0.526045", "0.5247397", "0.5244388", "0.5243049", "0.5241726", "0.5241194", "0.523402", "0.5232349", "0.5231111", "0.5230985", "0.5219358", "0.52145815", "0.5214168", "0.5209237", "0.52059376", "0.51952434", "0.5193699", "0.51873696", "0.5179743", "0.5178796", "0.51700175", "0.5164517", "0.51595956", "0.5158281", "0.51572365", "0.5156627", "0.5155795", "0.51548296", "0.51545656", "0.5154071", "0.51532024", "0.5151545", "0.5143571", "0.5142079", "0.5140048", "0.51377696", "0.5133826", "0.5128858", "0.5125679", "0.5121545" ]
0.0
-1