Interface MethodHandler

All Known Implementing Classes:
AbstractMethodHandler, AdjacencyMethodHandler, IncidenceMethodHandler, InVertexMethodHandler, OutVertexMethodHandler, PropertyMethodHandler

public interface MethodHandler
Allows handling of method on frames. Only the first method handler found is called. Instances of this class should be threadsafe.
  • Method Summary

    Modifier and Type Method Description
    Class<? extends Annotation> getAnnotationType()  
    <E> net.bytebuddy.dynamic.DynamicType.Builder<E> processMethod​(net.bytebuddy.dynamic.DynamicType.Builder<E> builder, Method method, Annotation annotation)  
  • Method Details

    • getAnnotationType

      Class<? extends Annotation> getAnnotationType()
      Returns:
      The annotation type that this handler responds to.
    • processMethod

      <E> net.bytebuddy.dynamic.DynamicType.Builder<E> processMethod​(net.bytebuddy.dynamic.DynamicType.Builder<E> builder, Method method, Annotation annotation)
      Type Parameters:
      E - The loaded type of the Byte Buddy Builder
      Parameters:
      method - The method being called on the frame.
      annotation - The annotation
      builder - ByteBuddy Builder class to expand.
      Returns:
      A return value for the method.