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 java.lang.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 boolean
equals(java.lang.Object obj)
java.lang.String[]
getClasses()
ApexQualifiedName
getClassName()
java.lang.String
getNameSpace()
Gets the namespace prefix of this resource.java.lang.String
getOperation()
int
hashCode()
boolean
isClass()
boolean
isOperation()
static ApexQualifiedName
ofString(java.lang.String toParse)
Parses a string conforming to the format defined below and returns an ApexQualifiedName.java.lang.String
toString()
-
-
-
Method Detail
-
getOperation
public java.lang.String getOperation()
-
getClasses
public java.lang.String[] getClasses()
-
getNameSpace
public java.lang.String getNameSpace()
Gets the namespace prefix of this resource.- Returns:
- The namespace prefix
-
isClass
public boolean isClass()
- Specified by:
isClass
in interfacenet.sourceforge.pmd.lang.ast.QualifiedName
-
isOperation
public boolean isOperation()
- Specified by:
isOperation
in interfacenet.sourceforge.pmd.lang.ast.QualifiedName
-
toString
public java.lang.String toString()
- Specified by:
toString
in interfacenet.sourceforge.pmd.lang.ast.QualifiedName
- Overrides:
toString
in classjava.lang.Object
-
getClassName
public ApexQualifiedName getClassName()
- Specified by:
getClassName
in interfacenet.sourceforge.pmd.lang.ast.QualifiedName
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
ofString
public static ApexQualifiedName ofString(java.lang.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
-
-
-