org.javasimon.utils
Enum Replacer.Modificator

java.lang.Object
  extended by java.lang.Enum<Replacer.Modificator>
      extended by org.javasimon.utils.Replacer.Modificator
All Implemented Interfaces:
Serializable, Comparable<Replacer.Modificator>
Enclosing class:
Replacer

public static enum Replacer.Modificator
extends Enum<Replacer.Modificator>

Flags for modifying the default replacer behavior.


Enum Constant Summary
IGNORE_CASE
          Applies Pattern.CASE_INSENSITIVE flag to the pattern.
REPEAT_UNTIL_UNCHANGED
          Enforces repetitive replacer application until there is no other change to perform.
 
Method Summary
static Replacer.Modificator valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Replacer.Modificator[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

REPEAT_UNTIL_UNCHANGED

public static final Replacer.Modificator REPEAT_UNTIL_UNCHANGED
Enforces repetitive replacer application until there is no other change to perform. Attention should be paid to provide from/to combination that converges to the final result otherwise the process method may trigger infinite loop and/or excessive memory consumption.


IGNORE_CASE

public static final Replacer.Modificator IGNORE_CASE
Applies Pattern.CASE_INSENSITIVE flag to the pattern.

Method Detail

values

public static Replacer.Modificator[] 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 (Replacer.Modificator c : Replacer.Modificator.values())
    System.out.println(c);

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

valueOf

public static Replacer.Modificator valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null


Copyright © 2013. All Rights Reserved.