| 1 |
package me.tomassetti.symbolsolver.javaparser; |
| 2 |
|
| 3 |
import com.github.javaparser.ast.CompilationUnit; |
| 4 |
import com.github.javaparser.ast.Node; |
| 5 |
import com.github.javaparser.ast.body.BodyDeclaration; |
| 6 |
import com.github.javaparser.ast.body.ClassOrInterfaceDeclaration; |
| 7 |
import com.github.javaparser.ast.body.MethodDeclaration; |
| 8 |
import com.github.javaparser.ast.body.TypeDeclaration; |
| 9 |
import com.github.javaparser.ast.expr.NameExpr; |
| 10 |
|
| 11 |
import java.util.stream.Stream; |
| 12 |
|
| 13 |
import java.util.Optional; |
| 14 |
|
| 15 |
/** |
| 16 |
* This class can be used to conveniently retrieve certain node from a JavaParser AST. |
| 17 |
*/ |
| 18 |
public final class Navigator { |
| 19 |
|
| 20 |
private Navigator() { |
| 21 |
// prevent instantiation |
| 22 |
} |
| 23 |
|
| 24 |
public static void findType() { |
| 25 |
Stream<String> s = null; |
| 26 |
s.filter((t)->t.isEmpty()); |
| 27 |
} |
| 28 |
|
| 29 |
public void foo(Stream<String> s){ |
| 30 |
|
| 31 |
} |
| 32 |
|
| 33 |
} |