Uses of Class
com.github.javaparser.ast.body.ClassOrInterfaceDeclaration
-
-
Uses of ClassOrInterfaceDeclaration in com.github.javaparser.ast
Methods in com.github.javaparser.ast that return ClassOrInterfaceDeclaration Modifier and Type Method Description ClassOrInterfaceDeclaration
CompilationUnit. addClass(String name)
Add a public class to the types of this compilation unitClassOrInterfaceDeclaration
CompilationUnit. addClass(String name, Modifier... modifiers)
Add a class to the types of this compilation unitClassOrInterfaceDeclaration
CompilationUnit. addInterface(String name)
Add a public interface class to the types of this compilation unitClassOrInterfaceDeclaration
CompilationUnit. addInterface(String name, Modifier... modifiers)
Add an interface to the types of this compilation unitMethods in com.github.javaparser.ast that return types with arguments of type ClassOrInterfaceDeclaration Modifier and Type Method Description Optional<ClassOrInterfaceDeclaration>
CompilationUnit. getClassByName(String className)
Try to get a top level class declaration by its nameOptional<ClassOrInterfaceDeclaration>
CompilationUnit. getInterfaceByName(String interfaceName)
Try to get a top level interface declaration by its name -
Uses of ClassOrInterfaceDeclaration in com.github.javaparser.ast.body
Methods in com.github.javaparser.ast.body that return ClassOrInterfaceDeclaration Modifier and Type Method Description ClassOrInterfaceDeclaration
BodyDeclaration. asClassOrInterfaceDeclaration()
ClassOrInterfaceDeclaration
ClassOrInterfaceDeclaration. asClassOrInterfaceDeclaration()
ClassOrInterfaceDeclaration
ClassOrInterfaceDeclaration. clone()
ClassOrInterfaceDeclaration
ClassOrInterfaceDeclaration. setExtendedTypes(NodeList<ClassOrInterfaceType> extendedTypes)
ClassOrInterfaceDeclaration
ClassOrInterfaceDeclaration. setImplementedTypes(NodeList<ClassOrInterfaceType> implementedTypes)
ClassOrInterfaceDeclaration
ClassOrInterfaceDeclaration. setInterface(boolean isInterface)
ClassOrInterfaceDeclaration
ClassOrInterfaceDeclaration. setTypeParameters(NodeList<TypeParameter> typeParameters)
Methods in com.github.javaparser.ast.body that return types with arguments of type ClassOrInterfaceDeclaration Modifier and Type Method Description Optional<ClassOrInterfaceDeclaration>
BodyDeclaration. toClassOrInterfaceDeclaration()
Optional<ClassOrInterfaceDeclaration>
ClassOrInterfaceDeclaration. toClassOrInterfaceDeclaration()
Method parameters in com.github.javaparser.ast.body with type arguments of type ClassOrInterfaceDeclaration Modifier and Type Method Description void
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 ClassOrInterfaceDeclaration Modifier and Type Method Description ClassOrInterfaceDeclaration
LocalClassDeclarationStmt. getClassDeclaration()
Methods in com.github.javaparser.ast.stmt with parameters of type ClassOrInterfaceDeclaration Modifier and Type Method Description LocalClassDeclarationStmt
LocalClassDeclarationStmt. setClassDeclaration(ClassOrInterfaceDeclaration classDeclaration)
Constructors in com.github.javaparser.ast.stmt with parameters of type ClassOrInterfaceDeclaration Constructor Description LocalClassDeclarationStmt(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.chunks
Methods in com.github.javaparser.ast.validator.chunks with parameters of type ClassOrInterfaceDeclaration Modifier and Type Method Description void
ModifierValidator. visit(ClassOrInterfaceDeclaration n, ProblemReporter reporter)
-
Uses of ClassOrInterfaceDeclaration in com.github.javaparser.ast.visitor
-
Uses of ClassOrInterfaceDeclaration in com.github.javaparser.printer
Methods in com.github.javaparser.printer with parameters of type ClassOrInterfaceDeclaration Modifier and Type Method Description void
PrettyPrintVisitor. visit(ClassOrInterfaceDeclaration n, Void arg)
-