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 -
-
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 static 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 { ...
class
EnumDeclaration
The declaration of an enum.enum X { ...
Methods 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)
-