Microsoft SDK for Java

compareSubexpressions

This method of the IWildcardExpressionComparator Interface compares two subexpressions of different expressions.

Syntax

int compareSubexpressions(WildcardExpression expr1, int exprnum1, WildcardExpression expr2, int exprnum2, int cmpresult);

Return Value

Returns a SetComparison result code that is valid with WildcardExpression. This can be one of the following:

EQUAL
DISJOINT
SUBSET
OVERLAP
SUPERSET

Parameters

expr1 The first expression operand.
exprnum1 The subexpression of expr1 to compare.
expr2 The second expression operand.
exprnum2 The subexpression of expr2 to compare.
cmpresult The result of comparing the given subexpressions (a SetComparison result code).

The cmpresult value must be computed before calling this function. The subexpressions are compared, and passed to this method as cmpresult. The return value of compareSubexpressions is possibly completely independent of cmpresult. The return value is the result of comparing any extra elements that clients of WildcardExpression might have associated with each subexpression.


© 1999 Microsoft Corporation. All rights reserved. Terms of use.