Class ApexQualifiedName

  • All Implemented Interfaces:
    QualifiedName

    public final class ApexQualifiedName
    extends Object
    implements QualifiedName
    Qualified name of an apex class or method.
    Author:
    Clément Fournier
    • Method Detail

      • getOperation

        public String getOperation()
      • getClasses

        public String[] getClasses()
      • getNameSpace

        public String getNameSpace()
        Gets the namespace prefix of this resource.
        Returns:
        The namespace prefix
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • ofString

        public static ApexQualifiedName ofString​(String toParse)
        Parses a string conforming to the format defined below and returns an ApexQualifiedName.

        Here are some examples of the format:

        • namespace__OuterClass.InnerClass: name of an inner class
        • namespace__Class#method(String, int): name of an operation
        Parameters:
        toParse - The string to parse
        Returns:
        An ApexQualifiedName, or null if the string couldn't be parsed