|
||||||||||
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(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(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. |
Method Detail |
---|
void beginGroup() throws IOException
IOException
void describe(Constraint describedConstraint) throws IOException
describedConstraint
-
IOException
void describeInverted(Expression wrappedConstraint) throws IOException
wrappedConstraint
-
IOException
void operator(String operator) throws IOException
operator
- An operator, usually a sign like &&, || etc
IOException
void endGroup() throws IOException
IOException
void describeReference(String referenceDescription) throws IOException
referenceDescription
-
IOException
void beginArray(Class type, int length) throws IOException
IOException
void endArray() throws IOException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |