Class APMethodInfo

    • Field Detail

      • el

        private final javax.lang.model.element.ExecutableElement el
    • Constructor Detail

      • APMethodInfo

        public APMethodInfo​(javax.annotation.processing.ProcessingEnvironment processEnv,
                            ClassInfo ci,
                            javax.lang.model.element.ExecutableElement el)
    • Method Detail

      • getName

        public java.lang.String getName()
        Specified by:
        getName in interface MethodInfo
        Returns:
        short method name.
      • getReturnType

        public java.lang.String getReturnType()
        Specified by:
        getReturnType in interface MethodInfo
        Returns:
        fully qualified return type
      • getAnnotation

        public <T extends java.lang.annotation.Annotation> T getAnnotation​(java.lang.Class<T> annClass)
        Specified by:
        getAnnotation in interface MethodInfo
        Type Parameters:
        T - annotation type
        Parameters:
        annClass - annotation class
        Returns:
        method-level annotation, if any; null otherwise
      • isPublic

        public boolean isPublic()
        Specified by:
        isPublic in interface MethodInfo
        Returns:
        true, if method is public
      • isAbstract

        public boolean isAbstract()
        Specified by:
        isAbstract in interface MethodInfo
        Returns:
        true, if method is abstract
      • isSynchronized

        public boolean isSynchronized()
        Specified by:
        isSynchronized in interface MethodInfo
        Returns:
        true, if method is synchronized
      • isStrictFP

        public boolean isStrictFP()
        Specified by:
        isStrictFP in interface MethodInfo
        Returns:
        true, if method is strictfp
      • isStatic

        public boolean isStatic()
        Specified by:
        isStatic in interface MethodInfo
        Returns:
        true, if method is static
      • getQualifiedName

        public java.lang.String getQualifiedName()
        Specified by:
        getQualifiedName in interface MethodInfo
        Returns:
        fully qualified method name, includes class qualified name
      • compareTo

        public int compareTo​(MethodInfo o)
        Specified by:
        compareTo in interface java.lang.Comparable<MethodInfo>
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object