public class DefaultJavaConstructor extends AbstractBaseMethod implements JavaConstructor
Constructor and Description |
---|
DefaultJavaConstructor() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getCodeBlock()
Retrieve the complete codeblock of the constructor, including the sourcecode.
|
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() |
getDeclaringClass, getExceptions, getExceptionTypes, getParameterByName, getParameters, getParameterTypes, getParameterTypes, getSourceCode, getTagsByName, isPublic, isVarArgs, setExceptions, setParameters, setSourceCode
getTagByName
getModifiers, getName, getParentClass, isAbstract, isFinal, isNative, isPrivate, isProtected, isStatic, isStrictfp, isSynchronized, isTransient, isVolatile, setModifiers, setName, setParentClass
getAnnotations, getComment, getNamedParameter, getTagByName, getTags, getTagsByName, setAnnotations, setComment, setTags
getLineNumber, getModelWriter, getSource, setLineNumber, setModelWriterFactory, setSource
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getExceptions, getExceptionTypes, getParameterByName, getParameters, getParameterTypes, getSourceCode, isVarArgs
getLineNumber, getSource
getAnnotations, getComment, getNamedParameter, getTagByName, getTags, getTagsByName
getDeclaringClass, getModifiers, getName, isAbstract, isFinal, isNative, isPrivate, isProtected, isPublic, isStatic, isStrictfp, isSynchronized, isTransient, isVolatile
getParentClass
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)
JavaConstructor
true
if this constructor matches the parameterTypes, assuming it's a non-varArg constructor.signatureMatches
in interface JavaConstructor
true
if signature matches, otherwise false
public boolean signatureMatches(List<JavaType> parameterTypes, boolean varArgs)
JavaConstructor
true
if this constructor matches the parameterTypes and matches the varArg argument.signatureMatches
in interface JavaConstructor
signatureMatches
in class AbstractBaseMethod
true
if signature matches, otherwise false
public String getCodeBlock()
getCodeBlock
in interface JavaConstructor
getCodeBlock
in interface JavaModel
Copyright © 2002–2016. All rights reserved.