Class MethodSignatureImpl

  • All Implemented Interfaces:
    org.aspectj.lang.reflect.CodeSignature, org.aspectj.lang.reflect.MemberSignature, org.aspectj.lang.reflect.MethodSignature, org.aspectj.lang.Signature

    public class MethodSignatureImpl
    extends java.lang.Object
    implements org.aspectj.lang.reflect.MethodSignature
    There is a class org.aspectj.runtime.reflect.MethodSignatureImpl in aspectjrt.jar. But this class is not public so we must do it ourself.
    Since:
    03.04.2009
    Version:
    $Revision: 1.9 $
    Author:
    oliver
    See Also:
    MethodSignature
    • Constructor Detail

      • MethodSignatureImpl

        public MethodSignatureImpl​(java.lang.reflect.Method method)
        Instantiates a new method signature impl.
        Parameters:
        method - the method
    • Method Detail

      • getMethod

        public java.lang.reflect.Method getMethod()
        Gets the method.
        Specified by:
        getMethod in interface org.aspectj.lang.reflect.MethodSignature
        Returns:
        the method
        See Also:
        MethodSignature.getMethod()
      • getReturnType

        public java.lang.Class<?> getReturnType()
        Gets the return type.
        Specified by:
        getReturnType in interface org.aspectj.lang.reflect.MethodSignature
        Returns:
        the return type
        See Also:
        MethodSignature.getReturnType()
      • getExceptionTypes

        public java.lang.Class<?>[] getExceptionTypes()
        Gets the exception types.
        Specified by:
        getExceptionTypes in interface org.aspectj.lang.reflect.CodeSignature
        Returns:
        the exception types
        See Also:
        CodeSignature.getExceptionTypes()
      • getParameterNames

        public java.lang.String[] getParameterNames()
        Gets the parameter names.
        Specified by:
        getParameterNames in interface org.aspectj.lang.reflect.CodeSignature
        Returns:
        the parameter names
        See Also:
        CodeSignature.getParameterNames()
      • getParameterTypes

        public java.lang.Class<?>[] getParameterTypes()
        Gets the parameter types.
        Specified by:
        getParameterTypes in interface org.aspectj.lang.reflect.CodeSignature
        Returns:
        the parameter types
        See Also:
        CodeSignature.getParameterTypes()
      • getDeclaringType

        public java.lang.Class<?> getDeclaringType()
        Gets the declaring type.
        Specified by:
        getDeclaringType in interface org.aspectj.lang.Signature
        Returns:
        the declaring type
        See Also:
        Signature.getDeclaringType()
      • getDeclaringTypeName

        public java.lang.String getDeclaringTypeName()
        Gets the declaring type name.
        Specified by:
        getDeclaringTypeName in interface org.aspectj.lang.Signature
        Returns:
        the declaring type name
        See Also:
        Signature.getDeclaringTypeName()
      • getModifiers

        public int getModifiers()
        Gets the modifiers.
        Specified by:
        getModifiers in interface org.aspectj.lang.Signature
        Returns:
        the modifiers
        See Also:
        Signature.getModifiers()
      • getName

        public java.lang.String getName()
        Gets the name.
        Specified by:
        getName in interface org.aspectj.lang.Signature
        Returns:
        the name
        See Also:
        Signature.getName()
      • toLongString

        public java.lang.String toLongString()
        To long string.
        Specified by:
        toLongString in interface org.aspectj.lang.Signature
        Returns:
        the string
        See Also:
        Signature.toLongString()
      • toShortString

        public java.lang.String toShortString()
        To short string.
        Specified by:
        toShortString in interface org.aspectj.lang.Signature
        Returns:
        the string
        See Also:
        Signature.toShortString()
      • toString

        public java.lang.String toString()
        To string.
        Specified by:
        toString in interface org.aspectj.lang.Signature
        Overrides:
        toString in class java.lang.Object
        Returns:
        the string
        See Also:
        Object.toString()