Uses of Class
com.sun.codemodel.JClass
Packages that use JClass
Package
Description
Library for generating Java source code
-
Uses of JClass in com.sun.codemodel
Subclasses of JClass in com.sun.codemodelModifier and TypeClassDescription(package private) classAnonymous class quick hack.(package private) final classArray class.private classReferences to existing classes.classA generated Java class/interface/enum/....(package private) final classA specialJClassthat represents an unknown class (except its name.)(package private) classRepresents X<Y>.final classSpecial class object that represents the type of "null".final classType variable used to declare generics.(package private) final classRepresents a wildcard type like "? extends Foo".Fields in com.sun.codemodel declared as JClassModifier and TypeFieldDescriptionprivate JClassJClass.arrayClassprivate JClassJPrimitiveType.arrayClassprivate final JClassJAnonymousClass.baseBase interface/class from which this anonymous class is built.(package private) final JClassJNarrowedClass.basisA generic class with type parameters.private JClassJTypeVar.boundprivate final JClassJTypeWildcard.boundprivate final JClassJAnnotationUse.clazzTheAnnotationclass(package private) JClassJCatchBlock.exceptionprivate JClassJDefinedClass.superClassName of the super class of this class.private JClassJCodeModel.wildcardCached forJCodeModel.wildcard().private final JClassJPrimitiveType.wrapperClassCorresponding wrapper class.Fields in com.sun.codemodel with type parameters of type JClassModifier and TypeFieldDescriptionJMethod._throwsSet of exceptions that this method may throw.JNarrowedClass.argsArguments to those parameters.private final Map<JClass, JCommentPart> JDocComment.atThrowslist of @throws tagsJFormatter.ReferenceList.classesJFormatter.importedClassesset of imported types (including package java types, eventhough we won't generate imports for them)JDefinedClass.interfacesList of interfaces that this class implementsMethods in com.sun.codemodel that return JClassModifier and TypeMethodDescriptionJArrayClass._extends()abstract JClassJClass._extends()Gets the super class of this class.JCodeModel.JReferencedClass._extends()JDefinedClass._extends()Returns the class extended by this class.JDirectClass._extends()JNarrowedClass._extends()JNullType._extends()JTypeVar._extends()Returns the class bound of this variable.JTypeWildcard._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()JNarrowedClass.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.JCodeModel.JReferencedClass.outer()JDefinedClass.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".)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 JClassJArrayClass.substituteParams(JTypeVar[] variables, List<JClass> bindings) protected abstract JClassJClass.substituteParams(JTypeVar[] variables, List<JClass> bindings) Substitutes the type variables with their actual arguments.protected JClassJCodeModel.JReferencedClass.substituteParams(JTypeVar[] variables, List<JClass> bindings) protected JClassJDefinedClass.substituteParams(JTypeVar[] variables, List<JClass> bindings) protected JClassJDirectClass.substituteParams(JTypeVar[] variables, List<JClass> bindings) protected JClassJNarrowedClass.substituteParams(JTypeVar[] variables, List<JClass> bindings) protected JClassJNullType.substituteParams(JTypeVar[] variables, List<JClass> bindings) protected JClassJTypeVar.substituteParams(JTypeVar[] variables, List<JClass> bindings) protected JClassJTypeWildcard.substituteParams(JTypeVar[] variables, List<JClass> bindings) final JClassJClass.wildcard()Create "? extends T" from T.JCodeModel.wildcard()Gets aJClassrepresentation for "?", which is equivalent to "? extends Object".Methods in com.sun.codemodel that return types with arguments of type JClassModifier and TypeMethodDescriptionJArrayClass._implements()JClass._implements()Iterates all super interfaces directly implemented by this class/interface.JCodeModel.JReferencedClass._implements()JDefinedClass._implements()Returns an iterator that walks the nested classes defined in this class.JDirectClass._implements()JNarrowedClass._implements()JNullType._implements()JTypeVar._implements()Returns the interface bounds of this variable.JTypeWildcard._implements()Returns the interface bounds of this variable.JFormatter.ReferenceList.getClasses()JMethod.getThrows()JClass.getTypeParameters()If this class is parameterized, return the type parameter of the given index.JNarrowedClass.getTypeParameters()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.voidadd 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.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.voidRemoves a class from this package.JBlock.staticInvoke(JClass type, String method) Creates a static invocation statement.private booleanJFormatter.supressImport(JClass clazz, JClass c) determine if an import statement should be supressedPrint a type name.Method parameters in com.sun.codemodel with type arguments of type JClassModifier and TypeMethodDescriptionprotected JClassJArrayClass.substituteParams(JTypeVar[] variables, List<JClass> bindings) protected abstract JClassJClass.substituteParams(JTypeVar[] variables, List<JClass> bindings) Substitutes the type variables with their actual arguments.protected JClassJCodeModel.JReferencedClass.substituteParams(JTypeVar[] variables, List<JClass> bindings) protected JClassJDefinedClass.substituteParams(JTypeVar[] variables, List<JClass> bindings) protected JClassJDirectClass.substituteParams(JTypeVar[] variables, List<JClass> bindings) protected JClassJNarrowedClass.substituteParams(JTypeVar[] variables, List<JClass> bindings) protected JClassJNullType.substituteParams(JTypeVar[] variables, List<JClass> bindings) protected JClassJTypeVar.substituteParams(JTypeVar[] variables, List<JClass> bindings) protected JClassJTypeWildcard.substituteParams(JTypeVar[] variables, List<JClass> bindings) Constructors in com.sun.codemodel with parameters of type JClassModifierConstructorDescription(package private)JAnnotationUse(JClass clazz) (package private)JAnonymousClass(JClass _base) (package private)JCatchBlock(JClass exception) (package private)JInvocation(JClass type, JMethod method) (package private)JInvocation(JClass type, String name) Invokes a static method on a class.(package private)JNarrowedClass(JClass basis, JClass arg) (package private)JNarrowedClass(JClass basis, List<JClass> args) (package private)JTypeWildcard(JClass bound) Constructor parameters in com.sun.codemodel with type arguments of type JClass -
Uses of JClass in com.sun.codemodel.fmt
Subclasses of JClass in com.sun.codemodel.fmtMethods in com.sun.codemodel.fmt that return JClassModifier and TypeMethodDescriptionJStaticJavaFile.JStaticClass._extends()final JClassJStaticJavaFile.getJClass()Returns a class object that represents a statically generated code.protected JClassJStaticJavaFile.JStaticClass.substituteParams(JTypeVar[] variables, List<JClass> bindings) Methods in com.sun.codemodel.fmt that return types with arguments of type JClassMethod parameters in com.sun.codemodel.fmt with type arguments of type JClassModifier and TypeMethodDescriptionprotected JClassJStaticJavaFile.JStaticClass.substituteParams(JTypeVar[] variables, List<JClass> bindings) -
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.