File tree Expand file tree Collapse file tree 6 files changed +15
-139
lines changed
src/main/java/com/wizardlybump17/wlib/command
extractor/method/factory/object
core/src/main/java/com/wizardlybump17/wlib Expand file tree Collapse file tree 6 files changed +15
-139
lines changed Original file line number Diff line number Diff line change 11val annotations = " 26.0.1"
2+ val gson = " 2.13.2"
23
34dependencies {
45 implementation(" org.jetbrains:annotations:${annotations} " )
56 implementation(project(" :objects" ))
67 implementation(project(" :utils" ))
78
9+ implementation(" com.google.code.gson:gson:${gson} " )
10+
811 testImplementation(" org.jetbrains:annotations:${annotations} " )
912}
Original file line number Diff line number Diff line change 1- package com .wizardlybump17 .wlib .command .extractor .method .factory ;
1+ package com .wizardlybump17 .wlib .command .extractor .method .factory . object ;
22
33import com .google .gson .Gson ;
44import com .google .gson .JsonElement ;
55import com .wizardlybump17 .wlib .command .annotation .Command ;
66import com .wizardlybump17 .wlib .command .annotation .NonNullInput ;
7- import com .wizardlybump17 .wlib .command .input .AllowedJsonElementInputs ;
7+ import com .wizardlybump17 .wlib .command .extractor .method .factory .MethodCommandNodeFactory ;
8+ import com .wizardlybump17 .wlib .command .input .AllowedInputs ;
89import com .wizardlybump17 .wlib .command .node .CommandNode ;
9- import com .wizardlybump17 .wlib .command .node .JsonElementCommandNode ;
10+ import com .wizardlybump17 .wlib .command .node .object . JsonElementCommandNode ;
1011import org .jetbrains .annotations .NotNull ;
1112import org .jetbrains .annotations .Nullable ;
1213
@@ -27,7 +28,7 @@ public JsonElementMethodCommandNodeFactory(@NotNull Gson gson) {
2728 return new JsonElementCommandNode (
2829 name ,
2930 root == null ? List .of () : List .of (root ),
30- parameter .isAnnotationPresent (NonNullInput .class ) ? AllowedJsonElementInputs .anyNotNull () : AllowedJsonElementInputs .anyNullable (),
31+ parameter .isAnnotationPresent (NonNullInput .class ) ? AllowedInputs .anyNotNull () : AllowedInputs .anyNullable (),
3132 null ,
3233 null ,
3334 null ,
Original file line number Diff line number Diff line change 1- package com .wizardlybump17 .wlib .command .node ;
1+ package com .wizardlybump17 .wlib .command .node . object ;
22
33import com .google .gson .Gson ;
44import com .google .gson .JsonElement ;
55import com .google .gson .JsonSyntaxException ;
66import com .wizardlybump17 .wlib .command .exception .InputParsingException ;
77import com .wizardlybump17 .wlib .command .executor .CommandNodeExecutor ;
88import com .wizardlybump17 .wlib .command .input .AllowedInputs ;
9+ import com .wizardlybump17 .wlib .command .node .CommandNode ;
910import com .wizardlybump17 .wlib .command .suggestion .Suggester ;
1011import org .jetbrains .annotations .NotNull ;
1112import org .jetbrains .annotations .Nullable ;
1213
1314import java .util .List ;
1415
16+ //TODO: test
1517public class JsonElementCommandNode extends CommandNode <JsonElement > {
1618
1719 private final @ NotNull Gson gson ;
Original file line number Diff line number Diff line change 1- package com .wizardlybump17 .wlib .command .suggestion ;
1+ package com .wizardlybump17 .wlib .command .suggestion . object ;
22
33import com .google .gson .Gson ;
44import com .google .gson .JsonElement ;
55import com .wizardlybump17 .wlib .command .node .CommandNode ;
66import com .wizardlybump17 .wlib .command .sender .CommandSender ;
7+ import com .wizardlybump17 .wlib .command .suggestion .AbstractValuesSuggester ;
8+ import com .wizardlybump17 .wlib .command .suggestion .Suggester ;
79import org .jetbrains .annotations .NotNull ;
810import org .jetbrains .annotations .Unmodifiable ;
911
Original file line number Diff line number Diff line change 44import com .google .gson .GsonBuilder ;
55import com .wizardlybump17 .wlib .command .WLibCommandExecutor ;
66import com .wizardlybump17 .wlib .command .extractor .method .MethodCommandExtractor ;
7- import com .wizardlybump17 .wlib .command .extractor .method .factory .JsonElementMethodCommandNodeFactory ;
87import com .wizardlybump17 .wlib .command .extractor .method .factory .OfflinePlayerMethodCommandNodeFactory ;
98import com .wizardlybump17 .wlib .command .extractor .method .factory .PlayerMethodCommandNodeFactory ;
9+ import com .wizardlybump17 .wlib .command .extractor .method .factory .object .JsonElementMethodCommandNodeFactory ;
1010import com .wizardlybump17 .wlib .command .listener .BukkitCommandManagerListener ;
1111import com .wizardlybump17 .wlib .command .manager .CommandManager ;
1212import com .wizardlybump17 .wlib .command .registry .MethodCommandNodeFactoryRegistry ;
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments