Package com.sun.codemodel
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
,java.lang.Comparable<JType>
class JAnonymousClass extends JDefinedClass
Anonymous class quick hack.
-
-
Field Summary
Fields Modifier and Type Field Description private JClass
base
Base interface/class from which this anonymous class is built.-
Fields inherited from class com.sun.codemodel.JDefinedClass
fields, metadata
-
Fields inherited from class com.sun.codemodel.JClass
EMPTY_ARRAY
-
-
Constructor Summary
Constructors Constructor Description JAnonymousClass(JClass _base)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
fullName()
Gets the fully qualified name of this class.void
generate(JFormatter f)
-
Methods inherited from class com.sun.codemodel.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, typeParams
-
Methods inherited from class com.sun.codemodel.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, wildcard
-
Methods inherited from class com.sun.codemodel.JType
compareTo, elementType, isArray, isPrimitive, isReference, parse
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.sun.codemodel.JClassContainer
owner
-
-
-
-
Field Detail
-
base
private final JClass base
Base interface/class from which this anonymous class is built.
-
-
Constructor Detail
-
JAnonymousClass
JAnonymousClass(JClass _base)
-
-
Method Detail
-
fullName
public java.lang.String fullName()
Description copied from class:JDefinedClass
Gets the fully qualified name of this class.- Overrides:
fullName
in classJDefinedClass
- Returns:
- Strings like "int", "java.lang.String", "java.io.File[]". Never null.
-
generate
public void generate(JFormatter f)
- Specified by:
generate
in interfaceJGenerable
- Overrides:
generate
in classJClass
-
-