public class ExpressionDescriberImpl extends Object implements ExpressionDescriber
Constructor and Description |
---|
ExpressionDescriberImpl(Writer output) |
Modifier and Type | Method and Description |
---|---|
void |
beginArray(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(String referenceDescription)
Describes a reference
|
void |
endArray()
ends the current array
|
void |
endGroup()
Signals the end of an expression
|
void |
operator(String operator)
Inserts an operator in the constraint.
|
public ExpressionDescriberImpl(Writer output)
output
- public void describe(Constraint constraint) throws IOException
describe
in interface ExpressionDescriber
IOException
ExpressionDescriber.describe(com.agical.rmock.core.match.Constraint)
public void beginGroup() throws IOException
ExpressionDescriber
beginGroup
in interface ExpressionDescriber
IOException
public void describeInverted(Expression expression) throws IOException
ExpressionDescriber
describeInverted
in interface ExpressionDescriber
IOException
public void operator(String operator) throws IOException
ExpressionDescriber
operator
in interface ExpressionDescriber
operator
- An operator, usually a sign like &&, || etcIOException
public void endGroup() throws IOException
ExpressionDescriber
endGroup
in interface ExpressionDescriber
IOException
public void describeReference(String referenceDescription) throws IOException
ExpressionDescriber
describeReference
in interface ExpressionDescriber
IOException
public void beginArray(Class type, int length) throws IOException
ExpressionDescriber
beginArray
in interface ExpressionDescriber
IOException
public void endArray() throws IOException
ExpressionDescriber
endArray
in interface ExpressionDescriber
IOException
Copyright © 2005-2013 Agical AB. All Rights Reserved.