com.sun.tools.xjc.model.nav

Class NavigatorImpl

public final class NavigatorImpl extends Object implements Navigator<NType,NClass,Void,Void>

Navigator implementation for XJC. Most of the Navigator methods are used for parsing the model, which doesn't happen in XJC. So Most of the methods aren't really implemented. Implementations should be filled in as needed.
Field Summary
static NavigatorImpltheInstance
Method Summary
NClassasDecl(NType nt)
NClassasDecl(Class c)
static NTypecreate(Type t)
static NClasscreate(Class c)
static NTypecreateParameterizedType(NClass rawType, NType... args)
Creates a NType representation for a parameterized type {@code RawType<ParamType1,ParamType2,...> }.
static NTypecreateParameterizedType(Class rawType, NType... args)
<T> NTypeerasure(NType type)
NClassfindClass(String className, NClass referencePoint)
NTypegetBaseClass(NType nt, NClass base)
LocationgetClassLocation(NClass c)
StringgetClassName(NClass nClass)
StringgetClassShortName(NClass nClass)
NTypegetComponentType(NType nType)
VoidgetDeclaredField(NClass clazz, String fieldName)
Collection<? extends Void>getDeclaredFields(NClass nClass)
Collection<? extends Void>getDeclaredMethods(NClass nClass)
NClassgetDeclaringClassForField(Void aVoid)
NClassgetDeclaringClassForMethod(Void aVoid)
Void[]getEnumConstants(NClass clazz)
LocationgetFieldLocation(Void _)
StringgetFieldName(Void aVoid)
NTypegetFieldType(Void aVoid)
LocationgetMethodLocation(Void _)
StringgetMethodName(Void aVoid)
NType[]getMethodParameters(Void aVoid)
StringgetPackageName(NClass clazz)
NTypegetPrimitive(Class primitiveType)
NTypegetReturnType(Void aVoid)
NClassgetSuperClass(NClass nClass)
NTypegetTypeArgument(NType nt, int i)
StringgetTypeName(NType type)
NTypegetVoidType()
booleanhasDefaultConstructor(NClass nClass)
booleanisAbstract(NClass clazz)
booleanisArray(NType nType)
booleanisArrayButNotByteArray(NType t)
booleanisBridgeMethod(Void method)
booleanisEnum(NClass c)
booleanisFinal(NClass clazz)
booleanisFinalMethod(Void aVoid)
booleanisInnerClass(NClass clazz)
booleanisInterface(NClass clazz)
booleanisOverriding(Void method, NClass clazz)
booleanisParameterizedType(NType nt)
booleanisPrimitive(NType type)
booleanisPublicField(Void aVoid)
booleanisPublicMethod(Void aVoid)
booleanisStaticField(Void aVoid)
booleanisStaticMethod(Void aVoid)
booleanisSubClassOf(NType sub, NType sup)
booleanisTransient(Void f)
NClassref(Class c)
NClassref(JClass c)
NTypeuse(NClass nc)

Field Detail

theInstance

public static final NavigatorImpl theInstance

Method Detail

asDecl

public NClass asDecl(NType nt)

asDecl

public NClass asDecl(Class c)

create

public static final NType create(Type t)

create

public static NClass create(Class c)

createParameterizedType

public static NType createParameterizedType(NClass rawType, NType... args)
Creates a NType representation for a parameterized type {@code RawType<ParamType1,ParamType2,...> }.

createParameterizedType

public static NType createParameterizedType(Class rawType, NType... args)

erasure

public <T> NType erasure(NType type)

findClass

public NClass findClass(String className, NClass referencePoint)

getBaseClass

public NType getBaseClass(NType nt, NClass base)

getClassLocation

public Location getClassLocation(NClass c)

getClassName

public String getClassName(NClass nClass)

getClassShortName

public String getClassShortName(NClass nClass)

getComponentType

public NType getComponentType(NType nType)

getDeclaredField

public Void getDeclaredField(NClass clazz, String fieldName)

getDeclaredFields

public Collection<? extends Void> getDeclaredFields(NClass nClass)

getDeclaredMethods

public Collection<? extends Void> getDeclaredMethods(NClass nClass)

getDeclaringClassForField

public NClass getDeclaringClassForField(Void aVoid)

getDeclaringClassForMethod

public NClass getDeclaringClassForMethod(Void aVoid)

getEnumConstants

public Void[] getEnumConstants(NClass clazz)

getFieldLocation

public Location getFieldLocation(Void _)

getFieldName

public String getFieldName(Void aVoid)

getFieldType

public NType getFieldType(Void aVoid)

getMethodLocation

public Location getMethodLocation(Void _)

getMethodName

public String getMethodName(Void aVoid)

getMethodParameters

public NType[] getMethodParameters(Void aVoid)

getPackageName

public String getPackageName(NClass clazz)

getPrimitive

public NType getPrimitive(Class primitiveType)

getReturnType

public NType getReturnType(Void aVoid)

getSuperClass

public NClass getSuperClass(NClass nClass)

getTypeArgument

public NType getTypeArgument(NType nt, int i)

getTypeName

public String getTypeName(NType type)

getVoidType

public NType getVoidType()

hasDefaultConstructor

public boolean hasDefaultConstructor(NClass nClass)

isAbstract

public boolean isAbstract(NClass clazz)

isArray

public boolean isArray(NType nType)

isArrayButNotByteArray

public boolean isArrayButNotByteArray(NType t)

isBridgeMethod

public boolean isBridgeMethod(Void method)

isEnum

public boolean isEnum(NClass c)

isFinal

public boolean isFinal(NClass clazz)

Deprecated: no class generated by XJC is final.

isFinalMethod

public boolean isFinalMethod(Void aVoid)

isInnerClass

public boolean isInnerClass(NClass clazz)

isInterface

public boolean isInterface(NClass clazz)

isOverriding

public boolean isOverriding(Void method, NClass clazz)

isParameterizedType

public boolean isParameterizedType(NType nt)

isPrimitive

public boolean isPrimitive(NType type)

isPublicField

public boolean isPublicField(Void aVoid)

isPublicMethod

public boolean isPublicMethod(Void aVoid)

isStaticField

public boolean isStaticField(Void aVoid)

isStaticMethod

public boolean isStaticMethod(Void aVoid)

isSubClassOf

public boolean isSubClassOf(NType sub, NType sup)

isTransient

public boolean isTransient(Void f)

ref

public NClass ref(Class c)

ref

public NClass ref(JClass c)

use

public NType use(NClass nc)