Here you can find the source of getSignature(Signature signature, String nameFromAnnotation, boolean absolute)
public static String getSignature(Signature signature, String nameFromAnnotation, boolean absolute)
//package com.java2s; //License from project: Open Source License import org.aspectj.lang.Signature; public class Main { public static String getSignature(Signature signature, String nameFromAnnotation, boolean absolute) { String className = null;//from w w w . ja va 2s . c om if (!absolute) { className = signature.getDeclaringTypeName(); className = className.substring(className.lastIndexOf('.') + 1, className.length()); } return getSignature(className, signature.getName(), nameFromAnnotation, absolute); } public static String getSignature(String simpleClassName, String methodName, String nameFromAnnotation, boolean absolute) { String result = nameFromAnnotation.isEmpty() ? methodName : nameFromAnnotation; if (!absolute) { result = simpleClassName + "#" + result; } return result; } }