gherkin.formatter.model
Class BasicStatement

java.lang.Object
  extended by gherkin.formatter.Mappable
      extended by gherkin.formatter.model.BasicStatement
All Implemented Interfaces:
CommentHolder, Serializable
Direct Known Subclasses:
DescribedStatement, Step

public abstract class BasicStatement
extends Mappable
implements CommentHolder

See Also:
Serialized Form

Constructor Summary
BasicStatement(List<Comment> comments, String keyword, String name, Integer line)
           
 
Method Summary
 List<Comment> getComments()
           
protected  Integer getFirstNonCommentLine()
           
 String getKeyword()
           
 Integer getLine()
           
 Range getLineRange()
           
 String getName()
           
abstract  void replay(Formatter formatter)
           
 
Methods inherited from class gherkin.formatter.Mappable
toMap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicStatement

public BasicStatement(List<Comment> comments,
                      String keyword,
                      String name,
                      Integer line)
Method Detail

getLineRange

public Range getLineRange()

getFirstNonCommentLine

protected Integer getFirstNonCommentLine()

getComments

public List<Comment> getComments()
Specified by:
getComments in interface CommentHolder

getKeyword

public String getKeyword()

getName

public String getName()

getLine

public Integer getLine()

replay

public abstract void replay(Formatter formatter)


Copyright © 2013. All rights reserved.