Quantifier

weaponregex.internal.model.regextree.Quantifier
See theQuantifier companion class
object Quantifier

Attributes

Companion
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Quantifier.type

Members list

Type members

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def apply(expr: RegexTree, exact: Int, location: Location, quantifierType: QuantifierType): Quantifier

Exact quantifier (e.g. {1}) factory method Create an exact weaponregex.internal.model.regextree.Quantifier instance

Exact quantifier (e.g. {1}) factory method Create an exact weaponregex.internal.model.regextree.Quantifier instance

Value parameters

exact

The exact number of repetition

expr

The regex that is being quantified

location

The weaponregex.model.Location of the node in the regex string

quantifierType

The type of the quantifier: greedy, reluctant, or possessive

Attributes

Returns

A weaponregex.internal.model.regextree.Quantifier instance

def apply(expr: RegexTree, min: Int, max: Int, location: Location, quantifierType: QuantifierType): Quantifier

Range quantifier (e.g. {1,2} or {1,}) factory method

Range quantifier (e.g. {1,2} or {1,}) factory method

Value parameters

expr

The regex that is being quantified

location

The weaponregex.model.Location of the node in the regex string

max

The maximum number of repetitions

min

The minimum number of repetition

quantifierType

The type of the quantifier: greedy, reluctant, or possessive

Attributes

Returns

A weaponregex.internal.model.regextree.Quantifier instance

Concrete fields

val Infinity: Int

Infinity will be represented as negatives, default to -1

Infinity will be represented as negatives, default to -1

Attributes