Package com.sun.tools.xjc.model.nav
Interface NType
-
- All Known Subinterfaces:
NClass
- All Known Implementing Classes:
CArrayInfo,CClassInfo,CClassRef,CElementInfo,CEnumLeafInfo,EagerNClass
public interface NTypeA type. See the package documentation for details.- Author:
- Kohsuke Kawaguchi
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringfullName()Human readable name of this type.booleanisBoxedType()Returns true iff this type represents a class that has a unboxed form.JTypetoType(Outline o, Aspect aspect)Returns the representation of this type in code model.
-
-
-
Method Detail
-
toType
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- IfAspect.IMPLEMENTATION, this method returns the implementation specific class that this type represents. IfAspect.EXPOSED, this method returns the publicly exposed type that this type represents. For ordinary classes, the aspect parameter is meaningless.
-
isBoxedType
boolean isBoxedType()
-
fullName
String fullName()
Human readable name of this type.
-
-