Enum Advice.OffsetMapping.Context.ForMethodExit

    • Method Detail

      • values

        public static Advice.OffsetMapping.Context.ForMethodExit[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (Advice.OffsetMapping.Context.ForMethodExit c : Advice.OffsetMapping.Context.ForMethodExit.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Advice.OffsetMapping.Context.ForMethodExit valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • of

        protected static Advice.OffsetMapping.Context of​(TypeDefinition typeDescription)
        Resolves an appropriate method exit context for the supplied entry method type.
        Parameters:
        typeDescription - The type that is returned by the enter method.
        Returns:
        An appropriate context for the supplied entry method type.
      • isInitialized

        public boolean isInitialized()
        Description copied from interface: Advice.OffsetMapping.Context
        Returns true if the advice is applied on a fully initialized instance, i.e. describes if the this instance is available or still uninitialized during calling the advice.
        Specified by:
        isInitialized in interface Advice.OffsetMapping.Context
        Returns:
        true if the advice is applied onto a fully initialized method.