src/share/classes/javax/lang/model/util/ElementScanner7.java

changeset 851
cad51b6eb7a6
parent 575
9a7c998bf2fc
child 1054
111bbf1ad913
equal deleted inserted replaced
850:2ab47c4cd618 851:cad51b6eb7a6
1 /* 1 /*
2 * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 2010, 2011, 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
103 * default value. 103 * default value.
104 */ 104 */
105 protected ElementScanner7(R defaultValue){ 105 protected ElementScanner7(R defaultValue){
106 super(defaultValue); 106 super(defaultValue);
107 } 107 }
108
109 /**
110 * This implementation scans the enclosed elements.
111 *
112 * @param e {@inheritDoc}
113 * @param p {@inheritDoc}
114 * @return the result of scanning
115 */
116 @Override
117 public R visitVariable(VariableElement e, P p) {
118 return scan(e.getEnclosedElements(), p);
119 }
108 } 120 }

mercurial