org.spockframework.compiler.model
Class WhenBlock

java.lang.Object
  extended by org.spockframework.compiler.model.Node<Method,java.util.List<org.codehaus.groovy.ast.stmt.Statement>>
      extended by org.spockframework.compiler.model.Block
          extended by org.spockframework.compiler.model.WhenBlock

public class WhenBlock
extends Block

AST node representing a when-block in a feature method.

Author:
Peter Niederwieser

Constructor Summary
WhenBlock(Method parent)
           
 
Method Summary
 void accept(ISpecVisitor visitor)
           
 ThenBlock getNext()
           
 BlockParseInfo getParseInfo()
           
 
Methods inherited from class org.spockframework.compiler.model.Block
getDescriptions, getNext, getPrevious, getPrevious, isFirst, isFirstInChain, isLast, setNext, setPrevious
 
Methods inherited from class org.spockframework.compiler.model.Node
getAst, getName, getParent, setAst, setName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WhenBlock

public WhenBlock(Method parent)
Method Detail

accept

public void accept(ISpecVisitor visitor)
            throws java.lang.Exception
Specified by:
accept in class Node<Method,java.util.List<org.codehaus.groovy.ast.stmt.Statement>>
Throws:
java.lang.Exception

getNext

public ThenBlock getNext()
Overrides:
getNext in class Block

getParseInfo

public BlockParseInfo getParseInfo()
Specified by:
getParseInfo in class Block


Copyright © 2013. All rights reserved