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 -
-
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_DECLARATIONMethods 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().
Ifiis 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,noneis returned.Methods in com.github.javaparser.ast with parameters of type TypeDeclaration Modifier and Type Method Description CompilationUnitCompilationUnit. addType(TypeDeclaration<?> type)CompilationUnitCompilationUnit. setType(int i, TypeDeclaration<?> type)Method parameters in com.github.javaparser.ast with type arguments of type TypeDeclaration Modifier and Type Method Description CompilationUnitCompilationUnit. 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 classTypeDeclaration<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 classAnnotationDeclarationAn annotation type declaration.@interface X { ... }classClassOrInterfaceDeclarationA definition of a class or interface.class X { ... }interface X { ... }classEnumDeclarationThe declaration of an enum.enum X { ... }classRecordDeclarationThe record declarationMethods in com.github.javaparser.ast.body that return TypeDeclaration Modifier and Type Method Description TypeDeclarationBodyDeclaration. asTypeDeclaration()TypeDeclarationTypeDeclaration. 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 voidBodyDeclaration. ifTypeDeclaration(Consumer<TypeDeclaration> action)voidTypeDeclaration. 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 ConstructorDeclarationNavigator. demandConstructor(TypeDeclaration<?> td, int index)Returns the(i+1)'th constructor of the given type declaration, in textual order.static MethodDeclarationNavigator. 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.
-