langtools/src/java.compiler/share/classes/javax/lang/model/element/ElementVisitor.java
changeset 36526 3b41f1c69604
parent 25874 83c19f00452c
child 43133 08a858022ea6
equal deleted inserted replaced
36525:4caf88912b7f 36526:3b41f1c69604
     1 /*
     1 /*
     2  * Copyright (c) 2005, 2014, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2005, 2015, 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
   141      * @return a visitor-specified result
   141      * @return a visitor-specified result
   142      * @throws UnknownElementException
   142      * @throws UnknownElementException
   143      *  a visitor implementation may optionally throw this exception
   143      *  a visitor implementation may optionally throw this exception
   144      */
   144      */
   145     R visitUnknown(Element e, P p);
   145     R visitUnknown(Element e, P p);
       
   146 
       
   147     /**
       
   148      * Visits a module element.
       
   149      * @param e  the element to visit
       
   150      * @param p  a visitor-specified parameter
       
   151      * @return a visitor-specified result
       
   152      * @since 9
       
   153      */
       
   154     R visitModule(ModuleElement e, P p);
   146 }
   155 }