Class SignatureHelper
- java.lang.Object
-
- com.buschmais.jqassistant.plugin.java.api.scanner.SignatureHelper
-
public final class SignatureHelper extends java.lang.ObjectProvides utility functions for working with signatures.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringgetFieldSignature(java.lang.String name, java.lang.String rawSignature)Return a field signature.static java.lang.StringgetMethodSignature(java.lang.String name, java.lang.String rawSignature)Return a method signature.static java.lang.StringgetObjectType(java.lang.String desc)Returns the Java type name corresponding to the given internal name.static java.lang.StringgetType(java.lang.String desc)Returns the Java type name type corresponding to the given type descriptor.static java.lang.StringgetType(org.objectweb.asm.Type t)Return the type name of the given ASM type.
-
-
-
Method Detail
-
getObjectType
public static java.lang.String getObjectType(java.lang.String desc)
Returns the Java type name corresponding to the given internal name.- Parameters:
desc- The internal name.- Returns:
- The type name.
-
getType
public static java.lang.String getType(java.lang.String desc)
Returns the Java type name type corresponding to the given type descriptor.- Parameters:
desc- The type descriptor.- Returns:
- The type name.
-
getType
public static java.lang.String getType(org.objectweb.asm.Type t)
Return the type name of the given ASM type.- Parameters:
t- The ASM type.- Returns:
- The type name.
-
getMethodSignature
public static java.lang.String getMethodSignature(java.lang.String name, java.lang.String rawSignature)Return a method signature.- Parameters:
name- The method name.rawSignature- The signature containing parameter, return and exception values.- Returns:
- The method signature.
-
getFieldSignature
public static java.lang.String getFieldSignature(java.lang.String name, java.lang.String rawSignature)Return a field signature.- Parameters:
name- The field name.rawSignature- The signature containing the type value.- Returns:
- The field signature.
-
-