Hi. good question.  it's a view of list w/o making a copy for  
efficiency.

that said, i think i've removed it; unnecessary. my dev branch shows  
these ctors:

        public CommonTreeNodeStream(Object tree) {
                this(new CommonTreeAdaptor(), tree);
        }

        public CommonTreeNodeStream(TreeAdaptor adaptor, Object tree) {
         super(adaptor.create(Token.EOF, "EOF")); // set EOF
                this.root = tree;
                this.adaptor = adaptor;
         it = new TreeIterator(root);
         it.eof = this.eof; // make sure tree iterator returns the EOF  
we want
        }


Ter

On Jan 2, 2009, at 2:11 PM, Johannes Luber wrote:

> Hi!
>
> CommonTreeNodeStream's new constructor contains the following line:
>
> this.nodes = parent.nodes.subList(start, stop);
>
> Unfortunately, .NET doesn't supply a SubList-method, so I have to roll
> my own. The problem is that I'm unsure what subList() actually does -
> gives it back a proxy object, a view, which manipulates the parent  
> list
> directly, or returns it a copy of the list, containing only the  
> required
> elements?
>
> Johannes

_______________________________________________
antlr-dev mailing list
[email protected]
http://www.antlr.org/mailman/listinfo/antlr-dev

Reply via email to