Uses of Class
com.github.javaparser.ast.body.TypeDeclaration
Packages that use TypeDeclaration
-
Uses of TypeDeclaration in com.github.javaparser
Fields in com.github.javaparser with type parameters of type TypeDeclarationModifier and TypeFieldDescriptionstatic ParseStart<TypeDeclaration<?>>ParseStart.TYPE_DECLARATIONMethods in com.github.javaparser that return TypeDeclarationModifier and TypeMethodDescriptionstatic 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 TypeDeclarationModifier and TypeMethodDescriptionJavaParser.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 TypeDeclarationModifier and TypeMethodDescriptionCompilationUnit.getType(int i)Convenience method that wrapsgetTypes().
Ifiis 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,noneis 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 TypeClassDescriptionclassTypeDeclaration<T extends TypeDeclaration<?>>A base class for all types of type declarations.Subclasses of TypeDeclaration in com.github.javaparser.ast.bodyModifier and TypeClassDescriptionclassAn annotation type declaration.@interface X { ... }classA definition of a class or interface.class X { ... }interface X { ... }classThe declaration of an enum.enum X { ... }classThe 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 TypeMethodDescriptionvoidBodyDeclaration.ifTypeDeclaration(Consumer<TypeDeclaration> action)voidTypeDeclaration.ifTypeDeclaration(Consumer<TypeDeclaration> action)