public class Methref<C>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static TypeCache<java.lang.Class> |
cache |
Constructor and Description |
---|
Methref(java.lang.Class<C> target)
Creates new proxified instance of target.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isMyProxy(java.lang.Object instance)
Returns
true if given object is proxified by this Methref. |
<T> java.lang.String |
lastName()
Returns name of last method invoked on proxy.
|
static java.lang.String |
lastName(java.lang.Object instance)
Returns method name of last invoked method on a proxy.
|
void |
lastName(java.lang.String name) |
java.lang.String |
name(java.util.function.Consumer<C> consumer)
Returns name of called method.
|
static <T> Methref<T> |
of(java.lang.Class<T> target)
Static factory, for convenient use.
|
C |
proxy()
Returns proxy instance that is ready to collect the method name of invoked methods.
|
public static TypeCache<java.lang.Class> cache
public Methref(java.lang.Class<C> target)
public static <T> Methref<T> of(java.lang.Class<T> target)
public java.lang.String name(java.util.function.Consumer<C> consumer)
public C proxy()
public boolean isMyProxy(java.lang.Object instance)
true
if given object is proxified by this Methref.public static java.lang.String lastName(java.lang.Object instance)
public <T> java.lang.String lastName()
public void lastName(java.lang.String name)
Copyright © 2003-present Jodd Team