public class MethodLocation extends FieldLocation
| Modifier and Type | Field and Description |
|---|---|
static String |
NO_PARAMETERS
Signature for a method without any parameters.
|
static String |
PARAMETER_SEPARATOR
Separator for a method's parameters.
|
| Constructor and Description |
|---|
MethodLocation(String packageName,
String className,
String classXmlName,
String memberName,
String memberXmlName,
List<com.thoughtworks.qdox.model.JavaParameter> parameters)
Creates a new MethodLocation with the supplied package, class and member names.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getParametersAsString() |
String |
getPath()
Always appends the effective className to the path from the superclass
PackageLocation. |
int |
hashCode() |
boolean |
hasNoParameters() |
String |
toString() |
getAnnotationRenamedTo, getMemberNamegetClassNamecompareTo, equals, getPackageName, isEqualToPathpublic static final String NO_PARAMETERS
public static final String PARAMETER_SEPARATOR
public MethodLocation(String packageName, String className, String classXmlName, String memberName, String memberXmlName, List<com.thoughtworks.qdox.model.JavaParameter> parameters)
packageName - The name of the package for a class potentially holding JavaDoc. Cannot be null.className - The (simple) name of a class. Cannot be null or empty.classXmlName - The name given as the XmlType.name() value of an annotation placed on the Class,
or null if none is provided.memberName - The name of a (method or) field. Cannot be null or empty.memberXmlName - The name given as the XmlElement.name() or XmlAttribute.name() value of
an annotation placed on this Field, or null if none is provided.parameters - The names of the types which are parameters to this method.public String getPath()
PackageLocation.
If the ClassLocation.getAnnotationRenamedTo() method returns a non-null value, that value is the effective className.
Otherwise, the ClassLocation.getClassName() method is used as the effective className.
This is to handle renames such as provided in a XmlType annotation's
XmlType.name() attribute value.getPath in interface SortableLocationgetPath in class FieldLocationXmlType,
XmlAttribute.name(),
XmlElement.name()public String toString()
toString in class FieldLocationpublic int hashCode()
hashCode in class FieldLocationpublic String getParametersAsString()
public boolean hasNoParameters()
Copyright © 2005–2018 MojoHaus. All rights reserved.