Package | Description |
---|---|
com.github.javaparser |
Modifier and Type | Method and Description |
---|---|
static CompilationUnit |
StaticJavaParser.parse(File file)
Parses the Java code contained in a
File and returns a
CompilationUnit that represents it. |
static CompilationUnit |
StaticJavaParser.parse(File file)
Parses the Java code contained in a
File and returns a
CompilationUnit that represents it. |
static CompilationUnit |
StaticJavaParser.parse(File file,
Charset encoding)
Deprecated.
set the encoding in the
ParserConfiguration |
static CompilationUnit |
StaticJavaParser.parse(File file,
Charset encoding)
Deprecated.
set the encoding in the
ParserConfiguration |
static CompilationUnit |
StaticJavaParser.parse(File file,
Charset encoding)
Deprecated.
set the encoding in the
ParserConfiguration |
static CompilationUnit |
StaticJavaParser.parse(File file,
Charset encoding)
Deprecated.
set the encoding in the
ParserConfiguration |
static CompilationUnit |
StaticJavaParser.parse(InputStream in)
Parses the Java code contained in the
InputStream and returns a
CompilationUnit that represents it. |
static CompilationUnit |
StaticJavaParser.parse(InputStream in)
Parses the Java code contained in the
InputStream and returns a
CompilationUnit that represents it. |
static CompilationUnit |
StaticJavaParser.parse(InputStream in,
Charset encoding)
Deprecated.
set the encoding in the
ParserConfiguration |
static CompilationUnit |
StaticJavaParser.parse(InputStream in,
Charset encoding)
Deprecated.
set the encoding in the
ParserConfiguration |
static CompilationUnit |
StaticJavaParser.parse(InputStream in,
Charset encoding)
Deprecated.
set the encoding in the
ParserConfiguration |
static CompilationUnit |
StaticJavaParser.parse(InputStream in,
Charset encoding)
Deprecated.
set the encoding in the
ParserConfiguration |
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)
Parses the Java code contained in a file and returns a
CompilationUnit that represents it. |
static CompilationUnit |
StaticJavaParser.parse(Path path,
Charset encoding)
Deprecated.
set the encoding in the
ParserConfiguration |
static CompilationUnit |
StaticJavaParser.parse(Path path,
Charset encoding)
Deprecated.
set the encoding in the
ParserConfiguration |
static CompilationUnit |
StaticJavaParser.parse(Path path,
Charset encoding)
Deprecated.
set the encoding in the
ParserConfiguration |
static CompilationUnit |
StaticJavaParser.parse(Path path,
Charset encoding)
Deprecated.
set the encoding in the
ParserConfiguration |
static CompilationUnit |
StaticJavaParser.parse(Reader reader)
Parses Java code from a Reader and returns a
CompilationUnit that represents it. |
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(String code)
Parses the Java code contained in code and returns a
CompilationUnit that represents it. |
static AnnotationExpr |
StaticJavaParser.parseAnnotation(String annotation)
Parses the Java annotation contained in a
String and returns a
AnnotationExpr that represents it. |
static AnnotationExpr |
StaticJavaParser.parseAnnotation(String annotation)
Parses the Java annotation contained in a
String and returns a
AnnotationExpr that represents it. |
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 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 BlockStmt |
StaticJavaParser.parseBlock(String blockStatement)
|
static BlockStmt |
StaticJavaParser.parseBlock(String blockStatement)
|
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 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)
Parses a Java class or interface type name and returns a
ClassOrInterfaceType that represents it. |
static ClassOrInterfaceType |
StaticJavaParser.parseClassOrInterfaceType(String type)
Parses a Java class or interface type name and returns a
ClassOrInterfaceType that represents it. |
static ExplicitConstructorInvocationStmt |
StaticJavaParser.parseExplicitConstructorInvocationStmt(String statement)
Parses the this(...) and super(...) statements that may occur at the start of a constructor.
|
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> |
StaticJavaParser.parseExpression(String expression)
Parses the Java expression contained in a
String and returns a
Expression that represents it. |
static <T extends Expression> |
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)
Parses the Java import contained in a
String and returns a
ImportDeclaration that represents it. |
static ImportDeclaration |
StaticJavaParser.parseImport(String importDeclaration)
Parses the Java import contained in a
String and returns a
ImportDeclaration that represents it. |
static Javadoc |
StaticJavaParser.parseJavadoc(String content)
Parses the content of a JavadocComment and returns a
Javadoc that
represents it. |
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 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 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 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 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 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 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.
set the encoding in the
ParserConfiguration |
static CompilationUnit |
StaticJavaParser.parseResource(ClassLoader classLoader,
String path,
Charset encoding)
Deprecated.
set the encoding in the
ParserConfiguration |
static CompilationUnit |
StaticJavaParser.parseResource(ClassLoader classLoader,
String path,
Charset encoding)
Deprecated.
set the encoding in the
ParserConfiguration |
static CompilationUnit |
StaticJavaParser.parseResource(ClassLoader classLoader,
String path,
Charset encoding)
Deprecated.
set the encoding in the
ParserConfiguration |
static CompilationUnit |
StaticJavaParser.parseResource(ClassLoader classLoader,
String path,
Charset encoding)
Deprecated.
set the encoding in the
ParserConfiguration |
static CompilationUnit |
StaticJavaParser.parseResource(ClassLoader classLoader,
String path,
Charset encoding)
Deprecated.
set the encoding in the
ParserConfiguration |
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)
Parses the Java code contained in a resource and returns a
CompilationUnit that represents it. |
static CompilationUnit |
StaticJavaParser.parseResource(String path,
Charset encoding)
Deprecated.
set the encoding in the
ParserConfiguration |
static CompilationUnit |
StaticJavaParser.parseResource(String path,
Charset encoding)
Deprecated.
set the encoding in the
ParserConfiguration |
static CompilationUnit |
StaticJavaParser.parseResource(String path,
Charset encoding)
Deprecated.
set the encoding in the
ParserConfiguration |
static CompilationUnit |
StaticJavaParser.parseResource(String path,
Charset encoding)
Deprecated.
set the encoding in the
ParserConfiguration |
static SimpleName |
StaticJavaParser.parseSimpleName(String name)
Parses a simple name (one that can NOT have "."
|
static SimpleName |
StaticJavaParser.parseSimpleName(String name)
Parses a simple name (one that can NOT have "."
|
static Statement |
StaticJavaParser.parseStatement(String statement)
|
static Statement |
StaticJavaParser.parseStatement(String statement)
|
static Type |
StaticJavaParser.parseType(String type)
Parses a Java type name and returns a
Type 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 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 TypeParameter |
StaticJavaParser.parseTypeParameter(String typeParameter)
Parses a type parameter and returns it as a TypeParameter
|
static VariableDeclarationExpr |
StaticJavaParser.parseVariableDeclarationExpr(String declaration)
Parses a variable declaration expression and returns a
VariableDeclarationExpr
that represents it. |
static VariableDeclarationExpr |
StaticJavaParser.parseVariableDeclarationExpr(String declaration)
Parses a variable declaration expression and returns a
VariableDeclarationExpr
that represents it. |
static void |
StaticJavaParser.setConfiguration(ParserConfiguration configuration)
Set the configuration for the static parse... methods.
|
static void |
StaticJavaParser.setConfiguration(ParserConfiguration configuration)
Set the configuration for the static parse... methods.
|
Copyright © 2007–2022. All rights reserved.