BasicMethodLink

public class BasicMethodLink extends BasicLink implements MethodLink, WithCtElement(source)

A basic implementation of a method link.

Functions

Link copied to clipboard
public boolean equals(Object o)
Link copied to clipboard
public CtMethod<? extends Object> getCtElement()
Returns the CtElement associated with the element behind this link.
Link copied to clipboard
public String identifier()
Returns the identifier of this identifiable object.
Link copied to clipboard
public T invoke<T>(Object instance, Array<Object> args)
Invokes the method linked by this method link on the given instance with the given arguments.
Link copied to clipboard
public T invokeStatic<T>(Array<Object> args)
Invokes the method linked by this method link with the given arguments.
Link copied to clipboard
public Link.Kind kind()
Link copied to clipboard
public int modifiers()
Return the bit representation of the modifiers of this link.
Link copied to clipboard
public String name()
Returns the name of this link.
Link copied to clipboard
public static BasicMethodLink of(Method method)

public static BasicMethodLink of(ObjectCallable<Method> callable)
Returns a type link for the method retrieved by the given callable.
Link copied to clipboard
public Method reflection()
Link copied to clipboard
Returns the return type of the method linked by this method link.
Link copied to clipboard
public String string()
Returns a human-readable string representation of this object.
Link copied to clipboard
Returns the type of this link.
Link copied to clipboard
Returns the list of this link.