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

#include <regexp-ast.h>

Inheritance diagram for v8::internal::RegExpAssertion:
Collaboration diagram for v8::internal::RegExpAssertion:

Public Types

enum class  Type {
  START_OF_LINE = 0 , START_OF_INPUT = 1 , END_OF_LINE = 2 , END_OF_INPUT = 3 ,
  BOUNDARY = 4 , NON_BOUNDARY = 5 , LAST_ASSERTION_TYPE = NON_BOUNDARY
}
 

Public Member Functions

 RegExpAssertion (Type type)
 
 DECL_BOILERPLATE (Assertion)
 
bool IsAnchoredAtStart () override
 
bool IsAnchoredAtEnd () override
 
int min_match () override
 
int max_match () override
 
Type assertion_type () 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 Interval CaptureRegisters ()
 
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

const Type assertion_type_
 

Additional Inherited Members

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

Detailed Description

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

Member Enumeration Documentation

◆ Type

Enumerator
START_OF_LINE 
START_OF_INPUT 
END_OF_LINE 
END_OF_INPUT 
BOUNDARY 
NON_BOUNDARY 
LAST_ASSERTION_TYPE 

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

Constructor & Destructor Documentation

◆ RegExpAssertion()

v8::internal::RegExpAssertion::RegExpAssertion ( Type type)
inlineexplicit

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

Member Function Documentation

◆ assertion_type()

Type v8::internal::RegExpAssertion::assertion_type ( ) const
inline

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

Here is the caller graph for this function:

◆ DECL_BOILERPLATE()

v8::internal::RegExpAssertion::DECL_BOILERPLATE ( Assertion )

◆ IsAnchoredAtEnd()

bool v8::internal::RegExpAssertion::IsAnchoredAtEnd ( )
overridevirtual

Reimplemented from v8::internal::RegExpTree.

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

Here is the call graph for this function:

◆ IsAnchoredAtStart()

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

Reimplemented from v8::internal::RegExpTree.

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

Here is the call graph for this function:

◆ max_match()

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

Implements v8::internal::RegExpTree.

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

◆ min_match()

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

Implements v8::internal::RegExpTree.

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

Member Data Documentation

◆ assertion_type_

const Type v8::internal::RegExpAssertion::assertion_type_
private

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


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