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

#include <regexp-ast.h>

Inheritance diagram for v8::internal::RegExpLookaround:
Collaboration diagram for v8::internal::RegExpLookaround:

Classes

class  Builder
 

Public Types

enum  Type { LOOKAHEAD , LOOKBEHIND }
 

Public Member Functions

 RegExpLookaround (RegExpTree *body, bool is_positive, int capture_count, int capture_from, Type type, int index)
 
 DECL_BOILERPLATE (Lookaround)
 
Interval CaptureRegisters () override
 
bool IsAnchoredAtStart () override
 
int min_match () override
 
int max_match () override
 
RegExpTreebody () const
 
bool is_positive () const
 
int capture_count () const
 
int capture_from () const
 
Type type () const
 
int index () 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 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
 

Private Attributes

RegExpTreebody_
 
bool is_positive_
 
int capture_count_
 
int capture_from_
 
Type type_
 
int index_
 

Additional Inherited Members

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

Detailed Description

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

Member Enumeration Documentation

◆ Type

Enumerator
LOOKAHEAD 
LOOKBEHIND 

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

Constructor & Destructor Documentation

◆ RegExpLookaround()

v8::internal::RegExpLookaround::RegExpLookaround ( RegExpTree * body,
bool is_positive,
int capture_count,
int capture_from,
Type type,
int index )
inline

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

Member Function Documentation

◆ body()

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

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

Here is the caller graph for this function:

◆ capture_count()

int v8::internal::RegExpLookaround::capture_count ( ) const
inline

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

◆ capture_from()

int v8::internal::RegExpLookaround::capture_from ( ) const
inline

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

◆ CaptureRegisters()

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

Reimplemented from v8::internal::RegExpTree.

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

Here is the call graph for this function:

◆ DECL_BOILERPLATE()

v8::internal::RegExpLookaround::DECL_BOILERPLATE ( Lookaround )

◆ index()

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

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

Here is the caller graph for this function:

◆ is_positive()

bool v8::internal::RegExpLookaround::is_positive ( ) const
inline

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

Here is the caller graph for this function:

◆ IsAnchoredAtStart()

bool v8::internal::RegExpLookaround::IsAnchoredAtStart ( )
overridevirtual

Reimplemented from v8::internal::RegExpTree.

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

Here is the call graph for this function:

◆ max_match()

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

Implements v8::internal::RegExpTree.

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

◆ min_match()

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

Implements v8::internal::RegExpTree.

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

◆ type()

Type v8::internal::RegExpLookaround::type ( ) const
inline

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

Here is the caller graph for this function:

Member Data Documentation

◆ body_

RegExpTree* v8::internal::RegExpLookaround::body_
private

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

◆ capture_count_

int v8::internal::RegExpLookaround::capture_count_
private

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

◆ capture_from_

int v8::internal::RegExpLookaround::capture_from_
private

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

◆ index_

int v8::internal::RegExpLookaround::index_
private

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

◆ is_positive_

bool v8::internal::RegExpLookaround::is_positive_
private

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

◆ type_

Type v8::internal::RegExpLookaround::type_
private

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


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