JGenerablepublic final class JNullType extends JClass
Use this class with care.
EMPTY_ARRAY| Modifier and Type | Method | 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 |
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.
|
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, generate, getBaseClass, getBaseClass, getPrimitiveType, getTypeParameters, isAssignableFrom, isParameterized, narrow, narrow, narrow, narrow, narrow, narrow, outer, owner, staticInvoke, staticInvoke, staticRef, staticRef, toString, typeParams, unboxify, wildcardbinaryName, compareTo, elementType, isArray, isPrimitive, isReference, parsepublic java.lang.String name()
JClasspublic java.lang.String fullName()
JTypepublic 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 JClassprotected 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 JClassCopyright © 2017 Oracle Corporation. All rights reserved.