Top Description Inners Fields Constructors Methods
org.glassfish.jaxb.core.v2.model.nav

pack-priv final Class ReflectionNavigator

extends Object
implements Navigator<Type, Class<?>, Field, Method>
Class Inheritance
All Implemented Interfaces
org.glassfish.jaxb.core.v2.model.nav.Navigator
Imports
java.lang.reflect.Array, .Field, .GenericArrayType, .GenericDeclaration, .Method, .Modifier, .ParameterizedType, .Type, .TypeVariable, .WildcardType, java.security.AccessController, .PrivilegedAction, java.util.Arrays, .Collection, org.glassfish.jaxb.core.v2.runtime.Location

Navigator implementation for java.lang.reflect.

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
private static final TypeVisitor<Type, Class<?>>
private static final TypeVisitor<Type, ReflectionNavigator.BinderArg>
private static final TypeVisitor<Class<T>, Void>
eraser

Implements the logic for erasure(Type).

private static final ReflectionNavigator

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public Class<?>
asDecl(Type t)

Implements org.glassfish.jaxb.core.v2.model.nav.Navigator.asDecl.

If the given type is an use of class declaration, returns the type casted as C.

public Class<?>
public Type
createParameterizedType(Class<?> rawType, Type... arguments)

Returns the Type object that represents clazz<T1,T2,T3>.

public <T> Class<T>
erasure(Type t)

Implements org.glassfish.jaxb.core.v2.model.nav.Navigator.erasure.

Returns the runtime representation of the given type.

private Type
fix(Type t)

JDK 5.0 has a bug of creating GenericArrayType where it shouldn't.

public Type
getBaseClass(Type t, Class<?> sup)

Implements org.glassfish.jaxb.core.v2.model.nav.Navigator.getBaseClass.

Gets the parameterization of the given base type.

public Location
getClassLocation(final Class<?> clazz)

Implements org.glassfish.jaxb.core.v2.model.nav.Navigator.getClassLocation.

Returns a location of the specified class.

public String
getClassName(Class<?> clazz)

Implements org.glassfish.jaxb.core.v2.model.nav.Navigator.getClassName.

Gets the fully-qualified name of the class.

public String
getClassShortName(Class<?> clazz)

Implements org.glassfish.jaxb.core.v2.model.nav.Navigator.getClassShortName.

Gets the short name of the class ("Object" for Object.) For nested classes, this method should just return the inner name.

public Type
public Field
getDeclaredField(final Class<?> clazz, final String fieldName)

Implements org.glassfish.jaxb.core.v2.model.nav.Navigator.getDeclaredField.

Gets the named field declared on the given class.

public Collection<? extends Field>
getDeclaredFields(final Class<?> clazz)

Implements org.glassfish.jaxb.core.v2.model.nav.Navigator.getDeclaredFields.

Gets all the declared fields of the given class.

public Collection<? extends Method>
getDeclaredMethods(final Class<?> clazz)

Implements org.glassfish.jaxb.core.v2.model.nav.Navigator.getDeclaredMethods.

Gets all the declared methods of the given class (regardless of their access modifiers, regardless of whether they override methods of the base classes.)

Note that this method does not list methods declared on base classes.

public Class<?>
public Class<?>
public Field[]
getEnumConstants(Class<?> clazz)

Implements org.glassfish.jaxb.core.v2.model.nav.Navigator.getEnumConstants.

Gets the enumeration constants from an enum class.

public Location
public String
public Type
pack-priv static ReflectionNavigator
public Location
public String
getMethodName(Method method)

Implements org.glassfish.jaxb.core.v2.model.nav.Navigator.getMethodName.

Gets the name of the method, such as "toString" or "equals".

public Type[]
getMethodParameters(Method method)

Implements org.glassfish.jaxb.core.v2.model.nav.Navigator.getMethodParameters.

Returns the list of parameters to the method.

public String
getPackageName(Class<?> clazz)

Implements org.glassfish.jaxb.core.v2.model.nav.Navigator.getPackageName.

Gets the package name of the given class.

public Type
getPrimitive(Class<?> primitiveType)

Implements org.glassfish.jaxb.core.v2.model.nav.Navigator.getPrimitive.

Returns the representation for the given primitive type.

public Type
getReturnType(Method method)

Implements org.glassfish.jaxb.core.v2.model.nav.Navigator.getReturnType.

Gets the return type of a method.

public Class<?>
getSuperClass(Class<?> clazz)

Implements org.glassfish.jaxb.core.v2.model.nav.Navigator.getSuperClass.

Gets the base class of the specified class.

public Type
getTypeArgument(Type type, int i)

Implements org.glassfish.jaxb.core.v2.model.nav.Navigator.getTypeArgument.

Gets the i-th type argument from a parameterized type.

public String
getTypeName(Type type)

Implements org.glassfish.jaxb.core.v2.model.nav.Navigator.getTypeName.

Gets the display name of the type object

public Type
getVoidType()

Implements org.glassfish.jaxb.core.v2.model.nav.Navigator.getVoidType.

Gets the representation of the primitive "void" type.

public boolean
hasDefaultConstructor(Class<?> c)

Implements org.glassfish.jaxb.core.v2.model.nav.Navigator.hasDefaultConstructor.

Returns true if the given class has a no-arg default constructor.

public boolean
isAbstract(Class<?> clazz)

Implements org.glassfish.jaxb.core.v2.model.nav.Navigator.isAbstract.

Returns true if this is an abstract class.

public boolean
isArray(Type t)

Implements org.glassfish.jaxb.core.v2.model.nav.Navigator.isArray.

Checks if the type is an array type.

public boolean
isArrayButNotByteArray(Type t)

Implements org.glassfish.jaxb.core.v2.model.nav.Navigator.isArrayButNotByteArray.

Checks if the type is an array type but not byte[].

public boolean
isBridgeMethod(Method method)

Implements org.glassfish.jaxb.core.v2.model.nav.Navigator.isBridgeMethod.

Returns true if this method is a bridge method as defined in JLS.

public boolean
isEnum(Class<?> c)

Implements org.glassfish.jaxb.core.v2.model.nav.Navigator.isEnum.

Returns true if this is an enum class.

public boolean
isFinal(Class<?> clazz)

Implements org.glassfish.jaxb.core.v2.model.nav.Navigator.isFinal.

Returns true if this is a final class.

public boolean
isFinalMethod(Method method)

Implements org.glassfish.jaxb.core.v2.model.nav.Navigator.isFinalMethod.

Returns true if the method is final.

public boolean
isInnerClass(Class<?> clazz)

Implements org.glassfish.jaxb.core.v2.model.nav.Navigator.isInnerClass.

Returns true if the given class is an inner class.

public boolean
isInterface(Class<?> clazz)

Implements org.glassfish.jaxb.core.v2.model.nav.Navigator.isInterface.

Returns true if 'clazz' is an interface.

public boolean
isOverriding(Method method, final Class<?> base)

Implements org.glassfish.jaxb.core.v2.model.nav.Navigator.isOverriding.

Returns true if the given method is overriding another one defined in the base class 'base' or its ancestors.

public boolean
isParameterizedType(Type type)

Implements org.glassfish.jaxb.core.v2.model.nav.Navigator.isParameterizedType.

Returns true if t is a parameterized type.

public boolean
isPrimitive(Type type)

Implements org.glassfish.jaxb.core.v2.model.nav.Navigator.isPrimitive.

Checks if the given type is a primitive type.

public boolean
isPublicField(Field field)

Implements org.glassfish.jaxb.core.v2.model.nav.Navigator.isPublicField.

Returns true if the field is public.

public boolean
isPublicMethod(Method method)

Implements org.glassfish.jaxb.core.v2.model.nav.Navigator.isPublicMethod.

Returns true if the method is public.

public boolean
isSameType(Type t1, Type t2)

Implements org.glassfish.jaxb.core.v2.model.nav.Navigator.isSameType.

Checks if types are the same

public boolean
isStaticField(Field field)

Implements org.glassfish.jaxb.core.v2.model.nav.Navigator.isStaticField.

Returns true if the field is static.

public boolean
isStaticMethod(Method method)

Implements org.glassfish.jaxb.core.v2.model.nav.Navigator.isStaticMethod.

Returns true if the method is static.

public boolean
isSubClassOf(Type sub, Type sup)

Implements org.glassfish.jaxb.core.v2.model.nav.Navigator.isSubClassOf.

Checks if sub is a sub-type of sup.

public boolean
isTransient(Field f)

Implements org.glassfish.jaxb.core.v2.model.nav.Navigator.isTransient.

Returns true if the field is transient.

public Class<?>
loadObjectFactory(Class<?> referencePoint, String pkg)

Implements org.glassfish.jaxb.core.v2.model.nav.Navigator.loadObjectFactory.

Finds ObjectFactory for the given referencePoint.

public Class<?>
ref(Class<?> c)

Implements org.glassfish.jaxb.core.v2.model.nav.Navigator.ref.

Gets the representation of the given Java type in T.

public Class<?>
use(Class<?> c)

Implements org.glassfish.jaxb.core.v2.model.nav.Navigator.use.

Gets the T for the given C.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

baseClassFinderback to summary
private static final TypeVisitor<Type, Class<?>> baseClassFinder
binderback to summary
private static final TypeVisitor<Type, ReflectionNavigator.BinderArg> binder
eraserback to summary
private static final TypeVisitor<Class<T>, Void> eraser

Implements the logic for erasure(Type).

INSTANCEback to summary
private static final ReflectionNavigator INSTANCE

Constructor Detail

ReflectionNavigatorback to summary
private ReflectionNavigator()

Method Detail

asDeclback to summary
public Class<?> asDecl(Type t)

Implements org.glassfish.jaxb.core.v2.model.nav.Navigator.asDecl.

Doc from org.glassfish.jaxb.core.v2.model.nav.Navigator.asDecl.

If the given type is an use of class declaration, returns the type casted as C. Otherwise null.

Todo

define the exact semantics.

Annotations
@Override
asDeclback to summary
public Class<?> asDecl(Class<?> c)

Implements org.glassfish.jaxb.core.v2.model.nav.Navigator.asDecl, org.glassfish.jaxb.core.v2.model.nav.Navigator.asDecl.

Doc from org.glassfish.jaxb.core.v2.model.nav.Navigator.asDecl.

Gets the C representation for the given class. The behavior is undefined if the class object represents primitives, arrays, and other types that are not class declaration.

Annotations
@Override
createParameterizedTypeback to summary
public Type createParameterizedType(Class<?> rawType, Type... arguments)

Returns the Type object that represents clazz<T1,T2,T3>.

erasureback to summary
public <T> Class<T> erasure(Type t)

Implements org.glassfish.jaxb.core.v2.model.nav.Navigator.erasure.

Returns the runtime representation of the given type. This corresponds to the notion of the erasure in JSR-14.

Because of the difference in the way Annotation Processing and the Java reflection treats primitive type and array type, we can't define this method on Navigator.

It made me realize how difficult it is to define the common navigation layer for two different underlying reflection library. The other way is to throw away the entire parameterization and go to the wrapper approach.

Annotations
@Override
fixback to summary
private Type fix(Type t)

JDK 5.0 has a bug of creating GenericArrayType where it shouldn't. fix that manually to work around the problem. See bug 6202725.

getBaseClassback to summary
public Type getBaseClass(Type t, Class<?> sup)

Implements org.glassfish.jaxb.core.v2.model.nav.Navigator.getBaseClass.

Doc from org.glassfish.jaxb.core.v2.model.nav.Navigator.getBaseClass.

Gets the parameterization of the given base type.

For example, given the following

interface Foo<T> extends List<List<T>> {}
interface Bar extends Foo<String> {}
This method works like this:
getBaseClass( Bar, List ) = List<List<String>>
getBaseClass( Bar, Foo  ) = Foo<String>
getBaseClass( Foo<? extends Number>, Collection ) = Collection<List<? extends Number>>
getBaseClass( ArrayList<? extends BigInteger>, List ) = List<? extends BigInteger>
Annotations
@Override
getClassLocationback to summary
public Location getClassLocation(final Class<?> clazz)

Implements org.glassfish.jaxb.core.v2.model.nav.Navigator.getClassLocation.

Doc from org.glassfish.jaxb.core.v2.model.nav.Navigator.getClassLocation.

Returns a location of the specified class.

Annotations
@Override
getClassNameback to summary
public String getClassName(Class<?> clazz)

Implements org.glassfish.jaxb.core.v2.model.nav.Navigator.getClassName.

Doc from org.glassfish.jaxb.core.v2.model.nav.Navigator.getClassName.

Gets the fully-qualified name of the class. ("java.lang.Object" for Object)

Annotations
@Override
getClassShortNameback to summary
public String getClassShortName(Class<?> clazz)

Implements org.glassfish.jaxb.core.v2.model.nav.Navigator.getClassShortName.

Doc from org.glassfish.jaxb.core.v2.model.nav.Navigator.getClassShortName.

Gets the short name of the class ("Object" for Object.) For nested classes, this method should just return the inner name. (for example "Inner" for "com.acme.Outer$Inner".

Annotations
@Override
getComponentTypeback to summary
public Type getComponentType(Type t)

Implements org.glassfish.jaxb.core.v2.model.nav.Navigator.getComponentType.

Doc from org.glassfish.jaxb.core.v2.model.nav.Navigator.getComponentType.

Gets the component type of the array.

Annotations
@Override
getDeclaredFieldback to summary
public Field getDeclaredField(final Class<?> clazz, final String fieldName)

Implements org.glassfish.jaxb.core.v2.model.nav.Navigator.getDeclaredField.

Doc from org.glassfish.jaxb.core.v2.model.nav.Navigator.getDeclaredField.

Gets the named field declared on the given class. This method doesn't visit ancestors, but does recognize non-public fields.

Annotations
@Override
getDeclaredFieldsback to summary
public Collection<? extends Field> getDeclaredFields(final Class<?> clazz)

Implements org.glassfish.jaxb.core.v2.model.nav.Navigator.getDeclaredFields.

Doc from org.glassfish.jaxb.core.v2.model.nav.Navigator.getDeclaredFields.

Gets all the declared fields of the given class.

Annotations
@Override
getDeclaredMethodsback to summary
public Collection<? extends Method> getDeclaredMethods(final Class<?> clazz)

Implements org.glassfish.jaxb.core.v2.model.nav.Navigator.getDeclaredMethods.

Doc from org.glassfish.jaxb.core.v2.model.nav.Navigator.getDeclaredMethods.

Gets all the declared methods of the given class (regardless of their access modifiers, regardless of whether they override methods of the base classes.)

Note that this method does not list methods declared on base classes.

Annotations
@Override
getDeclaringClassForFieldback to summary
public Class<?> getDeclaringClassForField(Field field)

Implements org.glassfish.jaxb.core.v2.model.nav.Navigator.getDeclaringClassForField.

Doc from org.glassfish.jaxb.core.v2.model.nav.Navigator.getDeclaringClassForField.

Gets the class that declares the given field.

Annotations
@Override
getDeclaringClassForMethodback to summary
public Class<?> getDeclaringClassForMethod(Method method)

Implements org.glassfish.jaxb.core.v2.model.nav.Navigator.getDeclaringClassForMethod.

Doc from org.glassfish.jaxb.core.v2.model.nav.Navigator.getDeclaringClassForMethod.

Gets the class that declares the given method.

Annotations
@Override
getEnumConstantsback to summary
public Field[] getEnumConstants(Class<?> clazz)

Implements org.glassfish.jaxb.core.v2.model.nav.Navigator.getEnumConstants.

Doc from org.glassfish.jaxb.core.v2.model.nav.Navigator.getEnumConstants.

Gets the enumeration constants from an enum class.

Annotations
@Override
getFieldLocationback to summary
public Location getFieldLocation(final Field field)

Implements org.glassfish.jaxb.core.v2.model.nav.Navigator.getFieldLocation.

Annotations
@Override
getFieldNameback to summary
public String getFieldName(Field field)

Implements org.glassfish.jaxb.core.v2.model.nav.Navigator.getFieldName.

Doc from org.glassfish.jaxb.core.v2.model.nav.Navigator.getFieldName.

Gets the name of the field.

Annotations
@Override
getFieldTypeback to summary
public Type getFieldType(Field field)

Implements org.glassfish.jaxb.core.v2.model.nav.Navigator.getFieldType.

Doc from org.glassfish.jaxb.core.v2.model.nav.Navigator.getFieldType.

Gets the type of the field.

Annotations
@Override
getInstanceback to summary
pack-priv static ReflectionNavigator getInstance()
getMethodLocationback to summary
public Location getMethodLocation(final Method method)

Implements org.glassfish.jaxb.core.v2.model.nav.Navigator.getMethodLocation.

Annotations
@Override
getMethodNameback to summary
public String getMethodName(Method method)

Implements org.glassfish.jaxb.core.v2.model.nav.Navigator.getMethodName.

Doc from org.glassfish.jaxb.core.v2.model.nav.Navigator.getMethodName.

Gets the name of the method, such as "toString" or "equals".

Annotations
@Override
getMethodParametersback to summary
public Type[] getMethodParameters(Method method)

Implements org.glassfish.jaxb.core.v2.model.nav.Navigator.getMethodParameters.

Doc from org.glassfish.jaxb.core.v2.model.nav.Navigator.getMethodParameters.

Returns the list of parameters to the method.

Annotations
@Override
getPackageNameback to summary
public String getPackageName(Class<?> clazz)

Implements org.glassfish.jaxb.core.v2.model.nav.Navigator.getPackageName.

Doc from org.glassfish.jaxb.core.v2.model.nav.Navigator.getPackageName.

Gets the package name of the given class.

Annotations
@Override
getPrimitiveback to summary
public Type getPrimitive(Class<?> primitiveType)

Implements org.glassfish.jaxb.core.v2.model.nav.Navigator.getPrimitive.

Doc from org.glassfish.jaxb.core.v2.model.nav.Navigator.getPrimitive.

Returns the representation for the given primitive type.

Annotations
@Override
getReturnTypeback to summary
public Type getReturnType(Method method)

Implements org.glassfish.jaxb.core.v2.model.nav.Navigator.getReturnType.

Doc from org.glassfish.jaxb.core.v2.model.nav.Navigator.getReturnType.

Gets the return type of a method.

Annotations
@Override
getSuperClassback to summary
public Class<?> getSuperClass(Class<?> clazz)

Implements org.glassfish.jaxb.core.v2.model.nav.Navigator.getSuperClass.

Doc from org.glassfish.jaxb.core.v2.model.nav.Navigator.getSuperClass.

Gets the base class of the specified class.

Annotations
@Override
getTypeArgumentback to summary
public Type getTypeArgument(Type type, int i)

Implements org.glassfish.jaxb.core.v2.model.nav.Navigator.getTypeArgument.

Doc from org.glassfish.jaxb.core.v2.model.nav.Navigator.getTypeArgument.

Gets the i-th type argument from a parameterized type. For example, getTypeArgument([Map<Integer,String>],0)=Integer

Annotations
@Override
getTypeNameback to summary
public String getTypeName(Type type)

Implements org.glassfish.jaxb.core.v2.model.nav.Navigator.getTypeName.

Doc from org.glassfish.jaxb.core.v2.model.nav.Navigator.getTypeName.

Gets the display name of the type object

Annotations
@Override
getVoidTypeback to summary
public Type getVoidType()

Implements org.glassfish.jaxb.core.v2.model.nav.Navigator.getVoidType.

Doc from org.glassfish.jaxb.core.v2.model.nav.Navigator.getVoidType.

Gets the representation of the primitive "void" type.

Annotations
@Override
hasDefaultConstructorback to summary
public boolean hasDefaultConstructor(Class<?> c)

Implements org.glassfish.jaxb.core.v2.model.nav.Navigator.hasDefaultConstructor.

Doc from org.glassfish.jaxb.core.v2.model.nav.Navigator.hasDefaultConstructor.

Returns true if the given class has a no-arg default constructor. The constructor does not need to be public.

Annotations
@Override
isAbstractback to summary
public boolean isAbstract(Class<?> clazz)

Implements org.glassfish.jaxb.core.v2.model.nav.Navigator.isAbstract.

Doc from org.glassfish.jaxb.core.v2.model.nav.Navigator.isAbstract.

Returns true if this is an abstract class.

Annotations
@Override
isArrayback to summary
public boolean isArray(Type t)

Implements org.glassfish.jaxb.core.v2.model.nav.Navigator.isArray.

Doc from org.glassfish.jaxb.core.v2.model.nav.Navigator.isArray.

Checks if the type is an array type.

Annotations
@Override
isArrayButNotByteArrayback to summary
public boolean isArrayButNotByteArray(Type t)

Implements org.glassfish.jaxb.core.v2.model.nav.Navigator.isArrayButNotByteArray.

Doc from org.glassfish.jaxb.core.v2.model.nav.Navigator.isArrayButNotByteArray.

Checks if the type is an array type but not byte[].

Annotations
@Override
isBridgeMethodback to summary
public boolean isBridgeMethod(Method method)

Implements org.glassfish.jaxb.core.v2.model.nav.Navigator.isBridgeMethod.

Doc from org.glassfish.jaxb.core.v2.model.nav.Navigator.isBridgeMethod.

Returns true if this method is a bridge method as defined in JLS.

Annotations
@Override
isEnumback to summary
public boolean isEnum(Class<?> c)

Implements org.glassfish.jaxb.core.v2.model.nav.Navigator.isEnum.

Doc from org.glassfish.jaxb.core.v2.model.nav.Navigator.isEnum.

Returns true if this is an enum class.

Annotations
@Override
isFinalback to summary
public boolean isFinal(Class<?> clazz)

Implements org.glassfish.jaxb.core.v2.model.nav.Navigator.isFinal.

Doc from org.glassfish.jaxb.core.v2.model.nav.Navigator.isFinal.

Returns true if this is a final class.

Annotations
@Override
isFinalMethodback to summary
public boolean isFinalMethod(Method method)

Implements org.glassfish.jaxb.core.v2.model.nav.Navigator.isFinalMethod.

Doc from org.glassfish.jaxb.core.v2.model.nav.Navigator.isFinalMethod.

Returns true if the method is final.

Annotations
@Override
isInnerClassback to summary
public boolean isInnerClass(Class<?> clazz)

Implements org.glassfish.jaxb.core.v2.model.nav.Navigator.isInnerClass.

Doc from org.glassfish.jaxb.core.v2.model.nav.Navigator.isInnerClass.

Returns true if the given class is an inner class. This is only used to improve the error diagnostics, so it's OK to fail to detect some inner classes as such. Note that this method should return false for nested classes (static classes.)

Annotations
@Override
isInterfaceback to summary
public boolean isInterface(Class<?> clazz)

Implements org.glassfish.jaxb.core.v2.model.nav.Navigator.isInterface.

Doc from org.glassfish.jaxb.core.v2.model.nav.Navigator.isInterface.

Returns true if 'clazz' is an interface.

Annotations
@Override
isOverridingback to summary
public boolean isOverriding(Method method, final Class<?> base)

Implements org.glassfish.jaxb.core.v2.model.nav.Navigator.isOverriding.

Doc from org.glassfish.jaxb.core.v2.model.nav.Navigator.isOverriding.

Returns true if the given method is overriding another one defined in the base class 'base' or its ancestors.

Annotations
@Override
isParameterizedTypeback to summary
public boolean isParameterizedType(Type type)

Implements org.glassfish.jaxb.core.v2.model.nav.Navigator.isParameterizedType.

Doc from org.glassfish.jaxb.core.v2.model.nav.Navigator.isParameterizedType.

Returns true if t is a parameterized type.

Annotations
@Override
isPrimitiveback to summary
public boolean isPrimitive(Type type)

Implements org.glassfish.jaxb.core.v2.model.nav.Navigator.isPrimitive.

Doc from org.glassfish.jaxb.core.v2.model.nav.Navigator.isPrimitive.

Checks if the given type is a primitive type.

Annotations
@Override
isPublicFieldback to summary
public boolean isPublicField(Field field)

Implements org.glassfish.jaxb.core.v2.model.nav.Navigator.isPublicField.

Doc from org.glassfish.jaxb.core.v2.model.nav.Navigator.isPublicField.

Returns true if the field is public.

Annotations
@Override
isPublicMethodback to summary
public boolean isPublicMethod(Method method)

Implements org.glassfish.jaxb.core.v2.model.nav.Navigator.isPublicMethod.

Doc from org.glassfish.jaxb.core.v2.model.nav.Navigator.isPublicMethod.

Returns true if the method is public.

Annotations
@Override
isSameTypeback to summary
public boolean isSameType(Type t1, Type t2)

Implements org.glassfish.jaxb.core.v2.model.nav.Navigator.isSameType.

Doc from org.glassfish.jaxb.core.v2.model.nav.Navigator.isSameType.

Checks if types are the same

Annotations
@Override
isStaticFieldback to summary
public boolean isStaticField(Field field)

Implements org.glassfish.jaxb.core.v2.model.nav.Navigator.isStaticField.

Doc from org.glassfish.jaxb.core.v2.model.nav.Navigator.isStaticField.

Returns true if the field is static.

Annotations
@Override
isStaticMethodback to summary
public boolean isStaticMethod(Method method)

Implements org.glassfish.jaxb.core.v2.model.nav.Navigator.isStaticMethod.

Doc from org.glassfish.jaxb.core.v2.model.nav.Navigator.isStaticMethod.

Returns true if the method is static.

Annotations
@Override
isSubClassOfback to summary
public boolean isSubClassOf(Type sub, Type sup)

Implements org.glassfish.jaxb.core.v2.model.nav.Navigator.isSubClassOf.

Doc from org.glassfish.jaxb.core.v2.model.nav.Navigator.isSubClassOf.

Checks if sub is a sub-type of sup.

Todo

should this method take T or C?

Annotations
@Override
isTransientback to summary
public boolean isTransient(Field f)

Implements org.glassfish.jaxb.core.v2.model.nav.Navigator.isTransient.

Doc from org.glassfish.jaxb.core.v2.model.nav.Navigator.isTransient.

Returns true if the field is transient.

Annotations
@Override
loadObjectFactoryback to summary
public Class<?> loadObjectFactory(Class<?> referencePoint, String pkg)

Implements org.glassfish.jaxb.core.v2.model.nav.Navigator.loadObjectFactory.

Doc from org.glassfish.jaxb.core.v2.model.nav.Navigator.loadObjectFactory.

Finds ObjectFactory for the given referencePoint.

Annotations
@Override
refback to summary
public Class<?> ref(Class<?> c)

Implements org.glassfish.jaxb.core.v2.model.nav.Navigator.ref.

Doc from org.glassfish.jaxb.core.v2.model.nav.Navigator.ref.

Gets the representation of the given Java type in T.

Annotations
@Override
useback to summary
public Class<?> use(Class<?> c)

Implements org.glassfish.jaxb.core.v2.model.nav.Navigator.use.

Doc from org.glassfish.jaxb.core.v2.model.nav.Navigator.use.

Gets the T for the given C.

Annotations
@Override
org.glassfish.jaxb.core.v2.model.nav back to summary

private Class ReflectionNavigator.BinderArg

extends Object
Class Inheritance
  • java.lang.Object
  • org.glassfish.jaxb.core.v2.model.nav.ReflectionNavigator.BinderArg

Field Summary

Modifier and TypeField and Description
pack-priv final Type[]
pack-priv final TypeVariable<D extends GenericDeclaration>[]

Constructor Summary

AccessConstructor and Description
pack-priv
BinderArg(TypeVariable<D extends GenericDeclaration>[] params, Type[] args)

public

Method Summary

Modifier and TypeMethod and Description
pack-priv Type
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

argsback to summary
pack-priv final Type[] args
paramsback to summary
pack-priv final TypeVariable<D extends GenericDeclaration>[] params

Constructor Detail

BinderArgback to summary
pack-priv BinderArg(TypeVariable<D extends GenericDeclaration>[] params, Type[] args)
BinderArgback to summary
public BinderArg(GenericDeclaration decl, Type[] args)

Method Detail

replaceback to summary
pack-priv Type replace(TypeVariable<D extends GenericDeclaration> v)