info.codesaway.util.regex
Class PatternFlags

java.lang.Object
  extended by info.codesaway.util.regex.PatternFlags
All Implemented Interfaces:
PatternOptions, java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<PatternFlag>, java.util.Collection<PatternFlag>, java.util.Set<PatternFlag>

public class PatternFlags
extends java.lang.Object
implements PatternOptions, java.util.Set<PatternFlag>, java.lang.Cloneable, java.io.Serializable

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface info.codesaway.util.regex.PatternOptions
PatternOptions.StaticMethods
 
Constructor Summary
PatternFlags(java.util.Collection<PatternFlag> flags)
           
PatternFlags(int flags)
           
PatternFlags(PatternOptions... flags)
           
 
Method Summary
 boolean add(PatternFlag e)
          
 boolean addAll(java.util.Collection<? extends PatternFlag> c)
          
 PatternFlags and(PatternOptions flags)
          
 java.util.EnumSet<PatternFlag> asEnumSet()
          Gets a copy of the flags as an EnumSet.
 PatternFlags bitwiseNegate()
          
 void clear()
          
 PatternFlags clone()
           
 boolean contains(java.lang.Object o)
          
 boolean containsAll(java.util.Collection<?> c)
          
 PatternFlags getFlags()
          Gets a copy of the flags.
 int intValue()
          Returns the flags as an integer.
static int intValue(java.util.Collection<PatternFlag> flags)
           
 boolean isEmpty()
          
 java.util.Iterator<PatternFlag> iterator()
          
 PatternFlags leftShift(java.util.Collection<PatternFlag> flags)
           
 PatternFlags leftShift(PatternOptions flags)
          
 PatternFlags minus(PatternOptions flags)
          
 PatternFlags or(PatternOptions flags)
          
 PatternFlags plus(PatternOptions flags)
          
 boolean remove(java.lang.Object o)
          
 boolean removeAll(java.util.Collection<?> c)
          
 boolean retainAll(java.util.Collection<?> c)
          
 int size()
          
 java.lang.Object[] toArray()
          
<T> T[]
toArray(T[] a)
          
 java.lang.String toString()
           
 PatternFlags xor(PatternOptions flags)
          
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Set
equals, hashCode
 

Constructor Detail

PatternFlags

public PatternFlags(PatternOptions... flags)

PatternFlags

public PatternFlags(java.util.Collection<PatternFlag> flags)

PatternFlags

public PatternFlags(int flags)
Method Detail

intValue

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

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

intValue

public static int intValue(java.util.Collection<PatternFlag> flags)

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

clone

public PatternFlags clone()
Overrides:
clone in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

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

leftShift

public PatternFlags leftShift(PatternOptions flags)


leftShift

public PatternFlags leftShift(java.util.Collection<PatternFlag> flags)

bitwiseNegate

public PatternFlags bitwiseNegate()

Specified by:
bitwiseNegate in interface PatternOptions

size

public int size()

Specified by:
size in interface java.util.Collection<PatternFlag>
Specified by:
size in interface java.util.Set<PatternFlag>

isEmpty

public boolean isEmpty()

Specified by:
isEmpty in interface java.util.Collection<PatternFlag>
Specified by:
isEmpty in interface java.util.Set<PatternFlag>

contains

public boolean contains(java.lang.Object o)

Specified by:
contains in interface java.util.Collection<PatternFlag>
Specified by:
contains in interface java.util.Set<PatternFlag>

iterator

public java.util.Iterator<PatternFlag> iterator()

Specified by:
iterator in interface java.lang.Iterable<PatternFlag>
Specified by:
iterator in interface java.util.Collection<PatternFlag>
Specified by:
iterator in interface java.util.Set<PatternFlag>

toArray

public java.lang.Object[] toArray()

Specified by:
toArray in interface java.util.Collection<PatternFlag>
Specified by:
toArray in interface java.util.Set<PatternFlag>

toArray

public <T> T[] toArray(T[] a)

Specified by:
toArray in interface java.util.Collection<PatternFlag>
Specified by:
toArray in interface java.util.Set<PatternFlag>

add

public boolean add(PatternFlag e)

Specified by:
add in interface java.util.Collection<PatternFlag>
Specified by:
add in interface java.util.Set<PatternFlag>

remove

public boolean remove(java.lang.Object o)

Specified by:
remove in interface java.util.Collection<PatternFlag>
Specified by:
remove in interface java.util.Set<PatternFlag>

containsAll

public boolean containsAll(java.util.Collection<?> c)

Specified by:
containsAll in interface java.util.Collection<PatternFlag>
Specified by:
containsAll in interface java.util.Set<PatternFlag>

addAll

public boolean addAll(java.util.Collection<? extends PatternFlag> c)

Specified by:
addAll in interface java.util.Collection<PatternFlag>
Specified by:
addAll in interface java.util.Set<PatternFlag>

retainAll

public boolean retainAll(java.util.Collection<?> c)

Specified by:
retainAll in interface java.util.Collection<PatternFlag>
Specified by:
retainAll in interface java.util.Set<PatternFlag>

removeAll

public boolean removeAll(java.util.Collection<?> c)

Specified by:
removeAll in interface java.util.Collection<PatternFlag>
Specified by:
removeAll in interface java.util.Set<PatternFlag>

clear

public void clear()

Specified by:
clear in interface java.util.Collection<PatternFlag>
Specified by:
clear in interface java.util.Set<PatternFlag>