{"id":37021082,"url":"https://github.com/blackbeard334/jops","last_synced_at":"2026-01-14T02:28:32.277Z","repository":{"id":57732632,"uuid":"199084040","full_name":"blackbeard334/jops","owner":"blackbeard334","description":"Java Operator Overloading Plugin","archived":false,"fork":false,"pushed_at":"2020-02-24T16:30:49.000Z","size":255,"stargazers_count":10,"open_issues_count":1,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-06T06:19:22.642Z","etag":null,"topics":["compiler-plugin","experimental","java","javac-plugin","operator-overloading","pl"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/blackbeard334.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-07-26T21:50:26.000Z","updated_at":"2024-10-09T00:32:36.000Z","dependencies_parsed_at":"2022-09-11T15:40:21.498Z","dependency_job_id":null,"html_url":"https://github.com/blackbeard334/jops","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/blackbeard334/jops","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blackbeard334%2Fjops","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blackbeard334%2Fjops/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blackbeard334%2Fjops/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blackbeard334%2Fjops/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/blackbeard334","download_url":"https://codeload.github.com/blackbeard334/jops/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blackbeard334%2Fjops/sbom","scorecard":{"id":241993,"data":{"date":"2025-08-11","repo":{"name":"github.com/blackbeard334/jops","commit":"8975eb9ca6f647663cbe6eed667c14eeada1dd02"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.1,"checks":[{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: GNU General Public License v3.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":3,"reason":"7 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-78wr-2p64-hpwj","Warn: Project is vulnerable to: GHSA-gwrp-pvrq-jmwv","Warn: Project is vulnerable to: GHSA-rhgr-952r-6p8q","Warn: Project is vulnerable to: GHSA-2f88-5hg8-9x2x","Warn: Project is vulnerable to: GHSA-8vhq-qq4p-grq3","Warn: Project is vulnerable to: GHSA-g6ph-x5wf-g337","Warn: Project is vulnerable to: GHSA-jcwr-x25h-x5fh"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-17T06:49:36.395Z","repository_id":57732632,"created_at":"2025-08-17T06:49:36.395Z","updated_at":"2025-08-17T06:49:36.395Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28408711,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T01:52:23.358Z","status":"online","status_checked_at":"2026-01-14T02:00:06.678Z","response_time":107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["compiler-plugin","experimental","java","javac-plugin","operator-overloading","pl"],"created_at":"2026-01-14T02:28:31.582Z","updated_at":"2026-01-14T02:28:32.272Z","avatar_url":"https://github.com/blackbeard334.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.com/blackbeard334/jops.svg?token=bpmypf3quXHRf7DniJui\u0026branch=master)](https://travis-ci.com/blackbeard334/jops)\n\n# JOPS\n**J**ava **O**perator Overloading **P**lugin\n\nOriginally JOPS stood for \"Java Opcodes\", but that didn't make sense anymore, so now it stands for **J**ava **O**perator Overloading **P**lugin.\n\nI know I know, it should be called JOOP instead, but I like JOPS better. Oh yeah, the 'S' stands for _Syntactic Sugar Edition_. \n\n\n## How to use\n- add [@OperatorOverloading](https://github.com/blackbeard334/jops/blob/master/jops_plugin/src/main/java/com/jops/annotation/OperatorOverloading.java) annotation to the class with overloaded operators\n- overload the operators with the following C++ syntax:\n```java\n@OperatorOverloading\npublic class Bla {       \n    public Bla operator+(Bla b) {\n        return ...//something..or nothing\n    }                 \n}\n```              \n- ...\n- write some code, and behold:\n```java\npublic class BlaTest {       \n    public static void main(String[]args) {\n        Bla a = new Bla();\n        Bla b = new Bla();\n        Bla c = a + b;\n        System.out.println(\"operator overloading banzai!\");\n    }                     \n}\n```\n##### Currently only the following **single operand** operators are supported:\n1) `operator+`\n1) `operator-`\n1) `operator*`\n1) `operator/`\n1) `operator+=`\n1) `operator-=`\n1) `operator*=`\n1) `operator/=`\n\n## How to build/compile\n### Maven\n- include the _jops_plugin_ as a dependency(we need this for the _@OperatorOverloading_ annotation)\n```xml       \n\u003cdependencies\u003e\n    \u003cdependency\u003e\n        \u003cgroupId\u003eio.github.blackbeard334\u003c/groupId\u003e\n        \u003cartifactId\u003ejops_plugin\u003c/artifactId\u003e\n        \u003cversion\u003e${jops_plugin.version}\u003c/version\u003e\n    \u003c/dependency\u003e \n\u003c/dependencies\u003e\n```\n- next you need to add the _jops_plugin_ as a compiler arg, and as a dependency for the _maven-compiler_plugin_\n```xml\n\u003cbuild\u003e\n    \u003cplugins\u003e\n        \u003cplugin\u003e\n            \u003cgroupId\u003eorg.apache.maven.plugins\u003c/groupId\u003e\n            \u003cartifactId\u003emaven-compiler-plugin\u003c/artifactId\u003e\n            \u003cversion\u003e3.8.1\u003c/version\u003e\n            \u003cconfiguration\u003e\n                \u003csource\u003e11\u003c/source\u003e\n                \u003ctarget\u003e11\u003c/target\u003e\n                \u003ccompilerArgs\u003e\n                    \u003carg\u003e-Xplugin:JOPSPlugin\u003c/arg\u003e\n                \u003c/compilerArgs\u003e\n            \u003c/configuration\u003e\n            \u003cdependencies\u003e\n                \u003cdependency\u003e\n                    \u003cgroupId\u003eio.github.blackbeard334\u003c/groupId\u003e\n                    \u003cartifactId\u003ejops_plugin\u003c/artifactId\u003e\n                    \u003cversion\u003e${jops_plugin.version}\u003c/version\u003e\n                \u003c/dependency\u003e\n            \u003c/dependencies\u003e\n        \u003c/plugin\u003e\n    \u003c/plugins\u003e\n\u003c/build\u003e\n```              \n### Mavenless\n* `javac -cp /path/jops -Xplugin:JOPSPlugin HelloWorld.java`\n    1) first we need to include the _jops_plugin_ in the classpath `-cp /path/jops`\n    1) then we tell the compiler that we want to use the _jops_plugin_ with the `-Xplugin:JOPSPlugin` switch\n    3) enjoy...  \n\n###### References\n* [The Hitchhiker's Guide to javac](https://openjdk.java.net/groups/compiler/doc/hhgtjavac/index.html#source)\n* [Java Compiler API - Compile Code to a File and Load it using Default Class Loader](https://www.logicbig.com/tutorials/core-java-tutorial/java-se-compiler-api/compiler-api-string-source.html)\n* [ANNOTATION PROCESSING 101](http://hannesdorfmann.com/annotation-processing/annotationprocessing101)\n* [Extending Java and Javac](https://blog.blackhc.net/2009/06/extending-java-and-javac/)\n* [Creating a Java Compiler Plugin](https://www.baeldung.com/java-build-compiler-plugin)\n* [Parser for C and Objective-C.](https://github.com/gcc-mirror/gcc/blob/master/gcc/c/c-parser.c)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblackbeard334%2Fjops","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblackbeard334%2Fjops","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblackbeard334%2Fjops/lists"}