JavaAnnotatedElement
, JavaConstructor
, JavaExecutable
, JavaGenericDeclaration
, JavaMember
, JavaModel
, java.io.Serializable
public class DefaultJavaConstructor extends DefaultJavaExecutable implements JavaConstructor
Constructor | Description |
---|---|
DefaultJavaConstructor() |
Modifier and Type | Method | 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() |
getAnnotations, getComment, getNamedParameter, getSource, getTagByName, getTags, getTagsByName, setAnnotations, setComment, setSource, setTags
getTagByName
getDeclaringClass, getModifiers, getName, isAbstract, isFinal, isNative, isPrivate, isProtected, isStatic, isStrictfp, isSynchronized, isTransient, isVolatile, setDeclaringClass, setModifiers, setName
getLineNumber, getModelWriter, setLineNumber, setModelWriterFactory
getCallSignature, getExceptions, getExceptionTypes, getParameterByName, getParameters, getParameterTypes, getParameterTypes, getReturns, getSignature, getSourceCode, getTagsByName, isPublic, isVarArgs, setExceptions, setParameters, setSourceCode
getAnnotations, getComment, getNamedParameter, getTagByName, getTags, getTagsByName
getCallSignature, getDeclaringClass, getExceptions, getExceptionTypes, getParameterByName, getParameters, getParameterTypes, getParameterTypes, getSourceCode, isVarArgs
getModifiers, getName, isAbstract, isFinal, isNative, isPrivate, isProtected, isPublic, isStatic, isStrictfp, isSynchronized, isTransient, isVolatile
getLineNumber
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
Copyright © 2002–2018. All rights reserved.