Interface NClass

All Superinterfaces:
NType
All Known Implementing Classes:
CClassInfo, CClassRef, CEnumLeafInfo, EagerNClass

public interface NClass extends NType
Author:
Kohsuke Kawaguchi
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    toType(Outline o, Aspect aspect)
    Returns the representation of this type in code model.

    Methods inherited from interface com.sun.tools.xjc.model.nav.NType

    fullName, isBoxedType
  • Method Details

    • toType

      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 NType
      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

      boolean isAbstract()