Module org.glassfish.hk2.classmodel
Class ParameterImpl
java.lang.Object
org.glassfish.hk2.classmodel.reflect.impl.AnnotatedElementImpl
org.glassfish.hk2.classmodel.reflect.impl.ParameterImpl
- All Implemented Interfaces:
AnnotatedElement,Parameter,ParameterizedType
- Author:
- gaurav.gupta@payara.fish
-
Constructor Summary
ConstructorsConstructorDescriptionParameterImpl(int index, String name, TypeProxy<?> typeProxy, MethodModel methodModel) ParameterImpl(int index, String name, MethodModel methodModel) -
Method Summary
Modifier and TypeMethodDescriptionReturns the formal type nameintgetIndex()Returns the parameter indexParameters of a method are ordered based on the method declaration.getType()Returns the parameter typeReturns the parameter type nameTypeProxy<?>booleanisArray()booleanprotected voidprint(StringBuffer sb) voidsetFormalType(String formalType) voidsetType(org.objectweb.asm.Type type) voidsetTypeProxy(TypeProxy<?> typeProxy) Methods inherited from class org.glassfish.hk2.classmodel.reflect.impl.AnnotatedElementImpl
getAnnotation, getAnnotations, getName, isApplicationClass, setApplicationClass, shortDesc, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.glassfish.hk2.classmodel.reflect.AnnotatedElement
getAnnotation, getAnnotations, getName, shortDesc
-
Constructor Details
-
ParameterImpl
-
ParameterImpl
-
-
Method Details
-
getMethod
Description copied from interface:ParameterParameters of a method are ordered based on the method declaration. -
getType
Description copied from interface:ParameterizedTypeReturns the parameter type- Specified by:
getTypein interfaceParameterizedType- Returns:
- parameter type
-
getTypeName
Description copied from interface:ParameterizedTypeReturns the parameter type name- Specified by:
getTypeNamein interfaceParameterizedType- Returns:
- parameter type name
-
getTypeProxy
-
setTypeProxy
-
setType
public void setType(org.objectweb.asm.Type type) -
getFormalType
Description copied from interface:ParameterizedTypeReturns the formal type name- Specified by:
getFormalTypein interfaceParameterizedType- Returns:
- the formal type name
-
setFormalType
-
getParameterizedTypes
- Specified by:
getParameterizedTypesin interfaceParameterizedType- Returns:
- the list of parameterized subtype
-
isFormalType
public boolean isFormalType()- Specified by:
isFormalTypein interfaceParameterizedType- Returns:
- the true value for formal type parameters and false value for parameterized type with actual type arguments.
-
print
- Overrides:
printin classAnnotatedElementImpl
-
getIndex
public int getIndex()Description copied from interface:ParameterReturns the parameter index -
isArray
public boolean isArray()- Specified by:
isArrayin interfaceParameterizedType- Returns:
- true if type is array
-