Class Descriptor
java.lang.Object
com.ibm.wala.types.Descriptor
A method descriptor; something like: (Ljava/langString;)Ljava/lang/Class;
Descriptors are canonical
-
Method Summary
Modifier and TypeMethodDescriptionboolean
static Descriptor
static Descriptor
static Descriptor
findOrCreate
(TypeName[] parameters, TypeName returnType) static Descriptor
findOrCreateUTF8
(Language l, String s) static Descriptor
int
TypeName[]
int
hashCode()
toString()
-
Method Details
-
findOrCreate
- Parameters:
parameters
- the parameters for a descriptorreturnType
- the return type- Returns:
- the canonical representative for this descriptor value
-
findOrCreate
public static Descriptor findOrCreate(Language l, ImmutableByteArray b) throws IllegalArgumentException - Parameters:
b
- a byte array holding the string representation of this descriptor- Returns:
- the canonical representative for this descriptor value
- Throws:
IllegalArgumentException
-
findOrCreate
- Throws:
IllegalArgumentException
-
findOrCreateUTF8
- Parameters:
s
- string representation of this descriptor- Returns:
- the canonical representative for this descriptor value
- Throws:
IllegalArgumentException
-
findOrCreateUTF8
- Parameters:
s
- string representation of this descriptor- Returns:
- the canonical representative for this descriptor value
- Throws:
IllegalArgumentException
-
equals
-
hashCode
-
toString
-
toUnicodeString
- Returns:
- a unicode string representation of this descriptor
-
getReturnType
- Returns:
- the name of the return type of this descriptor
-
getParameters
- Returns:
- the type names for the parameters in this descriptor
-
getNumberOfParameters
public int getNumberOfParameters()- Returns:
- number of parameters in this descriptor
-