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

#include <ast.h>

Inheritance diagram for IfStatement:
Collaboration diagram for IfStatement:

Public Member Functions

bool HasThenStatement () const
 
bool HasElseStatement () const
 
Expressioncondition () const
 
Statementthen_statement () const
 
Statementelse_statement () const
 
int IfId () const
 
int ThenId () const
 
int ElseId () const
 
- Public Member Functions inherited from Statement
 Statement ()
 
virtual StatementAsStatement ()
 
bool IsEmpty ()
 
void set_statement_pos (int statement_pos)
 
int statement_pos () const
 
- Public Member Functions inherited from AstNode
void * operator new (size_t size, Zone *zone)
 
 AstNode ()
 
virtual ~AstNode ()
 
virtual void Accept (AstVisitor *v)=0
 
virtual Type node_type () const
 
virtual DeclarationAsDeclaration ()
 
virtual ExpressionAsExpression ()
 
virtual TargetCollectorAsTargetCollector ()
 
virtual BreakableStatementAsBreakableStatement ()
 
virtual IterationStatementAsIterationStatement ()
 
virtual MaterializedLiteralAsMaterializedLiteral ()
 
- 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)
 

Protected Member Functions

 IfStatement (Isolate *isolate, Expression *condition, Statement *then_statement, Statement *else_statement)
 

Friends

template<class >
class AstNodeFactory
 

Additional Inherited Members

- Public Types inherited from AstNode
enum  Type { kInvalid = -1 }
 
- Static Public Attributes inherited from AstNode
static const int kNoNumber = -1
 
static const int kFunctionEntryId = 2
 
static const int kDeclarationsId = 3
 
- Static Protected Member Functions inherited from AstNode
static int GetNextId (Isolate *isolate)
 
static int ReserveIdRange (Isolate *isolate, int n)
 

Detailed Description

Definition at line 1062 of file ast.h.

Constructor & Destructor Documentation

IfStatement ( Isolate isolate,
Expression condition,
Statement then_statement,
Statement else_statement 
)
inlineprotected

Definition at line 1080 of file ast.h.

Member Function Documentation

Expression* condition ( ) const
inline

Definition at line 1069 of file ast.h.

Statement* else_statement ( ) const
inline

Definition at line 1071 of file ast.h.

int ElseId ( ) const
inline

Definition at line 1075 of file ast.h.

bool HasElseStatement ( ) const
inline

Definition at line 1067 of file ast.h.

bool HasThenStatement ( ) const
inline

Definition at line 1066 of file ast.h.

int IfId ( ) const
inline

Definition at line 1073 of file ast.h.

Statement* then_statement ( ) const
inline

Definition at line 1070 of file ast.h.

int ThenId ( ) const
inline

Definition at line 1074 of file ast.h.

Friends And Related Function Documentation

friend class AstNodeFactory
friend

Definition at line 1078 of file ast.h.


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