Class FunctionParser

java.lang.Object
org.skriptlang.skript.common.function.FunctionParser

public class FunctionParser extends Object
Parsing for function structures.
  • Constructor Details

    • FunctionParser

      public FunctionParser()
  • Method Details

    • parse

      @Nullable public static Signature<?> parse(String script, String name, String args, @Nullable @Nullable String returns, boolean local)
      Parses the signature from the given arguments.
      Parameters:
      script - Script file name (might be used for some checks).
      name - The name of the function.
      args - The parameters of the function.
      returns - The return type of the function, or null if the function should not return anything.
      local - If the signature of function is local.
      Returns:
      Parsed signature or null if something went wrong.
      See Also: