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
RegExpTree Class Referenceabstract

#include <ast.h>

Inheritance diagram for RegExpTree:
Collaboration diagram for RegExpTree:

Public Member Functions

virtual ~RegExpTree ()
 
virtual void * Accept (RegExpVisitor *visitor, void *data)=0
 
virtual RegExpNodeToNode (RegExpCompiler *compiler, RegExpNode *on_success)=0
 
virtual bool IsTextElement ()
 
virtual bool IsAnchoredAtStart ()
 
virtual bool IsAnchoredAtEnd ()
 
virtual int min_match ()=0
 
virtual int max_match ()=0
 
virtual Interval CaptureRegisters ()
 
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 Attributes

static const int kInfinity = kMaxInt
 

Detailed Description

Definition at line 2123 of file ast.h.

Constructor & Destructor Documentation

virtual ~RegExpTree ( )
inlinevirtual

Definition at line 2126 of file ast.h.

Member Function Documentation

virtual void* Accept ( RegExpVisitor *  visitor,
void *  data 
)
pure virtual
void AppendToText ( RegExpText text,
Zone zone 
)
virtual

Reimplemented in RegExpText, RegExpAtom, and RegExpCharacterClass.

Definition at line 975 of file jsregexp.cc.

References UNREACHABLE.

virtual Interval CaptureRegisters ( )
inlinevirtual

Reimplemented in RegExpLookahead, RegExpCapture, RegExpQuantifier, RegExpAlternative, and RegExpDisjunction.

Definition at line 2137 of file ast.h.

References Interval::Empty().

Referenced by RegExpQuantifier::ToNode().

virtual bool IsAnchoredAtEnd ( )
inlinevirtual
virtual bool IsAnchoredAtStart ( )
inlinevirtual
virtual bool IsTextElement ( )
inlinevirtual

Reimplemented in RegExpText, RegExpAtom, and RegExpCharacterClass.

Definition at line 2130 of file ast.h.

Referenced by RegExpBuilder::AddAtom().

SmartArrayPointer< const char > ToString ( Zone zone)

Definition at line 956 of file ast.cc.

References RegExpTree::Accept(), v8::internal::NULL, and RegExpUnparser::ToString().

Field Documentation


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