Uses of Class
com.sun.codemodel.JClass
Packages that use JClass
Package
Description
Library for generating Java source code
Various resource file formats (classes that implement
JResourceFile).-
Uses of JClass in com.sun.codemodel
Subclasses of JClass in com.sun.codemodelModifier and TypeClassDescriptionclassA generated Java class/interface/enum/....final classSpecial class object that represents the type of "null".final classType variable used to declare generics.Methods in com.sun.codemodel that return JClassModifier and TypeMethodDescriptionabstract JClassJClass._extends()Gets the super class of this class.JDefinedClass._extends()Returns the class extended by this class.JNullType._extends()JTypeVar._extends()Returns the class bound of this variable.JClass.array()JPrimitiveType.array()abstract JClassJType.array()Create an array type of this type.JClass.boxify()Deprecated.JPrimitiveType.boxify()Obtains the wrapper class for this primitive type.abstract JClassJType.boxify()If this class is a primitive type, return the boxed class.JCodeModel.directClass(String name) Creates a dummy, unknownJClassthat represents a given name.JClass.erasure()JAnnotationUse.getAnnotationClass()final JClassJClass.getBaseClass(JClass baseType) Gets the parameterization of the given base type.final JClassJClass.getBaseClass(Class<?> baseType) JPrimitiveType.getWrapperClass()Deprecated.final JClass[]JDefinedClass.listClasses()Returns all the nested classes defined in this class."Narrows" a generic class to a concrete class by specifying a type argument."Narrows" a generic class to a concrete class by specifying a type argument.JClass.outer()Returns the class in which this class is nested, or null if this is a top-level class.JDefinedClass.outer()Obtains a reference to an existing class from its Class object.Obtains a reference to an existing class from its fully-qualified class name.Reference a class within this package.protected abstract JClassJClass.substituteParams(JTypeVar[] variables, List<JClass> bindings) Substitutes the type variables with their actual arguments.protected JClassJDefinedClass.substituteParams(JTypeVar[] variables, List<JClass> bindings) protected JClassJNullType.substituteParams(JTypeVar[] variables, List<JClass> bindings) protected JClassJTypeVar.substituteParams(JTypeVar[] variables, List<JClass> bindings) final JClassJClass.wildcard()Create "?JCodeModel.wildcard()Gets aJClassrepresentation for "?"Methods in com.sun.codemodel that return types with arguments of type JClassModifier and TypeMethodDescriptionJClass._implements()Iterates all super interfaces directly implemented by this class/interface.JDefinedClass._implements()Returns an iterator that walks the nested classes defined in this class.JNullType._implements()JTypeVar._implements()Returns the interface bounds of this variable.JClass.getTypeParameters()If this class is parameterized, return the type parameter of the given index.Methods in com.sun.codemodel with parameters of type JClassModifier and TypeMethodDescriptionThis class extends the specifed class.JDefinedClass._implements(JClass iface) This class implements the specifed interface.static JInvocationAdd an exception to the list of exceptions that this method may throw.add an @throws tag to the javadocAdds an annotation to this program element.Adds a new annotation to the array.Adding ability to annotate a classAdds an annotation to this variable.Adds an annotation to this variable.Adds an annotation to this variable.JCodeModel.anonymousClass(JClass baseType) Creates a new anonymous class.Adds a bound to this variable.static JExpressionAdds a new type variable to this declaration with a bound.final JClassJClass.getBaseClass(JClass baseType) Gets the parameterization of the given base type.final booleanJClass.isAssignableFrom(JClass derived) Checks the relationship between two classes."Narrows" a generic class to a concrete class by specifying a type argument.JCodeModel.newAnonymousClass(JClass baseType) Deprecated.The naming convention doesn't match the rest of the CodeModel.voidRemoves a class from this package.JBlock.staticInvoke(JClass type, String method) Creates a static invocation statement.Print a type name.Method parameters in com.sun.codemodel with type arguments of type JClassModifier and TypeMethodDescriptionprotected abstract JClassJClass.substituteParams(JTypeVar[] variables, List<JClass> bindings) Substitutes the type variables with their actual arguments.protected JClassJDefinedClass.substituteParams(JTypeVar[] variables, List<JClass> bindings) protected JClassJNullType.substituteParams(JTypeVar[] variables, List<JClass> bindings) protected JClassJTypeVar.substituteParams(JTypeVar[] variables, List<JClass> bindings) -
Uses of JClass in com.sun.codemodel.fmt
Methods in com.sun.codemodel.fmt that return JClass -
Uses of JClass in com.sun.codemodel.util
Classes in com.sun.codemodel.util that implement interfaces with type arguments of type JClassModifier and TypeClassDescriptionclassComparator object that sortsJClasses in the order of their names.Fields in com.sun.codemodel.util with type parameters of type JClassMethods in com.sun.codemodel.util with parameters of type JClass
JClasswould be meaningless, since it's always guaranteed to return this.