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.
Method Summary |
NClass | asDecl(NType nt) |
NClass | asDecl(Class c) |
static NType | create(Type t) |
static NClass | create(Class c) |
static NType | createParameterizedType(NClass rawType, NType... args)
Creates a NType representation for a parameterized type
{@code RawType<ParamType1,ParamType2,...> }. |
static NType | createParameterizedType(Class rawType, NType... args) |
<T> NType | erasure(NType type) |
NClass | findClass(String className, NClass referencePoint) |
NType | getBaseClass(NType nt, NClass base) |
Location | getClassLocation(NClass c) |
String | getClassName(NClass nClass) |
String | getClassShortName(NClass nClass) |
NType | getComponentType(NType nType) |
Void | getDeclaredField(NClass clazz, String fieldName) |
Collection<? extends Void> | getDeclaredFields(NClass nClass) |
Collection<? extends Void> | getDeclaredMethods(NClass nClass) |
NClass | getDeclaringClassForField(Void aVoid) |
NClass | getDeclaringClassForMethod(Void aVoid) |
Void[] | getEnumConstants(NClass clazz) |
Location | getFieldLocation(Void _) |
String | getFieldName(Void aVoid) |
NType | getFieldType(Void aVoid) |
Location | getMethodLocation(Void _) |
String | getMethodName(Void aVoid) |
NType[] | getMethodParameters(Void aVoid) |
String | getPackageName(NClass clazz) |
NType | getPrimitive(Class primitiveType) |
NType | getReturnType(Void aVoid) |
NClass | getSuperClass(NClass nClass) |
NType | getTypeArgument(NType nt, int i) |
String | getTypeName(NType type) |
NType | getVoidType() |
boolean | hasDefaultConstructor(NClass nClass) |
boolean | isAbstract(NClass clazz) |
boolean | isArray(NType nType) |
boolean | isArrayButNotByteArray(NType t) |
boolean | isBridgeMethod(Void method) |
boolean | isEnum(NClass c) |
boolean | isFinal(NClass clazz) |
boolean | isFinalMethod(Void aVoid) |
boolean | isInnerClass(NClass clazz) |
boolean | isInterface(NClass clazz) |
boolean | isOverriding(Void method, NClass clazz) |
boolean | isParameterizedType(NType nt) |
boolean | isPrimitive(NType type) |
boolean | isPublicField(Void aVoid) |
boolean | isPublicMethod(Void aVoid) |
boolean | isStaticField(Void aVoid) |
boolean | isStaticMethod(Void aVoid) |
boolean | isSubClassOf(NType sub, NType sup) |
boolean | isTransient(Void f) |
NClass | ref(Class c) |
NClass | ref(JClass c) |
NType | use(NClass nc) |
public static final
NType create(Type t)
public static
NClass create(Class c)
Creates a
NType representation for a parameterized type
{@code RawType<ParamType1,ParamType2,...> }.
public static
NType createParameterizedType(Class rawType,
NType... args)
public
NClass findClass(String className,
NClass referencePoint)
public String getClassName(
NClass nClass)
public String getClassShortName(
NClass nClass)
public Void getDeclaredField(
NClass clazz, String fieldName)
public Collection<? extends Void> getDeclaredFields(
NClass nClass)
public Collection<? extends Void> getDeclaredMethods(
NClass nClass)
public
NClass getDeclaringClassForField(Void aVoid)
public
NClass getDeclaringClassForMethod(Void aVoid)
public Void[] getEnumConstants(
NClass clazz)
public
Location getFieldLocation(Void _)
public String getFieldName(Void aVoid)
public
NType getFieldType(Void aVoid)
public
Location getMethodLocation(Void _)
public String getMethodName(Void aVoid)
public
NType[] getMethodParameters(Void aVoid)
public String getPackageName(
NClass clazz)
public
NType getPrimitive(Class primitiveType)
public
NType getReturnType(Void aVoid)
public String getTypeName(
NType type)
public
NType getVoidType()
public boolean hasDefaultConstructor(
NClass nClass)
public boolean isAbstract(
NClass clazz)
public boolean isArray(
NType nType)
public boolean isArrayButNotByteArray(
NType t)
public boolean isBridgeMethod(Void method)
public boolean isEnum(
NClass c)
public boolean isFinal(
NClass clazz)
Deprecated:
no class generated by XJC is final.
public boolean isFinalMethod(Void aVoid)
public boolean isInnerClass(
NClass clazz)
public boolean isInterface(
NClass clazz)
public boolean isOverriding(Void method,
NClass clazz)
public boolean isParameterizedType(
NType nt)
public boolean isPrimitive(
NType type)
public boolean isPublicField(Void aVoid)
public boolean isPublicMethod(Void aVoid)
public boolean isStaticField(Void aVoid)
public boolean isStaticMethod(Void aVoid)
public boolean isTransient(Void f)