Modifier and Type | Method and Description |
---|---|
Optional<ConstructorDeclaration> |
BodyDeclaration.toConstructorDeclaration() |
Optional<ConstructorDeclaration> |
ConstructorDeclaration.toConstructorDeclaration() |
Optional<ConstructorDeclaration> |
ConstructorDeclaration.toConstructorDeclaration() |
Optional<ConstructorDeclaration> |
BodyDeclaration.toConstructorDeclaration() |
Modifier and Type | Method and Description |
---|---|
void |
BodyDeclaration.ifConstructorDeclaration(Consumer<ConstructorDeclaration> action) |
void |
ConstructorDeclaration.ifConstructorDeclaration(Consumer<ConstructorDeclaration> action) |
void |
ConstructorDeclaration.ifConstructorDeclaration(Consumer<ConstructorDeclaration> action) |
void |
BodyDeclaration.ifConstructorDeclaration(Consumer<ConstructorDeclaration> action) |
Modifier and Type | Method and Description |
---|---|
default ConstructorDeclaration |
NodeWithMembers.addConstructor(Modifier.Keyword... modifiers)
Adds a constructor to this node with members.
|
default ConstructorDeclaration |
NodeWithMembers.addConstructor(Modifier.Keyword... modifiers)
Adds a constructor to this node with members.
|
Modifier and Type | Method and Description |
---|---|
default Optional<ConstructorDeclaration> |
NodeWithMembers.getConstructorByParameterTypes(Class<?>... paramTypes)
Try to find a
ConstructorDeclaration by its parameter types. |
default Optional<ConstructorDeclaration> |
NodeWithMembers.getConstructorByParameterTypes(Class<?>... paramTypes)
Try to find a
ConstructorDeclaration by its parameter types. |
default Optional<ConstructorDeclaration> |
NodeWithMembers.getConstructorByParameterTypes(String... paramTypes)
Try to find a
ConstructorDeclaration by its parameter types. |
default Optional<ConstructorDeclaration> |
NodeWithMembers.getConstructorByParameterTypes(String... paramTypes)
Try to find a
ConstructorDeclaration by its parameter types. |
default List<ConstructorDeclaration> |
NodeWithMembers.getConstructors()
Find all constructors in the members of this node.
|
default List<ConstructorDeclaration> |
NodeWithMembers.getConstructors()
Find all constructors in the members of this node.
|
default Optional<ConstructorDeclaration> |
NodeWithMembers.getDefaultConstructor()
Try to find a
ConstructorDeclaration with no parameters. |
default Optional<ConstructorDeclaration> |
NodeWithMembers.getDefaultConstructor()
Try to find a
ConstructorDeclaration with no parameters. |
Modifier and Type | Method and Description |
---|---|
void |
ModifierValidator.visit(ConstructorDeclaration n,
ProblemReporter reporter) |
void |
ModifierValidator.visit(ConstructorDeclaration n,
ProblemReporter reporter) |
Modifier and Type | Method and Description |
---|---|
void |
DefaultPrettyPrinterVisitor.visit(ConstructorDeclaration n,
Void arg) |
void |
PrettyPrintVisitor.visit(ConstructorDeclaration n,
Void arg)
Deprecated.
|
void |
PrettyPrintVisitor.visit(ConstructorDeclaration n,
Void arg)
Deprecated.
|
void |
DefaultPrettyPrinterVisitor.visit(ConstructorDeclaration n,
Void arg) |
Modifier and Type | Method and Description |
---|---|
static ConstructorDeclaration |
Navigator.demandConstructor(TypeDeclaration<?> td,
int index)
Returns the
(i+1) 'th constructor of the given type declaration, in textual order. |
static ConstructorDeclaration |
Navigator.demandConstructor(TypeDeclaration<?> td,
int index)
Returns the
(i+1) 'th constructor of the given type declaration, in textual order. |
Copyright © 2007–2023. All rights reserved.