-
- All Implemented Interfaces:
public final class ApexQualifiedName
Qualified name of an apex class or method.
-
-
Method Summary
Modifier and Type Method Description Array<String>
getClasses()
String
getOperation()
boolean
isClass()
Returns true if the resource addressed by this qualified name is a class. boolean
isOperation()
Returns true if the resource addressed by this qualified name is an operation. String
toString()
ApexQualifiedName
getClassName()
Returns the qualified name of the class the resource is located in. int
hashCode()
boolean
equals(Object obj)
static ApexQualifiedName
ofString(String toParse)
Parses a string conforming to the format defined below and returns an ApexQualifiedName. -
-
Method Detail
-
getClasses
Array<String> getClasses()
-
getOperation
String getOperation()
-
isClass
boolean isClass()
Returns true if the resource addressed by this qualified name is a class.
-
isOperation
boolean isOperation()
Returns true if the resource addressed by this qualified name is an operation.
-
getClassName
ApexQualifiedName getClassName()
Returns the qualified name of the class the resource is located in. If this instance addresses a class, returns this instance.
-
hashCode
int hashCode()
-
ofString
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:
OuterClass.InnerClass
: name of an inner classClass#method(String, int)
: name of an operation
- Parameters:
toParse
- The string to parse
-
-
-
-