public class DefaultJavaConstructor extends DefaultJavaExecutable implements JavaConstructor
Modifier and Type | Field and Description |
---|---|
private java.util.List<JavaTypeVariable<JavaConstructor>> |
typeParameters |
Constructor and Description |
---|
DefaultJavaConstructor() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getCodeBlock() |
java.util.List<JavaTypeVariable<JavaConstructor>> |
getTypeParameters()
Equivalent of
GenericDeclaration.getTypeParameters() |
int |
hashCode() |
void |
setTypeParameters(java.util.List<JavaTypeVariable<JavaConstructor>> typeParameters) |
boolean |
signatureMatches(java.util.List<JavaType> parameterTypes)
Returns
true if this constructor matches the parameterTypes, assuming it's a non-varArg constructor. |
boolean |
signatureMatches(java.util.List<JavaType> parameterTypes,
boolean varArgs)
Returns
true if this constructor matches the parameterTypes and matches the varArg argument. |
java.lang.String |
toString() |
getExceptions, getExceptionTypes, getParameterByName, getParameters, getParameterTypes, getParameterTypes, 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
getLineNumber
getAnnotations, getComment, getNamedParameter, getTagByName, getTags, getTagsByName
getDeclaringClass, getExceptions, getExceptionTypes, getParameterByName, getParameters, getParameterTypes, getParameterTypes, getSourceCode, isVarArgs
getModifiers, getName, isAbstract, isFinal, isNative, isPrivate, isProtected, isPublic, isStatic, isStrictfp, isSynchronized, isTransient, isVolatile
private java.util.List<JavaTypeVariable<JavaConstructor>> typeParameters
public void setTypeParameters(java.util.List<JavaTypeVariable<JavaConstructor>> typeParameters)
public java.util.List<JavaTypeVariable<JavaConstructor>> getTypeParameters()
GenericDeclaration.getTypeParameters()
getTypeParameters
in interface JavaGenericDeclaration
null
public boolean signatureMatches(java.util.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(java.util.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 java.lang.String getCodeBlock()
getCodeBlock
in interface JavaModel
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object