- Type Parameters:
T- parameter type
- All Implemented Interfaces:
IuAnnotatedElement,IuParameter<T>,IuParameterizedElement,ParameterizedFacade
final class ParameterFacade<T>
extends AnnotatedElementBase<Parameter>
implements IuParameter<T>, ParameterizedFacade
Facade implementation of
IuParameter.-
Field Summary
Fields inherited from class iu.type.AnnotatedElementBase
annotatedElement -
Constructor Summary
ConstructorsConstructorDescriptionParameterFacade(Parameter parameter, int index, ExecutableBase<?, ?, ?> executable, TypeTemplate<?, T> typeTemplate) Facade constructor, for exclusive use byExecutableBase. -
Method Summary
Modifier and TypeMethodDescriptionExecutableBase<?, ?, ?> Gets the executable element that declares the parameter.intindex()Gets the parameter index.name()Gets the parameter name.toString()TypeFacade<?, T> type()Gets the parameter type.Map<String, TypeFacade<?, ?>> Gets type parameters by name.Methods inherited from class iu.type.AnnotatedElementBase
annotation, annotations, hasAnnotation, permittedMethods inherited from class iu.type.ElementBase
checkSealed, postInit, sealMethods 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 iu.type.ParameterizedFacade
typeParameter
-
Constructor Details
-
ParameterFacade
ParameterFacade(Parameter parameter, int index, ExecutableBase<?, ?, ?> executable, TypeTemplate<?, T> typeTemplate) Facade constructor, for exclusive use byExecutableBase.- Parameters:
parameter- real parameter to provide a view ofindex- parameter index related to executableExecutable.getParameters()executable- declaring executable facadetypeTemplate-TypeTemplatefor the parameter type
-
-
Method Details
-
typeParameters
Description copied from interface:IuParameterizedElementGets type parameters by name.- Specified by:
typeParametersin interfaceIuParameterizedElement- Specified by:
typeParametersin interfaceParameterizedFacade- Returns:
- map of type parameter facades
-
declaringExecutable
Description copied from interface:IuParameterGets the executable element that declares the parameter.- Specified by:
declaringExecutablein interfaceIuParameter<T>- Returns:
- declaring executable
-
index
public int index()Description copied from interface:IuParameterGets the parameter index.- Specified by:
indexin interfaceIuParameter<T>- Returns:
- parameter index
-
name
Description copied from interface:IuParameterGets the parameter name.- Specified by:
namein interfaceIuParameter<T>- Returns:
- parameter name
-
type
Description copied from interface:IuParameterGets the parameter type.- Specified by:
typein interfaceIuParameter<T>- Returns:
- parameter type.
-
toString
-