Modifier and Type | Method and Description |
---|---|
ClassOrInterfaceDeclaration |
CompilationUnit.addClass(String name)
Add a public class to the types of this compilation unit
|
ClassOrInterfaceDeclaration |
CompilationUnit.addClass(String name)
Add a public class to the types of this compilation unit
|
ClassOrInterfaceDeclaration |
CompilationUnit.addClass(String name,
Modifier.Keyword... modifiers)
Add a class to the types of this compilation unit
|
ClassOrInterfaceDeclaration |
CompilationUnit.addClass(String name,
Modifier.Keyword... modifiers)
Add a class to the types of this compilation unit
|
ClassOrInterfaceDeclaration |
CompilationUnit.addInterface(String name)
Add a public interface class to the types of this compilation unit
|
ClassOrInterfaceDeclaration |
CompilationUnit.addInterface(String name)
Add a public interface class to the types of this compilation unit
|
ClassOrInterfaceDeclaration |
CompilationUnit.addInterface(String name,
Modifier.Keyword... modifiers)
Add an interface to the types of this compilation unit
|
ClassOrInterfaceDeclaration |
CompilationUnit.addInterface(String name,
Modifier.Keyword... modifiers)
Add an interface to the types of this compilation unit
|
Modifier and Type | Method and Description |
---|---|
Optional<ClassOrInterfaceDeclaration> |
CompilationUnit.getClassByName(String className)
Try to get a top level class declaration by its name
|
Optional<ClassOrInterfaceDeclaration> |
CompilationUnit.getClassByName(String className)
Try to get a top level class declaration by its name
|
Optional<ClassOrInterfaceDeclaration> |
CompilationUnit.getInterfaceByName(String interfaceName)
Try to get a top level interface declaration by its name
|
Optional<ClassOrInterfaceDeclaration> |
CompilationUnit.getInterfaceByName(String interfaceName)
Try to get a top level interface declaration by its name
|
List<ClassOrInterfaceDeclaration> |
CompilationUnit.getLocalDeclarationFromClassname(String className)
Try to get all local class declarations ending by its name (top level or inner class)
|
List<ClassOrInterfaceDeclaration> |
CompilationUnit.getLocalDeclarationFromClassname(String className)
Try to get all local class declarations ending by its name (top level or inner class)
|
Modifier and Type | Method and Description |
---|---|
Optional<ClassOrInterfaceDeclaration> |
BodyDeclaration.toClassOrInterfaceDeclaration() |
Optional<ClassOrInterfaceDeclaration> |
ClassOrInterfaceDeclaration.toClassOrInterfaceDeclaration() |
Optional<ClassOrInterfaceDeclaration> |
ClassOrInterfaceDeclaration.toClassOrInterfaceDeclaration() |
Optional<ClassOrInterfaceDeclaration> |
BodyDeclaration.toClassOrInterfaceDeclaration() |
Modifier and Type | Method and Description |
---|---|
void |
BodyDeclaration.ifClassOrInterfaceDeclaration(Consumer<ClassOrInterfaceDeclaration> action) |
void |
ClassOrInterfaceDeclaration.ifClassOrInterfaceDeclaration(Consumer<ClassOrInterfaceDeclaration> action) |
void |
ClassOrInterfaceDeclaration.ifClassOrInterfaceDeclaration(Consumer<ClassOrInterfaceDeclaration> action) |
void |
BodyDeclaration.ifClassOrInterfaceDeclaration(Consumer<ClassOrInterfaceDeclaration> action) |
Modifier and Type | Method and Description |
---|---|
ClassOrInterfaceDeclaration |
LocalClassDeclarationStmt.getClassDeclaration() |
ClassOrInterfaceDeclaration |
LocalClassDeclarationStmt.getClassDeclaration() |
Modifier and Type | Method and Description |
---|---|
LocalClassDeclarationStmt |
LocalClassDeclarationStmt.setClassDeclaration(ClassOrInterfaceDeclaration classDeclaration) |
LocalClassDeclarationStmt |
LocalClassDeclarationStmt.setClassDeclaration(ClassOrInterfaceDeclaration classDeclaration) |
Constructor and Description |
---|
LocalClassDeclarationStmt(ClassOrInterfaceDeclaration classDeclaration) |
LocalClassDeclarationStmt(ClassOrInterfaceDeclaration classDeclaration) |
LocalClassDeclarationStmt(TokenRange tokenRange,
ClassOrInterfaceDeclaration classDeclaration)
This constructor is used by the parser and is considered private.
|
LocalClassDeclarationStmt(TokenRange tokenRange,
ClassOrInterfaceDeclaration classDeclaration)
This constructor is used by the parser and is considered private.
|
Modifier and Type | Method and Description |
---|---|
void |
ModifierValidator.visit(ClassOrInterfaceDeclaration n,
ProblemReporter reporter) |
void |
ModifierValidator.visit(ClassOrInterfaceDeclaration n,
ProblemReporter reporter) |
Modifier and Type | Method and Description |
---|---|
void |
DefaultPrettyPrinterVisitor.visit(ClassOrInterfaceDeclaration n,
Void arg) |
void |
PrettyPrintVisitor.visit(ClassOrInterfaceDeclaration n,
Void arg)
Deprecated.
|
void |
PrettyPrintVisitor.visit(ClassOrInterfaceDeclaration n,
Void arg)
Deprecated.
|
void |
DefaultPrettyPrinterVisitor.visit(ClassOrInterfaceDeclaration n,
Void arg) |
Modifier and Type | Method and Description |
---|---|
static ClassOrInterfaceDeclaration |
Navigator.demandClass(CompilationUnit cu,
String qualifiedName) |
static ClassOrInterfaceDeclaration |
Navigator.demandClass(CompilationUnit cu,
String qualifiedName) |
static ClassOrInterfaceDeclaration |
Navigator.demandClassOrInterface(CompilationUnit compilationUnit,
String qualifiedName) |
static ClassOrInterfaceDeclaration |
Navigator.demandClassOrInterface(CompilationUnit compilationUnit,
String qualifiedName) |
static ClassOrInterfaceDeclaration |
Navigator.demandInterface(CompilationUnit cu,
String qualifiedName) |
static ClassOrInterfaceDeclaration |
Navigator.demandInterface(CompilationUnit cu,
String qualifiedName) |
Modifier and Type | Method and Description |
---|---|
static VariableDeclarator |
Navigator.demandField(ClassOrInterfaceDeclaration cd,
String name) |
static VariableDeclarator |
Navigator.demandField(ClassOrInterfaceDeclaration cd,
String name) |
Copyright © 2007–2022. All rights reserved.