Class ApexQualifiedName
- java.lang.Object
-
- net.sourceforge.pmd.lang.apex.ast.ApexQualifiedName
-
- All Implemented Interfaces:
net.sourceforge.pmd.lang.ast.QualifiedName
public final class ApexQualifiedName extends Object implements net.sourceforge.pmd.lang.ast.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 booleanequals(Object obj)String[]getClasses()ApexQualifiedNamegetClassName()StringgetNameSpace()Gets the namespace prefix of this resource.StringgetOperation()inthashCode()booleanisClass()booleanisOperation()static ApexQualifiedNameofString(String toParse)Parses a string conforming to the format defined below and returns an ApexQualifiedName.StringtoString()
-
-
-
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:
isClassin interfacenet.sourceforge.pmd.lang.ast.QualifiedName
-
isOperation
public boolean isOperation()
- Specified by:
isOperationin interfacenet.sourceforge.pmd.lang.ast.QualifiedName
-
toString
public String toString()
-
getClassName
public ApexQualifiedName getClassName()
- Specified by:
getClassNamein interfacenet.sourceforge.pmd.lang.ast.QualifiedName
-
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
-
-
-