Class JAnonymousClass
java.lang.Object
com.sun.codemodel.JType
com.sun.codemodel.JClass
com.sun.codemodel.JDefinedClass
com.sun.codemodel.JAnonymousClass
- All Implemented Interfaces:
JAnnotatable, JClassContainer, JDeclaration, JDocCommentable, JGenerable, JGenerifiable, Comparable<JType>
Anonymous class quick hack.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final JClassBase interface/class from which this anonymous class is built.Fields inherited from class JDefinedClass
fields, metadataFields inherited from class JClass
EMPTY_ARRAY -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class JDefinedClass
_annotationTypeDeclaration, _class, _class, _class, _class, _enum, _enum, _extends, _extends, _extends, _implements, _implements, _implements, _interface, _interface, _package, annotate, annotate, annotate2, annotations, binaryName, classes, constructor, constructors, declare, declareBody, direct, enumConstant, field, field, field, field, fields, generify, generify, generify, getClassType, getConstructor, getMethod, getPackage, hide, init, isAbstract, isAnnotationTypeDeclaration, isAnonymous, isClass, isHidden, isInterface, isPackage, javadoc, listClasses, method, method, methods, mods, name, outer, parentContainer, removeField, substituteParams, typeParamsMethods inherited from class JClass
array, boxify, dotclass, erasure, getBaseClass, getBaseClass, getPrimitiveType, getTypeParameters, isAssignableFrom, isParameterized, narrow, narrow, narrow, narrow, narrow, narrow, owner, printLink, staticInvoke, staticInvoke, staticRef, staticRef, toString, unboxify, wildcardMethods inherited from class JType
compareTo, elementType, isArray, isPrimitive, isReference, parseMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface JClassContainer
owner
-
Field Details
-
base
Base interface/class from which this anonymous class is built.
-
-
Constructor Details
-
JAnonymousClass
JAnonymousClass(JClass _base)
-
-
Method Details
-
fullName
Description copied from class:JDefinedClassGets the fully qualified name of this class.- Overrides:
fullNamein classJDefinedClass- Returns:
- Strings like "int", "java.lang.String", "java.io.File[]". Never null.
-
generate
- Specified by:
generatein interfaceJGenerable- Overrides:
generatein classJClass
-