Class JavaOperationQualifiedName
- java.lang.Object
-
- net.sourceforge.pmd.lang.java.ast.JavaQualifiedName
-
- net.sourceforge.pmd.lang.java.qname.JavaOperationQualifiedName
-
- All Implemented Interfaces:
QualifiedName
@Deprecated public final class JavaOperationQualifiedName extends JavaQualifiedName
Deprecated.Specializes JavaQualifiedName for operations.- Since:
- 6.1.0
- Author:
- Clément Fournier
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected int
buildHashCode()
Deprecated.Computes the hashcode.protected String
buildToString()
Deprecated.Construct the toString once.JavaTypeQualifiedName
getClassName()
Deprecated.String
getOperation()
Deprecated.Returns the operation specific part of the name.boolean
isClass()
Deprecated.boolean
isLambda()
Deprecated.Returns true if this qualified name identifies a lambda expression.boolean
isOperation()
Deprecated.protected boolean
structurallyEquals(JavaQualifiedName qname)
Deprecated.Returns true if the given qname is identical to this qname.-
Methods inherited from class net.sourceforge.pmd.lang.java.ast.JavaQualifiedName
equals, getClasses, getClassSimpleName, getPackages, hashCode, isLocalClass, isUnnamedPackage, ofClass, ofString, toString
-
-
-
-
Method Detail
-
getClassName
public JavaTypeQualifiedName getClassName()
Deprecated.- Specified by:
getClassName
in interfaceQualifiedName
- Specified by:
getClassName
in classJavaQualifiedName
-
isOperation
public boolean isOperation()
Deprecated.
-
isClass
public boolean isClass()
Deprecated.
-
isLambda
public boolean isLambda()
Deprecated.Returns true if this qualified name identifies a lambda expression.
-
getOperation
public String getOperation()
Deprecated.Returns the operation specific part of the name. It identifies an operation in its namespace.- Overrides:
getOperation
in classJavaQualifiedName
- Returns:
- The operation string.
-
structurallyEquals
protected boolean structurallyEquals(JavaQualifiedName qname)
Deprecated.Description copied from class:JavaQualifiedName
Returns true if the given qname is identical to this qname. Performs a structural comparison. Used in the implementation ofJavaQualifiedName.equals(Object)
after taking shortcuts.- Specified by:
structurallyEquals
in classJavaQualifiedName
- Parameters:
qname
- The other comparand. Can always be casted down to the subclass type in which this method is overridden
-
buildHashCode
protected int buildHashCode()
Deprecated.Description copied from class:JavaQualifiedName
Computes the hashcode. Called once, then cached. Since QualifiedNames are mostly used as the keys of a map, caching the hashcode makes sense.- Specified by:
buildHashCode
in classJavaQualifiedName
-
buildToString
protected String buildToString()
Deprecated.Description copied from class:JavaQualifiedName
Construct the toString once. Called only once per instance- Specified by:
buildToString
in classJavaQualifiedName
-
-