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.ast.validator.language_level_validations.chunks 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_DECLARATIONMethods in com.github.javaparser that return TypeDeclaration Modifier and Type Method Description TypeDeclaration<?>JavaParserAdapter. parseTypeDeclaration(java.lang.String typeDeclaration)static TypeDeclaration<?>StaticJavaParser. parseTypeDeclaration(java.lang.String typeDeclaration)Parses a type declaration and returns it as a TypeDeclaration.TypeDeclaration<?>GeneratedJavaParser. TypeDeclarationParseStart()Methods in com.github.javaparser that return types with arguments of type TypeDeclaration Modifier and Type Method Description ParseResult<TypeDeclaration<?>>JavaParser. parseTypeDeclaration(java.lang.String typeDeclaration)Parses a type declaration and returns it as a TypeDeclaration.(package private) NodeList<TypeDeclaration<?>>GeneratedJavaParserBase. typeDeclarationsForCu(NodeList<BodyDeclaration<?>> bodyDeclarations) -
Uses of TypeDeclaration in com.github.javaparser.ast
Fields in com.github.javaparser.ast with type parameters of type TypeDeclaration Modifier and Type Field Description private NodeList<TypeDeclaration<?>>CompilationUnit. typesMethods 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 java.util.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 java.util.Optional<TypeDeclaration>BodyDeclaration. toTypeDeclaration()java.util.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(java.util.function.Consumer<TypeDeclaration> action)voidTypeDeclaration. ifTypeDeclaration(java.util.function.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 TypeDeclaration Modifier and Type Method Description private voidModifierValidator. 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 TypeDeclaration Modifier and Type Method Description static java.util.Optional<TypeDeclaration<?>>Navigator. findType(TypeDeclaration<?> td, java.lang.String qualifiedName)Looks among the type declared in the TypeDeclaration for one having the specified name.static java.util.Optional<TypeDeclaration<?>>Navigator. findType(CompilationUnit cu, java.lang.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, java.lang.String name)static java.util.Optional<TypeDeclaration<?>>Navigator. findType(TypeDeclaration<?> td, java.lang.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 ResolvedReferenceTypeDeclarationJavaParserFacade. getTypeDeclaration(TypeDeclaration<?> typeDeclaration) -
Uses of TypeDeclaration in com.github.javaparser.symbolsolver.javaparsermodel.contexts
Fields in com.github.javaparser.symbolsolver.javaparsermodel.contexts declared as TypeDeclaration Modifier and Type Field Description private TypeDeclaration<?>JavaParserTypeDeclarationAdapter. wrappedNodeMethods in com.github.javaparser.symbolsolver.javaparsermodel.contexts with parameters of type TypeDeclaration Modifier and Type Method Description private booleanJavaParserTypeDeclarationAdapter. compareTypeParameters(TypeDeclaration<?> typeDeclaration, java.util.List<ResolvedType> resolvedTypeArguments)Constructors in com.github.javaparser.symbolsolver.javaparsermodel.contexts with parameters of type TypeDeclaration Constructor Description JavaParserTypeDeclarationAdapter(TypeDeclaration<?> wrappedNode, TypeSolver typeSolver, ResolvedReferenceTypeDeclaration typeDeclaration, Context context)
-