- 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.int
index()
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, permitted
Methods inherited from class iu.type.ElementBase
checkSealed, postInit, seal
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 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
-TypeTemplate
for the parameter type
-
-
Method Details
-
typeParameters
Description copied from interface:IuParameterizedElement
Gets type parameters by name.- Specified by:
typeParameters
in interfaceIuParameterizedElement
- Specified by:
typeParameters
in interfaceParameterizedFacade
- Returns:
- map of type parameter facades
-
declaringExecutable
Description copied from interface:IuParameter
Gets the executable element that declares the parameter.- Specified by:
declaringExecutable
in interfaceIuParameter<T>
- Returns:
- declaring executable
-
index
public int index()Description copied from interface:IuParameter
Gets the parameter index.- Specified by:
index
in interfaceIuParameter<T>
- Returns:
- parameter index
-
name
Description copied from interface:IuParameter
Gets the parameter name.- Specified by:
name
in interfaceIuParameter<T>
- Returns:
- parameter name
-
type
Description copied from interface:IuParameter
Gets the parameter type.- Specified by:
type
in interfaceIuParameter<T>
- Returns:
- parameter type.
-
toString
-