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 TypeMethodDescriptionstatic Descriptorstatic Descriptorstatic DescriptorfindOrCreate(TypeName[] parameters, TypeName returnType) static DescriptorfindOrCreateUTF8(Language l, String s) static DescriptorintTypeName[]inthashCode()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
-
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
-