public class ImportDetector
extends java.lang.Object
| Constructor and Description |
|---|
ImportDetector() |
| Modifier and Type | Method and Description |
|---|---|
static java.util.Collection<com.sun.tools.javac.code.Symbol> |
imports(com.sun.tools.javac.tree.JCTree.JCMethodDecl methodDecl)
Locate types that are directly referred to by name in the
given method declaration and therefore need an import in the template.
|
static java.util.Collection<com.sun.tools.javac.code.Symbol> |
imports(com.sun.tools.javac.tree.JCTree.JCMethodDecl methodDecl,
java.util.function.Predicate<com.sun.tools.javac.tree.JCTree> scopePredicate) |
public static java.util.Collection<com.sun.tools.javac.code.Symbol> imports(com.sun.tools.javac.tree.JCTree.JCMethodDecl methodDecl)
Excludes exceptions thrown by the method.
public static java.util.Collection<com.sun.tools.javac.code.Symbol> imports(com.sun.tools.javac.tree.JCTree.JCMethodDecl methodDecl,
java.util.function.Predicate<com.sun.tools.javac.tree.JCTree> scopePredicate)