001/*
002 * Copyright 2002-2015 the original author or authors.
003 *
004 * Licensed under the Apache License, Version 2.0 (the "License");
005 * you may not use this file except in compliance with the License.
006 * You may obtain a copy of the License at
007 *
008 *      https://www.apache.org/licenses/LICENSE-2.0
009 *
010 * Unless required by applicable law or agreed to in writing, software
011 * distributed under the License is distributed on an "AS IS" BASIS,
012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013 * See the License for the specific language governing permissions and
014 * limitations under the License.
015 */
016
017package org.springframework.core.type;
018
019/**
020 * Interface that defines abstract access to the annotations of a specific
021 * class, in a form that does not require that class to be loaded yet.
022 *
023 * @author Juergen Hoeller
024 * @author Mark Pollack
025 * @author Chris Beams
026 * @author Phillip Webb
027 * @since 3.0
028 * @see StandardMethodMetadata
029 * @see AnnotationMetadata#getAnnotatedMethods
030 * @see AnnotatedTypeMetadata
031 */
032public interface MethodMetadata extends AnnotatedTypeMetadata {
033
034        /**
035         * Return the name of the method.
036         */
037        String getMethodName();
038
039        /**
040         * Return the fully-qualified name of the class that declares this method.
041         */
042        String getDeclaringClassName();
043
044        /**
045         * Return the fully-qualified name of this method's declared return type.
046         * @since 4.2
047         */
048        String getReturnTypeName();
049
050        /**
051         * Return whether the underlying method is effectively abstract:
052         * i.e. marked as abstract on a class or declared as a regular,
053         * non-default method in an interface.
054         * @since 4.2
055         */
056        boolean isAbstract();
057
058        /**
059         * Return whether the underlying method is declared as 'static'.
060         */
061        boolean isStatic();
062
063        /**
064         * Return whether the underlying method is marked as 'final'.
065         */
066        boolean isFinal();
067
068        /**
069         * Return whether the underlying method is overridable,
070         * i.e. not marked as static, final or private.
071         */
072        boolean isOverridable();
073
074}