Uses of Class
com.github.javaparser.ParseResult
Packages that use ParseResult
Package
Description
-
Uses of ParseResult in com.github.javaparser
Methods in com.github.javaparser that return ParseResultModifier and TypeMethodDescription<N extends Node>
ParseResult<N>JavaParser.parse(ParseStart<N> start, Provider provider)
Parses source code.Deprecated.JavaParser.parse(InputStream in)
JavaParser.parse(InputStream in, Charset encoding)
Parses the Java code contained in theInputStream
and returns aCompilationUnit
that represents it.Parses Java code from a Reader and returns aCompilationUnit
that represents it.Parses the Java code contained in code and returns aCompilationUnit
that represents it.Parses the Java code contained in a file and returns aCompilationUnit
that represents it.Deprecated.set the encoding in theParserConfiguration
JavaParser.parseAnnotation(String annotation)
Parses the Java annotation contained in aString
and returns aAnnotationExpr
that represents it.JavaParser.parseAnnotationBodyDeclaration(String body)
Parses the Java annotation body declaration(e.g fields or methods) contained in aString
and returns aBodyDeclaration
that represents it.JavaParser.parseBlock(String blockStatement)
<T extends BodyDeclaration<?>>
ParseResult<T>JavaParser.parseBodyDeclaration(String body)
Parses a Java class or interface body declaration(e.g fields or methods) and returns aBodyDeclaration
that represents it.JavaParser.parseClassOrInterfaceType(String type)
Parses a Java class or interface type name and returns aClassOrInterfaceType
that represents it.JavaParser.parseExplicitConstructorInvocationStmt(String statement)
Parses the this(...) and super(...) statements that may occur at the start of a constructor.<T extends Expression>
ParseResult<T>JavaParser.parseExpression(String expression)
Parses the Java expression contained in aString
and returns aExpression
that represents it.JavaParser.parseImport(String importDeclaration)
Parses the Java import contained in aString
and returns aImportDeclaration
that represents it.JavaParser.parseMethodDeclaration(String methodDeclaration)
Parses a method declaration and returns it as a MethodDeclaration.JavaParser.parseModuleDeclaration(String moduleDeclaration)
Parses a module declaration and returns it as a ModuleDeclaration.JavaParser.parseModuleDirective(String moduleDirective)
Parses a module directive and returns it as a ModuleDirective.Parses a qualified name (one that can have "."s in it) and returns it as a Name.JavaParser.parsePackageDeclaration(String packageDeclaration)
Parses a package declaration and returns it as a PackageDeclaration.JavaParser.parseParameter(String parameter)
Parses a single parameter (a type and a name) and returns it as a Parameter.JavaParser.parseResource(ClassLoader classLoader, String path, Charset encoding)
Deprecated.set the encoding in theParserConfiguration
JavaParser.parseResource(String path)
Parses the Java code contained in a resource and returns aCompilationUnit
that represents it.JavaParser.parseResource(String path, Charset encoding)
Deprecated.set the encoding in theParserConfiguration
JavaParser.parseSimpleName(String name)
Parses a simple name (one that can NOT have "."s in it) and returns it as a SimpleName.JavaParser.parseStatement(String statement)
Parses a Java type name and returns aType
that represents it.JavaParser.parseTypeDeclaration(String typeDeclaration)
Parses a type declaration and returns it as a TypeDeclaration.JavaParser.parseTypeParameter(String typeParameter)
Parses a type parameter and returns it as a TypeParameterJavaParser.parseVariableDeclarationExpr(String declaration)
Parses a variable declaration expression and returns aVariableDeclarationExpr
that represents it.Methods in com.github.javaparser with parameters of type ParseResultModifier and TypeMethodDescriptionvoid
ParseResult.PostProcessor.process(ParseResult<? extends Node> result, ParserConfiguration configuration)
-
Uses of ParseResult in com.github.javaparser.ast
Methods in com.github.javaparser.ast that return ParseResult -
Uses of ParseResult in com.github.javaparser.ast.validator.postprocessors
Methods in com.github.javaparser.ast.validator.postprocessors with parameters of type ParseResultModifier and TypeMethodDescriptionvoid
PostProcessors.process(ParseResult<? extends Node> result, ParserConfiguration configuration)
-
Uses of ParseResult in com.github.javaparser.utils
Methods in com.github.javaparser.utils that return ParseResultModifier and TypeMethodDescriptionSourceRoot.tryToParse(String startPackage, String filename)
Tries to parse a .java files under the source root and returns the ParseResult.SourceRoot.tryToParse(String startPackage, String filename, ParserConfiguration configuration)
Tries to parse a .java files under the source root and returns the ParseResult.Methods in com.github.javaparser.utils that return types with arguments of type ParseResultModifier and TypeMethodDescriptionSourceRoot.getCache()
The Java files that have been parsed by this source root object, or have been added manually.SourceZip.parse()
Tries to parse all '.java' files in the ZIP located at this SourceZip's path and returns the parse results in a list.SourceRoot.tryToParse()
Tries to parse all .java files under the source root recursively, and returns all files ever parsed with this source root.SourceRoot.tryToParse(String startPackage)
Tries to parse all .java files in a package recursively, and returns all files ever parsed with this source root.SourceRoot.tryToParseParallelized()
Tries to parse all .java files under the source root recursively using multiple threads, and returns all files ever parsed with this source root.SourceRoot.tryToParseParallelized(String startPackage)
Tries to parse all .java files in a package recursively using multiple threads, and returns all files ever parsed with this source root.Methods in com.github.javaparser.utils with parameters of type ParseResultModifier and TypeMethodDescriptionSourceRoot.Callback.process(Path localPath, Path absolutePath, ParseResult<CompilationUnit> result)
void
SourceZip.Callback.process(Path relativeZipEntryPath, ParseResult<CompilationUnit> result)
Process the given parse result.
ParserConfiguration