Package com.qulice.checkstyle.parameters
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 childs)
Primary ctor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
count()
Return number of arguments.List<com.puppycrawl.tools.checkstyle.api.DetailAST>
parameters()
Return parameters for this node.
-
-
-
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.
-
-