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 ExpressionDescriberIOExceptionExpressionDescriber.describe(com.agical.rmock.core.match.Constraint)public void beginGroup()
throws IOException
ExpressionDescriberbeginGroup in interface ExpressionDescriberIOExceptionpublic void describeInverted(Expression expression) throws IOException
ExpressionDescriberdescribeInverted in interface ExpressionDescriberIOExceptionpublic void operator(String operator) throws IOException
ExpressionDescriberoperator in interface ExpressionDescriberoperator - An operator, usually a sign like &&, || etcIOExceptionpublic void endGroup()
throws IOException
ExpressionDescriberendGroup in interface ExpressionDescriberIOExceptionpublic void describeReference(String referenceDescription) throws IOException
ExpressionDescriberdescribeReference in interface ExpressionDescriberIOExceptionpublic void beginArray(Class type, int length) throws IOException
ExpressionDescriberbeginArray in interface ExpressionDescriberIOExceptionpublic void endArray()
throws IOException
ExpressionDescriberendArray in interface ExpressionDescriberIOExceptionCopyright © 2005-2013 Agical AB. All Rights Reserved.