Class Parameters

java.lang.Object
com.qulice.checkstyle.parameters.Parameters

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

    Constructors
    Constructor
    Description
    Parameters(com.puppycrawl.tools.checkstyle.api.DetailAST node, int parent, int children)
    Primary ctor.
  • Method Summary

    Modifier and Type
    Method
    Description
    final int
    Return number of arguments.
    final List<com.puppycrawl.tools.checkstyle.api.DetailAST>
    Return parameters for this node.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Parameters

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

    • 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.