Microsoft SDK for Java

selectSubexpressions

The selectSubexpression method of the WildcardExpression Class contains the following signatures:

selectSubexpressions(WildcardExpression other, int[] criteria, IWildcardExpressionComparator judge)
selectSubexpressions(WildcardExpression other, int[] criteria)

selectSubexpressions(WildcardExpression other, int[] criteria, IWildcardExpressionComparator judge)

Constructs a new expression containing expressions from this expression that have any of the specified comparison results against any subexpressions of the target expression.

Syntax

public WildcardExpression selectSubexpressions(WildcardExpression other, int[] criteria, IWildcardExpressionComparator judge);

Return Value

Returns the original expression if all are selected; returns a new expression containing only the subexpressions of this expression that meet the selection criteria.

Parameters

other The target expression to compare against.
criteria The selection criteria determining inclusion in the returned expression.
judge An IWildcardExpressionComparator hook interface to compare any extra data associated with the subexpressions.

selectSubexpressions(WildcardExpression other, int[] criteria)

Constructs a new expression containing expressions from this expression that have any of the specified comparison results against any subexpressions of the target expression.

Syntax

public WildcardExpression selectSubexpressions(WildcardExpression other, int[] criteria);

Return Value

Returns the original expression if all are selected; returns a new expression containing only the subexpressions of this expression that meet the selection criteria.

Parameters

other The other target expression to compare against.
criteria The Selection criteria determining inclusion in the returned expression.

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