FileDocCategorySizeDatePackage
RegexpUtil.javaAPI DocApache Ant 1.701691Wed Dec 13 06:16:18 GMT 2006org.apache.tools.ant.util.regexp

RegexpUtil

public class RegexpUtil extends Object
Regular expression utilities class which handles flag operations.

Fields Summary
Constructors Summary
Methods Summary
public static booleanhasFlag(int options, int flag)
Check the options has a particular flag set.

param
options an int value
param
flag an int value
return
true if the flag is set

        return ((options & flag) > 0);
    
public static intremoveFlag(int options, int flag)
Remove a particular flag from an int value contains the option flags.

param
options an int value
param
flag an int value
return
the options with the flag unset

        return (options & (0xFFFFFFFF - flag));