Class Comment


  • public class Comment
    extends Object
    * A comment in a Gherkin document
    • Constructor Detail

      • Comment

        public Comment()
        No args constructor for use in serialization
      • Comment

        public Comment​(Location location,
                       String text)
        Parameters:
        location -
        text -
    • Method Detail

      • getLocation

        public Location getLocation()
        * Points to a line and a column in a text file (Required)
      • setLocation

        public void setLocation​(Location location)
        * Points to a line and a column in a text file (Required)
      • getText

        public String getText()
        The text of the comment (Required)
      • setText

        public void setText​(String text)
        The text of the comment (Required)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object