Package org.jboss.jandex
Class ClassInfo.EnclosingMethodInfo
- java.lang.Object
-
- org.jboss.jandex.ClassInfo.EnclosingMethodInfo
-
- Enclosing class:
- ClassInfo
public static final class ClassInfo.EnclosingMethodInfo extends java.lang.Object
Provides information on the enclosing method or constructor for a local or anonymous class, if available.
-
-
Field Summary
Fields Modifier and Type Field Description private DotName
enclosingClass
private java.lang.String
name
private Type[]
parameters
private Type
returnType
-
Constructor Summary
Constructors Constructor Description EnclosingMethodInfo(java.lang.String name, Type returnType, Type[] parameters, DotName enclosingClass)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DotName
enclosingClass()
Returns the class name which declares this method or constructor.java.lang.String
name()
The name of the method or constructorjava.util.List<Type>
parameters()
Returns the list of parameters declared by this method or constructor.(package private) Type[]
parametersArray()
Type
returnType()
Returns the return type of the method.java.lang.String
toString()
-
-
-
Method Detail
-
name
public java.lang.String name()
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 method.- Returns:
- the return type
-
parameters
public java.util.List<Type> parameters()
Returns the list of parameters declared by this method or constructor. This may be empty, but never null.- Returns:
- the list of parameters.
-
parametersArray
Type[] parametersArray()
-
enclosingClass
public DotName enclosingClass()
Returns the class name which declares this method or constructor.- Returns:
- the name of the class which declared this method or constructor
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-