|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface NType
A type. See the package documentaion for details.
Method Summary | |
---|---|
java.lang.String |
fullName()
Human readable name of this type. |
boolean |
isBoxedType()
Returns true iff this type represents a class that has a unboxed form. |
com.sun.codemodel.JType |
toType(Outline o,
Aspect aspect)
Returns the representation of this type in code model. |
Method Detail |
---|
com.sun.codemodel.JType toType(Outline o, Aspect aspect)
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.
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.boolean isBoxedType()
String
this is false, but for Integer
this is true.
java.lang.String fullName()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |