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_DECLARATIONMethods 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().
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 { ...classEnumDeclarationThe declaration of an enum.enum X { ...Methods 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)
-