Uses of Class
com.github.javaparser.ast.body.TypeDeclaration
-
-
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(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. -
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. types
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 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,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 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 void
BodyDeclaration. ifTypeDeclaration(java.util.function.Consumer<TypeDeclaration> action)
void
TypeDeclaration. 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 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 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 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, 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.
-