|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ExpressionDescriber
Provides an API so that expressions can describe themselves. The description process works like the visitor-pattern. The describer visits an expectation so that the expectation can describe itself and pass subexpressions to be described. (c) Agical AB 2005
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 describedConstraint)
|
void |
describeInverted(Expression wrappedConstraint)
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. |
Method Detail |
---|
void beginGroup() throws java.io.IOException
java.io.IOException
void describe(Constraint describedConstraint) throws java.io.IOException
describedConstraint
-
java.io.IOException
void describeInverted(Expression wrappedConstraint) throws java.io.IOException
wrappedConstraint
-
java.io.IOException
void operator(java.lang.String operator) throws java.io.IOException
operator
- An operator, usually a sign like &&, || etc
java.io.IOException
void endGroup() throws java.io.IOException
java.io.IOException
void describeReference(java.lang.String referenceDescription) throws java.io.IOException
referenceDescription
-
java.io.IOException
void beginArray(java.lang.Class type, int length) throws java.io.IOException
java.io.IOException
void endArray() throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |