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:
- [email protected]
-
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 nameint
getIndex()
Returns the parameter indexParameters of a method are ordered based on the method declaration.getType()
Returns the parameter typeReturns the parameter type nameTypeProxy<?>
boolean
isArray()
boolean
protected void
print
(StringBuffer sb) void
setFormalType
(String formalType) void
setType
(org.objectweb.asm.Type type) void
setTypeProxy
(TypeProxy<?> typeProxy) Methods inherited from class org.glassfish.hk2.classmodel.reflect.impl.AnnotatedElementImpl
getAnnotation, getAnnotations, getName, isApplicationClass, setApplicationClass, shortDesc, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.glassfish.hk2.classmodel.reflect.AnnotatedElement
getAnnotation, getAnnotations, getName, shortDesc
-
Constructor Details
-
ParameterImpl
-
ParameterImpl
-
-
Method Details
-
getMethod
Description copied from interface:Parameter
Parameters of a method are ordered based on the method declaration. -
getType
Description copied from interface:ParameterizedType
Returns the parameter type- Specified by:
getType
in interfaceParameterizedType
- Returns:
- parameter type
-
getTypeName
Description copied from interface:ParameterizedType
Returns the parameter type name- Specified by:
getTypeName
in interfaceParameterizedType
- Returns:
- parameter type name
-
getTypeProxy
-
setTypeProxy
-
setType
public void setType(org.objectweb.asm.Type type) -
getFormalType
Description copied from interface:ParameterizedType
Returns the formal type name- Specified by:
getFormalType
in interfaceParameterizedType
- Returns:
- the formal type name
-
setFormalType
-
getParameterizedTypes
- Specified by:
getParameterizedTypes
in interfaceParameterizedType
- Returns:
- the list of parameterized subtype
-
isFormalType
public boolean isFormalType()- Specified by:
isFormalType
in interfaceParameterizedType
- Returns:
- the true value for formal type parameters and false value for parameterized type with actual type arguments.
-
print
- Overrides:
print
in classAnnotatedElementImpl
-
getIndex
public int getIndex()Description copied from interface:Parameter
Returns the parameter index -
isArray
public boolean isArray()- Specified by:
isArray
in interfaceParameterizedType
- Returns:
- true if type is array
-