java.lang.Object
iu.type.ElementBase
iu.type.AnnotatedElementBase<Method>
iu.type.DeclaredElementBase<D,Method>
iu.type.ExecutableBase<D,R,Method>
iu.type.MethodFacade<D,R>
- Type Parameters:
D- declaring typeR- method return type
- All Implemented Interfaces:
IuAnnotatedElement,IuDeclaredElement<D>,IuExecutable<D,,R> IuMethod<D,,R> IuNamedElement<D>,IuParameterizedElement,ParameterizedFacade
Facade implementation for
IuMethod.-
Field Summary
Fields inherited from class iu.type.DeclaredElementBase
declaringType, typeFields inherited from class iu.type.AnnotatedElementBase
annotatedElement -
Constructor Summary
ConstructorsConstructorDescriptionMethodFacade(Method method, TypeTemplate<?, R> returnTypeTemplate, TypeTemplate<?, D> declaringTypeTemplate) Facade constructor. -
Method Summary
Modifier and TypeMethodDescriptionExecutes a method.booleanisStatic()Determines if this is a static method.name()Gets the name.TypeFacade<?, R> Gets the return type.Methods inherited from class iu.type.ExecutableBase
getKey, parameters, seal, toString, typeParameter, typeParametersMethods inherited from class iu.type.DeclaredElementBase
declaringTypeMethods inherited from class iu.type.AnnotatedElementBase
annotation, annotations, hasAnnotation, permittedMethods inherited from class iu.type.ElementBase
checkSealed, postInitMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface edu.iu.type.IuAnnotatedElement
annotation, annotations, hasAnnotation, permitted, permittedMethods inherited from interface edu.iu.type.IuDeclaredElement
declaringTypeMethods inherited from interface edu.iu.type.IuExecutable
getKey, parameter, parameters
-
Constructor Details
-
MethodFacade
MethodFacade(Method method, TypeTemplate<?, R> returnTypeTemplate, TypeTemplate<?, D> declaringTypeTemplate) Facade constructor.- Parameters:
method-MethodreturnTypeTemplate-TypeTemplatefor the return typedeclaringTypeTemplate-TypeTemplatefor the declaring type
-
-
Method Details
-
name
Description copied from interface:IuNamedElementGets the name.- Specified by:
namein interfaceIuNamedElement<D>- Returns:
- name
-
isStatic
public boolean isStatic()Description copied from interface:IuMethodDetermines if this is a static method. -
returnType
Description copied from interface:IuMethodGets the return type.- Specified by:
returnTypein interfaceIuMethod<D,R> - Returns:
- return type
-
exec
Description copied from interface:IuMethodExecutes a method.- Specified by:
execin interfaceIuExecutable<D,R> - Specified by:
execin interfaceIuMethod<D,R> - Parameters:
arguments- argument values; whenIuMethod.isStatic()returns false, the first argument must be the instance to invoke the method on.- Returns:
- return value
- Throws:
Exception- If an exception occurs
-