v8  3.11.10(node0.8.26)
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 2451 of file ast.h.

Constructor & Destructor Documentation

RegExpCapture ( RegExpTree body,
int  index 
)
inlineexplicit

Definition at line 2453 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 2469 of file ast.h.

Referenced by RegExpCapture::ToNode().

Interval CaptureRegisters ( )
virtual

Reimplemented from RegExpTree.

Definition at line 708 of file ast.cc.

References Interval::Union().

static int EndRegister ( int  index)
inlinestatic

Definition at line 2472 of file ast.h.

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

int index ( )
inline

Definition at line 2470 of file ast.h.

Referenced by RegExpCapture::ToNode().

bool IsAnchoredAtEnd ( )
virtual

Reimplemented from RegExpTree.

Definition at line 781 of file ast.cc.

bool IsAnchoredAtStart ( )
virtual

Reimplemented from RegExpTree.

Definition at line 776 of file ast.cc.

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

Implements RegExpTree.

Definition at line 2468 of file ast.h.

virtual int min_match ( )
inlinevirtual

Implements RegExpTree.

Definition at line 2467 of file ast.h.

static int StartRegister ( int  index)
inlinestatic

Definition at line 2471 of file ast.h.

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

RegExpNode * ToNode ( RegExpCompiler compiler,
RegExpNode on_success 
)
virtual

Implements RegExpTree.

Definition at line 5018 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: