Uses of Class
com.github.javaparser.ast.body.ClassOrInterfaceDeclaration
Packages that use ClassOrInterfaceDeclaration
Package
Description
Implementation of model based on JavaParser.
-
Uses of ClassOrInterfaceDeclaration in com.github.javaparser
Methods in com.github.javaparser that return ClassOrInterfaceDeclarationModifier and TypeMethodDescriptionGeneratedJavaParser.ClassOrInterfaceDeclaration
(ModifierHolder modifier) Note that this grammar is deliberately permissive. -
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.setPermittedTypes
(NodeList<ClassOrInterfaceType> permittedTypes) 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
Fields in com.github.javaparser.ast.stmt declared as ClassOrInterfaceDeclarationModifier and TypeFieldDescriptionprivate ClassOrInterfaceDeclaration
LocalClassDeclarationStmt.classDeclaration
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 TypeMethodDescriptionprivate void
ModifierValidator.validateClassModifiers
(ClassOrInterfaceDeclaration n, ProblemReporter reporter) void
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) void
NodeFinderVisitor.visit
(ClassOrInterfaceDeclaration n, Range 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. -
Uses of ClassOrInterfaceDeclaration in com.github.javaparser.resolution
Methods in com.github.javaparser.resolution that return ClassOrInterfaceDeclarationModifier and TypeMethodDescriptionstatic ClassOrInterfaceDeclaration
Navigator.demandClass
(CompilationUnit cu, String qualifiedName) static ClassOrInterfaceDeclaration
Navigator.demandClassOrInterface
(CompilationUnit compilationUnit, String qualifiedName) static ClassOrInterfaceDeclaration
Navigator.demandInterface
(CompilationUnit cu, String qualifiedName) Methods in com.github.javaparser.resolution with parameters of type ClassOrInterfaceDeclarationModifier and TypeMethodDescriptionstatic VariableDeclarator
Navigator.demandField
(ClassOrInterfaceDeclaration cd, String name) -
Uses of ClassOrInterfaceDeclaration in com.github.javaparser.symbolsolver
Methods in com.github.javaparser.symbolsolver with parameters of type ClassOrInterfaceDeclarationModifier and TypeMethodDescriptionprivate void
SourceFileInfoExtractor.solveTypeDecl
(ClassOrInterfaceDeclaration node) -
Uses of ClassOrInterfaceDeclaration in com.github.javaparser.symbolsolver.javaparsermodel
Methods in com.github.javaparser.symbolsolver.javaparsermodel with parameters of type ClassOrInterfaceDeclarationModifier and TypeMethodDescriptionJavaParserFacade.getTypeDeclaration
(ClassOrInterfaceDeclaration classOrInterfaceDeclaration) DefaultVisitorAdapter.visit
(ClassOrInterfaceDeclaration node, Boolean aBoolean) -
Uses of ClassOrInterfaceDeclaration in com.github.javaparser.symbolsolver.javaparsermodel.contexts
Constructors in com.github.javaparser.symbolsolver.javaparsermodel.contexts with parameters of type ClassOrInterfaceDeclarationModifierConstructorDescriptionClassOrInterfaceDeclarationContext
(ClassOrInterfaceDeclaration wrappedNode, TypeSolver typeSolver) ClassOrInterfaceDeclarationExtendsContext
(ClassOrInterfaceDeclaration wrappedNode, TypeSolver typeSolver) -
Uses of ClassOrInterfaceDeclaration in com.github.javaparser.symbolsolver.javaparsermodel.declarations
Fields in com.github.javaparser.symbolsolver.javaparsermodel.declarations declared as ClassOrInterfaceDeclarationModifier and TypeFieldDescriptionprivate ClassOrInterfaceDeclaration
JavaParserClassDeclaration.wrappedNode
private ClassOrInterfaceDeclaration
JavaParserInterfaceDeclaration.wrappedNode
Fields in com.github.javaparser.symbolsolver.javaparsermodel.declarations with type parameters of type ClassOrInterfaceDeclarationModifier and TypeFieldDescriptionJavaParserClassDeclaration.javaParserTypeAdapter
JavaParserInterfaceDeclaration.javaParserTypeAdapter
Methods in com.github.javaparser.symbolsolver.javaparsermodel.declarations that return ClassOrInterfaceDeclarationModifier and TypeMethodDescriptionJavaParserClassDeclaration.getWrappedNode()
Returns the JavaParser node associated with this JavaParserClassDeclaration.JavaParserInterfaceDeclaration.getWrappedNode()
Returns the JavaParser node associated with this JavaParserInterfaceDeclaration.Constructors in com.github.javaparser.symbolsolver.javaparsermodel.declarations with parameters of type ClassOrInterfaceDeclarationModifierConstructorDescriptionJavaParserClassDeclaration
(ClassOrInterfaceDeclaration wrappedNode, TypeSolver typeSolver) JavaParserInterfaceDeclaration
(ClassOrInterfaceDeclaration wrappedNode, TypeSolver typeSolver)