Class ThrowsSignature

java.lang.Object
io.moderne.compiled.internal.signature.ThrowsSignature

public class ThrowsSignature extends Object
  • Constructor Details

  • Method Details

    • fromJavaType

      public static @Nullable List<ThrowsSignature> fromJavaType(@Nullable List<? extends org.openrewrite.java.tree.JavaType> thrownExceptions)
      Parameters:
      thrownExceptions - The list of thrown exceptions.
      Returns:
      The list of ThrowsSignatures. "If the throws clause of a method or constructor does not involve type variables, the ThrowsSignature may be elided from the MethodTypeSignature." (JVMS 4.3.4)
    • toString

      public String toString()
      Overrides:
      toString in class Object