v8  3.14.5(node0.10.28)
V8 is Google's open source JavaScript engine
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
RegExpCapture Class Reference

#include <ast.h>

Inheritance diagram for RegExpCapture:
Collaboration diagram for RegExpCapture:

Public Member Functions

 RegExpCapture (RegExpTree *body, int index)
 
virtual void * Accept (RegExpVisitor *visitor, void *data)
 
virtual RegExpNodeToNode (RegExpCompiler *compiler, RegExpNode *on_success)
 
virtual RegExpCaptureAsCapture ()
 
virtual bool IsAnchoredAtStart ()
 
virtual bool IsAnchoredAtEnd ()
 
virtual Interval CaptureRegisters ()
 
virtual bool IsCapture ()
 
virtual int min_match ()
 
virtual int max_match ()
 
RegExpTreebody ()
 
int index ()
 
- Public Member Functions inherited from RegExpTree
virtual ~RegExpTree ()
 
virtual bool IsTextElement ()
 
virtual void AppendToText (RegExpText *text, Zone *zone)
 
SmartArrayPointer< const char > ToString (Zone *zone)
 
- Public Member Functions inherited from ZoneObject
 INLINE (void *operator new(size_t size, Zone *zone))
 
void operator delete (void *, size_t)
 
void operator delete (void *pointer, Zone *zone)
 

Static Public Member Functions

static RegExpNodeToNode (RegExpTree *body, int index, RegExpCompiler *compiler, RegExpNode *on_success)
 
static int StartRegister (int index)
 
static int EndRegister (int index)
 

Additional Inherited Members

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

Detailed Description

Definition at line 2370 of file ast.h.

Constructor & Destructor Documentation

RegExpCapture ( RegExpTree body,
int  index 
)
inlineexplicit

Definition at line 2372 of file ast.h.

Member Function Documentation

virtual void* Accept ( RegExpVisitor *  visitor,
void *  data 
)
virtual

Implements RegExpTree.

virtual RegExpCapture* AsCapture ( )
virtual
RegExpTree* body ( )
inline

Definition at line 2388 of file ast.h.

Referenced by RegExpCapture::ToNode().

Interval CaptureRegisters ( )
virtual

Reimplemented from RegExpTree.

Definition at line 713 of file ast.cc.

References Interval::Union().

static int EndRegister ( int  index)
inlinestatic

Definition at line 2391 of file ast.h.

Referenced by RegExpCapture::ToNode(), and RegExpBackReference::ToNode().

int index ( )
inline

Definition at line 2389 of file ast.h.

Referenced by RegExpCapture::ToNode().

bool IsAnchoredAtEnd ( )
virtual

Reimplemented from RegExpTree.

Definition at line 786 of file ast.cc.

bool IsAnchoredAtStart ( )
virtual

Reimplemented from RegExpTree.

Definition at line 781 of file ast.cc.

virtual bool IsCapture ( )
virtual
virtual int max_match ( )
inlinevirtual

Implements RegExpTree.

Definition at line 2387 of file ast.h.

virtual int min_match ( )
inlinevirtual

Implements RegExpTree.

Definition at line 2386 of file ast.h.

static int StartRegister ( int  index)
inlinestatic

Definition at line 2390 of file ast.h.

Referenced by RegExpCapture::ToNode(), and RegExpBackReference::ToNode().

RegExpNode * ToNode ( RegExpCompiler compiler,
RegExpNode on_success 
)
virtual

Implements RegExpTree.

Definition at line 5170 of file jsregexp.cc.

References RegExpCapture::body(), and RegExpCapture::index().

Referenced by RegExpEngine::Compile().

RegExpNode * ToNode ( RegExpTree body,
int  index,
RegExpCompiler compiler,
RegExpNode on_success 
)
static

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