org.spockframework.compiler.model
Class Field

java.lang.Object
  extended by org.spockframework.compiler.model.Node<Spec,FieldNode>
      extended by org.spockframework.compiler.model.Field

public class Field
extends Node<Spec,FieldNode>

AST node representing a user-defined instance field. (A generated field underlying a user-defined property also counts as such.)

Author:
Peter Niederwieser

Constructor Summary
Field(Spec parent, FieldNode ast, int ordinal)
           
 
Method Summary
 void accept(ISpecVisitor visitor)
           
 int getOrdinal()
           
 PropertyNode getOwner()
           
 boolean isShared()
           
 void setOwner(PropertyNode owner)
           
 void setShared(boolean shared)
           
 
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

Field

public Field(Spec parent,
             FieldNode ast,
             int ordinal)
Method Detail

getOrdinal

public int getOrdinal()

isShared

public boolean isShared()

setShared

public void setShared(boolean shared)

getOwner

public PropertyNode getOwner()

setOwner

public void setOwner(PropertyNode owner)

accept

public void accept(ISpecVisitor visitor)
            throws Exception
Specified by:
accept in class Node<Spec,FieldNode>
Throws:
Exception


Copyright © 2010. All Rights Reserved.