Class NavigatorImpl

  • All Implemented Interfaces:
    com.sun.xml.bind.v2.model.nav.Navigator<NType,​NClass,​Void,​Void>

    public final class NavigatorImpl
    extends Object
    implements com.sun.xml.bind.v2.model.nav.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.
    Author:
    Kohsuke Kawaguchi
    • Method Detail

      • getSuperClass

        public NClass getSuperClass​(NClass nClass)
        Specified by:
        getSuperClass in interface com.sun.xml.bind.v2.model.nav.Navigator<NType,​NClass,​Void,​Void>
      • getBaseClass

        public NType getBaseClass​(NType nt,
                                  NClass base)
        Specified by:
        getBaseClass in interface com.sun.xml.bind.v2.model.nav.Navigator<NType,​NClass,​Void,​Void>
      • getClassName

        public String getClassName​(NClass nClass)
        Specified by:
        getClassName in interface com.sun.xml.bind.v2.model.nav.Navigator<NType,​NClass,​Void,​Void>
      • getTypeName

        public String getTypeName​(NType type)
        Specified by:
        getTypeName in interface com.sun.xml.bind.v2.model.nav.Navigator<NType,​NClass,​Void,​Void>
      • getClassShortName

        public String getClassShortName​(NClass nClass)
        Specified by:
        getClassShortName in interface com.sun.xml.bind.v2.model.nav.Navigator<NType,​NClass,​Void,​Void>
      • getDeclaredFields

        public Collection<? extends Void> getDeclaredFields​(NClass nClass)
        Specified by:
        getDeclaredFields in interface com.sun.xml.bind.v2.model.nav.Navigator<NType,​NClass,​Void,​Void>
      • getDeclaredField

        public Void getDeclaredField​(NClass clazz,
                                     String fieldName)
        Specified by:
        getDeclaredField in interface com.sun.xml.bind.v2.model.nav.Navigator<NType,​NClass,​Void,​Void>
      • getDeclaredMethods

        public Collection<? extends Void> getDeclaredMethods​(NClass nClass)
        Specified by:
        getDeclaredMethods in interface com.sun.xml.bind.v2.model.nav.Navigator<NType,​NClass,​Void,​Void>
      • getDeclaringClassForField

        public NClass getDeclaringClassForField​(Void aVoid)
        Specified by:
        getDeclaringClassForField in interface com.sun.xml.bind.v2.model.nav.Navigator<NType,​NClass,​Void,​Void>
      • getDeclaringClassForMethod

        public NClass getDeclaringClassForMethod​(Void aVoid)
        Specified by:
        getDeclaringClassForMethod in interface com.sun.xml.bind.v2.model.nav.Navigator<NType,​NClass,​Void,​Void>
      • getFieldType

        public NType getFieldType​(Void aVoid)
        Specified by:
        getFieldType in interface com.sun.xml.bind.v2.model.nav.Navigator<NType,​NClass,​Void,​Void>
      • getFieldName

        public String getFieldName​(Void aVoid)
        Specified by:
        getFieldName in interface com.sun.xml.bind.v2.model.nav.Navigator<NType,​NClass,​Void,​Void>
      • getMethodName

        public String getMethodName​(Void aVoid)
        Specified by:
        getMethodName in interface com.sun.xml.bind.v2.model.nav.Navigator<NType,​NClass,​Void,​Void>
      • getReturnType

        public NType getReturnType​(Void aVoid)
        Specified by:
        getReturnType in interface com.sun.xml.bind.v2.model.nav.Navigator<NType,​NClass,​Void,​Void>
      • getMethodParameters

        public NType[] getMethodParameters​(Void aVoid)
        Specified by:
        getMethodParameters in interface com.sun.xml.bind.v2.model.nav.Navigator<NType,​NClass,​Void,​Void>
      • isStaticMethod

        public boolean isStaticMethod​(Void aVoid)
        Specified by:
        isStaticMethod in interface com.sun.xml.bind.v2.model.nav.Navigator<NType,​NClass,​Void,​Void>
      • isFinalMethod

        public boolean isFinalMethod​(Void aVoid)
        Specified by:
        isFinalMethod in interface com.sun.xml.bind.v2.model.nav.Navigator<NType,​NClass,​Void,​Void>
      • isSubClassOf

        public boolean isSubClassOf​(NType sub,
                                    NType sup)
        Specified by:
        isSubClassOf in interface com.sun.xml.bind.v2.model.nav.Navigator<NType,​NClass,​Void,​Void>
      • asDecl

        public NClass asDecl​(NType nt)
        Specified by:
        asDecl in interface com.sun.xml.bind.v2.model.nav.Navigator<NType,​NClass,​Void,​Void>
      • asDecl

        public NClass asDecl​(Class c)
        Specified by:
        asDecl in interface com.sun.xml.bind.v2.model.nav.Navigator<NType,​NClass,​Void,​Void>
      • isArray

        public boolean isArray​(NType nType)
        Specified by:
        isArray in interface com.sun.xml.bind.v2.model.nav.Navigator<NType,​NClass,​Void,​Void>
      • isArrayButNotByteArray

        public boolean isArrayButNotByteArray​(NType t)
        Specified by:
        isArrayButNotByteArray in interface com.sun.xml.bind.v2.model.nav.Navigator<NType,​NClass,​Void,​Void>
      • getComponentType

        public NType getComponentType​(NType nType)
        Specified by:
        getComponentType in interface com.sun.xml.bind.v2.model.nav.Navigator<NType,​NClass,​Void,​Void>
      • getTypeArgument

        public NType getTypeArgument​(NType nt,
                                     int i)
        Specified by:
        getTypeArgument in interface com.sun.xml.bind.v2.model.nav.Navigator<NType,​NClass,​Void,​Void>
      • isParameterizedType

        public boolean isParameterizedType​(NType nt)
        Specified by:
        isParameterizedType in interface com.sun.xml.bind.v2.model.nav.Navigator<NType,​NClass,​Void,​Void>
      • isPrimitive

        public boolean isPrimitive​(NType type)
        Specified by:
        isPrimitive in interface com.sun.xml.bind.v2.model.nav.Navigator<NType,​NClass,​Void,​Void>
      • getPrimitive

        public NType getPrimitive​(Class primitiveType)
        Specified by:
        getPrimitive in interface com.sun.xml.bind.v2.model.nav.Navigator<NType,​NClass,​Void,​Void>
      • create

        public static final NType create​(Type t)
      • createParameterizedType

        public static NType createParameterizedType​(NClass rawType,
                                                    NType... args)
        Creates a NType representation for a parameterized type RawType<ParamType1,ParamType2,...> .
      • createParameterizedType

        public static NType createParameterizedType​(Class rawType,
                                                    NType... args)
      • getClassLocation

        public com.sun.xml.bind.v2.runtime.Location getClassLocation​(NClass c)
        Specified by:
        getClassLocation in interface com.sun.xml.bind.v2.model.nav.Navigator<NType,​NClass,​Void,​Void>
      • getFieldLocation

        public com.sun.xml.bind.v2.runtime.Location getFieldLocation​(Void v)
        Specified by:
        getFieldLocation in interface com.sun.xml.bind.v2.model.nav.Navigator<NType,​NClass,​Void,​Void>
      • getMethodLocation

        public com.sun.xml.bind.v2.runtime.Location getMethodLocation​(Void v)
        Specified by:
        getMethodLocation in interface com.sun.xml.bind.v2.model.nav.Navigator<NType,​NClass,​Void,​Void>
      • hasDefaultConstructor

        public boolean hasDefaultConstructor​(NClass nClass)
        Specified by:
        hasDefaultConstructor in interface com.sun.xml.bind.v2.model.nav.Navigator<NType,​NClass,​Void,​Void>
      • isStaticField

        public boolean isStaticField​(Void aVoid)
        Specified by:
        isStaticField in interface com.sun.xml.bind.v2.model.nav.Navigator<NType,​NClass,​Void,​Void>
      • isPublicMethod

        public boolean isPublicMethod​(Void aVoid)
        Specified by:
        isPublicMethod in interface com.sun.xml.bind.v2.model.nav.Navigator<NType,​NClass,​Void,​Void>
      • isPublicField

        public boolean isPublicField​(Void aVoid)
        Specified by:
        isPublicField in interface com.sun.xml.bind.v2.model.nav.Navigator<NType,​NClass,​Void,​Void>
      • isEnum

        public boolean isEnum​(NClass c)
        Specified by:
        isEnum in interface com.sun.xml.bind.v2.model.nav.Navigator<NType,​NClass,​Void,​Void>
      • erasure

        public <T> NType erasure​(NType type)
        Specified by:
        erasure in interface com.sun.xml.bind.v2.model.nav.Navigator<NType,​NClass,​Void,​Void>
      • isAbstract

        public boolean isAbstract​(NClass clazz)
        Specified by:
        isAbstract in interface com.sun.xml.bind.v2.model.nav.Navigator<NType,​NClass,​Void,​Void>
      • isFinal

        public boolean isFinal​(NClass clazz)
        Deprecated.
        no class generated by XJC is final.
        Specified by:
        isFinal in interface com.sun.xml.bind.v2.model.nav.Navigator<NType,​NClass,​Void,​Void>
      • getEnumConstants

        public Void[] getEnumConstants​(NClass clazz)
        Specified by:
        getEnumConstants in interface com.sun.xml.bind.v2.model.nav.Navigator<NType,​NClass,​Void,​Void>
      • getVoidType

        public NType getVoidType()
        Specified by:
        getVoidType in interface com.sun.xml.bind.v2.model.nav.Navigator<NType,​NClass,​Void,​Void>
      • getPackageName

        public String getPackageName​(NClass clazz)
        Specified by:
        getPackageName in interface com.sun.xml.bind.v2.model.nav.Navigator<NType,​NClass,​Void,​Void>
      • loadObjectFactory

        public NClass loadObjectFactory​(NClass referencePoint,
                                        String pkg)
        Specified by:
        loadObjectFactory in interface com.sun.xml.bind.v2.model.nav.Navigator<NType,​NClass,​Void,​Void>
      • isBridgeMethod

        public boolean isBridgeMethod​(Void method)
        Specified by:
        isBridgeMethod in interface com.sun.xml.bind.v2.model.nav.Navigator<NType,​NClass,​Void,​Void>
      • isOverriding

        public boolean isOverriding​(Void method,
                                    NClass clazz)
        Specified by:
        isOverriding in interface com.sun.xml.bind.v2.model.nav.Navigator<NType,​NClass,​Void,​Void>
      • isInterface

        public boolean isInterface​(NClass clazz)
        Specified by:
        isInterface in interface com.sun.xml.bind.v2.model.nav.Navigator<NType,​NClass,​Void,​Void>
      • isTransient

        public boolean isTransient​(Void f)
        Specified by:
        isTransient in interface com.sun.xml.bind.v2.model.nav.Navigator<NType,​NClass,​Void,​Void>
      • isInnerClass

        public boolean isInnerClass​(NClass clazz)
        Specified by:
        isInnerClass in interface com.sun.xml.bind.v2.model.nav.Navigator<NType,​NClass,​Void,​Void>
      • isSameType

        public boolean isSameType​(NType t1,
                                  NType t2)
        Specified by:
        isSameType in interface com.sun.xml.bind.v2.model.nav.Navigator<NType,​NClass,​Void,​Void>