Top Description Fields Constructors Methods
com.sun.tools.jxc.model.nav

public final Class ApNavigator

extends Object
implements Navigator<TypeMirror, TypeElement, VariableElement, ExecutableElement>
Class Inheritance
All Implemented Interfaces
org.glassfish.jaxb.core.v2.model.nav.Navigator
Imports
com.sun.source.tree.CompilationUnitTree, com.sun.source.util.TreePath, .Trees, org.glassfish.jaxb.core.v2.model.nav.Navigator, org.glassfish.jaxb.core.v2.runtime.Location, java.lang.annotation.Annotation, java.util.ArrayList, .Collection, .HashMap, .List, .Map, javax.annotation.processing.ProcessingEnvironment, javax.lang.model.element.AnnotationMirror, .Element, .ElementKind, .ExecutableElement, .Modifier, .TypeElement, .TypeParameterElement, .VariableElement, javax.lang.model.type.ArrayType, .DeclaredType, .PrimitiveType, .TypeKind, .TypeMirror, .TypeVariable, .TypeVisitor, .WildcardType, javax.lang.model.util.ElementFilter, .Elements, .SimpleTypeVisitor8, .Types

Navigator implementation for annotation processing.

Todo

check the spec on how generics are supposed to be handled

Author
Kohsuke Kawaguchi ([email protected])

Field Summary

Modifier and TypeField and Description
private final SimpleTypeVisitor8<TypeMirror, TypeElement>
private static final TypeMirror
private final ProcessingEnvironment
private final PrimitiveType
private static final Map<Class<?>, TypeKind>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public TypeElement
asDecl(TypeMirror m)

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 TypeElement
public TypeMirror
public TypeMirror
getBaseClass(TypeMirror type, TypeElement sup)

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

Gets the parameterization of the given base type.

public Location
getClassLocation(TypeElement typeElement)

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

Returns a location of the specified class.

public String
getClassName(TypeElement t)

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

Gets the fully-qualified name of the class.

public String
getClassShortName(TypeElement t)

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 TypeMirror
public VariableElement
getDeclaredField(TypeElement clazz, String fieldName)

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

Gets the named field declared on the given class.

public Collection<VariableElement>
getDeclaredFields(TypeElement typeElement)

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

Gets all the declared fields of the given class.

public Collection<ExecutableElement>
getDeclaredMethods(TypeElement typeElement)

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 TypeElement
public TypeElement
public VariableElement[]
getEnumConstants(TypeElement clazz)

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

Gets the enumeration constants from an enum class.

public Location
public String
public TypeMirror
private Location
private Location
getLocation(final String name, final TreePath treePath)

public Location
public String
getMethodName(ExecutableElement m)

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

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

public TypeMirror[]
public String
getPackageName(TypeElement clazz)

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

Gets the package name of the given class.

public TypeMirror
getPrimitive(Class<?> primitiveType)

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

Returns the representation for the given primitive type.

public TypeMirror
private String
public TypeElement
getSuperClass(TypeElement typeElement)

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

Gets the base class of the specified class.

public TypeMirror
getTypeArgument(TypeMirror typeMirror, 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(TypeMirror typeMirror)

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

Gets the display name of the type object

public TypeMirror
getVoidType()

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

Gets the representation of the primitive "void" type.

public boolean
hasDefaultConstructor(TypeElement t)

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

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

private boolean
public boolean
isAbstract(TypeElement clazz)

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

Returns true if this is an abstract class.

public boolean
isArray(TypeMirror type)

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

Checks if the type is an array type.

public boolean
isArrayButNotByteArray(TypeMirror 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(ExecutableElement 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(TypeElement t)

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

Returns true if this is an enum class.

public boolean
isFinal(TypeElement clazz)

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

Returns true if this is a final class.

public boolean
public boolean
isInnerClass(TypeElement clazz)

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

Returns true if the given class is an inner class.

public boolean
isInterface(TypeElement clazz)

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

Returns true if 'clazz' is an interface.

public boolean
isOverriding(ExecutableElement method, TypeElement 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(TypeMirror typeMirror)

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

Returns true if t is a parameterized type.

public boolean
isPrimitive(TypeMirror t)

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

Checks if the given type is a primitive type.

public boolean
public boolean
public boolean
public boolean
public boolean
public boolean
isSubClassOf(TypeMirror sub, TypeMirror sup)

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

Checks if sub is a sub-type of sup.

public boolean
isTransient(VariableElement f)

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

Returns true if the field is transient.

public TypeElement
loadObjectFactory(TypeElement referencePoint, String packageName)

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

Finds ObjectFactory for the given referencePoint.

public TypeMirror
ref(Class<?> c)

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

Gets the representation of the given Java type in T.

public TypeMirror
use(TypeElement t)

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 final SimpleTypeVisitor8<TypeMirror, TypeElement> baseClassFinder

Implements getBaseClass.

DUMMYback to summary
private static final TypeMirror DUMMY

see ref(Class).

envback to summary
private final ProcessingEnvironment env
primitiveByteback to summary
private final PrimitiveType primitiveByte
primitivesback to summary
private static final Map<Class<?>, TypeKind> primitives

Constructor Detail

ApNavigatorback to summary
public ApNavigator(ProcessingEnvironment env)

Method Detail

asDeclback to summary
public TypeElement asDecl(TypeMirror m)

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 TypeElement 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
erasureback to summary
public TypeMirror erasure(TypeMirror t)

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

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

Computes the erasure

Annotations
@Override
getBaseClassback to summary
public TypeMirror getBaseClass(TypeMirror type, TypeElement 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(TypeElement typeElement)

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(TypeElement t)

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(TypeElement t)

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 TypeMirror getComponentType(TypeMirror 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 VariableElement getDeclaredField(TypeElement clazz, 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<VariableElement> getDeclaredFields(TypeElement typeElement)

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<ExecutableElement> getDeclaredMethods(TypeElement typeElement)

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 TypeElement getDeclaringClassForField(VariableElement f)

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 TypeElement getDeclaringClassForMethod(ExecutableElement m)

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 VariableElement[] getEnumConstants(TypeElement 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(VariableElement variableElement)

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

Annotations
@Override
getFieldNameback to summary
public String getFieldName(VariableElement f)

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 TypeMirror getFieldType(VariableElement f)

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
getLocationback to summary
private Location getLocation(Element element)
getLocationback to summary
private Location getLocation(final String name, final TreePath treePath)
getMethodLocationback to summary
public Location getMethodLocation(ExecutableElement executableElement)

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

Annotations
@Override
getMethodNameback to summary
public String getMethodName(ExecutableElement m)

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 TypeMirror[] getMethodParameters(ExecutableElement m)

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(TypeElement 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 TypeMirror 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 TypeMirror getReturnType(ExecutableElement m)

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
getSourceClassNameback to summary
private String getSourceClassName(Class<?> clazz)
getSuperClassback to summary
public TypeElement getSuperClass(TypeElement typeElement)

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 TypeMirror getTypeArgument(TypeMirror typeMirror, 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(TypeMirror typeMirror)

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 TypeMirror 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(TypeElement t)

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
hasModifierback to summary
private boolean hasModifier(Element d, Modifier mod)
isAbstractback to summary
public boolean isAbstract(TypeElement 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(TypeMirror type)

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(TypeMirror 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(ExecutableElement 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(TypeElement t)

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(TypeElement 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(ExecutableElement m)

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(TypeElement 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(TypeElement 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(ExecutableElement method, TypeElement 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(TypeMirror typeMirror)

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(TypeMirror t)

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(VariableElement f)

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(ExecutableElement m)

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(TypeMirror t1, TypeMirror 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(VariableElement f)

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(ExecutableElement m)

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(TypeMirror sub, TypeMirror 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(VariableElement 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 TypeElement loadObjectFactory(TypeElement referencePoint, String packageName)

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 TypeMirror 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 TypeMirror use(TypeElement t)

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