patterntesting.runtime.util.reflect
Class MethodSignatureImpl

Package class diagram package MethodSignatureImpl
java.lang.Object
  extended by patterntesting.runtime.util.reflect.MethodSignatureImpl
All Implemented Interfaces:
CodeSignature, MemberSignature, MethodSignature, Signature

public class MethodSignatureImpl
extends Object
implements 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.4 $
Author:
oliver
See Also:
MethodSignature

Constructor Summary
MethodSignatureImpl(Method method)
          Instantiates a new method signature impl.
 
Method Summary
 Class<?> getDeclaringType()
          Gets the declaring type.
 String getDeclaringTypeName()
          Gets the declaring type name.
 Class<?>[] getExceptionTypes()
          Gets the exception types.
 Method getMethod()
          Gets the method.
 int getModifiers()
          Gets the modifiers.
 String getName()
          Gets the name.
 String[] getParameterNames()
          Gets the parameter names.
 Class<?>[] getParameterTypes()
          Gets the parameter types.
 Class<?> getReturnType()
          Gets the return type.
 String toLongString()
          To long string.
 String toShortString()
          To short string.
 String toString()
          To string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MethodSignatureImpl

public MethodSignatureImpl(Method method)
Instantiates a new method signature impl.

Parameters:
method - the method
Method Detail

getMethod

public Method getMethod()
Gets the method.

Specified by:
getMethod in interface MethodSignature
Returns:
the method
See Also:
MethodSignature.getMethod()

getReturnType

public Class<?> getReturnType()
Gets the return type.

Specified by:
getReturnType in interface MethodSignature
Returns:
the return type
See Also:
MethodSignature.getReturnType()

getExceptionTypes

public Class<?>[] getExceptionTypes()
Gets the exception types.

Specified by:
getExceptionTypes in interface CodeSignature
Returns:
the exception types
See Also:
CodeSignature.getExceptionTypes()

getParameterNames

@UnsupportedOperation
public String[] getParameterNames()
Gets the parameter names.

Specified by:
getParameterNames in interface CodeSignature
Returns:
the parameter names
See Also:
CodeSignature.getParameterNames()

getParameterTypes

public Class<?>[] getParameterTypes()
Gets the parameter types.

Specified by:
getParameterTypes in interface CodeSignature
Returns:
the parameter types
See Also:
CodeSignature.getParameterTypes()

getDeclaringType

public Class<?> getDeclaringType()
Gets the declaring type.

Specified by:
getDeclaringType in interface Signature
Returns:
the declaring type
See Also:
Signature.getDeclaringType()

getDeclaringTypeName

public String getDeclaringTypeName()
Gets the declaring type name.

Specified by:
getDeclaringTypeName in interface Signature
Returns:
the declaring type name
See Also:
Signature.getDeclaringTypeName()

getModifiers

public int getModifiers()
Gets the modifiers.

Specified by:
getModifiers in interface Signature
Returns:
the modifiers
See Also:
Signature.getModifiers()

getName

public String getName()
Gets the name.

Specified by:
getName in interface Signature
Returns:
the name
See Also:
Signature.getName()

toLongString

public String toLongString()
To long string.

Specified by:
toLongString in interface Signature
Returns:
the string
See Also:
Signature.toLongString()

toShortString

public String toShortString()
To short string.

Specified by:
toShortString in interface Signature
Returns:
the string
See Also:
Signature.toShortString()

toString

public String toString()
To string.

Specified by:
toString in interface Signature
Overrides:
toString in class Object
Returns:
the string
See Also:
Object.toString()


Copyright © 2002–2014 PatternTesting Team. All rights reserved.