Package | Description |
---|---|
com.github.javaparser |
Modifier and Type | Method and Description |
---|---|
static CompilationUnit |
JavaParser.parse(File file)
Parses the Java code contained in a
File and returns a
CompilationUnit that represents it. |
static CompilationUnit |
JavaParser.parse(File file,
String encoding) |
static CompilationUnit |
JavaParser.parse(File file,
String encoding,
boolean considerComments)
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) |
static CompilationUnit |
JavaParser.parse(InputStream in,
String encoding,
boolean considerComments)
Parses the Java code contained in the
InputStream and returns a
CompilationUnit that represents it. |
static CompilationUnit |
JavaParser.parse(Reader reader,
boolean considerComments) |
static AnnotationExpr |
JavaParser.parseAnnotation(String annotation)
Parses the Java annotation contained in a
String and returns a
AnnotationExpr that represents it. |
static BlockStmt |
JavaParser.parseBlock(String blockStatement)
|
static BodyDeclaration |
JavaParser.parseBodyDeclaration(String body)
Parses the Java body declaration(e.g fields or methods) contained in a
String and returns a BodyDeclaration that represents it. |
static Expression |
JavaParser.parseExpression(String expression)
Parses the Java expression contained in a
String and returns a
Expression that represents it. |
static ImportDeclaration |
JavaParser.parseImport(String importDeclaration)
Parses the Java import contained in a
String and returns a
ImportDeclaration that represents it. |
static Statement |
JavaParser.parseStatement(String statement)
|
Copyright © 2007–2016. All rights reserved.