public class DefaultJavaConstructor extends DefaultJavaExecutable implements JavaConstructor
| Constructor and Description |
|---|
DefaultJavaConstructor() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getCodeBlock() |
List<JavaTypeVariable<JavaConstructor>> |
getTypeParameters()
Equivalent of
GenericDeclaration.getTypeParameters() |
int |
hashCode() |
void |
setTypeParameters(List<JavaTypeVariable<JavaConstructor>> typeParameters) |
boolean |
signatureMatches(List<JavaType> parameterTypes)
Returns
true if this constructor matches the parameterTypes, assuming it's a non-varArg constructor. |
boolean |
signatureMatches(List<JavaType> parameterTypes,
boolean varArgs)
Returns
true if this constructor matches the parameterTypes and matches the varArg argument. |
String |
toString() |
getCallSignature, getExceptions, getExceptionTypes, getParameterByName, getParameters, getParameterTypes, getParameterTypes, getReturns, getSignature, getSourceCode, getTagsByName, isPublic, isVarArgs, setExceptions, setParameters, setSourceCodegetTagByNamegetDeclaringClass, getModifiers, getName, isAbstract, isFinal, isNative, isPrivate, isProtected, isStatic, isStrictfp, isSynchronized, isTransient, isVolatile, setDeclaringClass, setModifiers, setNamegetAnnotations, getComment, getNamedParameter, getSource, getTagByName, getTags, getTagsByName, setAnnotations, setComment, setSource, setTagsgetLineNumber, getModelWriter, setLineNumber, setModelWriterFactoryclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetCallSignature, getDeclaringClass, getExceptions, getExceptionTypes, getParameterByName, getParameters, getParameterTypes, getParameterTypes, getSourceCode, isVarArgsgetAnnotations, getComment, getNamedParameter, getTagByName, getTags, getTagsByNamegetLineNumbergetModifiers, getName, isAbstract, isFinal, isNative, isPrivate, isProtected, isPublic, isStatic, isStrictfp, isSynchronized, isTransient, isVolatilepublic void setTypeParameters(List<JavaTypeVariable<JavaConstructor>> typeParameters)
public List<JavaTypeVariable<JavaConstructor>> getTypeParameters()
GenericDeclaration.getTypeParameters()getTypeParameters in interface JavaGenericDeclarationnullpublic boolean signatureMatches(List<JavaType> parameterTypes)
true if this constructor matches the parameterTypes, assuming it's a non-varArg constructor.signatureMatches in interface JavaConstructorparameterTypes - the parameter typestrue if signature matches, otherwise falsepublic boolean signatureMatches(List<JavaType> parameterTypes, boolean varArgs)
true if this constructor matches the parameterTypes and matches the varArg argument.signatureMatches in interface JavaConstructorsignatureMatches in class DefaultJavaExecutableparameterTypes - the parameter typesvarArgs - true if the last argument should be a varArg, otherwise falsetrue if signature matches, otherwise falsepublic String getCodeBlock()
getCodeBlock in interface JavaModelCopyright © 2002–2025. All rights reserved.