Class ClassInfo.EnclosingMethodInfo

java.lang.Object
org.jboss.jandex.ClassInfo.EnclosingMethodInfo
Enclosing class:
ClassInfo

public static final class ClassInfo.EnclosingMethodInfo extends Object
Provides information on the enclosing method or constructor for a local or anonymous class, if available.
  • Method Details

    • name

      public String name()
      Returns the name of the method or constructor.
      Returns:
      the name of the method or constructor
    • returnType

      public Type returnType()
      Returns the return type of the enclosing method.
      Returns:
      the return type
    • parameters

      public List<Type> parameters()
      Returns the list of parameter types declared by the enclosing method or constructor.

      The list may be empty, but never null.

      Returns:
      the list of parameter types
    • enclosingClass

      public DotName enclosingClass()
      Returns the name of the class which declares the enclosing method or constructor.
      Returns:
      the name of the class which declares the enclosing method or constructor
    • toString

      public String toString()
      Overrides:
      toString in class Object