| Package | Description |
|---|---|
| org.walkmod.javalang |
Parsers of Java source files.
|
| org.walkmod.javalang.util |
Common utilities to process source files.
|
| Modifier and Type | Method and Description |
|---|---|
static Node |
ASTManager.parse(Class<?> clazz,
String text)
Parses any fragment of code and store the result into the subclass of
Node defined. |
static Node |
ASTManager.parse(Class<?> clazz,
String text,
boolean withoutLocation)
Parses any fragment of code and store the result into the subclass of
Node defined. |
static CompilationUnit |
ASTManager.parse(File file)
Parses a Java source file and store the AST into a
CompilationUnit object. |
static CompilationUnit |
JavaParser.parse(File file)
Parses the Java code contained in a
File and returns a
CompilationUnit that represents it. |
static CompilationUnit |
ASTManager.parse(File file,
String encoding)
Parses a Java source file with a given encoding and store the AST into a
CompilationUnit object. |
static CompilationUnit |
JavaParser.parse(File file,
String encoding)
Parses the Java code contained in a
File and returns a
CompilationUnit that represents it. |
static CompilationUnit |
JavaParser.parse(InputStream in)
Parses the Java code contained in the
InputStream and returns a
CompilationUnit that represents it. |
static CompilationUnit |
JavaParser.parse(InputStream in,
String encoding)
Parses the Java code contained in the
InputStream and returns a
CompilationUnit that represents it. |
static CompilationUnit |
ASTManager.parse(Reader reader)
Parses Java code and store the AST into a
CompilationUnit object. |
static CompilationUnit |
ASTManager.parse(String code)
Parses Java code and store the AST into a
CompilationUnit object. |
static CompilationUnit |
ASTManager.parse(String code,
boolean withoutLocation)
Parses Java code and store the AST into a
CompilationUnit object with or without
the nodes start & end locations (line numbers and columns). |
| Modifier and Type | Method and Description |
|---|---|
static CompilationUnit |
FileUtils.getCompilationUnit(File outputDirectory,
PackageDeclaration pd,
TypeDeclaration td) |
Copyright © 2015. All rights reserved.