public class DefaultJavaConstructor extends DefaultJavaExecutable implements JavaConstructor
| 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() |
getCallSignature, getExceptions, getExceptionTypes, getParameterByName, getParameters, getParameterTypes, getParameterTypes, getReturns, getSignature, getSourceCode, getTagsByName, isPublic, isVarArgs, setExceptions, setParameters, setSourceCodegetTagByNamegetDeclaringClass, getModifiers, getName, isAbstract, isFinal, isNative, isPrivate, isProtected, isStatic, isStrictfp, isSynchronized, isTransient, isVolatile, setDeclaringClass, setModifiers, setNamegetAnnotations, getComment, getNamedParameter, getSource, getTagByName, getTags, getTagsByName, setAnnotations, setComment, setSource, setTagsgetLineNumber, getModelWriter, setLineNumber, setModelWriterFactoryclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetCallSignature, getDeclaringClass, getExceptions, getExceptionTypes, getParameterByName, getParameters, getParameterTypes, getParameterTypes, getSourceCode, isVarArgsgetAnnotations, getComment, getNamedParameter, getTagByName, getTags, getTagsByNamegetLineNumbergetModifiers, getName, isAbstract, isFinal, isNative, isPrivate, isProtected, isPublic, isStatic, isStrictfp, isSynchronized, isTransient, isVolatilepublic void setTypeParameters(java.util.List<JavaTypeVariable<JavaConstructor>> typeParameters)
public java.util.List<JavaTypeVariable<JavaConstructor>> getTypeParameters()
GenericDeclaration.getTypeParameters()getTypeParameters in interface JavaGenericDeclarationnullpublic boolean signatureMatches(java.util.List<JavaType> parameterTypes)
true if this constructor matches the parameterTypes, assuming it's a non-varArg constructor.signatureMatches in interface JavaConstructorparameterTypes - the parameter typestrue if signature matches, otherwise falsepublic boolean signatureMatches(java.util.List<JavaType> parameterTypes, boolean varArgs)
true if this constructor matches the parameterTypes and matches the varArg argument.signatureMatches in interface JavaConstructorsignatureMatches in class DefaultJavaExecutableparameterTypes - the parameter typesvarArgs - true if the last argument should be a varArg, otherwise falsetrue if signature matches, otherwise falsepublic java.lang.String getCodeBlock()
getCodeBlock in interface JavaModelpublic java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectCopyright © 2002-2018. All Rights Reserved.