Package | Description |
---|---|
com.github.javaparser.ast.body | |
com.github.javaparser.ast.validator.chunks | |
com.github.javaparser.ast.visitor | |
com.github.javaparser.printer |
Modifier and Type | Method | Description |
---|---|---|
ConstructorDeclaration |
ClassOrInterfaceDeclaration.addConstructor(Modifier... modifiers) |
Adds a constructor to this
|
ConstructorDeclaration |
ConstructorDeclaration.clone() |
|
ConstructorDeclaration |
ConstructorDeclaration.setBody(BlockStmt body) |
Sets the body
|
ConstructorDeclaration |
ConstructorDeclaration.setModifiers(EnumSet<Modifier> modifiers) |
|
ConstructorDeclaration |
ConstructorDeclaration.setName(SimpleName name) |
|
ConstructorDeclaration |
ConstructorDeclaration.setParameters(NodeList<Parameter> parameters) |
|
ConstructorDeclaration |
ConstructorDeclaration.setThrownExceptions(NodeList<ReferenceType> thrownExceptions) |
|
ConstructorDeclaration |
ConstructorDeclaration.setTypeParameters(NodeList<TypeParameter> typeParameters) |
Modifier and Type | Method | Description |
---|---|---|
Optional<ConstructorDeclaration> |
ClassOrInterfaceDeclaration.getConstructorByParameterTypes(Class<?>... paramTypes) |
Try to find a
MethodDeclaration by its parameters types |
Optional<ConstructorDeclaration> |
ClassOrInterfaceDeclaration.getConstructorByParameterTypes(String... paramTypes) |
Try to find a
MethodDeclaration by its parameters types |
List<ConstructorDeclaration> |
ClassOrInterfaceDeclaration.getConstructors() |
Find all constructors for this class.
|
Optional<ConstructorDeclaration> |
ClassOrInterfaceDeclaration.getDefaultConstructor() |
Try to find a
ConstructorDeclaration with no parameters by its name |
Modifier and Type | Method | Description |
---|---|---|
void |
ModifierValidator.visit(ConstructorDeclaration n,
ProblemReporter reporter) |
Modifier and Type | Method | Description |
---|---|---|
Visitable |
CloneVisitor.visit(ConstructorDeclaration n,
Object arg) |
|
Boolean |
EqualsVisitor.visit(ConstructorDeclaration n,
Visitable arg) |
|
List<R> |
GenericListVisitorAdapter.visit(ConstructorDeclaration n,
A arg) |
|
R |
GenericVisitor.visit(ConstructorDeclaration n,
A arg) |
|
R |
GenericVisitorAdapter.visit(ConstructorDeclaration n,
A arg) |
|
Integer |
HashCodeVisitor.visit(ConstructorDeclaration n,
Void arg) |
|
Visitable |
ModifierVisitor.visit(ConstructorDeclaration n,
A arg) |
|
Boolean |
ObjectIdentityEqualsVisitor.visit(ConstructorDeclaration n,
Visitable arg) |
|
Integer |
ObjectIdentityHashCodeVisitor.visit(ConstructorDeclaration n,
Void arg) |
|
void |
VoidVisitor.visit(ConstructorDeclaration n,
A arg) |
|
void |
VoidVisitorAdapter.visit(ConstructorDeclaration n,
A arg) |
Modifier and Type | Method | Description |
---|---|---|
void |
PrettyPrintVisitor.visit(ConstructorDeclaration n,
Void arg) |
Copyright © 2007–2019. All rights reserved.