Top Fields Constructors Methods
com.sun.tools.xjc.model.nav

pack-priv Class NClassByJClass

extends Object
implements NClass
Class Inheritance
All Implemented Interfaces
com.sun.tools.xjc.model.nav.NClass, com.sun.tools.xjc.model.nav.NType
Imports
com.sun.codemodel.JClass, com.sun.tools.xjc.outline.Aspect, .Outline

Author
Kohsuke Kawaguchi

Field Summary

Modifier and TypeField and Description
pack-priv final JClass

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public String
fullName()

Implements com.sun.tools.xjc.model.nav.NType.fullName.

Human readable name of this type.

public boolean
public boolean
isBoxedType()

Implements com.sun.tools.xjc.model.nav.NType.isBoxedType.

Returns true iff this type represents a class that has a unboxed form.

public JClass
toType(Outline o, Aspect aspect)

Implements com.sun.tools.xjc.model.nav.NClass.toType.

Returns the representation of this type in code model.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

clazzback to summary
pack-priv final JClass clazz

Constructor Detail

NClassByJClassback to summary
pack-priv NClassByJClass(JClass clazz)

Method Detail

fullNameback to summary
public String fullName()

Implements com.sun.tools.xjc.model.nav.NType.fullName.

Doc from com.sun.tools.xjc.model.nav.NType.fullName.

Human readable name of this type.

Annotations
@Override
isAbstractback to summary
public boolean isAbstract()

Implements com.sun.tools.xjc.model.nav.NClass.isAbstract.

Annotations
@Override
isBoxedTypeback to summary
public boolean isBoxedType()

Implements com.sun.tools.xjc.model.nav.NType.isBoxedType.

Doc from com.sun.tools.xjc.model.nav.NType.isBoxedType.

Returns true iff this type represents a class that has a unboxed form. For example, for String this is false, but for Integer this is true.

Annotations
@Override
toTypeback to summary
public JClass toType(Outline o, Aspect aspect)

Implements com.sun.tools.xjc.model.nav.NClass.toType.

Doc from com.sun.tools.xjc.model.nav.NType.toType.

Returns the representation of this type in code model.

This operation requires the whole model to be built, and hence it takes Outline.

Under some code generation strategy, some bean classes are considered implementation specific (such as impl.FooImpl class) These classes always have accompanying "exposed" type (such as the Foo interface).

For such Jekyll and Hyde type, the aspect parameter determines which personality is returned.

Annotations
@Override