Uses of Class
com.github.javaparser.ast.body.TypeDeclaration
-
Uses of TypeDeclaration in com.github.javaparser
Modifier and TypeFieldDescriptionstatic ParseStart<TypeDeclaration<?>>
ParseStart.TYPE_DECLARATION
Modifier and TypeMethodDescriptionstatic TypeDeclaration<?>
StaticJavaParser.parseTypeDeclaration(String typeDeclaration)
Parses a type declaration and returns it as a TypeDeclaration.Modifier and TypeMethodDescriptionJavaParser.parseTypeDeclaration(String typeDeclaration)
Parses a type declaration and returns it as a TypeDeclaration. -
Uses of TypeDeclaration in com.github.javaparser.ast
Modifier and TypeMethodDescriptionCompilationUnit.getType(int i)
Convenience method that wrapsgetTypes()
.
Ifi
is out of bounds, throwsIndexOutOfBoundsException.
Modifier and TypeMethodDescriptionCompilationUnit.getPrimaryType()
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 TypeMethodDescriptionCompilationUnit.addType(TypeDeclaration<?> type)
CompilationUnit.setType(int i, TypeDeclaration<?> type)
Modifier and TypeMethodDescriptionCompilationUnit.setTypes(NodeList<TypeDeclaration<?>> types)
Sets the list of types declared in this compilation unit. -
Uses of TypeDeclaration in com.github.javaparser.ast.body
Modifier and TypeClassDescriptionclass
TypeDeclaration<T extends TypeDeclaration<?>>
A base class for all types of type declarations.Modifier and TypeClassDescriptionclass
An annotation type declaration.@interface X { ... }
class
A definition of a class or interface.class X { ... }
interface X { ... }
class
The declaration of an enum.enum X { ... }
class
The record declarationModifier and TypeMethodDescriptionBodyDeclaration.asTypeDeclaration()
TypeDeclaration.asTypeDeclaration()
TypeDeclaration.clone()
Modifier and TypeMethodDescriptionBodyDeclaration.toTypeDeclaration()
TypeDeclaration.toTypeDeclaration()
Modifier and TypeMethodDescriptionvoid
BodyDeclaration.ifTypeDeclaration(Consumer<TypeDeclaration> action)
void
TypeDeclaration.ifTypeDeclaration(Consumer<TypeDeclaration> action)