public final class ApNavigator extends Object implements com.sun.xml.bind.v2.model.nav.Navigator<TypeMirror,TypeElement,VariableElement,ExecutableElement>
Navigator implementation for annotation processing.
TODO: check the spec on how generics are supposed to be handled| Constructor and Description |
|---|
ApNavigator(ProcessingEnvironment env) |
public ApNavigator(ProcessingEnvironment env)
public TypeElement getSuperClass(TypeElement typeElement)
getSuperClass in interface com.sun.xml.bind.v2.model.nav.Navigator<TypeMirror,TypeElement,VariableElement,ExecutableElement>public TypeMirror getBaseClass(TypeMirror type, TypeElement sup)
getBaseClass in interface com.sun.xml.bind.v2.model.nav.Navigator<TypeMirror,TypeElement,VariableElement,ExecutableElement>public String getClassName(TypeElement t)
getClassName in interface com.sun.xml.bind.v2.model.nav.Navigator<TypeMirror,TypeElement,VariableElement,ExecutableElement>public String getTypeName(TypeMirror typeMirror)
getTypeName in interface com.sun.xml.bind.v2.model.nav.Navigator<TypeMirror,TypeElement,VariableElement,ExecutableElement>public String getClassShortName(TypeElement t)
getClassShortName in interface com.sun.xml.bind.v2.model.nav.Navigator<TypeMirror,TypeElement,VariableElement,ExecutableElement>public Collection<VariableElement> getDeclaredFields(TypeElement typeElement)
getDeclaredFields in interface com.sun.xml.bind.v2.model.nav.Navigator<TypeMirror,TypeElement,VariableElement,ExecutableElement>public VariableElement getDeclaredField(TypeElement clazz, String fieldName)
getDeclaredField in interface com.sun.xml.bind.v2.model.nav.Navigator<TypeMirror,TypeElement,VariableElement,ExecutableElement>public Collection<ExecutableElement> getDeclaredMethods(TypeElement typeElement)
getDeclaredMethods in interface com.sun.xml.bind.v2.model.nav.Navigator<TypeMirror,TypeElement,VariableElement,ExecutableElement>public TypeElement getDeclaringClassForField(VariableElement f)
getDeclaringClassForField in interface com.sun.xml.bind.v2.model.nav.Navigator<TypeMirror,TypeElement,VariableElement,ExecutableElement>public TypeElement getDeclaringClassForMethod(ExecutableElement m)
getDeclaringClassForMethod in interface com.sun.xml.bind.v2.model.nav.Navigator<TypeMirror,TypeElement,VariableElement,ExecutableElement>public TypeMirror getFieldType(VariableElement f)
getFieldType in interface com.sun.xml.bind.v2.model.nav.Navigator<TypeMirror,TypeElement,VariableElement,ExecutableElement>public String getFieldName(VariableElement f)
getFieldName in interface com.sun.xml.bind.v2.model.nav.Navigator<TypeMirror,TypeElement,VariableElement,ExecutableElement>public String getMethodName(ExecutableElement m)
getMethodName in interface com.sun.xml.bind.v2.model.nav.Navigator<TypeMirror,TypeElement,VariableElement,ExecutableElement>public TypeMirror getReturnType(ExecutableElement m)
getReturnType in interface com.sun.xml.bind.v2.model.nav.Navigator<TypeMirror,TypeElement,VariableElement,ExecutableElement>public TypeMirror[] getMethodParameters(ExecutableElement m)
getMethodParameters in interface com.sun.xml.bind.v2.model.nav.Navigator<TypeMirror,TypeElement,VariableElement,ExecutableElement>public boolean isStaticMethod(ExecutableElement m)
isStaticMethod in interface com.sun.xml.bind.v2.model.nav.Navigator<TypeMirror,TypeElement,VariableElement,ExecutableElement>public boolean isFinalMethod(ExecutableElement m)
isFinalMethod in interface com.sun.xml.bind.v2.model.nav.Navigator<TypeMirror,TypeElement,VariableElement,ExecutableElement>public boolean isSubClassOf(TypeMirror sub, TypeMirror sup)
isSubClassOf in interface com.sun.xml.bind.v2.model.nav.Navigator<TypeMirror,TypeElement,VariableElement,ExecutableElement>public TypeMirror ref(Class c)
ref in interface com.sun.xml.bind.v2.model.nav.Navigator<TypeMirror,TypeElement,VariableElement,ExecutableElement>public TypeMirror use(TypeElement t)
use in interface com.sun.xml.bind.v2.model.nav.Navigator<TypeMirror,TypeElement,VariableElement,ExecutableElement>public TypeElement asDecl(TypeMirror m)
asDecl in interface com.sun.xml.bind.v2.model.nav.Navigator<TypeMirror,TypeElement,VariableElement,ExecutableElement>public TypeElement asDecl(Class c)
asDecl in interface com.sun.xml.bind.v2.model.nav.Navigator<TypeMirror,TypeElement,VariableElement,ExecutableElement>public TypeMirror erasure(TypeMirror t)
erasure in interface com.sun.xml.bind.v2.model.nav.Navigator<TypeMirror,TypeElement,VariableElement,ExecutableElement>public boolean isAbstract(TypeElement clazz)
isAbstract in interface com.sun.xml.bind.v2.model.nav.Navigator<TypeMirror,TypeElement,VariableElement,ExecutableElement>public boolean isFinal(TypeElement clazz)
isFinal in interface com.sun.xml.bind.v2.model.nav.Navigator<TypeMirror,TypeElement,VariableElement,ExecutableElement>public VariableElement[] getEnumConstants(TypeElement clazz)
getEnumConstants in interface com.sun.xml.bind.v2.model.nav.Navigator<TypeMirror,TypeElement,VariableElement,ExecutableElement>public TypeMirror getVoidType()
getVoidType in interface com.sun.xml.bind.v2.model.nav.Navigator<TypeMirror,TypeElement,VariableElement,ExecutableElement>public String getPackageName(TypeElement clazz)
getPackageName in interface com.sun.xml.bind.v2.model.nav.Navigator<TypeMirror,TypeElement,VariableElement,ExecutableElement>public TypeElement loadObjectFactory(TypeElement referencePoint, String packageName)
loadObjectFactory in interface com.sun.xml.bind.v2.model.nav.Navigator<TypeMirror,TypeElement,VariableElement,ExecutableElement>public boolean isBridgeMethod(ExecutableElement method)
isBridgeMethod in interface com.sun.xml.bind.v2.model.nav.Navigator<TypeMirror,TypeElement,VariableElement,ExecutableElement>public boolean isOverriding(ExecutableElement method, TypeElement base)
isOverriding in interface com.sun.xml.bind.v2.model.nav.Navigator<TypeMirror,TypeElement,VariableElement,ExecutableElement>public boolean isInterface(TypeElement clazz)
isInterface in interface com.sun.xml.bind.v2.model.nav.Navigator<TypeMirror,TypeElement,VariableElement,ExecutableElement>public boolean isTransient(VariableElement f)
isTransient in interface com.sun.xml.bind.v2.model.nav.Navigator<TypeMirror,TypeElement,VariableElement,ExecutableElement>public boolean isInnerClass(TypeElement clazz)
isInnerClass in interface com.sun.xml.bind.v2.model.nav.Navigator<TypeMirror,TypeElement,VariableElement,ExecutableElement>public boolean isSameType(TypeMirror t1, TypeMirror t2)
isSameType in interface com.sun.xml.bind.v2.model.nav.Navigator<TypeMirror,TypeElement,VariableElement,ExecutableElement>public boolean isArray(TypeMirror type)
isArray in interface com.sun.xml.bind.v2.model.nav.Navigator<TypeMirror,TypeElement,VariableElement,ExecutableElement>public boolean isArrayButNotByteArray(TypeMirror t)
isArrayButNotByteArray in interface com.sun.xml.bind.v2.model.nav.Navigator<TypeMirror,TypeElement,VariableElement,ExecutableElement>public TypeMirror getComponentType(TypeMirror t)
getComponentType in interface com.sun.xml.bind.v2.model.nav.Navigator<TypeMirror,TypeElement,VariableElement,ExecutableElement>public TypeMirror getTypeArgument(TypeMirror typeMirror, int i)
getTypeArgument in interface com.sun.xml.bind.v2.model.nav.Navigator<TypeMirror,TypeElement,VariableElement,ExecutableElement>public boolean isParameterizedType(TypeMirror typeMirror)
isParameterizedType in interface com.sun.xml.bind.v2.model.nav.Navigator<TypeMirror,TypeElement,VariableElement,ExecutableElement>public boolean isPrimitive(TypeMirror t)
isPrimitive in interface com.sun.xml.bind.v2.model.nav.Navigator<TypeMirror,TypeElement,VariableElement,ExecutableElement>public TypeMirror getPrimitive(Class primitiveType)
getPrimitive in interface com.sun.xml.bind.v2.model.nav.Navigator<TypeMirror,TypeElement,VariableElement,ExecutableElement>public com.sun.xml.bind.v2.runtime.Location getClassLocation(TypeElement typeElement)
getClassLocation in interface com.sun.xml.bind.v2.model.nav.Navigator<TypeMirror,TypeElement,VariableElement,ExecutableElement>public com.sun.xml.bind.v2.runtime.Location getFieldLocation(VariableElement variableElement)
getFieldLocation in interface com.sun.xml.bind.v2.model.nav.Navigator<TypeMirror,TypeElement,VariableElement,ExecutableElement>public com.sun.xml.bind.v2.runtime.Location getMethodLocation(ExecutableElement executableElement)
getMethodLocation in interface com.sun.xml.bind.v2.model.nav.Navigator<TypeMirror,TypeElement,VariableElement,ExecutableElement>public boolean hasDefaultConstructor(TypeElement t)
hasDefaultConstructor in interface com.sun.xml.bind.v2.model.nav.Navigator<TypeMirror,TypeElement,VariableElement,ExecutableElement>public boolean isStaticField(VariableElement f)
isStaticField in interface com.sun.xml.bind.v2.model.nav.Navigator<TypeMirror,TypeElement,VariableElement,ExecutableElement>public boolean isPublicMethod(ExecutableElement m)
isPublicMethod in interface com.sun.xml.bind.v2.model.nav.Navigator<TypeMirror,TypeElement,VariableElement,ExecutableElement>public boolean isPublicField(VariableElement f)
isPublicField in interface com.sun.xml.bind.v2.model.nav.Navigator<TypeMirror,TypeElement,VariableElement,ExecutableElement>public boolean isEnum(TypeElement t)
isEnum in interface com.sun.xml.bind.v2.model.nav.Navigator<TypeMirror,TypeElement,VariableElement,ExecutableElement>Copyright © 2017 Oracle Corporation. All rights reserved.