public class JDirectClass extends AbstractJClassContainer<JDirectClass>
AbstractJClass that represents an unknown class (except its
name.)JCodeModel.directClass(String)m_aClassesEMPTY_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, thisAsTarray, 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, wildcardSuperbinaryName, containsTypeVar, declarable, elementType, isArray, isAssignableFrom, isAssignableFrom, isError, isPrimitive, isReference, parseclone, 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()
AbstractJClassContainerjava.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 AbstractJClassJPackage this class belongs to. Is usually not
null except for the JTypeVar and the
JTypeWildcard implementation.@Nonnull 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.@Nonnull public Iterator<AbstractJClass> _implements()
AbstractJClass_implements in class AbstractJClassAbstractJClass
objects that represents those interfaces implemented by this
object.public boolean isAbstract()
isAbstract in class AbstractJClasstrue if this class is an abstract class.@Nonnull protected AbstractJClass substituteParams(JTypeVar[] aVariables, List<? extends AbstractJClass> aBindings)
AbstractJClassAbstractJClass
for Map<String,Map<Integer>>. substituteParams in class AbstractJClassaVariables - 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.