Uses of Class
com.github.javaparser.ast.body.TypeDeclaration
Packages that use TypeDeclaration
Package
Description
-
Uses of TypeDeclaration in com.github.javaparser
Fields in com.github.javaparser with type parameters of type TypeDeclarationModifier and TypeFieldDescriptionstatic final ParseStart<TypeDeclaration<?>>
ParseStart.TYPE_DECLARATION
Methods in com.github.javaparser that return TypeDeclarationModifier and TypeMethodDescriptionstatic TypeDeclaration<?>
StaticJavaParser.parseTypeDeclaration
(String typeDeclaration) Parses a type declaration and returns it as a TypeDeclaration.final TypeDeclaration<?>
GeneratedJavaParser.TypeDeclarationParseStart()
Methods in com.github.javaparser that return types with arguments of type TypeDeclarationModifier and TypeMethodDescriptionJavaParser.parseTypeDeclaration
(String typeDeclaration) Parses a type declaration and returns it as a TypeDeclaration. -
Uses of TypeDeclaration in com.github.javaparser.ast
Fields in com.github.javaparser.ast with type parameters of type TypeDeclarationMethods in com.github.javaparser.ast that return TypeDeclarationModifier and TypeMethodDescriptionCompilationUnit.getType
(int i) Convenience method that wrapsgetTypes()
.
Ifi
is out of bounds, throwsIndexOutOfBoundsException.
Methods in com.github.javaparser.ast that return types with arguments of type TypeDeclarationModifier 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.Methods in com.github.javaparser.ast with parameters of type TypeDeclarationModifier and TypeMethodDescriptionCompilationUnit.addType
(TypeDeclaration<?> type) CompilationUnit.setType
(int i, TypeDeclaration<?> type) Method parameters in com.github.javaparser.ast with type arguments of type TypeDeclarationModifier 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
Classes in com.github.javaparser.ast.body with type parameters of type TypeDeclarationModifier and TypeClassDescriptionclass
TypeDeclaration<T extends TypeDeclaration<?>>
A base class for all types of type declarations.Subclasses of TypeDeclaration in com.github.javaparser.ast.bodyModifier 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 declarationMethods in com.github.javaparser.ast.body that return TypeDeclarationModifier and TypeMethodDescriptionBodyDeclaration.asTypeDeclaration()
TypeDeclaration.asTypeDeclaration()
TypeDeclaration.clone()
Methods in com.github.javaparser.ast.body that return types with arguments of type TypeDeclarationModifier and TypeMethodDescriptionBodyDeclaration.toTypeDeclaration()
TypeDeclaration.toTypeDeclaration()
Method parameters in com.github.javaparser.ast.body with type arguments of type TypeDeclarationModifier and TypeMethodDescriptionvoid
BodyDeclaration.ifTypeDeclaration
(Consumer<TypeDeclaration> action) void
TypeDeclaration.ifTypeDeclaration
(Consumer<TypeDeclaration> action) -
Uses of TypeDeclaration in com.github.javaparser.ast.validator.language_level_validations.chunks
Methods in com.github.javaparser.ast.validator.language_level_validations.chunks with parameters of type TypeDeclarationModifier and TypeMethodDescriptionprivate void
ModifierValidator.validateInterfaceModifiers
(TypeDeclaration<?> n, ProblemReporter reporter)