CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
SequenceVisitors.CompositeVisitor Class Reference
Inheritance diagram for SequenceVisitors.CompositeVisitor:

Public Member Functions

def __init__ (self, validator, node, decorated)
 
def enter (self, visitee)
 
def leave (self, visitee)
 

Private Attributes

 _decorated
 
 _node
 
 _validator
 

Detailed Description

Combines 3 different visitor classes in 1 so we only have to visit all the paths and endpaths once

Definition at line 92 of file SequenceVisitors.py.

Constructor & Destructor Documentation

def SequenceVisitors.CompositeVisitor.__init__ (   self,
  validator,
  node,
  decorated 
)

Definition at line 94 of file SequenceVisitors.py.

94  def __init__(self, validator, node, decorated):
95  self._validator = validator
96  self._node = node
97  self._decorated = decorated
def __init__(self, validator, node, decorated)

Member Function Documentation

def SequenceVisitors.CompositeVisitor.enter (   self,
  visitee 
)

Definition at line 98 of file SequenceVisitors.py.

98  def enter(self, visitee):
99  self._validator.enter(visitee)
100  self._node.enter(visitee)
101  self._decorated.enter(visitee)
def SequenceVisitors.CompositeVisitor.leave (   self,
  visitee 
)

Definition at line 102 of file SequenceVisitors.py.

102  def leave(self, visitee):
103  self._validator.leave(visitee)
104  # The node visitor leave function does nothing
105  #self._node.leave(visitee)
106  self._decorated.leave(visitee)
107 

Member Data Documentation

SequenceVisitors.CompositeVisitor._decorated
private

Definition at line 97 of file SequenceVisitors.py.

SequenceVisitors.CompositeVisitor._node
private

Definition at line 96 of file SequenceVisitors.py.

SequenceVisitors.CompositeVisitor._validator
private

Definition at line 95 of file SequenceVisitors.py.