Class Rule

java.lang.Object
io.cucumber.messages.types.Rule

public final class Rule extends Object
Represents the Rule message in Cucumber's message protocol
  • Field Details

    • location

      private final Location location
    • tags

      private final List<Tag> tags
    • keyword

      private final String keyword
    • name

      private final String name
    • description

      private final String description
    • children

      private final List<RuleChild> children
    • id

      private final String id
  • Constructor Details

  • Method Details

    • getLocation

      public Location getLocation()
      The location of the `Rule` keyword
    • getTags

      public List<Tag> getTags()
      All the tags placed above the `Rule` keyword
    • getKeyword

      public String getKeyword()
    • getName

      public String getName()
    • getDescription

      public String getDescription()
    • getChildren

      public List<RuleChild> getChildren()
    • getId

      public String getId()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object