public class JDirectClass extends AbstractJClassContainer<JDirectClass>
AbstractJClass
that represents an unknown class (except its
name.)JCodeModel.directClass(String)
m_aClasses
EMPTY_ARRAY
Modifier | Constructor and Description |
---|---|
protected |
JDirectClass(JCodeModel aOwner,
IJClassContainer<?> aOuter,
EClassType eClassType,
String sFullName) |
protected |
JDirectClass(JCodeModel aOwner,
String sFullName)
Deprecated.
|
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.
|
protected JDirectClass |
createInnerClass(int nMods,
EClassType eClassType,
String sName) |
String |
fullName()
Gets the fully qualified name of this class.
|
boolean |
isAbstract() |
String |
name()
Class name accessor.
|
protected AbstractJClass |
substituteParams(JTypeVar[] aVariables,
List<? extends AbstractJClass> aBindings)
Substitutes the type variables with their actual arguments.
|
_class, classes, getClassType, getOuter, getPackage, isAnnotationTypeDeclaration, isAnonymous, isClass, isInterface, isPackage, outer, parentContainer, thisAsT
array, boxify, dotclass, erasure, generate, getBaseClass, getBaseClass, getPrimitiveType, getTypeParameters, isParameterized, methodRef, narrow, narrow, narrow, narrow, narrow, narrow, narrowAny, narrowEmpty, owner, staticInvoke, staticInvoke, staticRef, staticRef, toString, typeParams, unboxify, wildcard, wildcard, wildcardExtends, wildcardSuper
binaryName, containsTypeVar, declarable, elementType, isArray, isAssignableFrom, isAssignableFrom, isError, isPrimitive, isReference, parse
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
_annotationTypeDeclaration, _annotationTypeDeclaration, _class, _class, _enum, _enum, _interface, _interface
@Deprecated protected JDirectClass(@Nonnull JCodeModel aOwner, @Nonnull String sFullName)
protected JDirectClass(@Nonnull JCodeModel aOwner, @Nullable IJClassContainer<?> aOuter, @Nonnull EClassType eClassType, @Nonnull String sFullName)
@Nonnull public String name()
AbstractJClassContainer
java.util.List
, this method returns
"List"
"name
in class AbstractJClassContainer<JDirectClass>
@Nonnull public String fullName()
fullName
in class AbstractJClassContainer<JDirectClass>
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.@Nonnull 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 isAbstract()
isAbstract
in class AbstractJClass
true
if this class is an abstract class.@Nonnull protected AbstractJClass substituteParams(JTypeVar[] aVariables, List<? extends AbstractJClass> aBindings)
AbstractJClass
AbstractJClass
for Map<String,Map<Integer>>
. substituteParams
in class AbstractJClass
aVariables
- Type variablesaBindings
- Bindingsnull
.@Nonnull protected JDirectClass createInnerClass(int nMods, EClassType eClassType, String sName)
createInnerClass
in class AbstractJClassContainer<JDirectClass>
Copyright © 2013–2017 Philip Helger. All rights reserved.