| Package | Description |
|---|---|
| com.github.javaparser.ast | |
| com.github.javaparser.ast.body |
| Modifier and Type | Method | Description |
|---|---|---|
TypeDeclaration<?> |
CompilationUnit.getType(int i) |
Convenience method that wraps
getTypes().If i is out of bounds, throws IndexOutOfBoundsException. |
| Modifier and Type | Method | Description |
|---|---|---|
NodeList<TypeDeclaration<?>> |
CompilationUnit.getTypes() |
Return the list of top level types declared in this compilation unit.
If there are no types declared, none is returned. |
| Modifier and Type | Method | Description |
|---|---|---|
CompilationUnit |
CompilationUnit.addType(TypeDeclaration<?> type) |
|
CompilationUnit |
CompilationUnit.setType(int i,
TypeDeclaration<?> type) |
| Modifier and Type | Method | Description |
|---|---|---|
CompilationUnit |
CompilationUnit.setTypes(NodeList<TypeDeclaration<?>> types) |
Sets the list of types declared in this compilation unit.
|
| Modifier and Type | Class | Description |
|---|---|---|
class |
TypeDeclaration<T extends TypeDeclaration<?>> |
A base class for all types of type declarations.
|
| Modifier and Type | Class | Description |
|---|---|---|
class |
AnnotationDeclaration |
An annotation type declaration.
@interface X { ... |
class |
ClassOrInterfaceDeclaration |
A definition of a class or interface.
class X { ... |
class |
EnumDeclaration |
The declaration of an enum.
enum X { ... |
| Modifier and Type | Method | Description |
|---|---|---|
TypeDeclaration<?> |
TypeDeclaration.clone() |
Copyright © 2007–2019. All rights reserved.