public final class JNullType extends AbstractJClass
Use this class with care.
EMPTY_ARRAY
Modifier | Constructor and Description |
---|---|
protected |
JNullType(JCodeModel aOwner) |
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 |
fullName()
Gets the full name of the type.
|
boolean |
isAbstract() |
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, generate, getBaseClass, getBaseClass, getPrimitiveType, getTypeParameters, isParameterized, narrow, narrow, narrow, narrow, narrow, narrow, outer, owner, staticInvoke, staticInvoke, staticRef, staticRef, toString, typeParams, unboxify, wildcard, wildcard, wildcardSuper
binaryName, elementType, isArray, isAssignableFrom, isAssignableFrom, isError, isPrimitive, isReference, parse
protected JNullType(@Nonnull JCodeModel aOwner)
@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 JPackage _package()
AbstractJClass
_package
in class AbstractJClass
JPackage
this class belongs to. Is usually not
null
except for the JTypeVar
and the
JTypeWildcard
implementation.@Nullable 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.@Nonnull 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.@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–2015 Philip Helger. All rights reserved.