org.spockframework.compiler.model
Class Block
java.lang.Object
org.spockframework.compiler.model.Node<Method,List<Statement>>
org.spockframework.compiler.model.Block
- Direct Known Subclasses:
- AnonymousBlock, CleanupBlock, ExpectBlock, SetupBlock, ThenBlock, WhenBlock, WhereBlock
public abstract class Block
- extends Node<Method,List<Statement>>
AST node representing a block in a feature method. There are six kinds
of blocks: setup-block, expect-block, when-block, then-block, cleanup-block,
and where-block.
- Author:
- Peter Niederwieser
Block
public Block(Method parent)
getDescriptions
public List<String> getDescriptions()
getPrevious
public Block getPrevious()
setPrevious
public void setPrevious(Block block)
getNext
public Block getNext()
setNext
public void setNext(Block block)
getPrevious
public <T extends Block> T getPrevious(Class<T> blockType)
getNext
public <T extends Block> T getNext(Class<T> blockType)
isFirst
public boolean isFirst()
isLast
public boolean isLast()
isFirstInChain
public boolean isFirstInChain()
getParseInfo
public abstract BlockParseInfo getParseInfo()
Copyright © 2010. All Rights Reserved.