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

Constructor & Destructor Documentation

RegExpAssertion ( Type  type)
inlineexplicit

Definition at line 2200 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 729 of file ast.cc.

References RegExpAssertion::END_OF_INPUT.

bool IsAnchoredAtStart ( )
virtual

Reimplemented from RegExpTree.

Definition at line 724 of file ast.cc.

References RegExpAssertion::START_OF_INPUT.

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

Implements RegExpTree.

Definition at line 2209 of file ast.h.

virtual int min_match ( )
inlinevirtual

Implements RegExpTree.

Definition at line 2208 of file ast.h.

Type type ( )
inline

Definition at line 2210 of file ast.h.

Referenced by RegExpAssertion::ToNode().


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