final class JArrayClass extends JClass
| Modifier and Type | Field and Description |
|---|---|
private JType |
componentType |
EMPTY_ARRAY| Constructor and Description |
|---|
JArrayClass(JCodeModel owner,
JType component) |
| Modifier and Type | Method and Description |
|---|---|
JClass |
_extends()
Gets the super class of this class.
|
java.util.Iterator<JClass> |
_implements()
Iterates all super interfaces directly implemented by
this class/interface.
|
JPackage |
_package()
Gets the package to which this class belongs.
|
java.lang.String |
binaryName()
Gets the binary name of the type.
|
JType |
elementType()
If this is an array, returns the component type of the array.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
fullName()
Gets the full name of the type.
|
void |
generate(JFormatter f) |
int |
hashCode() |
boolean |
isAbstract()
Checks if this class is an abstract class.
|
boolean |
isArray()
Tell whether or not this is an array type.
|
boolean |
isInterface()
Checks if this object represents an interface.
|
java.lang.String |
name()
Gets the name of this class.
|
protected JClass |
substituteParams(JTypeVar[] variables,
java.util.List<JClass> bindings)
Substitutes the type variables with their actual arguments.
|
array, boxify, dotclass, erasure, getBaseClass, getBaseClass, getPrimitiveType, getTypeParameters, isAssignableFrom, isParameterized, narrow, narrow, narrow, narrow, narrow, narrow, outer, owner, printLink, staticInvoke, staticInvoke, staticRef, staticRef, toString, typeParams, unboxify, wildcardcompareTo, isPrimitive, isReference, parseprivate final JType componentType
JArrayClass(JCodeModel owner, JType component)
public java.lang.String name()
JClasspublic java.lang.String fullName()
JTypepublic java.lang.String binaryName()
JTypebinaryName in class JTypepublic void generate(JFormatter f)
generate in interface JGenerablegenerate in class JClasspublic JPackage _package()
JClasspublic JClass _extends()
JClass_extends in class JClassJClass.
Even if no super class is given explicitly or this JClass
is not a class, this method still returns
JClass for Object.
If this JClass represents Object, return null.public java.util.Iterator<JClass> _implements()
JClass_implements in class JClassJClass objects that represents those interfaces
implemented by this object.public boolean isInterface()
JClassisInterface in class JClasspublic boolean isAbstract()
JClassisAbstract in class JClasspublic JType elementType()
JTypeelementType in class JTypepublic boolean isArray()
JTypepublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectprotected JClass substituteParams(JTypeVar[] variables, java.util.List<JClass> bindings)
JClass
For example, when this class is Map<String,Map<V>>,
(where V then doing
substituteParams( V, Integer ) returns a JClass
for Map<String,Map<Integer>>.
This method needs to work recursively.
substituteParams in class JClass