Package net.sourceforge.pmd.lang.ast
Interface QualifiedName
-
public interface QualifiedName
Basic interface for qualified names usable in the metrics framework. Qualified names identify unambiguously operations and classes across the analysed project. Language specific pmd modules should have at most one implementation of this interface, to allow safe downcasting from QualifiedName to e.g. JavaQualifiedName.- Author:
- Clément Fournier
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description QualifiedName
getClassName()
Returns the qualified name of the class the resource is located in.boolean
isClass()
Returns true if the resource addressed by this qualified name is a class.boolean
isOperation()
Returns true if the resource addressed by this qualified name is an operation.java.lang.String
toString()
-
-
-
Method Detail
-
toString
java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getClassName
QualifiedName getClassName()
Returns the qualified name of the class the resource is located in. If this instance addresses a class, returns this instance.- Returns:
- The qualified name of the class
-
isClass
boolean isClass()
Returns true if the resource addressed by this qualified name is a class.- Returns:
- true if the resource addressed by this qualified name is a class.
-
isOperation
boolean isOperation()
Returns true if the resource addressed by this qualified name is an operation.- Returns:
- true if the resource addressed by this qualified name is an operation.
-
-