aboutsummaryrefslogtreecommitdiffstats
path: root/javaparser-core/src/main/java/com/github/javaparser/ast/imports/EmptyImportDeclaration.java
blob: a137fb2d04e231ae2a28eb506c9e7f62037bebbf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package com.github.javaparser.ast.imports;

import com.github.javaparser.Range;
import com.github.javaparser.ast.visitor.GenericVisitor;
import com.github.javaparser.ast.visitor.VoidVisitor;

/**
 * A stray semicolon between the imports.
 * This isn't described in the JLS, but accepted by most or all tools that parse Java.
 *
 * @deprecated will be removed in 3.0
 */
@Deprecated
public class EmptyImportDeclaration extends ImportDeclaration {

    public EmptyImportDeclaration() {
        this(null);
    }

    public EmptyImportDeclaration(Range range) {
        super(range);
    }

    @Override
    public <R, A> R accept(GenericVisitor<R, A> v, A arg) {
        return v.visit(this, arg);
    }

    @Override
    public <A> void accept(VoidVisitor<A> v, A arg) {
        v.visit(this, arg);
    }
}