net.sourceforge.pmd.lang.ast.QualifiedNamepublic final class JavaQualifiedName extends java.lang.Object implements net.sourceforge.pmd.lang.ast.QualifiedName
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
equals(java.lang.Object o) |
|
java.lang.String[] |
getClasses() |
Returns the class specific part of the name.
|
JavaQualifiedName |
getClassName() |
|
java.lang.String |
getOperation() |
Returns the operation specific part of the name.
|
java.lang.String[] |
getPackages() |
Returns the packages.
|
int |
hashCode() |
|
boolean |
isClass() |
|
boolean |
isLocalClass() |
Returns true if this qname identifies a local class.
|
boolean |
isOperation() |
|
static JavaQualifiedName |
ofClass(java.lang.Class<?> clazz) |
Gets the qualified name of a class.
|
static JavaQualifiedName |
ofString(java.lang.String name) |
Parses a qualified name given in the format defined for this implementation.
|
java.lang.String |
toString() |
public static JavaQualifiedName ofClass(java.lang.Class<?> clazz)
clazz - Class objectpublic static JavaQualifiedName ofString(java.lang.String name)
FORMAT). Examples:
com.company.MyClass$Nested#myMethod(String, int)
.MyClass$Nested
com.foo.Class$1LocalClass
name - The name to parse.public boolean isClass()
isClass in interface net.sourceforge.pmd.lang.ast.QualifiedNamepublic boolean isOperation()
isOperation in interface net.sourceforge.pmd.lang.ast.QualifiedNamepublic boolean isLocalClass()
public java.lang.String[] getPackages()
public java.lang.String[] getClasses()
public java.lang.String getOperation()
public JavaQualifiedName getClassName()
getClassName in interface net.sourceforge.pmd.lang.ast.QualifiedNamepublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in interface net.sourceforge.pmd.lang.ast.QualifiedNametoString in class java.lang.ObjectCopyright © 2002–2018 PMD. All rights reserved.