org.apache.tools.ant.util.regexp

Class RegexpUtil

public class RegexpUtil extends Object

Regular expression utilities class which handles flag operations.
Method Summary
static booleanhasFlag(int options, int flag)
Check the options has a particular flag set.
static intremoveFlag(int options, int flag)
Remove a particular flag from an int value contains the option flags.

Method Detail

hasFlag

public static boolean hasFlag(int options, int flag)
Check the options has a particular flag set.

Parameters: options an int value flag an int value

Returns: true if the flag is set

removeFlag

public static int removeFlag(int options, int flag)
Remove a particular flag from an int value contains the option flags.

Parameters: options an int value flag an int value

Returns: the options with the flag unset

Copyright