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,
Modifier... 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,
Modifier... 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.getInterfaceByName(String interfaceName)
Try to get a top level interface declaration by its name
|
Modifier and Type | Method and Description |
---|---|
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) |
Modifier and Type | Method and Description |
---|---|
ClassOrInterfaceDeclaration |
LocalClassDeclarationStmt.getClassDeclaration() |
Modifier and Type | Method and Description |
---|---|
LocalClassDeclarationStmt |
LocalClassDeclarationStmt.setClassDeclaration(ClassOrInterfaceDeclaration classDeclaration) |
Constructor and Description |
---|
LocalClassDeclarationStmt(ClassOrInterfaceDeclaration classDeclaration) |
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) |
Modifier and Type | Method and Description |
---|---|
void |
PrettyPrintVisitor.visit(ClassOrInterfaceDeclaration n,
Void arg) |
Copyright © 2007–2017. All rights reserved.