Class AnonymousBlock
- java.lang.Object
-
- org.spockframework.compiler.model.Node<Method,java.util.List<org.codehaus.groovy.ast.stmt.Statement>>
-
- org.spockframework.compiler.model.Block
-
- org.spockframework.compiler.model.AnonymousBlock
-
public class AnonymousBlock extends Block
A block without a label at the beginning of a method. Every Method has a (possibly empty) AnonymousBlock as its first block.- Author:
- Peter Niederwieser
-
-
Constructor Summary
Constructors Constructor Description AnonymousBlock(Method parent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(ISpecVisitor visitor)
BlockParseInfo
getParseInfo()
-
Methods inherited from class org.spockframework.compiler.model.Block
getDescriptions, getNext, getNext, getPrevious, getPrevious, isFirst, isFirstInChain, isLast, setNext, setPrevious
-
-
-
-
Constructor Detail
-
AnonymousBlock
public AnonymousBlock(Method parent)
-
-
Method Detail
-
accept
public void accept(ISpecVisitor visitor) throws java.lang.Exception
-
getParseInfo
public BlockParseInfo getParseInfo()
- Specified by:
getParseInfo
in classBlock
-
-