|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectpatterntesting.runtime.util.reflect.MethodSignatureImpl
public class MethodSignatureImpl
There is a class org.aspectj.runtime.reflect.MethodSignatureImpl in aspectjrt.jar. But this class is not public so we must do it ourself.
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 |
|---|
public MethodSignatureImpl(Method method)
method - the method| Method Detail |
|---|
public Method getMethod()
getMethod in interface MethodSignatureMethodSignature.getMethod()public Class<?> getReturnType()
getReturnType in interface MethodSignatureMethodSignature.getReturnType()public Class<?>[] getExceptionTypes()
getExceptionTypes in interface CodeSignatureCodeSignature.getExceptionTypes()@UnsupportedOperation public String[] getParameterNames()
getParameterNames in interface CodeSignatureCodeSignature.getParameterNames()public Class<?>[] getParameterTypes()
getParameterTypes in interface CodeSignatureCodeSignature.getParameterTypes()public Class<?> getDeclaringType()
getDeclaringType in interface SignatureSignature.getDeclaringType()public String getDeclaringTypeName()
getDeclaringTypeName in interface SignatureSignature.getDeclaringTypeName()public int getModifiers()
getModifiers in interface SignatureSignature.getModifiers()public String getName()
getName in interface SignatureSignature.getName()public String toLongString()
toLongString in interface SignatureSignature.toLongString()public String toShortString()
toShortString in interface SignatureSignature.toShortString()public String toString()
toString in interface SignaturetoString in class ObjectObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||