Uses of Class
com.github.javaparser.ast.body.TypeDeclaration
-
Packages that use TypeDeclaration Package Description com.github.javaparser com.github.javaparser.ast com.github.javaparser.ast.body com.github.javaparser.resolution com.github.javaparser.symbolsolver.javaparsermodel Implementation of model based on JavaParser.com.github.javaparser.symbolsolver.javaparsermodel.contexts -
-
Uses of TypeDeclaration in com.github.javaparser
Fields in com.github.javaparser with type parameters of type TypeDeclaration Modifier and Type Field Description static ParseStart<TypeDeclaration<?>>
ParseStart. TYPE_DECLARATION
Methods in com.github.javaparser that return TypeDeclaration Modifier and Type Method Description TypeDeclaration<?>
JavaParserAdapter. parseTypeDeclaration(String typeDeclaration)
static TypeDeclaration<?>
StaticJavaParser. parseTypeDeclaration(String typeDeclaration)
Parses a type declaration and returns it as a TypeDeclaration.Methods in com.github.javaparser that return types with arguments of type TypeDeclaration Modifier and Type Method Description ParseResult<TypeDeclaration<?>>
JavaParser. parseTypeDeclaration(String typeDeclaration)
Parses a type declaration and returns it as a TypeDeclaration. -
Uses of TypeDeclaration in com.github.javaparser.ast
Methods in com.github.javaparser.ast that return TypeDeclaration Modifier and Type Method Description TypeDeclaration<?>
CompilationUnit. 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 TypeDeclaration Modifier and Type Method Description Optional<TypeDeclaration<?>>
CompilationUnit. getPrimaryType()
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.Methods in com.github.javaparser.ast with parameters of type TypeDeclaration Modifier and Type Method Description CompilationUnit
CompilationUnit. addType(TypeDeclaration<?> type)
CompilationUnit
CompilationUnit. setType(int i, TypeDeclaration<?> type)
Method parameters in com.github.javaparser.ast with type arguments of type TypeDeclaration Modifier and Type Method Description CompilationUnit
CompilationUnit. 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 TypeDeclaration Modifier and Type Class Description class
TypeDeclaration<T extends TypeDeclaration<?>>
A base class for all types of type declarations.Subclasses of TypeDeclaration in com.github.javaparser.ast.body Modifier and Type Class Description class
AnnotationDeclaration
An annotation type declaration.@interface X { ... }
class
ClassOrInterfaceDeclaration
A definition of a class or interface.class X { ... }
interface X { ... }
class
EnumDeclaration
The declaration of an enum.enum X { ... }
class
RecordDeclaration
The record declarationMethods in com.github.javaparser.ast.body that return TypeDeclaration Modifier and Type Method Description TypeDeclaration
BodyDeclaration. asTypeDeclaration()
TypeDeclaration
TypeDeclaration. asTypeDeclaration()
TypeDeclaration<?>
TypeDeclaration. clone()
Methods in com.github.javaparser.ast.body that return types with arguments of type TypeDeclaration Modifier and Type Method Description Optional<TypeDeclaration>
BodyDeclaration. toTypeDeclaration()
Optional<TypeDeclaration>
TypeDeclaration. toTypeDeclaration()
Method parameters in com.github.javaparser.ast.body with type arguments of type TypeDeclaration Modifier and Type Method Description void
BodyDeclaration. ifTypeDeclaration(Consumer<TypeDeclaration> action)
void
TypeDeclaration. ifTypeDeclaration(Consumer<TypeDeclaration> action)
-
Uses of TypeDeclaration in com.github.javaparser.resolution
Methods in com.github.javaparser.resolution that return types with arguments of type TypeDeclaration Modifier and Type Method Description static 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 TypeDeclaration Modifier and Type Method Description static 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 TypeDeclaration Modifier and Type Method Description protected 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 TypeDeclaration Modifier and Type Method Description ResolvedReferenceTypeDeclaration
JavaParserFacade. getTypeDeclaration(TypeDeclaration<?> typeDeclaration)
-
Uses of TypeDeclaration in com.github.javaparser.symbolsolver.javaparsermodel.contexts
Constructors in com.github.javaparser.symbolsolver.javaparsermodel.contexts with parameters of type TypeDeclaration Constructor Description JavaParserTypeDeclarationAdapter(TypeDeclaration<?> wrappedNode, TypeSolver typeSolver, ResolvedReferenceTypeDeclaration typeDeclaration, Context context)
-