Top Deprecated
javaparser-parent 3.14.14

Deprecated API


No API in this release is deprecated for removal.

Deprecated Item Summary

SinceDeprecated Item and Description

Returns:

CompilationUnit representing the Java source code
com.github.javaparser.JavaParser.parse
(final File
File containing Java source code. It will be closed after parsing.
file
,
final Charset
encoding of the source code
encoding
)

set the encoding in the ParserConfiguration

Returns:

CompilationUnit representing the Java source code
com.github.javaparser.JavaParser.parse
(final Path
path to a file containing Java source code
path
,
final Charset
encoding of the source code
encoding
)

set the encoding in the ParserConfiguration

Returns:

CompilationUnit representing the Java source code
com.github.javaparser.JavaParser.parseResource
(final String
path to a resource containing Java source code. As resource is accessed through a class loader, a leading "/" is not allowed in pathToResource
path
,
Charset
encoding of the source code
encoding
)

set the encoding in the ParserConfiguration

Returns:

CompilationUnit representing the Java source code
com.github.javaparser.JavaParser.parseResource
(final ClassLoader
the classLoader that is asked to load the resource
classLoader
,
final String
path to a resource containing Java source code. As resource is accessed through a class loader, a leading "/" is not allowed in pathToResource
path
,
Charset encoding)

set the encoding in the ParserConfiguration

Returns:

CompilationUnit representing the Java source code
com.github.javaparser.StaticJavaParser.parse
(final InputStream
InputStream containing Java source code. It will be closed after parsing.
in
,
Charset
encoding of the source code
encoding
)

set the encoding in the ParserConfiguration

Returns:

CompilationUnit representing the Java source code
com.github.javaparser.StaticJavaParser.parse
(final File
File containing Java source code. It will be closed after parsing.
file
,
final Charset
encoding of the source code
encoding
)

set the encoding in the ParserConfiguration

Returns:

CompilationUnit representing the Java source code
com.github.javaparser.StaticJavaParser.parse
(final Path
path to a file containing Java source code
path
,
final Charset
encoding of the source code
encoding
)

set the encoding in the ParserConfiguration

Returns:

CompilationUnit representing the Java source code
com.github.javaparser.StaticJavaParser.parseResource
(final String
path to a resource containing Java source code. As resource is accessed through a class loader, a leading "/" is not allowed in pathToResource
path
,
Charset
encoding of the source code
encoding
)

set the encoding in the ParserConfiguration

Returns:

CompilationUnit representing the Java source code
com.github.javaparser.StaticJavaParser.parseResource
(final ClassLoader
the classLoader that is asked to load the resource
classLoader
,
final String
path to a resource containing Java source code. As resource is accessed through a class loader, a leading "/" is not allowed in pathToResource
path
,
Charset encoding)

set the encoding in the ParserConfiguration

com.github.javaparser.ast.Node.getChildNodesByType(Class<N>
the type of node to find.
clazz
)

use Node#findAll(Class) but be aware that findAll also considers the initial node.

com.github.javaparser.ast.Node.getNodesByType(Class<N> clazz)

use Node#findAll(Class) but be aware that findAll also considers the initial node.

com.github.javaparser.ast.type.ClassOrInterfaceType(final String name)

use JavaParser.parseClassOrInterfaceType instead. This constructor does not understand generics.

Returns:

the currently printed source code.
com.github.javaparser.printer.SourcePrinter.getSource
()

use toString()

com.github.javaparser.utils.Utils.toCamelCase(String original)

use screamingToCamelCase