Microsoft SDK for Java

combinePatterns

This method of the PermissionUtils Class combines two WildcardExpression objects. The resulting expression will first match any strings that are matched by the first expressions, followed by the strings matched by the second expression. The combined expression is independent of the original expressions; changes to the combined expression will not affect the originals and vice versa.

Syntax

public static WildcardExpression combinePatterns(WildcardExpression spec1, WildcardExpression spec2);

Return Value

Returns a new expression, matching any strings matched by spec1 or spec2, in that order.

Parameters

spec1 The first source expression to combine, or null.
spec2 The second source expression to combine, or null.

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