public class CallSiteDescriptorFactory extends Object
CallSiteDescriptor internally, and chooses the most space-efficient one based on the input.| Modifier and Type | Method and Description |
|---|---|
static CallSiteDescriptor |
create(MethodHandles.Lookup lookup,
String name,
MethodType methodType)
Creates a new call site descriptor instance.
|
static String[] |
tokenizeName(String name)
Tokenizes the composite name along colons, as well as
demangles and interns
the tokens. |
static List<String> |
tokenizeOperators(CallSiteDescriptor desc)
Tokenizes a composite operation name along pipe characters.
|
public static CallSiteDescriptor create(MethodHandles.Lookup lookup, String name, MethodType methodType)
lookup - the lookup that determines access rights at the call site. If your language runtime doesn't have
equivalents of Java access concepts, just use MethodHandles.publicLookup(). Must not be null.name - the name of the method at the call site. Must not be null.methodType - the type of the method at the call site. Must not be null.public static String[] tokenizeName(String name)
demangles and interns
the tokens. The first two tokens are not demangled as they are supposed to be the naming scheme and the name of
the operation which can be expected to consist of just alphabetical characters.name - the composite name consisting of colon-separated, possibly mangled tokens.public static List<String> tokenizeOperators(CallSiteDescriptor desc)
desc - the call site descriptor with the operationCopyright © 2012 Attila Szegedi. All Rights Reserved.