Interface Signature<T>

All Known Implementing Classes:
Signature

@NonExtendable @Internal @Experimental public interface Signature<T>
Represents a function signature.

This interface should only be extended by Signature.

It will contain methods when Signature has been properly reworked.

  • Method Details

    • returnType

      @Nullable @Nullable Class<T> returnType()
      Returns:
      The type of this parameter.
    • parameters

      @NotNull @UnmodifiableView @NotNull Parameters parameters()
      Returns:
      An unmodifiable view of all the parameters that this signature has.
    • contract

      @Experimental Contract contract()
      Returns:
      The contract of this signature.
    • addCall

      @Experimental void addCall(FunctionReference<?> reference)
      Adds a reference to the clearing list.
      Parameters:
      reference - The reference.
    • isSingle

      default boolean isSingle()
      Returns:
      Whether this signature returns single values.