static CompilationUnit |
StaticJavaParser.parse(File file) |
|
static CompilationUnit |
StaticJavaParser.parse(File file,
Charset encoding) |
Deprecated.
|
static CompilationUnit |
StaticJavaParser.parse(File file,
Charset encoding) |
Deprecated.
|
static CompilationUnit |
StaticJavaParser.parse(InputStream in) |
|
static CompilationUnit |
StaticJavaParser.parse(InputStream in,
Charset encoding) |
Deprecated.
|
static CompilationUnit |
StaticJavaParser.parse(InputStream in,
Charset encoding) |
Deprecated.
|
static CompilationUnit |
StaticJavaParser.parse(Reader reader) |
Parses Java code from a Reader and returns a
CompilationUnit that represents it.
|
static CompilationUnit |
StaticJavaParser.parse(String code) |
Parses the Java code contained in code and returns a
CompilationUnit that represents it.
|
static CompilationUnit |
StaticJavaParser.parse(Path path) |
Parses the Java code contained in a file and returns a
CompilationUnit that represents it.
|
static CompilationUnit |
StaticJavaParser.parse(Path path,
Charset encoding) |
Deprecated.
|
static CompilationUnit |
StaticJavaParser.parse(Path path,
Charset encoding) |
Deprecated.
|
static AnnotationExpr |
StaticJavaParser.parseAnnotation(String annotation) |
|
static BodyDeclaration<?> |
StaticJavaParser.parseAnnotationBodyDeclaration(String body) |
Parses the Java annotation body declaration(e.g fields or methods) contained in a
String and returns a BodyDeclaration that represents it.
|
static ArrayInitializerExpr |
StaticJavaParser.parseArrayInitializerExpr(String arrayInitializerExpr) |
Parses an array initializer expression and returns it as ArrayInitializerExpr.
|
static BlockStmt |
StaticJavaParser.parseBlock(String blockStatement) |
Parses the Java block contained in a String and returns a
BlockStmt that represents it.
|
static BodyDeclaration<?> |
StaticJavaParser.parseBodyDeclaration(String body) |
Parses a Java class or interface body declaration(e.g fields or methods) and returns a
BodyDeclaration that represents it.
|
static ClassOrInterfaceType |
StaticJavaParser.parseClassOrInterfaceType(String type) |
|
static ExplicitConstructorInvocationStmt |
StaticJavaParser.parseExplicitConstructorInvocationStmt(String statement) |
Parses the this(...) and super(...) statements that may occur at the start of a constructor.
|
static <T extends Expression> T |
StaticJavaParser.parseExpression(String expression) |
Parses the Java expression contained in a String and returns a
Expression that represents it.
|
static ImportDeclaration |
StaticJavaParser.parseImport(String importDeclaration) |
|
static Javadoc |
StaticJavaParser.parseJavadoc(String content) |
Parses the content of a JavadocComment and returns a Javadoc that
represents it.
|
static MethodDeclaration |
StaticJavaParser.parseMethodDeclaration(String methodDeclaration) |
Parses a method declaration and returns it as a MethodDeclaration.
|
static ModuleDeclaration |
StaticJavaParser.parseModuleDeclaration(String moduleDeclaration) |
Parses a module declaration and returns it as a ModuleDeclaration.
|
static ModuleDirective |
StaticJavaParser.parseModuleDirective(String moduleDirective) |
Parses a module directive and returns it as a ModuleDirective.
|
static Name |
StaticJavaParser.parseName(String qualifiedName) |
Parses a qualified name (one that can have "."
|
static PackageDeclaration |
StaticJavaParser.parsePackageDeclaration(String packageDeclaration) |
Parses a package declaration and returns it as a PackageDeclaration.
|
static Parameter |
StaticJavaParser.parseParameter(String parameter) |
Parses a single parameter (a type and a name) and returns it as a Parameter.
|
static CompilationUnit |
StaticJavaParser.parseResource(ClassLoader classLoader,
String path,
Charset encoding) |
Deprecated.
|
static CompilationUnit |
StaticJavaParser.parseResource(ClassLoader classLoader,
String path,
Charset encoding) |
Deprecated.
|
static CompilationUnit |
StaticJavaParser.parseResource(ClassLoader classLoader,
String path,
Charset encoding) |
Deprecated.
|
static CompilationUnit |
StaticJavaParser.parseResource(String path) |
Parses the Java code contained in a resource and returns a
CompilationUnit that represents it.
|
static CompilationUnit |
StaticJavaParser.parseResource(String path,
Charset encoding) |
Deprecated.
|
static CompilationUnit |
StaticJavaParser.parseResource(String path,
Charset encoding) |
Deprecated.
|
static SimpleName |
StaticJavaParser.parseSimpleName(String name) |
Parses a simple name (one that can NOT have "."
|
static Statement |
StaticJavaParser.parseStatement(String statement) |
Parses the Java statement contained in a String and returns a
Statement that represents it.
|
static Type |
StaticJavaParser.parseType(String type) |
Parses a Java type name and returns a Type that represents it.
|
static TypeDeclaration<?> |
StaticJavaParser.parseTypeDeclaration(String typeDeclaration) |
Parses a type declaration and returns it as a TypeDeclaration.
|
static TypeParameter |
StaticJavaParser.parseTypeParameter(String typeParameter) |
Parses a type parameter and returns it as a TypeParameter
|
static VariableDeclarationExpr |
StaticJavaParser.parseVariableDeclarationExpr(String declaration) |
|
static void |
StaticJavaParser.setConfiguration(ParserConfiguration configuration) |
Set the configuration for the static parse... methods.
|