net.sourceforge.pmd.lang.ast.QualifiedNameJavaOperationQualifiedName, JavaTypeQualifiedNamepublic abstract class JavaQualifiedName extends java.lang.Object implements net.sourceforge.pmd.lang.ast.QualifiedName
QualifiedNameFactory.ofString(String)).
Instances of this class are immutable. They can be obtained from the
factory methods of QualifiedNameFactory, or from
JavaQualifiableNode.getQualifiedName() on AST nodes that support it.
Class qualified names follow the binary name spec.
Method qualified names don't follow a specification but allow to distinguish overloads of the same method, using parameter types and order.
JavaTypeQualifiedName,
JavaOperationQualifiedName| Constructor | Description |
|---|---|
JavaQualifiedName() |
| Modifier and Type | Method | Description |
|---|---|---|
protected abstract int |
buildHashCode() |
Computes the hashcode.
|
protected abstract java.lang.String |
buildToString() |
Construct the toString once.
|
boolean |
equals(java.lang.Object o) |
|
java.lang.String[] |
getClasses() |
Deprecated.
Use {
JavaTypeQualifiedName.getClassList(). Will be removed in 7.0.0 |
abstract JavaTypeQualifiedName |
getClassName() |
|
java.lang.String |
getClassSimpleName() |
Deprecated.
Use
JavaTypeQualifiedName.getClassSimpleName(). Will be removed in 7.0.0 |
java.lang.String |
getOperation() |
Deprecated.
Use
JavaOperationQualifiedName.getOperation(). Will be removed in 7.0.0 |
java.lang.String[] |
getPackages() |
Deprecated.
Use
JavaTypeQualifiedName.getPackageList() ()}. Will be removed in 7.0.0 |
int |
hashCode() |
|
boolean |
isLocalClass() |
Deprecated.
Use
JavaTypeQualifiedName.isLocalClass(). Will be removed in 7.0.0 |
boolean |
isUnnamedPackage() |
Deprecated.
Use
JavaTypeQualifiedName.isUnnamedPackage(). Will be removed in 7.0.0 |
static JavaQualifiedName |
ofClass(java.lang.Class<?> clazz) |
Deprecated.
Use
QualifiedNameFactory.ofClass(Class). Will be removed in 7.0.0 |
static JavaQualifiedName |
ofString(java.lang.String name) |
Deprecated.
Use
QualifiedNameFactory.ofString(String). Will be removed in 7.0.0 |
protected abstract boolean |
structurallyEquals(JavaQualifiedName qname) |
Returns true if the given qname is identical to this qname.
|
java.lang.String |
toString() |
Returns the string representation of this qualified
name.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitisClass, isOperationpublic abstract JavaTypeQualifiedName getClassName()
getClassName in interface net.sourceforge.pmd.lang.ast.QualifiedName@Deprecated public boolean isLocalClass()
JavaTypeQualifiedName.isLocalClass(). Will be removed in 7.0.0@Deprecated public java.lang.String getClassSimpleName()
JavaTypeQualifiedName.getClassSimpleName(). Will be removed in 7.0.0@Deprecated public boolean isUnnamedPackage()
JavaTypeQualifiedName.isUnnamedPackage(). Will be removed in 7.0.0@Deprecated public java.lang.String getOperation()
JavaOperationQualifiedName.getOperation(). Will be removed in 7.0.0null if QualifiedName.isOperation() returns false.null.@Deprecated public java.lang.String[] getPackages()
JavaTypeQualifiedName.getPackageList() ()}. Will be removed in 7.0.0@Deprecated public java.lang.String[] getClasses()
JavaTypeQualifiedName.getClassList(). Will be removed in 7.0.0public final boolean equals(java.lang.Object o)
equals in class java.lang.Objectprotected abstract boolean structurallyEquals(JavaQualifiedName qname)
equals(Object) after taking shortcuts.qname - The other comparand. Can always be casted down
to the subclass type in which this method is overriddenpublic final int hashCode()
hashCode in class java.lang.Objectprotected abstract int buildHashCode()
public final java.lang.String toString()
QualifiedNameFactory.ofString(String).toString in interface net.sourceforge.pmd.lang.ast.QualifiedNametoString in class java.lang.Object@Deprecated public static JavaQualifiedName ofString(java.lang.String name)
QualifiedNameFactory.ofString(String). Will be removed in 7.0.0@Deprecated public static JavaQualifiedName ofClass(java.lang.Class<?> clazz)
QualifiedNameFactory.ofClass(Class). Will be removed in 7.0.0protected abstract java.lang.String buildToString()
Copyright © 2002–2018 PMD. All rights reserved.