All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.stephanenicolas.mimic.annotations.MimicMethod Maven / Gradle / Ivy

Go to download

The annotations of the library. Should be included in runtime scope of projects using mimic.

The newest version!
package com.github.stephanenicolas.mimic.annotations;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Target({ })
@Retention(RetentionPolicy.CLASS)
/** Defines how to mimic methods. Can only be used inside {@link Mimic}. */
public @interface MimicMethod {

    /** The name of the method to mimic. Due to an issue in javassist (#9 on github), one of the overloads will be picked here.*/
    String methodName();

    /** The mode of mimicing. Defaults to {@link MimicMode.AFTER_SUPER}.*/
    MimicMode mode() default MimicMode.AFTER_SUPER;

    /** The method after or before which to inject mimiced code. Only used for {@link MimicMode#AFTER} and  {@link MimicMode#BEFORE}*/
    String insertionMethod() default "";
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy