Enum Class PegWordRuleMode

java.lang.Object
java.lang.Enum<PegWordRuleMode>
io.vertigo.commons.peg.rule.PegWordRuleMode
All Implemented Interfaces:
Serializable, Comparable<PegWordRuleMode>, Constable

public enum PegWordRuleMode extends Enum<PegWordRuleMode>
Mode de selection des caractères.
  • Enum Constant Details

    • ACCEPT

      public static final PegWordRuleMode ACCEPT
      N'accepte que les caractères passés en paramètre.
    • REJECT

      public static final PegWordRuleMode REJECT
      Accepte tout sauf les caractères passés en paramètre.
    • REJECT_ESCAPABLE

      public static final PegWordRuleMode REJECT_ESCAPABLE
      Accepte tout sauf les caractères passés en paramètre. Avec la possibilité d'echaper un caractère avec le \
  • Method Details

    • values

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

      public static PegWordRuleMode valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null