         href: "#{section}/#{ entity.getFullName().replace(/\./g, '/') }.html"
         parent: entity.getParentClassName?()
         namespace: entity.getNamespace()
+
+    # we need this here, due to delegations from private classes
+    @parser.classes = _.filter @parser.classes, (node) =>
+      if /ublic/.test node.doc.status 
+        return node
+      if @options.private and /rivate/.test node.doc.status
+        return node
+      if @options.internal and /nternal/.test node.doc.status
+        return node
 
     # Create tree structure
     for clazz in @parser.classes

    classes = []
    mixins = []

    traverse = (entity, children, section) ->
      if entity.getNamespace()
        namespaces = entity.getNamespace().split('.')


  # options - The options (a [Object])
  #
  constructor: (@parser, @options) ->
    # @parser.classes = _.filter @parser.classes, (node) ->
    #   if /ublic/.test node.doc.status 
    #     return node
    #   if options.private and /rivate/.test node.doc.status
    #     return node
    #   if options.internal and /nternal/.test node.doc.status
    #     return node
    @referencer = new Referencer(@parser.classes, @parser.mixins, @options)
    @templater = new Templater(@options, @referencer, @parser)

