Class ApexQualifiedName
- java.lang.Object
-
- net.sourceforge.pmd.lang.apex.ast.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 Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
String[]
getClasses()
ApexQualifiedName
getClassName()
String
getNameSpace()
Gets the namespace prefix of this resource.String
getOperation()
int
hashCode()
boolean
isClass()
boolean
isOperation()
static ApexQualifiedName
ofString(String toParse)
Parses a string conforming to the format defined below and returns an ApexQualifiedName.String
toString()
-
-
-
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
-
isClass
public boolean isClass()
- Specified by:
isClass
in interfaceQualifiedName
-
isOperation
public boolean isOperation()
- Specified by:
isOperation
in interfaceQualifiedName
-
toString
public String toString()
- Specified by:
toString
in interfaceQualifiedName
- Overrides:
toString
in classObject
-
getClassName
public ApexQualifiedName getClassName()
- Specified by:
getClassName
in interfaceQualifiedName
-
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
-
-
-