org.spockframework.compiler.model
Class Spec
java.lang.Object
org.spockframework.compiler.model.Node<Spec,org.codehaus.groovy.ast.ClassNode>
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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Spec
public Spec(org.codehaus.groovy.ast.ClassNode code)
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