Uses of Class
com.github.javaparser.ast.body.ClassOrInterfaceDeclaration
Packages that use ClassOrInterfaceDeclaration
Package
Description
-
Uses of ClassOrInterfaceDeclaration in com.github.javaparser.ast
Methods in com.github.javaparser.ast that return ClassOrInterfaceDeclarationModifier and TypeMethodDescriptionAdd a public class to the types of this compilation unitCompilationUnit.addClass(String name, Modifier.Keyword... modifiers)
Add a class to the types of this compilation unitCompilationUnit.addInterface(String name)
Add a public interface class to the types of this compilation unitCompilationUnit.addInterface(String name, Modifier.Keyword... modifiers)
Add an interface to the types of this compilation unitMethods in com.github.javaparser.ast that return types with arguments of type ClassOrInterfaceDeclarationModifier and TypeMethodDescriptionCompilationUnit.getClassByName(String className)
Try to get a top level class declaration by its nameCompilationUnit.getInterfaceByName(String interfaceName)
Try to get a top level interface declaration by its nameCompilationUnit.getLocalDeclarationFromClassname(String className)
Try to get all local class declarations ending by its name (top level or inner class) -
Uses of ClassOrInterfaceDeclaration in com.github.javaparser.ast.body
Methods in com.github.javaparser.ast.body that return ClassOrInterfaceDeclarationModifier and TypeMethodDescriptionBodyDeclaration.asClassOrInterfaceDeclaration()
ClassOrInterfaceDeclaration.asClassOrInterfaceDeclaration()
ClassOrInterfaceDeclaration.clone()
ClassOrInterfaceDeclaration.setExtendedTypes(NodeList<ClassOrInterfaceType> extendedTypes)
ClassOrInterfaceDeclaration.setImplementedTypes(NodeList<ClassOrInterfaceType> implementedTypes)
ClassOrInterfaceDeclaration.setInterface(boolean isInterface)
ClassOrInterfaceDeclaration.setTypeParameters(NodeList<TypeParameter> typeParameters)
Methods in com.github.javaparser.ast.body that return types with arguments of type ClassOrInterfaceDeclarationModifier and TypeMethodDescriptionBodyDeclaration.toClassOrInterfaceDeclaration()
ClassOrInterfaceDeclaration.toClassOrInterfaceDeclaration()
Method parameters in com.github.javaparser.ast.body with type arguments of type ClassOrInterfaceDeclarationModifier and TypeMethodDescriptionvoid
BodyDeclaration.ifClassOrInterfaceDeclaration(Consumer<ClassOrInterfaceDeclaration> action)
void
ClassOrInterfaceDeclaration.ifClassOrInterfaceDeclaration(Consumer<ClassOrInterfaceDeclaration> action)
-
Uses of ClassOrInterfaceDeclaration in com.github.javaparser.ast.stmt
Methods in com.github.javaparser.ast.stmt that return ClassOrInterfaceDeclarationMethods in com.github.javaparser.ast.stmt with parameters of type ClassOrInterfaceDeclarationModifier and TypeMethodDescriptionLocalClassDeclarationStmt.setClassDeclaration(ClassOrInterfaceDeclaration classDeclaration)
Constructors in com.github.javaparser.ast.stmt with parameters of type ClassOrInterfaceDeclarationModifierConstructorDescriptionLocalClassDeclarationStmt(ClassOrInterfaceDeclaration classDeclaration)
LocalClassDeclarationStmt(TokenRange tokenRange, ClassOrInterfaceDeclaration classDeclaration)
This constructor is used by the parser and is considered private. -
Uses of ClassOrInterfaceDeclaration 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 ClassOrInterfaceDeclarationModifier and TypeMethodDescriptionvoid
ModifierValidator.visit(ClassOrInterfaceDeclaration n, ProblemReporter reporter)
-
Uses of ClassOrInterfaceDeclaration in com.github.javaparser.ast.visitor
Methods in com.github.javaparser.ast.visitor with parameters of type ClassOrInterfaceDeclarationModifier and TypeMethodDescriptionCloneVisitor.visit(ClassOrInterfaceDeclaration n, Object arg)
EqualsVisitor.visit(ClassOrInterfaceDeclaration n, Visitable arg)
GenericListVisitorAdapter.visit(ClassOrInterfaceDeclaration n, A arg)
GenericVisitor.visit(ClassOrInterfaceDeclaration n, A arg)
GenericVisitorAdapter.visit(ClassOrInterfaceDeclaration n, A arg)
GenericVisitorWithDefaults.visit(ClassOrInterfaceDeclaration n, A arg)
HashCodeVisitor.visit(ClassOrInterfaceDeclaration n, Void arg)
ModifierVisitor.visit(ClassOrInterfaceDeclaration n, A arg)
NoCommentEqualsVisitor.visit(ClassOrInterfaceDeclaration n, Visitable arg)
NoCommentHashCodeVisitor.visit(ClassOrInterfaceDeclaration n, Void arg)
ObjectIdentityEqualsVisitor.visit(ClassOrInterfaceDeclaration n, Visitable arg)
ObjectIdentityHashCodeVisitor.visit(ClassOrInterfaceDeclaration n, Void arg)
void
VoidVisitor.visit(ClassOrInterfaceDeclaration n, A arg)
void
VoidVisitorAdapter.visit(ClassOrInterfaceDeclaration n, A arg)
void
VoidVisitorWithDefaults.visit(ClassOrInterfaceDeclaration n, A arg)
-
Uses of ClassOrInterfaceDeclaration in com.github.javaparser.printer
Methods in com.github.javaparser.printer with parameters of type ClassOrInterfaceDeclarationModifier and TypeMethodDescriptionvoid
DefaultPrettyPrinterVisitor.visit(ClassOrInterfaceDeclaration n, Void arg)
void
PrettyPrintVisitor.visit(ClassOrInterfaceDeclaration n, Void arg)
Deprecated.