Class JavaOperationQualifiedName
- java.lang.Object
-
- net.sourceforge.pmd.lang.java.ast.JavaQualifiedName
-
- net.sourceforge.pmd.lang.java.qname.JavaOperationQualifiedName
-
- All Implemented Interfaces:
net.sourceforge.pmd.lang.ast.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 intbuildHashCode()Deprecated.Computes the hashcode.protected StringbuildToString()Deprecated.Construct the toString once.JavaTypeQualifiedNamegetClassName()Deprecated.StringgetOperation()Deprecated.Returns the operation specific part of the name.booleanisClass()Deprecated.booleanisLambda()Deprecated.Returns true if this qualified name identifies a lambda expression.booleanisOperation()Deprecated.protected booleanstructurallyEquals(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:
getClassNamein interfacenet.sourceforge.pmd.lang.ast.QualifiedName- Specified by:
getClassNamein 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:
getOperationin classJavaQualifiedName- Returns:
- The operation string.
-
structurallyEquals
protected boolean structurallyEquals(JavaQualifiedName qname)
Deprecated.Description copied from class:JavaQualifiedNameReturns 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:
structurallyEqualsin 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:JavaQualifiedNameComputes the hashcode. Called once, then cached. Since QualifiedNames are mostly used as the keys of a map, caching the hashcode makes sense.- Specified by:
buildHashCodein classJavaQualifiedName
-
buildToString
protected String buildToString()
Deprecated.Description copied from class:JavaQualifiedNameConstruct the toString once. Called only once per instance- Specified by:
buildToStringin classJavaQualifiedName
-
-