Package com.sun.mirror.declaration
Interface ExecutableDeclaration
- All Superinterfaces:
Declaration,MemberDeclaration
- All Known Subinterfaces:
AnnotationTypeElementDeclaration,ConstructorDeclaration,MethodDeclaration
Represents a method or constructor of a class or interface.
- Since:
- 1.5
- Version:
- 1.2 04/03/08
- Author:
- Joseph D. Darcy, Scott Seligman
-
Method Summary
Modifier and TypeMethodDescriptionReturns the formal type parameters of this method or constructor.Returns the formal parameters of this method or constructor.Returns the exceptions and other throwables listed in this method or constructor'sthrowsclause.booleanReturnstrueif this method or constructor accepts a variable number of arguments.Methods inherited from interface com.sun.mirror.declaration.Declaration
accept, equals, getAnnotation, getAnnotationMirrors, getDocComment, getModifiers, getPosition, getSimpleNameMethods inherited from interface com.sun.mirror.declaration.MemberDeclaration
getDeclaringType
-
Method Details
-
isVarArgs
boolean isVarArgs()Returnstrueif this method or constructor accepts a variable number of arguments.- Returns:
trueif this method or constructor accepts a variable number of arguments
-
getFormalTypeParameters
Collection<TypeParameterDeclaration> getFormalTypeParameters()Returns the formal type parameters of this method or constructor. They are returned in declaration order.- Returns:
- the formal type parameters of this method or constructor, or an empty collection if there are none
-
getParameters
Collection<ParameterDeclaration> getParameters()Returns the formal parameters of this method or constructor. They are returned in declaration order.- Returns:
- the formal parameters of this method or constructor, or an empty collection if there are none
-
getThrownTypes
Collection<ReferenceType> getThrownTypes()Returns the exceptions and other throwables listed in this method or constructor'sthrowsclause.- Returns:
- the exceptions and other throwables listed in the
throwsclause, or an empty collection if there are none
-