JavaParser Source Viewer

Home|JavaParser/com/github/javaparser/ast/visitor/Visitable.java
1/*
2 * Copyright (C) 2007-2010 JĂșlio Vilmar Gesser.
3 * Copyright (C) 2011, 2013-2020 The JavaParser Team.
4 *
5 * This file is part of JavaParser.
6 *
7 * JavaParser can be used either under the terms of
8 * a) the GNU Lesser General Public License as published by
9 *     the Free Software Foundation, either version 3 of the License, or
10 *     (at your option) any later version.
11 * b) the terms of the Apache License
12 *
13 * You should have received a copy of both licenses in LICENCE.LGPL and
14 * LICENCE.APACHE. Please refer to those files for details.
15 *
16 * JavaParser is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19 * GNU Lesser General Public License for more details.
20 */
21
22package com.github.javaparser.ast.visitor;
23
24public interface Visitable {
25    /**
26     * Accept method for visitor support.
27     *
28     * @param <R> the type of the return value of the visitor
29     * @param <A> the type the user argument passed to the visitor
30     * @param v the visitor implementation
31     * @param arg the argument passed to the visitor (of type A)
32     * @return the result of the visit (of type R)
33     */
34    <RAR accept(GenericVisitor<RAvA arg);
35
36    /**
37     * Accept method for visitor support.
38     *
39     * @param <A> the type the argument passed for the visitor
40     * @param v the visitor implementation
41     * @param arg any value relevant for the visitor (of type A)
42     */
43    <Avoid accept(VoidVisitor<AvA arg);
44}
45
MembersX
Visitable:accept
Members
X