gherkin.formatter.model
Class BasicStatement

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

public abstract class BasicStatement
extends Mappable
implements CommentHolder


Constructor Summary
BasicStatement(List<Comment> comments, String keyword, String name, int line)
           
 
Method Summary
 List<Comment> getComments()
           
protected  int getFirstNonCommentLine()
           
 String getKeyword()
           
 int 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,
                      int line)
Method Detail

getLineRange

public Range getLineRange()

getFirstNonCommentLine

protected int getFirstNonCommentLine()

getComments

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

getKeyword

public String getKeyword()

getName

public String getName()

getLine

public int getLine()

replay

public abstract void replay(Formatter formatter)


Copyright © 2011. All Rights Reserved.