Uses of Class
com.github.javaparser.ast.body.TypeDeclaration
Packages that use TypeDeclaration
Package
Description
Implementation of model based on JavaParser.
-
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 TypeMethodDescriptionJavaParserAdapter.parseTypeDeclaration
(String typeDeclaration) static 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) -
Uses of TypeDeclaration in com.github.javaparser.resolution
Methods in com.github.javaparser.resolution that return types with arguments of type TypeDeclarationModifier and TypeMethodDescriptionstatic Optional
<TypeDeclaration<?>> Navigator.findType
(TypeDeclaration<?> td, String qualifiedName) Looks among the type declared in the TypeDeclaration for one having the specified name.static Optional
<TypeDeclaration<?>> Navigator.findType
(CompilationUnit cu, String qualifiedName) Looks among the type declared in the Compilation Unit for one having the specified name.Methods in com.github.javaparser.resolution with parameters of type TypeDeclarationModifier and TypeMethodDescriptionstatic ConstructorDeclaration
Navigator.demandConstructor
(TypeDeclaration<?> td, int index) Returns the(i+1)
'th constructor of the given type declaration, in textual order.static MethodDeclaration
Navigator.demandMethod
(TypeDeclaration<?> cd, String name) static Optional
<TypeDeclaration<?>> Navigator.findType
(TypeDeclaration<?> td, String qualifiedName) Looks among the type declared in the TypeDeclaration for one having the specified name. -
Uses of TypeDeclaration in com.github.javaparser.symbolsolver.javaparsermodel
Methods in com.github.javaparser.symbolsolver.javaparsermodel that return TypeDeclarationModifier and TypeMethodDescriptionprotected TypeDeclaration
<?> JavaParserFacade.findContainingTypeDecl
(Node node) Where a node has an interface/class/enum declaration as its ancestor, return the nearest one.Methods in com.github.javaparser.symbolsolver.javaparsermodel with parameters of type TypeDeclarationModifier and TypeMethodDescriptionJavaParserFacade.getTypeDeclaration
(TypeDeclaration<?> typeDeclaration) -
Uses of TypeDeclaration in com.github.javaparser.symbolsolver.javaparsermodel.contexts
Fields in com.github.javaparser.symbolsolver.javaparsermodel.contexts declared as TypeDeclarationModifier and TypeFieldDescriptionprivate TypeDeclaration
<?> JavaParserTypeDeclarationAdapter.wrappedNode
Methods in com.github.javaparser.symbolsolver.javaparsermodel.contexts with parameters of type TypeDeclarationModifier and TypeMethodDescriptionprivate boolean
JavaParserTypeDeclarationAdapter.compareTypeParameters
(TypeDeclaration<?> typeDeclaration, List<ResolvedType> resolvedTypeArguments) Constructors in com.github.javaparser.symbolsolver.javaparsermodel.contexts with parameters of type TypeDeclarationModifierConstructorDescriptionJavaParserTypeDeclarationAdapter
(TypeDeclaration<?> wrappedNode, TypeSolver typeSolver, ResolvedReferenceTypeDeclaration typeDeclaration, Context context)