Class MethodLocation
- java.lang.Object
- 
- org.codehaus.mojo.jaxb2.schemageneration.postprocessing.javadoc.location.PackageLocation
- 
- org.codehaus.mojo.jaxb2.schemageneration.postprocessing.javadoc.location.ClassLocation
- 
- org.codehaus.mojo.jaxb2.schemageneration.postprocessing.javadoc.location.FieldLocation
- 
- org.codehaus.mojo.jaxb2.schemageneration.postprocessing.javadoc.location.MethodLocation
 
 
 
 
- 
- All Implemented Interfaces:
- Comparable<SortableLocation>,- SortableLocation
 
 public class MethodLocation extends FieldLocation Comparable path structure to locate a particular method within compilation unit.- Since:
- 2.0
- Author:
- Lennart Jörelid, jGuru Europe AB
 
- 
- 
Field SummaryFields Modifier and Type Field Description static StringNO_PARAMETERSSignature for a method without any parameters.static StringPARAMETER_SEPARATORSeparator for a method's parameters.
 - 
Constructor SummaryConstructors Constructor 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.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetParametersAsString()StringgetPath()Always appends the effective className to the path from the superclassPackageLocation.inthashCode()booleanhasNoParameters()StringtoString()- 
Methods inherited from class org.codehaus.mojo.jaxb2.schemageneration.postprocessing.javadoc.location.FieldLocationgetAnnotationRenamedTo, getMemberName
 - 
Methods inherited from class org.codehaus.mojo.jaxb2.schemageneration.postprocessing.javadoc.location.ClassLocationgetClassName
 - 
Methods inherited from class org.codehaus.mojo.jaxb2.schemageneration.postprocessing.javadoc.location.PackageLocationcompareTo, equals, getPackageName, isEqualToPath
 
- 
 
- 
- 
- 
Field Detail- 
NO_PARAMETERSpublic static final String NO_PARAMETERS Signature for a method without any parameters.- See Also:
- Constant Field Values
 
 - 
PARAMETER_SEPARATORpublic static final String PARAMETER_SEPARATOR Separator for a method's parameters.- See Also:
- Constant Field Values
 
 
- 
 - 
Constructor Detail- 
MethodLocationpublic 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.- 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- nullif 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- nullif none is provided.
- parameters- The names of the types which are parameters to this method.
 
 
- 
 - 
Method Detail- 
getPathpublic String getPath() Always appends the effective className to the path from the superclassPackageLocation. If theClassLocation.getAnnotationRenamedTo()method returns a non-null value, that value is the effective className. Otherwise, theClassLocation.getClassName()method is used as the effective className. This is to handle renames such as provided in aXmlTypeannotation'sXmlType.name()attribute value.- Specified by:
- getPathin interface- SortableLocation
- Overrides:
- getPathin class- FieldLocation
- Returns:
- the path of the PackageLocation superclass, appended with the effective className.
- See Also:
- XmlType,- XmlAttribute.name(),- XmlElement.name()
 
 - 
toStringpublic String toString() - Overrides:
- toStringin class- FieldLocation
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- FieldLocation
 
 - 
getParametersAsStringpublic String getParametersAsString() - Returns:
- The parameters, concatenated into a String.
 
 - 
hasNoParameterspublic boolean hasNoParameters() - Returns:
- True if this MethodLocation has no parameters.
 
 
- 
 
-