com.sun.tools.xjc.model.nav
Class EagerNClass

java.lang.Object
  extended by com.sun.tools.xjc.model.nav.EagerNType
      extended by com.sun.tools.xjc.model.nav.EagerNClass
All Implemented Interfaces:
NClass, NType

public class EagerNClass
extends EagerNType
implements NClass


Field Summary
(package private)  Class c
           
 
Fields inherited from class com.sun.tools.xjc.model.nav.EagerNType
t
 
Constructor Summary
EagerNClass(Class type)
           
 
Method Summary
 boolean isAbstract()
           
 boolean isBoxedType()
          Returns true iff this type represents a class that has a unboxed form.
 com.sun.codemodel.JClass toType(Outline o, Aspect aspect)
          Returns the representation of this type in code model.
 
Methods inherited from class com.sun.tools.xjc.model.nav.EagerNType
equals, fullName, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.sun.tools.xjc.model.nav.NType
fullName
 

Field Detail

c

final Class c
Constructor Detail

EagerNClass

public EagerNClass(Class type)
Method Detail

isBoxedType

public boolean isBoxedType()
Description copied from interface: NType
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.

Specified by:
isBoxedType in interface NType
Overrides:
isBoxedType in class EagerNType

toType

public com.sun.codemodel.JClass toType(Outline o,
                                       Aspect aspect)
Description copied from interface: NType
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.

Specified by:
toType in interface NClass
Specified by:
toType in interface NType
Overrides:
toType in class EagerNType
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.

isAbstract

public boolean isAbstract()
Specified by:
isAbstract in interface NClass