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, wildcardSuperdeclarable, isAssignableFrom, isAssignableFrom, isError, isPrimitive, isReference, parseprotected JArrayClass(@Nonnull JCodeModel aOwner, @Nonnull AbstractJType aComponentType)
public boolean containsTypeVar(@Nullable JTypeVar aVar)
AbstractJTypecontainsTypeVar in class AbstractJTypeaVar - The type variable to check. May be null.true if the passed type variable is contained,
false otherwise.@Nonnull public String name()
AbstractJClassname in class AbstractJClassjava.lang.String.@Nonnull public String fullName()
AbstractJTypefullName in class AbstractJTypenull for unnamed classes.@Nonnull public String binaryName()
AbstractJTypebinaryName in class AbstractJTypepublic void generate(JFormatter f)
generate in interface IJGenerablegenerate in class AbstractJClass@Nonnull public JPackage _package()
AbstractJClass_package in class AbstractJClassJPackage this class belongs to. Is usually not
null except for the JTypeVar and the
JTypeWildcard implementation.public AbstractJClass _extends()
AbstractJClass_extends in class AbstractJClassAbstractJClass 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 AbstractJClassAbstractJClass
objects that represents those interfaces implemented by this
object.public boolean isInterface()
isInterface in class AbstractJClasstrue if this object represents an interface.public boolean isAbstract()
isAbstract in class AbstractJClasstrue if this class is an abstract class.public AbstractJType elementType()
AbstractJTypeAbstractJType.isArray()).elementType in class AbstractJTypenull.public boolean isArray()
AbstractJTypeisArray in class AbstractJTypetrue if this an array type@Nonnull protected AbstractJClass substituteParams(JTypeVar[] variables, List<? extends AbstractJClass> bindings)
AbstractJClassAbstractJClass
for Map<String,Map<Integer>>. substituteParams in class AbstractJClassvariables - Type variablesbindings - Bindingsnull.Copyright © 2013–2017 Philip Helger. All rights reserved.