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
RegExpQuantifier Class Reference

#include <ast.h>

Inheritance diagram for RegExpQuantifier:
Collaboration diagram for RegExpQuantifier:

Public Types

enum  Type { GREEDY, NON_GREEDY, POSSESSIVE }
 

Public Member Functions

 RegExpQuantifier (int min, int max, Type type, RegExpTree *body)
 
virtual void * Accept (RegExpVisitor *visitor, void *data)
 
virtual RegExpNodeToNode (RegExpCompiler *compiler, RegExpNode *on_success)
 
virtual RegExpQuantifierAsQuantifier ()
 
virtual Interval CaptureRegisters ()
 
virtual bool IsQuantifier ()
 
virtual int min_match ()
 
virtual int max_match ()
 
int min ()
 
int max ()
 
bool is_possessive ()
 
bool is_non_greedy ()
 
bool is_greedy ()
 
RegExpTreebody ()
 
- Public Member Functions inherited from RegExpTree
virtual ~RegExpTree ()
 
virtual bool IsTextElement ()
 
virtual bool IsAnchoredAtStart ()
 
virtual bool IsAnchoredAtEnd ()
 
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 (int min, int max, bool is_greedy, RegExpTree *body, RegExpCompiler *compiler, RegExpNode *on_success, bool not_at_start=false)
 

Additional Inherited Members

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

Detailed Description

Definition at line 2404 of file ast.h.

Member Enumeration Documentation

enum Type
Enumerator
GREEDY 
NON_GREEDY 
POSSESSIVE 

Definition at line 2406 of file ast.h.

Constructor & Destructor Documentation

RegExpQuantifier ( int  min,
int  max,
Type  type,
RegExpTree body 
)
inline

Definition at line 2407 of file ast.h.

References RegExpTree::max_match().

Member Function Documentation

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

Implements RegExpTree.

virtual RegExpQuantifier* AsQuantifier ( )
virtual
RegExpTree* body ( )
inline

Definition at line 2439 of file ast.h.

Referenced by RegExpQuantifier::ToNode().

Interval CaptureRegisters ( )
virtual

Reimplemented from RegExpTree.

Definition at line 714 of file ast.cc.

bool is_greedy ( )
inline

Definition at line 2438 of file ast.h.

References v8::internal::type_.

Referenced by RegExpQuantifier::ToNode().

bool is_non_greedy ( )
inline

Definition at line 2437 of file ast.h.

References v8::internal::type_.

bool is_possessive ( )
inline

Definition at line 2436 of file ast.h.

References v8::internal::type_.

virtual bool IsQuantifier ( )
virtual
int max ( )
inline

Definition at line 2435 of file ast.h.

Referenced by RegExpQuantifier::ToNode().

virtual int max_match ( )
inlinevirtual

Implements RegExpTree.

Definition at line 2433 of file ast.h.

int min ( )
inline

Definition at line 2434 of file ast.h.

Referenced by RegExpQuantifier::ToNode().

virtual int min_match ( )
inlinevirtual

Implements RegExpTree.

Definition at line 2432 of file ast.h.

RegExpNode * ToNode ( RegExpCompiler compiler,
RegExpNode on_success 
)
virtual

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