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