libperun

Class std.re.Atom

Synopsis

public final class Atom

Internal. Represents a single piece of a pattern.

Fields

public static final int NOGREED

Atom flags (must start from bit 8).

public static final int ASTERISK

No description given

public static final int PLUS

No description given

public static final int EXACT

Atom types (bottom 8 bits of mode).

public static final int SET

No description given

public static final int BRACKET

No description given

public static final int END

No description given

public static final int ANY_CHAR

No description given

public int mode

Type in the bottom 8 bits, then flags.

public String exactString

If the type if EXACT, this is the string we are matching.

public Set< String > set

If the type is SET, this is the set of characters we are matching.

public bool oppositeSet

If the type is SET, then if this is true we are matching the opposite set.

public List< Pattern > options

If the type is BRACKET, this is the list of options to try in order.

Constructors

Methods