com.espertech.esper.rowregex
Enum RegexNFATypeEnum

java.lang.Object
  extended by java.lang.Enum<RegexNFATypeEnum>
      extended by com.espertech.esper.rowregex.RegexNFATypeEnum
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<RegexNFATypeEnum>

public enum RegexNFATypeEnum
extends java.lang.Enum<RegexNFATypeEnum>

Enum for NFA types.


Enum Constant Summary
ONE_OPTIONAL
          For greedy '?' multiplicity.
ONE_OPTIONAL_RELUCTANT
          For reluctant '?' multiplicity.
ONE_TO_MANY
          For greedy '+' multiplicity.
ONE_TO_MANY_RELUCTANT
          For reluctant '+' multiplicity.
SINGLE
          For single multiplicity.
ZERO_TO_MANY
          For greedy '*' multiplicity.
ZERO_TO_MANY_RELUCTANT
          For reluctant '*' multiplicity.
 
Method Summary
static RegexNFATypeEnum fromString(java.lang.String code, java.lang.String reluctantQuestion)
          Inspect code and return enum for code.
 java.lang.String getOptionalPostfix()
          Return postfix.
 java.lang.Boolean isGreedy()
          Returns indicator if greedy or reluctant.
 boolean isMultipleMatches()
          Returns indicator if single or multiple matches.
 boolean isOptional()
          Returns indicator if optional matches.
static RegexNFATypeEnum valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static RegexNFATypeEnum[] 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

SINGLE

public static final RegexNFATypeEnum SINGLE
For single multiplicity.


ZERO_TO_MANY

public static final RegexNFATypeEnum ZERO_TO_MANY
For greedy '*' multiplicity.


ONE_TO_MANY

public static final RegexNFATypeEnum ONE_TO_MANY
For greedy '+' multiplicity.


ONE_OPTIONAL

public static final RegexNFATypeEnum ONE_OPTIONAL
For greedy '?' multiplicity.


ZERO_TO_MANY_RELUCTANT

public static final RegexNFATypeEnum ZERO_TO_MANY_RELUCTANT
For reluctant '*' multiplicity.


ONE_TO_MANY_RELUCTANT

public static final RegexNFATypeEnum ONE_TO_MANY_RELUCTANT
For reluctant '+' multiplicity.


ONE_OPTIONAL_RELUCTANT

public static final RegexNFATypeEnum ONE_OPTIONAL_RELUCTANT
For reluctant '?' multiplicity.

Method Detail

values

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

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

valueOf

public static RegexNFATypeEnum 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

isMultipleMatches

public boolean isMultipleMatches()
Returns indicator if single or multiple matches.

Returns:
indicator

isOptional

public boolean isOptional()
Returns indicator if optional matches.

Returns:
indicator

isGreedy

public java.lang.Boolean isGreedy()
Returns indicator if greedy or reluctant.

Returns:
indicator

fromString

public static RegexNFATypeEnum fromString(java.lang.String code,
                                          java.lang.String reluctantQuestion)
Inspect code and return enum for code.

Parameters:
code - to inspect
reluctantQuestion - null for greedy or questionmark for reluctant
Returns:
enum

getOptionalPostfix

public java.lang.String getOptionalPostfix()
Return postfix.

Returns:
postfix

© 2006-2015 EsperTech Inc.
All rights reserved.
Visit us at espertech.com