ROSE  0.9.6a
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
typePatternNode Class Reference

#include <cpattern.h>

Inheritance diagram for typePatternNode:
Collaboration diagram for typePatternNode:

Public Member Functions

 typePatternNode (const parserID *var)
 Create a new pattern node. More...
 
void lookup (procedureAnn *procedure, Annotations *annotations)
 Lookup annotation variable. More...
 
bool qualified_equal_to (typeNode *node2, bool strict_toplevel, bool strict_recursive)
 Type equality (No-op) More...
 
virtual Node * clone () const
 
virtual void output_type (output_context &ct, Node *par, Assoc context, Type_qualifiers q)
 
Accessors

Methods to get and set fields in the class.

string & name ()
 
const string & name () const
 
void name (string nm)
 
annVariablevariable () const
 
void variable (annVariable *variable)
 
AST Traversal

Methods to uniformly traverse the AST.

See the documentation in the Node class.

virtual void visit (Visitor *the_visitor)
 
virtual void walk (Walker &the_walker)
 
virtual Node * change (Changer &the_changer, bool redispatch=false)
 

Private Attributes

string _name
 The name of the pattern variable. More...
 
REF annVariable_variable
 Reference to the annotation variable. More...
 

Detailed Description

Definition at line 153 of file cpattern.h.

Constructor & Destructor Documentation

typePatternNode::typePatternNode ( const parserID var)

Create a new pattern node.

Referenced by clone().

Member Function Documentation

string& typePatternNode::name ( )
inline

Definition at line 178 of file cpattern.h.

References _name.

const string& typePatternNode::name ( ) const
inline

Definition at line 179 of file cpattern.h.

References _name.

void typePatternNode::name ( string  nm)
inline

Definition at line 180 of file cpattern.h.

References _name.

annVariable* typePatternNode::variable ( ) const
inline

Definition at line 182 of file cpattern.h.

References _variable.

void typePatternNode::variable ( annVariable variable)
inline

Definition at line 183 of file cpattern.h.

References _variable, and variable().

Referenced by variable().

void typePatternNode::lookup ( procedureAnn procedure,
Annotations annotations 
)

Lookup annotation variable.

bool typePatternNode::qualified_equal_to ( typeNode *  node2,
bool  strict_toplevel,
bool  strict_recursive 
)
inline

Type equality (No-op)

Definition at line 194 of file cpattern.h.

virtual void typePatternNode::visit ( Visitor *  the_visitor)
virtual
virtual void typePatternNode::walk ( Walker &  the_walker)
virtual
virtual Node* typePatternNode::change ( Changer &  the_changer,
bool  redispatch = false 
)
virtual
virtual Node* typePatternNode::clone ( ) const
inlinevirtual

Definition at line 211 of file cpattern.h.

References typePatternNode().

virtual void typePatternNode::output_type ( output_context &  ct,
Node *  par,
Assoc  context,
Type_qualifiers  q 
)
virtual

Member Data Documentation

string typePatternNode::_name
private

The name of the pattern variable.

Definition at line 159 of file cpattern.h.

Referenced by name().

REF annVariable* typePatternNode::_variable
private

Reference to the annotation variable.

This is only needed for pattern expansion.

Definition at line 165 of file cpattern.h.

Referenced by variable().


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