src/share/classes/com/sun/source/tree/Tree.java

changeset 1409
33abf479f202
parent 1143
ec59a2ce9114
child 1436
f6f1fd261f57
equal deleted inserted replaced
1408:b486794d160d 1409:33abf479f202
1 /* 1 /*
2 * Copyright (c) 2005, 2011, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 2005, 2012, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 * 4 *
5 * This code is free software; you can redistribute it and/or modify it 5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as 6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Oracle designates this 7 * published by the Free Software Foundation. Oracle designates this
608 /** 608 /**
609 * Accept method used to implement the visitor pattern. The 609 * Accept method used to implement the visitor pattern. The
610 * visitor pattern is used to implement operations on trees. 610 * visitor pattern is used to implement operations on trees.
611 * 611 *
612 * @param <R> result type of this operation. 612 * @param <R> result type of this operation.
613 * @param <D> type of additonal data. 613 * @param <D> type of additional data.
614 */ 614 */
615 <R,D> R accept(TreeVisitor<R,D> visitor, D data); 615 <R,D> R accept(TreeVisitor<R,D> visitor, D data);
616 } 616 }

mercurial