Package | Description |
---|---|
com.github.javaparser.ast | |
com.github.javaparser.ast.body | |
com.github.javaparser.ast.stmt |
Modifier and Type | Method and Description |
---|---|
TypeDeclaration<?> |
CompilationUnit.getType(int i)
Convenience method that wraps
getTypes() .If i is out of bounds, throws IndexOutOfBoundsException. |
Modifier and Type | Method and Description |
---|---|
NodeList<TypeDeclaration<?>> |
CompilationUnit.getTypes()
Return the list of types declared in this compilation unit.
If there is no types declared, null is returned. |
Modifier and Type | Method and Description |
---|---|
CompilationUnit |
CompilationUnit.setTypes(NodeList<TypeDeclaration<?>> types)
Sets the list of types declared in this compilation unit.
|
Constructor and Description |
---|
CompilationUnit(PackageDeclaration pakage,
NodeList<ImportDeclaration> imports,
NodeList<TypeDeclaration<?>> types) |
CompilationUnit(Range range,
PackageDeclaration pakage,
NodeList<ImportDeclaration> imports,
NodeList<TypeDeclaration<?>> types) |
Modifier and Type | Class and Description |
---|---|
class |
AnnotationDeclaration |
class |
ClassOrInterfaceDeclaration |
class |
EmptyTypeDeclaration |
class |
EnumDeclaration |
Modifier and Type | Method and Description |
---|---|
TypeDeclaration<T> |
TypeDeclaration.addMember(BodyDeclaration<?> decl)
Adds the given declaration to the specified type.
|
Modifier and Type | Method and Description |
---|---|
TypeDeclaration |
TypeDeclarationStmt.getTypeDeclaration() |
Modifier and Type | Method and Description |
---|---|
TypeDeclarationStmt |
TypeDeclarationStmt.setTypeDeclaration(TypeDeclaration typeDecl) |
Constructor and Description |
---|
TypeDeclarationStmt(Range range,
TypeDeclaration typeDecl) |
TypeDeclarationStmt(TypeDeclaration typeDecl) |
Copyright © 2007–2016. All rights reserved.