Enum RewriteState

java.lang.Object
java.lang.Enum<RewriteState>
org.ocpsoft.rewrite.context.RewriteState
All Implemented Interfaces:
Serializable, Comparable<RewriteState>, java.lang.constant.Constable

public enum RewriteState extends Enum<RewriteState>
Represents the the current Rewrite state during Rule execution.
Author:
Lincoln Baxter, III
  • Enum Constant Details

    • EVALUATING

      public static final RewriteState EVALUATING
      The system is currently evaluating configured Condition instances.
    • PERFORMING

      public static final RewriteState PERFORMING
      The system is currently performing configured Operation instances.
  • Method Details

    • values

      public static RewriteState[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static RewriteState 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
    • isEvaluating

      public boolean isEvaluating()
      Return true if this instance is equal to EVALUATING.
    • isPerforming

      public boolean isPerforming()
      Return true if this instance is equal to PERFORMING.