public class JArrayClass extends AbstractJClass
EMPTY_ARRAY
Modifier | Constructor and Description |
---|---|
protected |
JArrayClass(JCodeModel aOwner,
AbstractJType aComponentType) |
Modifier and Type | Method and Description |
---|---|
AbstractJClass |
_extends()
Gets the super class of this class.
|
Iterator<AbstractJClass> |
_implements()
Iterates all super interfaces directly implemented by this class/interface.
|
JPackage |
_package()
Gets the package to which this class belongs.
|
String |
binaryName()
Gets the binary name of the type.
|
boolean |
containsTypeVar(JTypeVar aVar)
Check if this class is a generic class and contains the passed type
variable.
|
AbstractJType |
elementType()
If this is an array, returns the component type of the array (T of T[]).
|
boolean |
equals(Object obj) |
String |
fullName()
Gets the full name of the type.
|
void |
generate(JFormatter f) |
int |
hashCode() |
boolean |
isAbstract() |
boolean |
isArray()
Tell whether or not this is an array type.
|
boolean |
isInterface() |
String |
name()
Gets the name of this class.
|
protected AbstractJClass |
substituteParams(JTypeVar[] variables,
List<? extends AbstractJClass> bindings)
Substitutes the type variables with their actual arguments.
|
array, boxify, dotclass, erasure, getBaseClass, getBaseClass, getPrimitiveType, getTypeParameters, isParameterized, methodRef, narrow, narrow, narrow, narrow, narrow, narrow, narrowEmpty, outer, owner, staticInvoke, staticInvoke, staticRef, staticRef, toString, typeParams, unboxify, wildcard, wildcard, wildcardSuper
declarable, isAssignableFrom, isAssignableFrom, isError, isPrimitive, isReference, parse
protected JArrayClass(@Nonnull JCodeModel aOwner, @Nonnull AbstractJType aComponentType)
public boolean containsTypeVar(@Nullable JTypeVar aVar)
AbstractJType
containsTypeVar
in class AbstractJType
aVar
- The type variable to check. May be null
.true
if the passed type variable is contained,
false
otherwise.@Nonnull public String name()
AbstractJClass
name
in class AbstractJClass
java.lang.String
.@Nonnull public String fullName()
AbstractJType
fullName
in class AbstractJType
null
for unnamed classes.@Nonnull public String binaryName()
AbstractJType
binaryName
in class AbstractJType
public void generate(JFormatter f)
generate
in interface IJGenerable
generate
in class AbstractJClass
@Nonnull public JPackage _package()
AbstractJClass
_package
in class AbstractJClass
JPackage
this class belongs to. Is usually not
null
except for the JTypeVar
and the
JTypeWildcard
implementation.public AbstractJClass _extends()
AbstractJClass
_extends
in class AbstractJClass
AbstractJClass
representing the superclass of
the entity (class or interface) represented by this
AbstractJClass
. Even if no super class is given explicitly
or this AbstractJClass
is not a class, this method still
returns AbstractJClass
for Object
. If this
AbstractJClass
represents Object
, return null.public Iterator<AbstractJClass> _implements()
AbstractJClass
_implements
in class AbstractJClass
AbstractJClass
objects that represents those interfaces implemented by this
object.public boolean isInterface()
isInterface
in class AbstractJClass
true
if this object represents an interface.public boolean isAbstract()
isAbstract
in class AbstractJClass
true
if this class is an abstract class.public AbstractJType elementType()
AbstractJType
AbstractJType.isArray()
).elementType
in class AbstractJType
null
.public boolean isArray()
AbstractJType
isArray
in class AbstractJType
true
if this an array type@Nonnull protected AbstractJClass substituteParams(JTypeVar[] variables, List<? extends AbstractJClass> bindings)
AbstractJClass
AbstractJClass
for Map<String,Map<Integer>>
. substituteParams
in class AbstractJClass
variables
- Type variablesbindings
- Bindingsnull
.Copyright © 2013–2017 Philip Helger. All rights reserved.