public class ParameterImpl extends AnnotatedElementImpl implements Parameter
| Constructor and Description |
|---|
ParameterImpl(int index,
String name,
MethodModel methodModel) |
ParameterImpl(int index,
String name,
TypeProxy<?> typeProxy,
MethodModel methodModel) |
| Modifier and Type | Method and Description |
|---|---|
String |
getFormalType()
Returns the formal type name
|
int |
getIndex()
Returns the parameter index
|
MethodModel |
getMethod()
Parameters of a method are ordered based on the method
declaration.
|
List<ParameterizedType> |
getParameterizedTypes() |
Type |
getType()
Returns the parameter type
|
String |
getTypeName()
Returns the parameter type name
|
TypeProxy<?> |
getTypeProxy() |
boolean |
isArray() |
boolean |
isFormalType() |
protected void |
print(StringBuffer sb) |
void |
setFormalType(String formalType) |
void |
setType(org.objectweb.asm.Type type) |
void |
setTypeProxy(TypeProxy<?> typeProxy) |
getAnnotation, getAnnotations, getName, isApplicationClass, setApplicationClass, shortDesc, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAnnotation, getAnnotations, getName, shortDescpublic ParameterImpl(int index,
String name,
TypeProxy<?> typeProxy,
MethodModel methodModel)
public ParameterImpl(int index,
String name,
MethodModel methodModel)
public MethodModel getMethod()
Parameterpublic Type getType()
ParameterizedTypegetType in interface ParameterizedTypepublic String getTypeName()
ParameterizedTypegetTypeName in interface ParameterizedTypepublic TypeProxy<?> getTypeProxy()
public void setTypeProxy(TypeProxy<?> typeProxy)
public void setType(org.objectweb.asm.Type type)
public String getFormalType()
ParameterizedTypegetFormalType in interface ParameterizedTypepublic void setFormalType(String formalType)
public List<ParameterizedType> getParameterizedTypes()
getParameterizedTypes in interface ParameterizedTypepublic boolean isFormalType()
isFormalType in interface ParameterizedTypeprotected void print(StringBuffer sb)
print in class AnnotatedElementImplpublic int getIndex()
Parameterpublic boolean isArray()
isArray in interface ParameterizedTypeCopyright © 2009–2022 Oracle Corporation. All rights reserved.