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

#include <ast.h>

Inheritance diagram for RegExpAlternative:
Collaboration diagram for RegExpAlternative:

Public Member Functions

 RegExpAlternative (ZoneList< RegExpTree * > *nodes)
 
virtual void * Accept (RegExpVisitor *visitor, void *data)
 
virtual RegExpNodeToNode (RegExpCompiler *compiler, RegExpNode *on_success)
 
virtual RegExpAlternativeAsAlternative ()
 
virtual Interval CaptureRegisters ()
 
virtual bool IsAlternative ()
 
virtual bool IsAnchoredAtStart ()
 
virtual bool IsAnchoredAtEnd ()
 
virtual int min_match ()
 
virtual int max_match ()
 
ZoneList< RegExpTree * > * nodes ()
 
- 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)
 

Additional Inherited Members

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

Detailed Description

Definition at line 2250 of file ast.h.

Constructor & Destructor Documentation

Member Function Documentation

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

Implements RegExpTree.

virtual RegExpAlternative* AsAlternative ( )
virtual
Interval CaptureRegisters ( )
virtual

Reimplemented from RegExpTree.

Definition at line 693 of file ast.cc.

virtual bool IsAlternative ( )
virtual
bool IsAnchoredAtEnd ( )
virtual

Reimplemented from RegExpTree.

Definition at line 740 of file ast.cc.

References List< T, ZoneAllocationPolicy >::at(), RegExpTree::IsAnchoredAtEnd(), and RegExpTree::max_match().

bool IsAnchoredAtStart ( )
virtual
virtual int max_match ( )
inlinevirtual

Implements RegExpTree.

Definition at line 2262 of file ast.h.

virtual int min_match ( )
inlinevirtual

Implements RegExpTree.

Definition at line 2261 of file ast.h.

ZoneList<RegExpTree*>* nodes ( )
inline

Definition at line 2263 of file ast.h.

Referenced by RegExpAlternative::ToNode().

RegExpNode * ToNode ( RegExpCompiler compiler,
RegExpNode on_success 
)
virtual

Implements RegExpTree.

Definition at line 5036 of file jsregexp.cc.

References List< T, ZoneAllocationPolicy >::at(), and RegExpAlternative::nodes().


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