v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
v8::internal::RegExpQuantifier Class Referencefinal

#include <regexp-ast.h>

Inheritance diagram for v8::internal::RegExpQuantifier:
Collaboration diagram for v8::internal::RegExpQuantifier:

Public Types

enum  QuantifierType { GREEDY , NON_GREEDY , POSSESSIVE }
 

Public Member Functions

 RegExpQuantifier (int min, int max, QuantifierType type, int index, RegExpTree *body)
 
 DECL_BOILERPLATE (Quantifier)
 
Interval CaptureRegisters () override
 
int min_match () override
 
int max_match () override
 
int min () const
 
int max () const
 
QuantifierType quantifier_type () const
 
int index () const
 
bool is_possessive () const
 
bool is_non_greedy () const
 
bool is_greedy () const
 
RegExpTreebody () const
 
- Public Member Functions inherited from v8::internal::RegExpTree
virtual ~RegExpTree ()=default
 
virtual void * Accept (RegExpVisitor *visitor, void *data)=0
 
virtual RegExpNodeToNode (RegExpCompiler *compiler, RegExpNode *on_success)=0
 
virtual bool IsTextElement ()
 
virtual bool IsAnchoredAtStart ()
 
virtual bool IsAnchoredAtEnd ()
 
virtual void AppendToText (RegExpText *text, Zone *zone)
 
V8_EXPORT_PRIVATE std::ostream & Print (std::ostream &os, Zone *zone)
 
- Public Member Functions inherited from v8::internal::ZoneObject
void * operator new (size_t, Zone *)=delete
 
void * operator new (size_t size, void *ptr)
 
void operator delete (void *, size_t)
 
void operator delete (void *pointer, Zone *zone)=delete
 

Static Public Member Functions

static RegExpNodeToNode (int min, int max, bool is_greedy, RegExpTree *body, RegExpCompiler *compiler, RegExpNode *on_success, bool not_at_start=false)
 

Private Attributes

RegExpTreebody_
 
int min_
 
int max_
 
int min_match_
 
int max_match_
 
QuantifierType quantifier_type_
 
int index_
 

Additional Inherited Members

- Static Public Attributes inherited from v8::internal::RegExpTree
static const int kInfinity = kMaxInt
 

Detailed Description

Definition at line 545 of file regexp-ast.h.

Member Enumeration Documentation

◆ QuantifierType

Enumerator
GREEDY 
NON_GREEDY 
POSSESSIVE 

Definition at line 547 of file regexp-ast.h.

Constructor & Destructor Documentation

◆ RegExpQuantifier()

v8::internal::RegExpQuantifier::RegExpQuantifier ( int min,
int max,
QuantifierType type,
int index,
RegExpTree * body )
inline

Definition at line 548 of file regexp-ast.h.

Here is the call graph for this function:

Member Function Documentation

◆ body()

RegExpTree * v8::internal::RegExpQuantifier::body ( ) const
inline

Definition at line 582 of file regexp-ast.h.

Here is the caller graph for this function:

◆ CaptureRegisters()

Interval v8::internal::RegExpQuantifier::CaptureRegisters ( )
overridevirtual

Reimplemented from v8::internal::RegExpTree.

Definition at line 64 of file regexp-ast.cc.

Here is the call graph for this function:

◆ DECL_BOILERPLATE()

v8::internal::RegExpQuantifier::DECL_BOILERPLATE ( Quantifier )

◆ index()

int v8::internal::RegExpQuantifier::index ( ) const
inline

Definition at line 578 of file regexp-ast.h.

◆ is_greedy()

bool v8::internal::RegExpQuantifier::is_greedy ( ) const
inline

Definition at line 581 of file regexp-ast.h.

◆ is_non_greedy()

bool v8::internal::RegExpQuantifier::is_non_greedy ( ) const
inline

Definition at line 580 of file regexp-ast.h.

◆ is_possessive()

bool v8::internal::RegExpQuantifier::is_possessive ( ) const
inline

Definition at line 579 of file regexp-ast.h.

◆ max()

int v8::internal::RegExpQuantifier::max ( ) const
inline

Definition at line 576 of file regexp-ast.h.

◆ max_match()

int v8::internal::RegExpQuantifier::max_match ( )
inlineoverridevirtual

Implements v8::internal::RegExpTree.

Definition at line 574 of file regexp-ast.h.

◆ min()

int v8::internal::RegExpQuantifier::min ( ) const
inline

Definition at line 575 of file regexp-ast.h.

◆ min_match()

int v8::internal::RegExpQuantifier::min_match ( )
inlineoverridevirtual

Implements v8::internal::RegExpTree.

Definition at line 573 of file regexp-ast.h.

◆ quantifier_type()

QuantifierType v8::internal::RegExpQuantifier::quantifier_type ( ) const
inline

Definition at line 577 of file regexp-ast.h.

◆ ToNode()

RegExpNode * v8::internal::RegExpQuantifier::ToNode ( int min,
int max,
bool is_greedy,
RegExpTree * body,
RegExpCompiler * compiler,
RegExpNode * on_success,
bool not_at_start = false )
static

Definition at line 1078 of file regexp-compiler-tonode.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ body_

RegExpTree* v8::internal::RegExpQuantifier::body_
private

Definition at line 585 of file regexp-ast.h.

◆ index_

int v8::internal::RegExpQuantifier::index_
private

Definition at line 591 of file regexp-ast.h.

◆ max_

int v8::internal::RegExpQuantifier::max_
private

Definition at line 587 of file regexp-ast.h.

◆ max_match_

int v8::internal::RegExpQuantifier::max_match_
private

Definition at line 589 of file regexp-ast.h.

◆ min_

int v8::internal::RegExpQuantifier::min_
private

Definition at line 586 of file regexp-ast.h.

◆ min_match_

int v8::internal::RegExpQuantifier::min_match_
private

Definition at line 588 of file regexp-ast.h.

◆ quantifier_type_

QuantifierType v8::internal::RegExpQuantifier::quantifier_type_
private

Definition at line 590 of file regexp-ast.h.


The documentation for this class was generated from the following files: