jodd-proxetta/src/main/java/jodd/methref/Methref.java
public String ref() {
		if (instance == null) {
			return null;
		}
		try {
			Field f = instance.getClass().getDeclaredField("$__methodName$0");
			f.setAccessible(true);
			Object name = f.get(instance);
			if (name == null) {
				throw new MethrefException("Target method not collected");
			}
			return name.toString();
		} catch (Exception ex) {
			if (ex instanceof MethrefException) {
				throw ((MethrefException) ex);
			}
			throw new MethrefException("Methref field not found", ex);
		}
	}
public String ref() {
		if (instance == null) {
			return null;
		}
		try {
			Field f = instance.getClass().getDeclaredField("$__methodName$0");
			f.setAccessible(true);
			Object name = f.get(instance);
			if (name == null) {
				throw new MethrefException("Target method not collected");
			}
			return name.toString();
		} catch (Exception ex) {
			if (ex instanceof MethrefException) {
				throw ((MethrefException) ex);
			}
			throw new MethrefException("Methref field not found", ex);
		}
	}
public String ref ( ) { if ( instance == null ) { return null ; } try { Field f = instance . getClass ( ) . getDeclaredField ( "$__methodName$0" ) ; f . setAccessible ( true ) ; Object name = f . get ( instance ) ; if ( name == null ) { throw new MethrefException ( "Target method not collected" ) ; } return name . toString ( ) ; } catch ( Exception ex ) { if ( ex instanceof MethrefException ) { throw ( ( MethrefException ) ex ) ; } throw new MethrefException ( "Methref field not found" , ex ) ; } }
Returns name of method reference. Target {@link #on(Class) method} has
to be {@link #to() called} before it can return its reference.
Returns name of method reference . Target {