org.spockframework.compiler.model
Class Spec

java.lang.Object
  extended by org.spockframework.compiler.model.Node<Spec,org.codehaus.groovy.ast.ClassNode>
      extended by org.spockframework.compiler.model.Spec

public class Spec
extends Node<Spec,org.codehaus.groovy.ast.ClassNode>

AST node representing a Spock specification. In source code, a Spec corresponds to one class definition extends from class Specification.

Author:
Peter Niederwieser

Constructor Summary
Spec(org.codehaus.groovy.ast.ClassNode code)
           
 
Method Summary
 void accept(ISpecVisitor visitor)
           
 FixtureMethod getCleanupMethod()
           
 FixtureMethod getCleanupSpecMethod()
           
 java.util.List<Field> getFields()
           
 FixtureMethod getInitializerMethod()
           
 java.util.List<Method> getMethods()
           
 FixtureMethod getSetupMethod()
           
 FixtureMethod getSetupSpecMethod()
           
 FixtureMethod getSharedInitializerMethod()
           
 void setCleanupMethod(FixtureMethod method)
           
 void setCleanupSpecMethod(FixtureMethod method)
           
 void setInitializerMethod(FixtureMethod method)
           
 void setSetupMethod(FixtureMethod method)
           
 void setSetupSpecMethod(FixtureMethod method)
           
 void setSharedInitializerMethod(FixtureMethod method)
           
 
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

Spec

public Spec(org.codehaus.groovy.ast.ClassNode code)
Method Detail

getFields

public java.util.List<Field> getFields()

getMethods

public java.util.List<Method> getMethods()

getInitializerMethod

public FixtureMethod getInitializerMethod()

setInitializerMethod

public void setInitializerMethod(FixtureMethod method)

getSharedInitializerMethod

public FixtureMethod getSharedInitializerMethod()

setSharedInitializerMethod

public void setSharedInitializerMethod(FixtureMethod method)

getSetupMethod

public FixtureMethod getSetupMethod()

setSetupMethod

public void setSetupMethod(FixtureMethod method)

getCleanupMethod

public FixtureMethod getCleanupMethod()

setCleanupMethod

public void setCleanupMethod(FixtureMethod method)

getSetupSpecMethod

public FixtureMethod getSetupSpecMethod()

setSetupSpecMethod

public void setSetupSpecMethod(FixtureMethod method)

getCleanupSpecMethod

public FixtureMethod getCleanupSpecMethod()

setCleanupSpecMethod

public void setCleanupSpecMethod(FixtureMethod method)

accept

public void accept(ISpecVisitor visitor)
            throws java.lang.Exception
Specified by:
accept in class Node<Spec,org.codehaus.groovy.ast.ClassNode>
Throws:
java.lang.Exception


Copyright © 2013. All rights reserved