langtools/src/share/classes/com/sun/tools/javac/code/Scope.java
changeset 7628 e7baeb97d164
parent 7615 8bc078486f2b
child 8032 e1aa25ccdabb
equal deleted inserted replaced
7627:de2a86da165e 7628:e7baeb97d164
   493          */
   493          */
   494         public Entry next() {
   494         public Entry next() {
   495             return shadowed;
   495             return shadowed;
   496         }
   496         }
   497 
   497 
       
   498         public Entry next(Filter<Symbol> sf) {
       
   499             if (shadowed.sym == null || sf.accepts(shadowed.sym)) return shadowed;
       
   500             else return shadowed.next(sf);
       
   501         }
       
   502 
   498         public Scope getOrigin() {
   503         public Scope getOrigin() {
   499             // The origin is only recorded for import scopes.  For all
   504             // The origin is only recorded for import scopes.  For all
   500             // other scope entries, the "enclosing" type is available
   505             // other scope entries, the "enclosing" type is available
   501             // from other sources.  See Attr.visitSelect and
   506             // from other sources.  See Attr.visitSelect and
   502             // Attr.visitIdent.  Rather than throwing an assertion
   507             // Attr.visitIdent.  Rather than throwing an assertion