Class Parameters


  • public class Parameters
    extends Object
    Abstract parameters. Is used for Generic type parameters or method(constructor) arguments.
    Since:
    0.18.18
    • Constructor Detail

      • Parameters

        public Parameters​(com.puppycrawl.tools.checkstyle.api.DetailAST node,
                          int parent,
                          int childs)
        Primary ctor.
        Parameters:
        node - Class, interface, constructor or method definition node.
        parent - Parent TokenType (TYPE_PARAMETERS or PARAMETERS).
        childs - Childs TokenType (TYPE_PARAMETER or PARAMETER_DEF).
    • Method Detail

      • count

        public final int count()
        Return number of arguments.
        Returns:
        Number of parameters.
      • parameters

        public final List<com.puppycrawl.tools.checkstyle.api.DetailAST> parameters()
        Return parameters for this node.
        Returns:
        Parameters for this node.