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

public Class EagerNClass

extends EagerNType
implements NClass
Class Inheritance
All Implemented Interfaces
com.sun.tools.xjc.model.nav.NClass, com.sun.tools.xjc.model.nav.NType
Imports
java.lang.reflect.Modifier, java.util.HashSet, .Set, com.sun.codemodel.JClass, com.sun.tools.xjc.outline.Aspect, .Outline

Author
Kohsuke Kawaguchi

Field Summary

Modifier and TypeField and Description
private static final Set<Class<?>>
pack-priv final Class<?>
c

Inherited from com.sun.tools.xjc.model.nav.EagerNType:
t

Constructor Summary

AccessConstructor and Description
public
EagerNClass(Class<?> type)

Method Summary

Modifier and TypeMethod and Description
public boolean
public boolean
isBoxedType()

Overrides com.sun.tools.xjc.model.nav.EagerNType.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
Inherited from com.sun.tools.xjc.model.nav.EagerNType:
equalsfullNamehashCode

Field Detail

boxedTypesback to summary
private static final Set<Class<?>> boxedTypes
cback to summary
pack-priv final Class<?> c

Constructor Detail

EagerNClassback to summary
public EagerNClass(Class<?> type)

Method Detail

isAbstractback to summary
public boolean isAbstract()

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

Annotations
@Override
isBoxedTypeback to summary
public boolean isBoxedType()

Overrides com.sun.tools.xjc.model.nav.EagerNType.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)

Overrides com.sun.tools.xjc.model.nav.EagerNType.toType.

Implements com.sun.tools.xjc.model.nav.NClass.toType, com.sun.tools.xjc.model.nav.NType.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