public final class JNullType extends JClass
Use this class with care.
EMPTY_ARRAY
Modifier and Type | Method and Description |
---|---|
JClass |
_extends()
Gets the super class of this class.
|
Iterator<JClass> |
_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()
Checks if this class is an abstract class.
|
boolean |
isInterface()
Checks if this object represents an interface.
|
String |
name()
Gets the name of this class.
|
protected JClass |
substituteParams(JTypeVar[] variables,
List<JClass> bindings)
Substitutes the type variables with their actual arguments.
|
array, boxify, dotclass, erasure, generate, getBaseClass, getBaseClass, getPrimitiveType, getTypeParameters, isAssignableFrom, isParameterized, narrow, narrow, narrow, narrow, narrow, narrow, outer, owner, staticInvoke, staticInvoke, staticRef, staticRef, toString, typeParams, unboxify, wildcard
binaryName, compareTo, elementType, isArray, isPrimitive, isReference, parse
public String fullName()
JType
public JPackage _package()
JClass
public JClass _extends()
JClass
_extends
in class JClass
JClass
.
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 Iterator<JClass> _implements()
JClass
_implements
in class JClass
JClass
objects that represents those interfaces
implemented by this object.public boolean isInterface()
JClass
isInterface
in class JClass
public boolean isAbstract()
JClass
isAbstract
in class JClass
protected JClass substituteParams(JTypeVar[] variables, 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
Copyright © 2017 JBoss by Red Hat. All rights reserved.