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
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 2323 of file ast.h.

Member Enumeration Documentation

enum Type
Enumerator
GREEDY 
NON_GREEDY 
POSSESSIVE 

Definition at line 2325 of file ast.h.

Constructor & Destructor Documentation

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

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

Referenced by RegExpQuantifier::ToNode().

Interval CaptureRegisters ( )
virtual

Reimplemented from RegExpTree.

Definition at line 719 of file ast.cc.

bool is_greedy ( )
inline

Definition at line 2357 of file ast.h.

Referenced by RegExpQuantifier::ToNode().

bool is_non_greedy ( )
inline

Definition at line 2356 of file ast.h.

bool is_possessive ( )
inline

Definition at line 2355 of file ast.h.

virtual bool IsQuantifier ( )
virtual
int max ( )
inline

Definition at line 2354 of file ast.h.

Referenced by RegExpQuantifier::ToNode().

virtual int max_match ( )
inlinevirtual

Implements RegExpTree.

Definition at line 2352 of file ast.h.

int min ( )
inline

Definition at line 2353 of file ast.h.

Referenced by RegExpQuantifier::ToNode().

virtual int min_match ( )
inlinevirtual

Implements RegExpTree.

Definition at line 2351 of file ast.h.

RegExpNode * ToNode ( RegExpCompiler compiler,
RegExpNode on_success 
)
virtual

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