summaryrefslogtreecommitdiff
path: root/.config/coc/extensions/node_modules/coc-java/snippets
diff options
context:
space:
mode:
authorJacob McDonnell <jacob@jacobmcdonnell.com>2024-12-05 13:34:46 -0500
committerJacob McDonnell <jacob@jacobmcdonnell.com>2024-12-05 13:34:46 -0500
commit5849e2ad7323f086bd6edf221b29e3f0b2b7cbd3 (patch)
treebb437c98f3661b5a3ac9d721dadd2c7b6e629692 /.config/coc/extensions/node_modules/coc-java/snippets
parent6e5c51a6ee731e17e81cc5e23867dbd4ddc006e0 (diff)
Removed Useless Configs
Diffstat (limited to '.config/coc/extensions/node_modules/coc-java/snippets')
-rw-r--r--.config/coc/extensions/node_modules/coc-java/snippets/java.json136
1 files changed, 0 insertions, 136 deletions
diff --git a/.config/coc/extensions/node_modules/coc-java/snippets/java.json b/.config/coc/extensions/node_modules/coc-java/snippets/java.json
deleted file mode 100644
index 7811fe3..0000000
--- a/.config/coc/extensions/node_modules/coc-java/snippets/java.json
+++ /dev/null
@@ -1,136 +0,0 @@
-{
- "main": {
- "prefix": "main",
- "body": ["public static void main(String[] args) {", "\t$0", "}"],
- "description": "Public static main method"
- },
- "sysout": {
- "prefix": "sysout",
- "body": ["System.out.println($0);"],
- "description": "Print to standard out"
- },
- "syserr": {
- "prefix": "syserr",
- "body": ["System.err.println($0);"],
- "description": "Print to standard err"
- },
- "fori": {
- "prefix": "fori",
- "body": [
- "for (${1:int} ${2:i} = ${3:0}; $2 < ${4:max}; $2++) {",
- "\t$0",
- "}"
- ],
- "description": "Indexed for loop"
- },
- "foreach": {
- "prefix": "foreach",
- "body": ["for (${1:type} ${2:var} : ${3:iterable}) {", "\t$0", "}"],
- "description": "Enhanced for loop"
- },
- "Public constructor": {
- "prefix": "ctor",
- "body": ["public ${1:${TM_FILENAME_BASE}}($2) {", "\t${0:super();}", "}"],
- "description": "Public constructor"
- },
- "if": {
- "prefix": "if",
- "body": ["if (${1:condition}) {", "\t$0", "}"],
- "description": "if statement"
- },
- "ifelse": {
- "prefix": "ifelse",
- "body": ["if (${1:condition}) {", "\t$2", "} else {", "\t$0", "}"],
- "description": "if/else statement"
- },
- "ifnull": {
- "prefix": "ifnull",
- "body": ["if (${1:condition} == null) {", "\t$0", "}"],
- "description": "if statement checking for null"
- },
- "ifnotnull": {
- "prefix": "ifnotnull",
- "body": ["if (${1:condition} != null) {", "\t$0", "}"],
- "description": "if statement checking for not null"
- },
- "trycatch": {
- "prefix": "try_catch",
- "body": [
- "try {",
- "\t$1",
- "} catch (${2:Exception} ${3:e}) {",
- "\t$4//${0:TODO}: handle exception",
- "}"
- ],
- "description": "try/catch block"
- },
- "tryresources": {
- "prefix": "try_resources",
- "body": [
- "try ($1) {",
- "\t$2",
- "} catch (${3:Exception} ${4:e}) {",
- "\t$5//${0:TODO}: handle exception",
- "}"
- ]
- },
- "private_method": {
- "prefix": "private_method",
- "body": ["private ${1:void} ${2:name}($3) {", "\t$0", "}"],
- "description": "private method"
- },
- "Public method": {
- "prefix": "public_method",
- "body": ["public ${1:void} ${2:name}(${3}) {", "\t$0", "}"],
- "description": "public method"
- },
- "Private static method": {
- "prefix": "private_static_method",
- "body": ["private static ${1:Type} ${2:name}(${3}) {", "\t$0", "}"],
- "description": "private static method"
- },
- "Public static method": {
- "prefix": "public_static_method",
- "body": ["public static ${1:void} ${2:name}(${3}) {", "\t$0", "}"],
- "description": "public static method"
- },
- "Protected Method": {
- "prefix": "protected_method",
- "body": ["protected ${1:void} ${2:name}(${3}) {", "\t$0", "}"],
- "description": "Protected method"
- },
- "Switch Statement": {
- "prefix": "switch",
- "body": [
- "switch (${1:key}) {",
- "\tcase ${2:value}:",
- "\t\t$0",
- "\t\tbreak;",
- "",
- "\tdefault:",
- "\t\tbreak;",
- "}"
- ],
- "description": "Switch Statement"
- },
- "While Statement": {
- "prefix": "while",
- "body": ["while (${1:condition}) {", "\t$0", "}"],
- "description": "While Statement"
- },
- "Do-While Statement": {
- "prefix": "dowhile",
- "body": ["do {", "\t$0", "} while (${1:condition});"],
- "description": "Do-While Statement"
- },
- "newObject": {
- "prefix": "new",
- "body": ["${0:Object} ${1:foo} = new ${0:Object}();"],
- "description": "Create new Object"
- },
- "Private field": {
- "prefix": "prf",
- "body": ["private ${1:String} ${2:name};"],
- "description": "Private field"
- }
-}