org.spockframework.compiler
Class InteractionRewriter

java.lang.Object
  extended by org.spockframework.compiler.InteractionRewriter

public class InteractionRewriter
extends Object

Creates the AST representation of an InteractionBuilder build sequence.

Author:
Peter Niederwieser

Constructor Summary
InteractionRewriter(IRewriteResourceProvider resourceProvider)
           
 
Method Summary
 Statement rewrite(ExpressionStatement stat)
          If the given statement is a valid interaction definition, returns the rewritten statement.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InteractionRewriter

public InteractionRewriter(IRewriteResourceProvider resourceProvider)
Method Detail

rewrite

public Statement rewrite(ExpressionStatement stat)
If the given statement is a valid interaction definition, returns the rewritten statement. If the given statement is not an interaction definition, returns null. If the given statement is an invalid interaction definition, records a compile error and returns null.



Copyright © 2010. All Rights Reserved.