Class JavaOperationQualifiedName

  • All Implemented Interfaces:
    net.sourceforge.pmd.lang.ast.QualifiedName

    public final class JavaOperationQualifiedName
    extends JavaQualifiedName
    Specializes JavaQualifiedName for operations.
    Since:
    6.1.0
    Author:
    Clément Fournier
    • Method Detail

      • isOperation

        public boolean isOperation()
      • isClass

        public boolean isClass()
      • isLambda

        public boolean isLambda()
        Returns true if this qualified name identifies a lambda expression.
      • getOperation

        public java.lang.String getOperation()
        Returns the operation specific part of the name. It identifies an operation in its namespace.
        Overrides:
        getOperation in class JavaQualifiedName
        Returns:
        The operation string.
      • buildHashCode

        protected int buildHashCode()
        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 class JavaQualifiedName