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 91 of file SequenceVisitors.py.

Constructor & Destructor Documentation

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

Definition at line 93 of file SequenceVisitors.py.

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

Member Function Documentation

def SequenceVisitors.CompositeVisitor.enter (   self,
  visitee 
)

Definition at line 97 of file SequenceVisitors.py.

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

Definition at line 101 of file SequenceVisitors.py.

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

Member Data Documentation

SequenceVisitors.CompositeVisitor._decorated
private

Definition at line 96 of file SequenceVisitors.py.

SequenceVisitors.CompositeVisitor._node
private

Definition at line 95 of file SequenceVisitors.py.

SequenceVisitors.CompositeVisitor._validator
private

Definition at line 94 of file SequenceVisitors.py.