public interface JavaParameter extends JavaAnnotatedElement, JavaType
Modifier and Type | Method and Description |
---|---|
String |
getCanonicalName()
Equivalent of (@link
Class.getCanonicalName() . |
ParameterDeclarator |
getDeclarator()
Returns the declaring method or constructor of this parameter
|
String |
getFullyQualifiedName()
Returns the FQN of an Object or the handler of a Type.
|
JavaClass |
getJavaClass() |
String |
getName() |
JavaClass |
getParentClass()
The declaring class of the declaring method of this parameter.
|
String |
getResolvedFullyQualifiedName() |
String |
getResolvedGenericFullyQualifiedName() |
String |
getResolvedGenericValue() |
String |
getResolvedValue() |
JavaType |
getType() |
String |
getValue()
If there's a reference to this class, use the value used in the code.
|
boolean |
isVarArgs()
Is this a Java 5 var args type specified using three dots.
|
getAnnotations, getComment, getNamedParameter, getTagByName, getTags, getTagsByName
getGenericCanonicalName, getGenericFullyQualifiedName, getGenericValue, toGenericString
String getName()
JavaType getType()
JavaClass getJavaClass()
ParameterDeclarator getDeclarator()
JavaClass getParentClass()
boolean isVarArgs()
void doStuff(Object... thing)
String getValue()
JavaType
private String fieldA; // getValue() will return "String" private java.lang.String fieldA; // getValue() will return "java.lang.String" private ListaList; // getValue() will return "List"
String getFullyQualifiedName()
JavaType
#getComponentType()
.
Some examples how names will be translated
Object > java.lang.Object java.util.List > java.util.List ? > ? T > T anypackage.Outer.Inner > anypackage.Outer$Inner String[][] > java.lang.String[][]
getFullyQualifiedName
in interface JavaType
null
#getComponentType()
String getCanonicalName()
JavaType
Class.getCanonicalName()
.getCanonicalName
in interface JavaType
null
String getResolvedValue()
String getResolvedGenericValue()
null
String getResolvedFullyQualifiedName()
null
String getResolvedGenericFullyQualifiedName()
null
Copyright © 2002–2014. All rights reserved.