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) class
Anonymous class quick hack.(package private) final class
Array class.private class
References to existing classes.class
A generated Java class/interface/enum/....(package private) final class
A specialJClass
that represents an unknown class (except its name.)(package private) class
Represents X<Y>.final class
Special class object that represents the type of "null".final class
Type variable used to declare generics.(package private) final class
Represents a wildcard type like "? extends Foo".Fields in com.sun.codemodel declared as JClassModifier and TypeFieldDescriptionprivate JClass
JClass.arrayClass
private JClass
JPrimitiveType.arrayClass
private final JClass
JAnonymousClass.base
Base interface/class from which this anonymous class is built.(package private) final JClass
JNarrowedClass.basis
A generic class with type parameters.private JClass
JTypeVar.bound
private final JClass
JTypeWildcard.bound
private final JClass
JAnnotationUse.clazz
TheAnnotation
class(package private) JClass
JCatchBlock.exception
private JClass
JDefinedClass.superClass
Name of the super class of this class.private JClass
JCodeModel.wildcard
Cached forJCodeModel.wildcard()
.private final JClass
JPrimitiveType.wrapperClass
Corresponding wrapper class.Fields in com.sun.codemodel with type parameters of type JClassModifier and TypeFieldDescriptionJMethod._throws
Set of exceptions that this method may throw.JNarrowedClass.args
Arguments to those parameters.private final Map
<JClass, JCommentPart> JDocComment.atThrows
list of @throws tagsJFormatter.ReferenceList.classes
JFormatter.importedClasses
set of imported types (including package java types, eventhough we won't generate imports for them)JDefinedClass.interfaces
List of interfaces that this class implementsMethods in com.sun.codemodel that return JClassModifier and TypeMethodDescriptionJArrayClass._extends()
abstract JClass
JClass._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 JClass
JType.array()
Create an array type of this type.JClass.boxify()
Deprecated.JPrimitiveType.boxify()
Obtains the wrapper class for this primitive type.abstract JClass
JType.boxify()
If this class is a primitive type, return the boxed class.JCodeModel.directClass
(String name) Creates a dummy, unknownJClass
that represents a given name.JClass.erasure()
JNarrowedClass.erasure()
JAnnotationUse.getAnnotationClass()
final JClass
JClass.getBaseClass
(JClass baseType) Gets the parameterization of the given base type.final JClass
JClass.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 JClass
JCodeModel.TypeNameParser.parseArguments
(JClass rawType) Parses '<T1,T2,...,Tn>'private JClass
JCodeModel.TypeNameParser.parseSuffix
(JClass clazz) Parses additional left-associative suffixes, like type arguments and array specifiers.(package private) JClass
JCodeModel.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 JClass
JArrayClass.substituteParams
(JTypeVar[] variables, List<JClass> bindings) protected abstract JClass
JClass.substituteParams
(JTypeVar[] variables, List<JClass> bindings) Substitutes the type variables with their actual arguments.protected JClass
JCodeModel.JReferencedClass.substituteParams
(JTypeVar[] variables, List<JClass> bindings) protected JClass
JDefinedClass.substituteParams
(JTypeVar[] variables, List<JClass> bindings) protected JClass
JDirectClass.substituteParams
(JTypeVar[] variables, List<JClass> bindings) protected JClass
JNarrowedClass.substituteParams
(JTypeVar[] variables, List<JClass> bindings) protected JClass
JNullType.substituteParams
(JTypeVar[] variables, List<JClass> bindings) protected JClass
JTypeVar.substituteParams
(JTypeVar[] variables, List<JClass> bindings) protected JClass
JTypeWildcard.substituteParams
(JTypeVar[] variables, List<JClass> bindings) final JClass
JClass.wildcard()
Create "? extends T" from T.JCodeModel.wildcard()
Gets aJClass
representation 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 JInvocation
Add an exception to the list of exceptions that this method may throw.void
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 JExpression
Adds a new type variable to this declaration with a bound.final JClass
JClass.getBaseClass
(JClass baseType) Gets the parameterization of the given base type.final boolean
JClass.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 JClass
JCodeModel.TypeNameParser.parseArguments
(JClass rawType) Parses '<T1,T2,...,Tn>'private JClass
JCodeModel.TypeNameParser.parseSuffix
(JClass clazz) Parses additional left-associative suffixes, like type arguments and array specifiers.void
Removes a class from this package.JBlock.staticInvoke
(JClass type, String method) Creates a static invocation statement.private boolean
JFormatter.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 JClass
JArrayClass.substituteParams
(JTypeVar[] variables, List<JClass> bindings) protected abstract JClass
JClass.substituteParams
(JTypeVar[] variables, List<JClass> bindings) Substitutes the type variables with their actual arguments.protected JClass
JCodeModel.JReferencedClass.substituteParams
(JTypeVar[] variables, List<JClass> bindings) protected JClass
JDefinedClass.substituteParams
(JTypeVar[] variables, List<JClass> bindings) protected JClass
JDirectClass.substituteParams
(JTypeVar[] variables, List<JClass> bindings) protected JClass
JNarrowedClass.substituteParams
(JTypeVar[] variables, List<JClass> bindings) protected JClass
JNullType.substituteParams
(JTypeVar[] variables, List<JClass> bindings) protected JClass
JTypeVar.substituteParams
(JTypeVar[] variables, List<JClass> bindings) protected JClass
JTypeWildcard.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 JClass
JStaticJavaFile.getJClass()
Returns a class object that represents a statically generated code.protected JClass
JStaticJavaFile.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 JClass
JStaticJavaFile.JStaticClass.substituteParams
(JTypeVar[] variables, List<JClass> bindings) -
Uses of JClass in com.sun.codemodel.util
Fields in com.sun.codemodel.util with type parameters of type JClassMethods in com.sun.codemodel.util with parameters of type JClass
JClass
would be meaningless, since it's always guaranteed to return this.