Top Description Methods
com.sun.tools.xjc.model.nav

public Interface NType

Known Direct Subinterfaces
com.sun.tools.xjc.model.nav.NClass
Known Direct Implementers
com.sun.tools.xjc.model.CArrayInfo, com.sun.tools.xjc.model.CElementInfo, com.sun.tools.xjc.model.nav.EagerNType
Imports
com.sun.codemodel.JType, com.sun.tools.xjc.outline.Aspect, .Outline

A type. See the package documentation for details.
Author
Kohsuke Kawaguchi

Method Summary

Modifier and TypeMethod and Description
public String
fullName()

Human readable name of this type.

public boolean
isBoxedType()

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

public JType
toType(Outline o, Aspect
If Aspect#IMPLEMENTATION, this method returns the implementation specific class that this type represents. If Aspect#EXPOSED, this method returns the publicly exposed type that this type represents. For ordinary classes, the aspect parameter is meaningless.
aspect
)

Returns the representation of this type in code model.

Method Detail

fullNameback to summary
public String fullName()

Human readable name of this type.

isBoxedTypeback to summary
public boolean 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.

toTypeback to summary
public JType toType(Outline o, Aspect aspect)

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.

Parameters
aspect:Aspect

If Aspect#IMPLEMENTATION, this method returns the implementation specific class that this type represents. If Aspect#EXPOSED, this method returns the publicly exposed type that this type represents. For ordinary classes, the aspect parameter is meaningless.