com.agical.rmock.core.describe.impl
Class ExpressionDescriberImpl

java.lang.Object
  extended by com.agical.rmock.core.describe.impl.ExpressionDescriberImpl
All Implemented Interfaces:
ExpressionDescriber

public class ExpressionDescriberImpl
extends java.lang.Object
implements ExpressionDescriber

(c) Agical AB 2005

Author:
joakim.ohlrogge

Constructor Summary
ExpressionDescriberImpl(java.io.Writer output)
           
 
Method Summary
 void beginArray(java.lang.Class type, int length)
          marks the beginning of an array
 void beginGroup()
          Signals the beginning of an expression
 void describe(Constraint constraint)
           
 void describeInverted(Expression expression)
          describe this constraint as inverted
ie !wrappedConstraint
 void describeReference(java.lang.String referenceDescription)
          Describes a reference
 void endArray()
          ends the current array
 void endGroup()
          Signals the end of an expression
 void operator(java.lang.String operator)
          Inserts an operator in the constraint.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExpressionDescriberImpl

public ExpressionDescriberImpl(java.io.Writer output)
Parameters:
output -
Method Detail

describe

public void describe(Constraint constraint)
              throws java.io.IOException
Specified by:
describe in interface ExpressionDescriber
Throws:
java.io.IOException
See Also:
ExpressionDescriber.describe(com.agical.rmock.core.match.Constraint)

beginGroup

public void beginGroup()
                throws java.io.IOException
Description copied from interface: ExpressionDescriber
Signals the beginning of an expression

Specified by:
beginGroup in interface ExpressionDescriber
Throws:
java.io.IOException

describeInverted

public void describeInverted(Expression expression)
                      throws java.io.IOException
Description copied from interface: ExpressionDescriber
describe this constraint as inverted
ie !wrappedConstraint

Specified by:
describeInverted in interface ExpressionDescriber
Throws:
java.io.IOException

operator

public void operator(java.lang.String operator)
              throws java.io.IOException
Description copied from interface: ExpressionDescriber
Inserts an operator in the constraint.

Specified by:
operator in interface ExpressionDescriber
Parameters:
operator - An operator, usually a sign like &&, || etc
Throws:
java.io.IOException

endGroup

public void endGroup()
              throws java.io.IOException
Description copied from interface: ExpressionDescriber
Signals the end of an expression

Specified by:
endGroup in interface ExpressionDescriber
Throws:
java.io.IOException

describeReference

public void describeReference(java.lang.String referenceDescription)
                       throws java.io.IOException
Description copied from interface: ExpressionDescriber
Describes a reference

Specified by:
describeReference in interface ExpressionDescriber
Throws:
java.io.IOException

beginArray

public void beginArray(java.lang.Class type,
                       int length)
                throws java.io.IOException
Description copied from interface: ExpressionDescriber
marks the beginning of an array

Specified by:
beginArray in interface ExpressionDescriber
Throws:
java.io.IOException

endArray

public void endArray()
              throws java.io.IOException
Description copied from interface: ExpressionDescriber
ends the current array

Specified by:
endArray in interface ExpressionDescriber
Throws:
java.io.IOException


Copyright © 2005-2009 Agical AB. All Rights Reserved.