Package com.sun.tools.xjc.model.nav
Class EagerNClass
- java.lang.Object
-
- com.sun.tools.xjc.model.nav.EagerNClass
-
-
Constructor Summary
Constructors Constructor Description EagerNClass(Class type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)StringfullName()Human readable name of this type.inthashCode()booleanisAbstract()booleanisBoxedType()Returns true iff this type represents a class that has a unboxed form.JClasstoType(Outline o, Aspect aspect)Returns the representation of this type in code model.
-
-
-
Constructor Detail
-
EagerNClass
public EagerNClass(Class type)
-
-
Method Detail
-
isBoxedType
public boolean isBoxedType()
Description copied from interface:NTypeReturns true iff this type represents a class that has a unboxed form. For example, forStringthis is false, but forIntegerthis is true.- Specified by:
isBoxedTypein interfaceNType
-
toType
public JClass toType(Outline o, Aspect aspect)
Description copied from interface:NTypeReturns 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.
- Specified by:
toTypein interfaceNClass- Specified by:
toTypein interfaceNTypeaspect- 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.
-
isAbstract
public boolean isAbstract()
- Specified by:
isAbstractin interfaceNClass
-
-