Uses of Class
com.github.javaparser.ast.body.ClassOrInterfaceDeclaration
Package
Description
-
Uses of ClassOrInterfaceDeclaration in com.github.javaparser.ast
Modifier 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 unitModifier 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
Modifier 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)
Modifier and TypeMethodDescriptionBodyDeclaration.toClassOrInterfaceDeclaration()
ClassOrInterfaceDeclaration.toClassOrInterfaceDeclaration()
Modifier and TypeMethodDescriptionvoid
BodyDeclaration.ifClassOrInterfaceDeclaration(Consumer<ClassOrInterfaceDeclaration> action)
void
ClassOrInterfaceDeclaration.ifClassOrInterfaceDeclaration(Consumer<ClassOrInterfaceDeclaration> action)
-
Uses of ClassOrInterfaceDeclaration in com.github.javaparser.ast.stmt
Modifier and TypeMethodDescriptionLocalClassDeclarationStmt.setClassDeclaration(ClassOrInterfaceDeclaration classDeclaration)
ModifierConstructorDescriptionLocalClassDeclarationStmt(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
Modifier and TypeMethodDescriptionvoid
ModifierValidator.visit(ClassOrInterfaceDeclaration n, ProblemReporter reporter)
-
Uses of ClassOrInterfaceDeclaration in com.github.javaparser.ast.visitor
Modifier 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
Modifier and TypeMethodDescriptionvoid
DefaultPrettyPrinterVisitor.visit(ClassOrInterfaceDeclaration n, Void arg)
void
PrettyPrintVisitor.visit(ClassOrInterfaceDeclaration n, Void arg)
Deprecated.