java.lang.Object
io.github.projectunified.craftcommand.processor.parser.CommandParser

public class CommandParser extends Object
Parser utility to convert compile-time annotated class elements into structured command models.
  • Constructor Details

    • CommandParser

      public CommandParser()
  • Method Details

    • parse

      public static CommandModel parse(TypeElement typeElement, ProcessingEnvironment env)
      Parses the given TypeElement if annotated with @Command.
      Parameters:
      typeElement - the class element
      env - the processing environment
      Returns:
      the parsed CommandModel, or null if parsing failed