chord.program
Class MethodSign
java.lang.Object
chord.program.MethodSign
- Direct Known Subclasses:
- MethodElem
public class MethodSign
- extends java.lang.Object
Representation of the unique identifier of any field or method in the program.
Its format is mName:mDesc@cName where:
mName denotes the name of the field/method.
mDesc denotes the descriptor of the field/method.
cName denotes the fully-qualified name of the class declaring the field/method.
- Author:
- Mayur Naik (mhn@cs.stanford.edu)
|
Field Summary |
java.lang.String |
cName
|
java.lang.String |
mDesc
|
java.lang.String |
mName
|
|
Constructor Summary |
MethodSign(java.lang.String mName,
java.lang.String mDesc,
java.lang.String cName)
Creates the representation of the unique identifier of the given field/method. |
|
Method Summary |
static MethodSign |
parse(java.lang.String s)
Provides the representation of the unique identifier of the given field/method. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
mName
public final java.lang.String mName
mDesc
public final java.lang.String mDesc
cName
public final java.lang.String cName
MethodSign
public MethodSign(java.lang.String mName,
java.lang.String mDesc,
java.lang.String cName)
- Creates the representation of the unique identifier of the given field/method.
- Parameters:
mName - The name of the field/method.mDesc - The descriptor of the field/method.cName - The fully-qualified name of the class declaring the field/method.
parse
public static MethodSign parse(java.lang.String s)
- Provides the representation of the unique identifier of the given field/method.
- Parameters:
s - A string of the form mName:mDesc@cName uniquely identifying a field/method.
- Returns:
- The representation of the unique identifier of the given field/method.