Class TypeParameters

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

public class TypeParameters extends Object
Class, interface, constructor or method generic type parameters.
Since:
0.18.18
  • Constructor Summary

    Constructors
    Constructor
    Description
    TypeParameters(com.puppycrawl.tools.checkstyle.api.DetailAST node)
    Secondary ctor.
    Primary ctor.
  • Method Summary

    Modifier and Type
    Method
    Description
    final void
    checkOrder(List<com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocTag> tags, Consumer<com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocTag> consumer)
    Checks for consistency the order of generic type parameters and their Javadoc parameters.
    final int
    Return number of arguments.

    Methods inherited from class java.lang.Object

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

    • TypeParameters

      public TypeParameters(com.puppycrawl.tools.checkstyle.api.DetailAST node)
      Secondary ctor.
      Parameters:
      node - Class, interface, constructor or method definition node.
    • TypeParameters

      public TypeParameters(Parameters parameters)
      Primary ctor.
      Parameters:
      parameters - Parameters.
  • Method Details

    • count

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

      public final void checkOrder(List<com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocTag> tags, Consumer<com.puppycrawl.tools.checkstyle.checks.javadoc.JavadocTag> consumer)
      Checks for consistency the order of generic type parameters and their Javadoc parameters.
      Parameters:
      tags - Javadoc parameter tags.
      consumer - Consumer accepts JavadocTag which is located out of order.