Uses of Class
com.sun.codemodel.JClass
-
Packages that use JClass Package Description com.sun.codemodel Library for generating Java source codecom.sun.codemodel.fmt com.sun.codemodel.util -
-
Uses of JClass in com.sun.codemodel
Subclasses of JClass in com.sun.codemodel Modifier and Type Class Description (package private) classJAnonymousClassAnonymous class quick hack.(package private) classJArrayClassArray class.private classJCodeModel.JReferencedClassReferences to existing classes.classJDefinedClassA generated Java class/interface/enum/....(package private) classJDirectClassA specialJClassthat represents an unknown class (except its name.)(package private) classJNarrowedClassRepresents X<Y>.classJNullTypeSpecial class object that represents the type of "null".classJTypeVarType variable used to declare generics.(package private) classJTypeWildcardRepresents a wildcard type like "? extends Foo".Fields in com.sun.codemodel declared as JClass Modifier and Type Field Description private JClassJClass. arrayClassprivate JClassJPrimitiveType. arrayClassprivate JClassJAnonymousClass. baseBase interface/class from which this anonymous class is built.(package private) JClassJNarrowedClass. basisA generic class with type parameters.private JClassJTypeVar. boundprivate JClassJTypeWildcard. boundprivate JClassJAnnotationUse. clazzTheAnnotationclass(package private) JClassJCatchBlock. exceptionprivate JClassJDefinedClass. superClassName of the super class of this class.private JClassJCodeModel. wildcardCached forJCodeModel.wildcard().private JClassJPrimitiveType. wrapperClassCorresponding wrapper class.Fields in com.sun.codemodel with type parameters of type JClass Modifier and Type Field Description private java.util.Set<JClass>JMethod. _throwsSet of exceptions that this method may throw.private java.util.List<JClass>JNarrowedClass. argsArguments to those parameters.private java.util.Map<JClass,JCommentPart>JDocComment. atThrowslist of @throws tagsprivate java.util.ArrayList<JClass>JFormatter.ReferenceList. classesprivate java.util.HashSet<JClass>JFormatter. importedClassesset of imported types (including package java types, eventhough we won't generate imports for them)private java.util.Set<JClass>JDefinedClass. interfacesList of interfaces that this class implementsMethods in com.sun.codemodel that return JClass Modifier and Type Method Description JClassJArrayClass. _extends()abstract JClassJClass. _extends()Gets the super class of this class.JClassJCodeModel.JReferencedClass. _extends()JClassJDefinedClass. _extends()Returns the class extended by this class.JClassJDirectClass. _extends()JClassJNarrowedClass. _extends()JClassJNullType. _extends()JClassJTypeVar. _extends()Returns the class bound of this variable.JClassJTypeWildcard. _extends()Returns the class bound of this variable.JClassJClass. array()JClassJPrimitiveType. array()abstract JClassJType. array()Create an array type of this type.JClassJClass. boxify()Deprecated.calling this method fromJClasswould be meaningless, since it's always guaranteed to return this.JClassJPrimitiveType. boxify()Obtains the wrapper class for this primitive type.abstract JClassJType. boxify()If this class is a primitive type, return the boxed class.JClassJCodeModel. directClass(java.lang.String name)Creates a dummy, unknownJClassthat represents a given name.JClassJClass. erasure()JClassJNarrowedClass. erasure()JClassJAnnotationUse. getAnnotationClass()JClassJClass. getBaseClass(JClass baseType)Gets the parameterization of the given base type.JClassJClass. getBaseClass(java.lang.Class<?> baseType)JClassJPrimitiveType. getWrapperClass()Deprecated.JClass[]JDefinedClass. listClasses()Returns all the nested classes defined in this class.JClassJClass. narrow(JClass clazz)"Narrows" a generic class to a concrete class by specifying a type argument.JClassJClass. narrow(JClass... clazz)JClassJClass. narrow(JType type)JClassJClass. narrow(java.lang.Class<?> clazz)"Narrows" a generic class to a concrete class by specifying a type argument.JClassJClass. narrow(java.lang.Class<?>... clazz)JClassJClass. narrow(java.util.List<? extends JClass> clazz)JClassJNarrowedClass. narrow(JClass clazz)JClassJNarrowedClass. narrow(JClass... clazz)JClassJClass. outer()Returns the class in which this class is nested, or null if this is a top-level class.JClassJCodeModel.JReferencedClass. outer()JClassJDefinedClass. outer()private JClassJCodeModel.TypeNameParser. parseArguments(JClass rawType)Parses '<T1,T2,...,Tn>'private JClassJCodeModel.TypeNameParser. parseSuffix(JClass clazz)Parses additional left-associative suffixes, like type arguments and array specifiers.(package private) JClassJCodeModel.TypeNameParser. parseTypeName()Parses a type name token T (which can be potentially of the form Tr&ly;T1,T2,...>, or "? extends/super T".)JClassJCodeModel. ref(java.lang.Class<?> clazz)Obtains a reference to an existing class from its Class object.JClassJCodeModel. ref(java.lang.String fullyQualifiedClassName)Obtains a reference to an existing class from its fully-qualified class name.JClassJPackage. ref(java.lang.String name)Reference a class within this package.protected JClassJArrayClass. substituteParams(JTypeVar[] variables, java.util.List<JClass> bindings)protected abstract JClassJClass. substituteParams(JTypeVar[] variables, java.util.List<JClass> bindings)Substitutes the type variables with their actual arguments.protected JClassJCodeModel.JReferencedClass. substituteParams(JTypeVar[] variables, java.util.List<JClass> bindings)protected JClassJDefinedClass. substituteParams(JTypeVar[] variables, java.util.List<JClass> bindings)protected JClassJDirectClass. substituteParams(JTypeVar[] variables, java.util.List<JClass> bindings)protected JClassJNarrowedClass. substituteParams(JTypeVar[] variables, java.util.List<JClass> bindings)protected JClassJNullType. substituteParams(JTypeVar[] variables, java.util.List<JClass> bindings)protected JClassJTypeVar. substituteParams(JTypeVar[] variables, java.util.List<JClass> bindings)protected JClassJTypeWildcard. substituteParams(JTypeVar[] variables, java.util.List<JClass> bindings)JClassJClass. wildcard()Create "? extends T" from T.JClassJCodeModel. wildcard()Gets aJClassrepresentation for "?", which is equivalent to "? extends Object".Methods in com.sun.codemodel that return types with arguments of type JClass Modifier and Type Method Description java.util.Iterator<JClass>JArrayClass. _implements()abstract java.util.Iterator<JClass>JClass. _implements()Iterates all super interfaces directly implemented by this class/interface.java.util.Iterator<JClass>JCodeModel.JReferencedClass. _implements()java.util.Iterator<JClass>JDefinedClass. _implements()Returns an iterator that walks the nested classes defined in this class.java.util.Iterator<JClass>JDirectClass. _implements()java.util.Iterator<JClass>JNarrowedClass. _implements()java.util.Iterator<JClass>JNullType. _implements()java.util.Iterator<JClass>JTypeVar. _implements()Returns the interface bounds of this variable.java.util.Iterator<JClass>JTypeWildcard. _implements()Returns the interface bounds of this variable.java.util.List<JClass>JFormatter.ReferenceList. getClasses()private java.util.Set<JClass>JMethod. getThrows()java.util.List<JClass>JClass. getTypeParameters()If this class is parameterized, return the type parameter of the given index.java.util.List<JClass>JNarrowedClass. getTypeParameters()Methods in com.sun.codemodel with parameters of type JClass Modifier and Type Method Description JCatchBlockJTryBlock. _catch(JClass exception)JDefinedClassJDefinedClass. _extends(JClass superClass)This class extends the specifed class.JDefinedClassJDefinedClass. _implements(JClass iface)This class implements the specifed interface.static JInvocationJExpr. _new(JClass c)JMethodJMethod. _throws(JClass exception)Add an exception to the list of exceptions that this method may throw.voidJFormatter.ReferenceList. add(JClass clazz)JCommentPartJDocComment. addThrows(JClass exception)add an @throws tag to the javadocJAnnotationUseJAnnotatable. annotate(JClass clazz)Adds an annotation to this program element.JAnnotationUseJAnnotationArrayMember. annotate(JClass clazz)Adds a new annotation to the array.JAnnotationUseJDefinedClass. annotate(JClass clazz)Adding ability to annotate a classJAnnotationUseJEnumConstant. annotate(JClass clazz)Adds an annotation to this variable.JAnnotationUseJMethod. annotate(JClass clazz)Adds an annotation to this variable.JAnnotationUseJPackage. annotate(JClass clazz)JAnnotationUseJVar. annotate(JClass clazz)Adds an annotation to this variable.JDefinedClassJCodeModel. anonymousClass(JClass baseType)Creates a new anonymous class.JTypeVarJTypeVar. bound(JClass c)Adds a bound to this variable.static JExpressionJExpr. dotclass(JClass cl)JTypeVarJDefinedClass. generify(java.lang.String name, JClass bound)JTypeVarJGenerifiable. generify(java.lang.String name, JClass bound)Adds a new type variable to this declaration with a bound.JTypeVarJGenerifiableImpl. generify(java.lang.String name, JClass bound)JClassJClass. getBaseClass(JClass baseType)Gets the parameterization of the given base type.booleanJClass. isAssignableFrom(JClass derived)Checks the relationship between two classes.JClassJClass. narrow(JClass clazz)"Narrows" a generic class to a concrete class by specifying a type argument.JClassJClass. narrow(JClass... clazz)JClassJNarrowedClass. narrow(JClass clazz)JClassJNarrowedClass. narrow(JClass... clazz)JDefinedClassJCodeModel. newAnonymousClass(JClass baseType)Deprecated.The naming convention doesn't match the rest of the CodeModel.private JClassJCodeModel.TypeNameParser. parseArguments(JClass rawType)Parses '<T1,T2,...,Tn>'private JClassJCodeModel.TypeNameParser. parseSuffix(JClass clazz)Parses additional left-associative suffixes, like type arguments and array specifiers.voidJPackage. remove(JClass c)Removes a class from this package.JInvocationJBlock. staticInvoke(JClass type, java.lang.String method)Creates a static invocation statement.private booleanJFormatter. supressImport(JClass clazz, JClass c)determine if an import statement should be supressedJFormatterJFormatter. t(JClass type)Print a type name.Method parameters in com.sun.codemodel with type arguments of type JClass Modifier and Type Method Description JClassJClass. narrow(java.util.List<? extends JClass> clazz)protected JClassJArrayClass. substituteParams(JTypeVar[] variables, java.util.List<JClass> bindings)protected abstract JClassJClass. substituteParams(JTypeVar[] variables, java.util.List<JClass> bindings)Substitutes the type variables with their actual arguments.protected JClassJCodeModel.JReferencedClass. substituteParams(JTypeVar[] variables, java.util.List<JClass> bindings)protected JClassJDefinedClass. substituteParams(JTypeVar[] variables, java.util.List<JClass> bindings)protected JClassJDirectClass. substituteParams(JTypeVar[] variables, java.util.List<JClass> bindings)protected JClassJNarrowedClass. substituteParams(JTypeVar[] variables, java.util.List<JClass> bindings)protected JClassJNullType. substituteParams(JTypeVar[] variables, java.util.List<JClass> bindings)protected JClassJTypeVar. substituteParams(JTypeVar[] variables, java.util.List<JClass> bindings)protected JClassJTypeWildcard. substituteParams(JTypeVar[] variables, java.util.List<JClass> bindings)Constructors in com.sun.codemodel with parameters of type JClass Constructor Description JAnnotationUse(JClass clazz)JAnonymousClass(JClass _base)JCatchBlock(JClass exception)JInvocation(JClass type, JMethod method)JInvocation(JClass type, java.lang.String name)Invokes a static method on a class.JNarrowedClass(JClass basis, JClass arg)JNarrowedClass(JClass basis, java.util.List<JClass> args)JTypeWildcard(JClass bound)Constructor parameters in com.sun.codemodel with type arguments of type JClass Constructor Description JNarrowedClass(JClass basis, java.util.List<JClass> args) -
Uses of JClass in com.sun.codemodel.fmt
Subclasses of JClass in com.sun.codemodel.fmt Modifier and Type Class Description private classJStaticJavaFile.JStaticClassMethods in com.sun.codemodel.fmt that return JClass Modifier and Type Method Description JClassJStaticJavaFile.JStaticClass. _extends()JClassJStaticJavaFile. getJClass()Returns a class object that represents a statically generated code.protected JClassJStaticJavaFile.JStaticClass. substituteParams(JTypeVar[] variables, java.util.List<JClass> bindings)Methods in com.sun.codemodel.fmt that return types with arguments of type JClass Modifier and Type Method Description java.util.Iterator<JClass>JStaticJavaFile.JStaticClass. _implements()Method parameters in com.sun.codemodel.fmt with type arguments of type JClass Modifier and Type Method Description protected JClassJStaticJavaFile.JStaticClass. substituteParams(JTypeVar[] variables, java.util.List<JClass> bindings) -
Uses of JClass in com.sun.codemodel.util
Fields in com.sun.codemodel.util with type parameters of type JClass Modifier and Type Field Description static java.util.Comparator<JClass>ClassNameComparator. theInstanceMethods in com.sun.codemodel.util with parameters of type JClass Modifier and Type Method Description intClassNameComparator. compare(JClass l, JClass r)
-