KDevelop API Documentation

ASTNULLType Class Reference

There is only one instance of this class *. More...

#include <ASTNULLType.hpp>

Inheritance diagram for ASTNULLType:

AST List of all members.

Public Member Functions

const char * typeName (void) const
 Return the type name for this AST node. (for XML output).

RefAST clone (void) const
 Clone this AST node.

void addChild (RefAST c)
 Add a node to the end of the child list for this node.

void setFirstChild (RefAST c)
 Set the first child of a node.

void setNextSibling (RefAST n)
 Set the next sibling after this one.

bool equals (RefAST t) const
 Is node t equal to this in terms of token type and text?

bool equalsList (RefAST t) const
 Is t an exact structural and equals() match of this tree.

bool equalsListPartial (RefAST t) const
 Is 't' a subtree of this list? The siblings of the root are NOT ignored.

bool equalsTree (RefAST t) const
 Is tree rooted at 'this' equal to 't'? The siblings of 'this' are ignored.

bool equalsTreePartial (RefAST t) const
 Is 't' a subtree of the tree rooted at 'this'? The siblings of 'this' are ignored.

std::vector< RefASTfindAll (RefAST tree)
 Walk the tree looking for all exact subtree matches.

std::vector< RefASTfindAllPartial (RefAST subtree)
 Walk the tree looking for all subtrees.

RefAST getFirstChild () const
 Get the first child of this node; null if no children.

RefAST getNextSibling () const
 Get the next sibling in line after this one.

std::string getText () const
 Get the token text for this node.

int getType () const
 Get the token type for this node.

void initialize (int t, const std::string &txt)
 Various initialization routines.

void initialize (RefAST t)
void initialize (RefToken t)
void initialize (std::istream &infile)
void setText (const std::string &text)
 Set the token text for this node.

void setType (int ttype)
 Set the token type for this node.

std::string toString () const
 Return this AST node as a string.

std::string toStringList () const
 Print out a child-sibling tree in LISP notation.

std::string toStringTree () const
bool attributesToStream (std::ostream &out) const
void toStream (std::ostream &out) const

Detailed Description

There is only one instance of this class *.

Definition at line 20 of file ASTNULLType.hpp.


Member Function Documentation

void ASTNULLType::addChild RefAST  c  )  [virtual]
 

Add a node to the end of the child list for this node.

Implements AST.

Definition at line 25 of file ASTNULLType.cpp.

References addChild().

Referenced by addChild().

bool ASTNULLType::attributesToStream std::ostream &  out  )  const
 

RefAST ASTNULLType::clone void   )  const [virtual]
 

Clone this AST node.

Implements AST.

Definition at line 20 of file ASTNULLType.cpp.

References RefAST.

bool ASTNULLType::equals RefAST  t  )  const [virtual]
 

Is node t equal to this in terms of token type and text?

Implements AST.

Definition at line 29 of file ASTNULLType.cpp.

References equals().

Referenced by equals().

bool ASTNULLType::equalsList RefAST  t  )  const [virtual]
 

Is t an exact structural and equals() match of this tree.

The 'this' reference is considered the start of a sibling list.

Implements AST.

Definition at line 34 of file ASTNULLType.cpp.

References equalsList().

Referenced by equalsList().

bool ASTNULLType::equalsListPartial RefAST  t  )  const [virtual]
 

Is 't' a subtree of this list? The siblings of the root are NOT ignored.

Implements AST.

Definition at line 39 of file ASTNULLType.cpp.

References equalsListPartial().

Referenced by equalsListPartial().

bool ASTNULLType::equalsTree RefAST  t  )  const [virtual]
 

Is tree rooted at 'this' equal to 't'? The siblings of 'this' are ignored.

Implements AST.

Definition at line 44 of file ASTNULLType.cpp.

References equalsTree().

Referenced by equalsTree().

bool ASTNULLType::equalsTreePartial RefAST  t  )  const [virtual]
 

Is 't' a subtree of the tree rooted at 'this'? The siblings of 'this' are ignored.

Implements AST.

Definition at line 49 of file ASTNULLType.cpp.

References equalsTreePartial().

Referenced by equalsTreePartial().

vector< RefAST > ASTNULLType::findAll RefAST  tree  )  [virtual]
 

Walk the tree looking for all exact subtree matches.

Return a vector of RefAST that lets the caller walk the list of subtree roots found herein.

Implements AST.

Definition at line 54 of file ASTNULLType.cpp.

References findAll().

Referenced by findAll().

vector< RefAST > ASTNULLType::findAllPartial RefAST  subtree  )  [virtual]
 

Walk the tree looking for all subtrees.

Return a vector of RefAST that lets the caller walk the list of subtree roots found herein.

Implements AST.

Definition at line 59 of file ASTNULLType.cpp.

References findAllPartial().

Referenced by findAllPartial().

RefAST ASTNULLType::getFirstChild  )  const [virtual]
 

Get the first child of this node; null if no children.

Implements AST.

Definition at line 64 of file ASTNULLType.cpp.

RefAST ASTNULLType::getNextSibling  )  const [virtual]
 

Get the next sibling in line after this one.

Implements AST.

Definition at line 69 of file ASTNULLType.cpp.

string ASTNULLType::getText  )  const [virtual]
 

Get the token text for this node.

Implements AST.

Definition at line 74 of file ASTNULLType.cpp.

Referenced by toString(), toStringList(), and toStringTree().

int ASTNULLType::getType  )  const [virtual]
 

Get the token type for this node.

Implements AST.

Definition at line 79 of file ASTNULLType.cpp.

void ASTNULLType::initialize std::istream &  infile  ) 
 

void ASTNULLType::initialize RefToken  t  )  [virtual]
 

Implements AST.

Definition at line 92 of file ASTNULLType.cpp.

References initialize().

void ASTNULLType::initialize RefAST  t  )  [virtual]
 

Implements AST.

Definition at line 88 of file ASTNULLType.cpp.

References initialize().

void ASTNULLType::initialize int  t,
const std::string &  txt
[virtual]
 

Various initialization routines.

Used by several factories to initialize an AST element.

Implements AST.

Definition at line 84 of file ASTNULLType.cpp.

References initialize().

Referenced by initialize().

void ASTNULLType::setFirstChild RefAST  c  )  [virtual]
 

Set the first child of a node.

Implements AST.

Definition at line 102 of file ASTNULLType.cpp.

References setFirstChild().

Referenced by setFirstChild().

void ASTNULLType::setNextSibling RefAST  n  )  [virtual]
 

Set the next sibling after this one.

Implements AST.

Definition at line 106 of file ASTNULLType.cpp.

References setNextSibling().

Referenced by setNextSibling().

void ASTNULLType::setText const std::string &  text  )  [virtual]
 

Set the token text for this node.

Implements AST.

Definition at line 110 of file ASTNULLType.cpp.

References setText().

Referenced by setText().

void ASTNULLType::setType int  ttype  )  [virtual]
 

Set the token type for this node.

Implements AST.

Definition at line 114 of file ASTNULLType.cpp.

References setType().

Referenced by setType().

void ASTNULLType::toStream std::ostream &  out  )  const
 

string ASTNULLType::toString  )  const [virtual]
 

Return this AST node as a string.

Implements AST.

Definition at line 118 of file ASTNULLType.cpp.

References getText().

string ASTNULLType::toStringList  )  const [virtual]
 

Print out a child-sibling tree in LISP notation.

Implements AST.

Definition at line 123 of file ASTNULLType.cpp.

References getText().

string ASTNULLType::toStringTree  )  const [virtual]
 

Implements AST.

Definition at line 128 of file ASTNULLType.cpp.

References getText().

const char * ASTNULLType::typeName void   )  const [virtual]
 

Return the type name for this AST node. (for XML output).

Implements AST.

Definition at line 145 of file ASTNULLType.cpp.


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for KDevelop Version 3.0.4.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Tue Oct 19 08:01:59 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003