info.codesaway.util.regex
Enum PatternFlag

java.lang.Object
  extended by java.lang.Enum<PatternFlag>
      extended by info.codesaway.util.regex.PatternFlag
All Implemented Interfaces:
PatternOptions, java.io.Serializable, java.lang.Comparable<PatternFlag>

public enum PatternFlag
extends java.lang.Enum<PatternFlag>
implements PatternOptions

Since:
0.2

Nested Class Summary
 
Nested classes/interfaces inherited from interface info.codesaway.util.regex.PatternOptions
PatternOptions.StaticMethods
 
Enum Constant Summary
CANON_EQ
           
CASE_INSENSITIVE
           
COMMENTS
           
DOTALL
           
DOTNET_NUMBERING
           
DUPLICATE_NAMES
           
EXPLICIT_CAPTURE
           
LITERAL
           
MULTILINE
           
PERL_OCTAL
           
UNICODE_CASE
           
UNIX_LINES
           
VERIFY_GROUPS
           
 
Method Summary
 PatternFlags and(PatternOptions flags)
          
 java.util.EnumSet<PatternFlag> asEnumSet()
          Gets a copy of the flags as an EnumSet.
 PatternFlags bitwiseNegate()
          
 PatternFlags getFlags()
          Gets a copy of the flags.
 java.lang.String getInlineFlag()
           
 int intValue()
          Returns the flags as an integer.
 PatternFlags minus(PatternOptions flags)
          
 PatternFlags or(PatternOptions flags)
          
 PatternFlags plus(PatternOptions flags)
          
static PatternFlag valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static PatternFlag[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 PatternFlags xor(PatternOptions flags)
          
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

CANON_EQ

public static final PatternFlag CANON_EQ
See Also:
Pattern.CANON_EQ

CASE_INSENSITIVE

public static final PatternFlag CASE_INSENSITIVE
See Also:
Pattern.CASE_INSENSITIVE

COMMENTS

public static final PatternFlag COMMENTS
See Also:
Pattern.COMMENTS

DOTALL

public static final PatternFlag DOTALL
See Also:
Pattern.DOTALL

DOTNET_NUMBERING

public static final PatternFlag DOTNET_NUMBERING
See Also:
Pattern.DOTNET_NUMBERING

DUPLICATE_NAMES

public static final PatternFlag DUPLICATE_NAMES
See Also:
Pattern.DUPLICATE_NAMES

EXPLICIT_CAPTURE

public static final PatternFlag EXPLICIT_CAPTURE
See Also:
Pattern.EXPLICIT_CAPTURE

LITERAL

public static final PatternFlag LITERAL
See Also:
Pattern.LITERAL

MULTILINE

public static final PatternFlag MULTILINE
See Also:
Pattern.MULTILINE

PERL_OCTAL

public static final PatternFlag PERL_OCTAL
See Also:
Pattern.PERL_OCTAL

UNICODE_CASE

public static final PatternFlag UNICODE_CASE
See Also:
Pattern.UNICODE_CASE

UNIX_LINES

public static final PatternFlag UNIX_LINES
See Also:
Pattern.UNIX_LINES

VERIFY_GROUPS

public static final PatternFlag VERIFY_GROUPS
See Also:
Pattern.VERIFY_GROUPS
Method Detail

values

public static PatternFlag[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (PatternFlag c : PatternFlag.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static PatternFlag valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

intValue

public int intValue()
Returns the flags as an integer.

Specified by:
intValue in interface PatternOptions
Returns:
the bitmask of individual flags

getInlineFlag

public java.lang.String getInlineFlag()

asEnumSet

public java.util.EnumSet<PatternFlag> asEnumSet()
Gets a copy of the flags as an EnumSet.

Specified by:
asEnumSet in interface PatternOptions
Returns:
the flags

getFlags

public PatternFlags getFlags()
Gets a copy of the flags.

Specified by:
getFlags in interface PatternOptions
Returns:
the flags

plus

public PatternFlags plus(PatternOptions flags)

Specified by:
plus in interface PatternOptions

minus

public PatternFlags minus(PatternOptions flags)

Specified by:
minus in interface PatternOptions

or

public PatternFlags or(PatternOptions flags)

Specified by:
or in interface PatternOptions

and

public PatternFlags and(PatternOptions flags)

Specified by:
and in interface PatternOptions

xor

public PatternFlags xor(PatternOptions flags)

Specified by:
xor in interface PatternOptions

bitwiseNegate

public PatternFlags bitwiseNegate()

Specified by:
bitwiseNegate in interface PatternOptions