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

#include <ast.h>

Inheritance diagram for RegExpAssertion:
Collaboration diagram for RegExpAssertion:

Public Types

enum  Type {
  START_OF_LINE, START_OF_INPUT, END_OF_LINE, END_OF_INPUT,
  BOUNDARY, NON_BOUNDARY
}
 

Public Member Functions

 RegExpAssertion (Type type)
 
virtual void * Accept (RegExpVisitor *visitor, void *data)
 
virtual RegExpNodeToNode (RegExpCompiler *compiler, RegExpNode *on_success)
 
virtual RegExpAssertionAsAssertion ()
 
virtual bool IsAssertion ()
 
virtual bool IsAnchoredAtStart ()
 
virtual bool IsAnchoredAtEnd ()
 
virtual int min_match ()
 
virtual int max_match ()
 
Type type ()
 
- Public Member Functions inherited from RegExpTree
virtual ~RegExpTree ()
 
virtual bool IsTextElement ()
 
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)
 

Additional Inherited Members

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

Detailed Description

Definition at line 2271 of file ast.h.

Member Enumeration Documentation

enum Type
Enumerator
START_OF_LINE 
START_OF_INPUT 
END_OF_LINE 
END_OF_INPUT 
BOUNDARY 
NON_BOUNDARY 

Definition at line 2273 of file ast.h.

Constructor & Destructor Documentation

RegExpAssertion ( Type  type)
inlineexplicit

Definition at line 2281 of file ast.h.

Member Function Documentation

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

Implements RegExpTree.

virtual RegExpAssertion* AsAssertion ( )
virtual
bool IsAnchoredAtEnd ( )
virtual

Reimplemented from RegExpTree.

Definition at line 724 of file ast.cc.

References RegExpAssertion::END_OF_INPUT, and v8::internal::type().

bool IsAnchoredAtStart ( )
virtual

Reimplemented from RegExpTree.

Definition at line 719 of file ast.cc.

References RegExpAssertion::START_OF_INPUT, and v8::internal::type().

virtual bool IsAssertion ( )
virtual
virtual int max_match ( )
inlinevirtual

Implements RegExpTree.

Definition at line 2290 of file ast.h.

virtual int min_match ( )
inlinevirtual

Implements RegExpTree.

Definition at line 2289 of file ast.h.

Type type ( )
inline

Definition at line 2291 of file ast.h.

References v8::internal::type_.

Referenced by RegExpAssertion::ToNode().


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