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, setSourceCode
getTagByName
getDeclaringClass, getModifiers, getName, isAbstract, isFinal, isNative, isPrivate, isProtected, isStatic, isStrictfp, isSynchronized, isTransient, isVolatile, setDeclaringClass, setModifiers, setName
getAnnotations, getComment, getNamedParameter, getSource, getTagByName, getTags, getTagsByName, setAnnotations, setComment, setSource, setTags
getLineNumber, getModelWriter, setLineNumber, setModelWriterFactory
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getCallSignature, getDeclaringClass, getExceptions, getExceptionTypes, getParameterByName, getParameters, getParameterTypes, getParameterTypes, getSourceCode, isVarArgs
getAnnotations, getComment, getNamedParameter, getTagByName, getTags, getTagsByName
getLineNumber
getModifiers, getName, isAbstract, isFinal, isNative, isPrivate, isProtected, isPublic, isStatic, isStrictfp, isSynchronized, isTransient, isVolatile
public void setTypeParameters(List<JavaTypeVariable<JavaConstructor>> typeParameters)
public List<JavaTypeVariable<JavaConstructor>> getTypeParameters()
GenericDeclaration.getTypeParameters()
getTypeParameters
in interface JavaGenericDeclaration
null
public boolean signatureMatches(List<JavaType> parameterTypes)
true
if this constructor matches the parameterTypes, assuming it's a non-varArg constructor.signatureMatches
in interface JavaConstructor
parameterTypes
- the parameter typestrue
if signature matches, otherwise false
public boolean signatureMatches(List<JavaType> parameterTypes, boolean varArgs)
true
if this constructor matches the parameterTypes and matches the varArg argument.signatureMatches
in interface JavaConstructor
signatureMatches
in class DefaultJavaExecutable
parameterTypes
- the parameter typesvarArgs
- true
if the last argument should be a varArg, otherwise false
true
if signature matches, otherwise false
public String getCodeBlock()
getCodeBlock
in interface JavaModel
Copyright © 2002–2021. All rights reserved.