Top Fields Constructors Methods
org.aspectj.runtime.reflect

pack-priv Class MethodSignatureImpl

extends CodeSignatureImpl
implements MethodSignature
Class Inheritance
All Implemented Interfaces
org.aspectj.lang.reflect.MethodSignature, org.aspectj.lang.reflect.CodeSignature, org.aspectj.lang.reflect.MemberSignature, org.aspectj.lang.Signature
Imports
java.lang.reflect.Method, java.util.HashSet, .Set, org.aspectj.lang.reflect.MethodSignature

Field Summary

Modifier and TypeField and Description
private Method
pack-priv Class<?>
Inherited from org.aspectj.runtime.reflect.CodeSignatureImpl:
exceptionTypesparameterNamesparameterTypes

Constructor Summary

AccessConstructor and Description
pack-priv
MethodSignatureImpl(int modifiers, String name, Class<?> declaringType, Class<T>[] parameterTypes, String[] parameterNames, Class<T>[] exceptionTypes, Class<?> returnType)

pack-priv

Method Summary

Modifier and TypeMethod and Description
protected String
public Method
public Class<T>
private Method

Returns:

the method if found, or null if not found
search
(Class<?>
the type on which to look for the method
type
,
String
the name of the method
name
,
Class<T>[]
the parameters of the method
params
,
Set<Class<?>>
a set of types already searched to avoid looking at anything twice
searched
)

Hunt for a method up the hierarchy for a specified type.

Inherited from org.aspectj.runtime.reflect.CodeSignatureImpl:
getExceptionTypesgetParameterNamesgetParameterTypes

Field Detail

methodback to summary
private Method method
returnTypeback to summary
pack-priv Class<?> returnType

Constructor Detail

MethodSignatureImplback to summary
pack-priv MethodSignatureImpl(int modifiers, String name, Class<?> declaringType, Class<T>[] parameterTypes, String[] parameterNames, Class<T>[] exceptionTypes, Class<?> returnType)
MethodSignatureImplback to summary
pack-priv MethodSignatureImpl(String stringRep)

Method Detail

createToStringback to summary
protected String createToString(StringMaker sm)

Implements abstract org.aspectj.runtime.reflect.SignatureImpl.createToString.

getMethodback to summary
public Method getMethod()

Implements org.aspectj.lang.reflect.MethodSignature.getMethod.

getReturnTypeback to summary
public Class<T> getReturnType()

Implements org.aspectj.lang.reflect.MethodSignature.getReturnType.

searchback to summary
private Method search(Class<?> type, String name, Class<T>[] params, Set<Class<?>> searched)

Hunt for a method up the hierarchy for a specified type.

Parameters
type:Class<?>

the type on which to look for the method

name:String

the name of the method

params:Class<T>[]

the parameters of the method

searched:Set<Class<?>>

a set of types already searched to avoid looking at anything twice

Returns:Method

the method if found, or null if not found