Interface DynamicType.Builder.MethodDefinition.TypeVariableDefinition<U>

    • Method Detail

      • typeVariable

        DynamicType.Builder.MethodDefinition.TypeVariableDefinition.Annotatable<U> typeVariable​(java.lang.String symbol)
        Defines a method variable to be declared by the currently defined method. The defined method variable does not define any bounds.
        Parameters:
        symbol - The symbol of the type variable.
        Returns:
        A new builder that is equal to the current builder but where the currently defined method declares the specified type variable.
      • typeVariable

        DynamicType.Builder.MethodDefinition.TypeVariableDefinition.Annotatable<U> typeVariable​(java.lang.String symbol,
                                                                                                java.lang.reflect.Type... bound)
        Defines a method variable to be declared by the currently defined method.
        Parameters:
        symbol - The symbol of the type variable.
        bound - The bounds of the type variables. Can also be TargetType for any type if a bound type should be equal to the currently instrumented type.
        Returns:
        A new builder that is equal to the current builder but where the currently defined method declares the specified type variable.
      • typeVariable

        DynamicType.Builder.MethodDefinition.TypeVariableDefinition.Annotatable<U> typeVariable​(java.lang.String symbol,
                                                                                                java.util.List<? extends java.lang.reflect.Type> bounds)
        Defines a method variable to be declared by the currently defined method.
        Parameters:
        symbol - The symbol of the type variable.
        bounds - The bounds of the type variables. Can also be TargetType for any type if a bound type should be equal to the currently instrumented type.
        Returns:
        A new builder that is equal to the current builder but where the currently defined method declares the specified type variable.
      • typeVariable

        DynamicType.Builder.MethodDefinition.TypeVariableDefinition.Annotatable<U> typeVariable​(java.lang.String symbol,
                                                                                                TypeDefinition... bound)
        Defines a method variable to be declared by the currently defined method.
        Parameters:
        symbol - The symbol of the type variable.
        bound - The bounds of the type variables. Can also be TargetType for any type if a bound type should be equal to the currently instrumented type.
        Returns:
        A new builder that is equal to the current builder but where the currently defined method declares the specified type variable.
      • typeVariable

        DynamicType.Builder.MethodDefinition.TypeVariableDefinition.Annotatable<U> typeVariable​(java.lang.String symbol,
                                                                                                java.util.Collection<? extends TypeDefinition> bounds)
        Defines a method variable to be declared by the currently defined method.
        Parameters:
        symbol - The symbol of the type variable.
        bounds - The bounds of the type variables. Can also be TargetType for any type if a bound type should be equal to the currently instrumented type.
        Returns:
        A new builder that is equal to the current builder but where the currently defined method declares the specified type variable.