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, type
Fields 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.boolean
isStatic()
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, typeParameters
Methods inherited from class iu.type.DeclaredElementBase
declaringType
Methods inherited from class iu.type.AnnotatedElementBase
annotation, annotations, hasAnnotation, permitted
Methods inherited from class iu.type.ElementBase
checkSealed, postInit
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface edu.iu.type.IuAnnotatedElement
annotation, annotations, hasAnnotation, permitted, permitted
Methods inherited from interface edu.iu.type.IuDeclaredElement
declaringType
Methods 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
-Method
returnTypeTemplate
-TypeTemplate
for the return typedeclaringTypeTemplate
-TypeTemplate
for the declaring type
-
-
Method Details
-
name
Description copied from interface:IuNamedElement
Gets the name.- Specified by:
name
in interfaceIuNamedElement<D>
- Returns:
- name
-
isStatic
public boolean isStatic()Description copied from interface:IuMethod
Determines if this is a static method. -
returnType
Description copied from interface:IuMethod
Gets the return type.- Specified by:
returnType
in interfaceIuMethod<D,
R> - Returns:
- return type
-
exec
Description copied from interface:IuMethod
Executes a method.- Specified by:
exec
in interfaceIuExecutable<D,
R> - Specified by:
exec
in 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
-