public class DefaultJavaParameter extends AbstractBaseJavaEntity implements JavaParameter
Constructor and Description |
---|
DefaultJavaParameter(JavaClass type,
String name) |
DefaultJavaParameter(JavaClass type,
String name,
boolean varArgs) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getCanonicalName()
Equivalent of (@link
Class.getCanonicalName() . |
String |
getCodeBlock() |
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.
|
String |
getGenericCanonicalName()
The canonical name with generic information.
|
String |
getGenericFullyQualifiedName()
The fully qualified nate with generic information.
|
String |
getGenericValue()
A java5+ representation of the class.
|
JavaClass |
getJavaClass() |
String |
getName() |
JavaClass |
getParentClass()
Not every entity has a parentClass, but AnnotationFieldRef requires access to it.
|
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.
|
int |
hashCode() |
boolean |
isVarArgs()
Is this a Java 5 var args type specified using three dots.
|
void |
setDeclarator(ParameterDeclarator declarator) |
void |
setName(String name) |
String |
toGenericString() |
String |
toString() |
getAnnotations, getComment, getNamedParameter, getTagByName, getTags, getTagsByName, setAnnotations, setComment, setTags
getLineNumber, getModelWriter, getSource, setLineNumber, setModelWriterFactory, setSource
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getAnnotations, getComment, getNamedParameter, getTagByName, getTags, getTagsByName
public String getCodeBlock()
getCodeBlock
in interface JavaModel
public void setName(String name)
public String getName()
getName
in interface JavaParameter
public JavaType getType()
getType
in interface JavaParameter
public JavaClass getJavaClass()
getJavaClass
in interface JavaParameter
public ParameterDeclarator getDeclarator()
getDeclarator
in interface JavaParameter
public void setDeclarator(ParameterDeclarator declarator)
public JavaClass getParentClass()
getParentClass
in interface JavaParameter
getParentClass
in class AbstractBaseJavaEntity
public boolean isVarArgs()
void doStuff(Object... thing)
isVarArgs
in interface JavaParameter
public String getFullyQualifiedName()
#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 JavaParameter
getFullyQualifiedName
in interface JavaType
null
#getComponentType()
public String getCanonicalName()
Class.getCanonicalName()
.getCanonicalName
in interface JavaParameter
getCanonicalName
in interface JavaType
null
public String getValue()
private String fieldA; // getValue() will return "String" private java.lang.String fieldA; // getValue() will return "java.lang.String" private ListaList; // getValue() will return "List"
getValue
in interface JavaParameter
getValue
in interface JavaType
null
public String getGenericCanonicalName()
getGenericCanonicalName
in interface JavaType
public String getGenericFullyQualifiedName()
getGenericFullyQualifiedName
in interface JavaType
public String getResolvedValue()
getResolvedValue
in interface JavaParameter
public String getResolvedFullyQualifiedName()
getResolvedFullyQualifiedName
in interface JavaParameter
null
public String getResolvedGenericValue()
getResolvedGenericValue
in interface JavaParameter
null
public String getResolvedGenericFullyQualifiedName()
getResolvedGenericFullyQualifiedName
in interface JavaParameter
null
public String getGenericValue()
private String fieldA; // getValue() will return "String" private java.lang.String fieldA; // getValue() will return "java.lang.String" private ListaList; // getValue() will return "List "
getGenericValue
in interface JavaType
public String toGenericString()
toGenericString
in interface JavaType
Copyright © 2002–2015. All rights reserved.