Class Block
java.lang.Object
org.spockframework.compiler.model.Node<Method,List<org.codehaus.groovy.ast.stmt.Statement>>
org.spockframework.compiler.model.Block
- Direct Known Subclasses:
AnonymousBlock
,CleanupBlock
,ExpectBlock
,SetupBlock
,ThenBlock
,WhenBlock
,WhereBlock
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
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetNext()
<T extends Block>
Tabstract BlockParseInfo
<T extends Block>
TgetPrevious
(Class<T> blockType) boolean
isFirst()
boolean
boolean
isLast()
void
void
setPrevious
(Block block)
-
Constructor Details
-
Block
-
-
Method Details
-
getDescriptions
-
getPrevious
-
setPrevious
-
getNext
-
setNext
-
getPrevious
-
getNext
-
isFirst
public boolean isFirst() -
isLast
public boolean isLast() -
isFirstInChain
public boolean isFirstInChain() -
getParseInfo
-