public final class Signatures extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
getClassSignature(com.google.common.reflect.TypeToken<?> interfaceType) |
static String |
getFieldSignature(com.google.common.reflect.TypeToken<?> fieldType) |
static String |
getMethodSignature(org.objectweb.asm.commons.Method method,
com.google.common.reflect.TypeToken<?>... types)
Generates signature for the given method.
|
static void |
visitTypeSignature(com.google.common.reflect.TypeToken<?> type,
org.objectweb.asm.signature.SignatureVisitor visitor) |
public static String getClassSignature(com.google.common.reflect.TypeToken<?> interfaceType)
public static String getMethodSignature(org.objectweb.asm.commons.Method method, com.google.common.reflect.TypeToken<?>... types)
method - Method that needs signature to be generatedtypes - List of TypeToken that matches with the number of arguments in
the given method. For a given method argument, if the coresponding
TypeToken is non-null, it will be used to generate the
type parameter in the signature, otherwise, the one in the method will be used.
It's useful if the method is parameterized so that parameterize type information can be passed
through the type tokens.public static String getFieldSignature(com.google.common.reflect.TypeToken<?> fieldType)
public static void visitTypeSignature(com.google.common.reflect.TypeToken<?> type,
org.objectweb.asm.signature.SignatureVisitor visitor)
Copyright © 2019 CDAP Licensed under the Apache License, Version 2.0.