Class CommandParser
java.lang.Object
io.github.projectunified.craftcommand.processor.parser.CommandParser
Parser utility to convert compile-time annotated class elements into structured command models.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CommandModelparse(TypeElement typeElement, ProcessingEnvironment env) Parses the given TypeElement if annotated with@Command.
-
Constructor Details
-
CommandParser
public CommandParser()
-
-
Method Details
-
parse
Parses the given TypeElement if annotated with@Command.- Parameters:
typeElement- the class elementenv- the processing environment- Returns:
- the parsed CommandModel, or
nullif parsing failed
-