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

Constructor & Destructor Documentation

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

Definition at line 92 of file SequenceVisitors.py.

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

Member Function Documentation

def SequenceVisitors.CompositeVisitor.enter (   self,
  visitee 
)

Definition at line 96 of file SequenceVisitors.py.

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

Definition at line 100 of file SequenceVisitors.py.

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

Member Data Documentation

SequenceVisitors.CompositeVisitor._decorated
private

Definition at line 95 of file SequenceVisitors.py.

SequenceVisitors.CompositeVisitor._node
private

Definition at line 94 of file SequenceVisitors.py.

SequenceVisitors.CompositeVisitor._validator
private

Definition at line 93 of file SequenceVisitors.py.