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, setSourceCodegetTagByNamegetModifiers, getName, getParentClass, isAbstract, isFinal, isNative, isPrivate, isProtected, isStatic, isStrictfp, isSynchronized, isTransient, isVolatile, setModifiers, setName, setParentClassgetAnnotations, getComment, getNamedParameter, getTagByName, getTags, getTagsByName, setAnnotations, setComment, setTagsgetLineNumber, getModelWriter, getSource, setLineNumber, setModelWriterFactory, setSourceclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetExceptions, getExceptionTypes, getParameterByName, getParameters, getParameterTypes, getSourceCode, isVarArgsgetLineNumber, getSourcegetAnnotations, getComment, getNamedParameter, getTagByName, getTags, getTagsByNamegetDeclaringClass, getModifiers, getName, isAbstract, isFinal, isNative, isPrivate, isProtected, isPublic, isStatic, isStrictfp, isSynchronized, isTransient, isVolatilegetParentClasspublic void setTypeParameters(List<JavaTypeVariable<JavaConstructor>> typeParameters)
public List<JavaTypeVariable<JavaConstructor>> getTypeParameters()
GenericDeclaration.getTypeParameters()getTypeParameters in interface JavaGenericDeclarationnullpublic boolean signatureMatches(List<JavaType> parameterTypes)
JavaConstructortrue if this constructor matches the parameterTypes, assuming it's a non-varArg constructor.signatureMatches in interface JavaConstructortrue if signature matches, otherwise falsepublic boolean signatureMatches(List<JavaType> parameterTypes, boolean varArgs)
JavaConstructortrue if this constructor matches the parameterTypes and matches the varArg argument.signatureMatches in interface JavaConstructorsignatureMatches in class AbstractBaseMethodtrue if signature matches, otherwise falsepublic String getCodeBlock()
getCodeBlock in interface JavaConstructorgetCodeBlock in interface JavaModelCopyright © 2002–2016. All rights reserved.