Package com.sun.tools.jxc.model.nav
Class ApNavigator
java.lang.Object
com.sun.tools.jxc.model.nav.ApNavigator
- All Implemented Interfaces:
Navigator<TypeMirror,TypeElement, VariableElement, ExecutableElement>
public final class ApNavigator
extends Object
implements Navigator<TypeMirror,TypeElement,VariableElement,ExecutableElement>
Navigator implementation for annotation processing.
TODO: check the spec on how generics are supposed to be handled- Author:
- Kohsuke Kawaguchi (kk@kohsuke.org)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasDecl(TypeMirror m) getBaseClass(TypeMirror type, TypeElement sup) getClassLocation(TypeElement typeElement) getDeclaredField(TypeElement clazz, String fieldName) getDeclaredFields(TypeElement typeElement) getDeclaredMethods(TypeElement typeElement) getEnumConstants(TypeElement clazz) getFieldLocation(VariableElement variableElement) getMethodLocation(ExecutableElement executableElement) getPackageName(TypeElement clazz) getPrimitive(Class<?> primitiveType) getSuperClass(TypeElement typeElement) getTypeArgument(TypeMirror typeMirror, int i) getTypeName(TypeMirror typeMirror) booleanbooleanisAbstract(TypeElement clazz) booleanisArray(TypeMirror type) booleanbooleanisBridgeMethod(ExecutableElement method) booleanbooleanisFinal(TypeElement clazz) booleanbooleanisInnerClass(TypeElement clazz) booleanisInterface(TypeElement clazz) booleanisOverriding(ExecutableElement method, TypeElement base) booleanisParameterizedType(TypeMirror typeMirror) booleanbooleanbooleanbooleanisSameType(TypeMirror t1, TypeMirror t2) booleanbooleanbooleanisSubClassOf(TypeMirror sub, TypeMirror sup) booleanloadObjectFactory(TypeElement referencePoint, String packageName) use(TypeElement t)
-
Constructor Details
-
ApNavigator
-
-
Method Details
-
getSuperClass
- Specified by:
getSuperClassin interfaceNavigator<TypeMirror,TypeElement, VariableElement, ExecutableElement>
-
getBaseClass
- Specified by:
getBaseClassin interfaceNavigator<TypeMirror,TypeElement, VariableElement, ExecutableElement>
-
getClassName
- Specified by:
getClassNamein interfaceNavigator<TypeMirror,TypeElement, VariableElement, ExecutableElement>
-
getTypeName
- Specified by:
getTypeNamein interfaceNavigator<TypeMirror,TypeElement, VariableElement, ExecutableElement>
-
getClassShortName
- Specified by:
getClassShortNamein interfaceNavigator<TypeMirror,TypeElement, VariableElement, ExecutableElement>
-
getDeclaredFields
- Specified by:
getDeclaredFieldsin interfaceNavigator<TypeMirror,TypeElement, VariableElement, ExecutableElement>
-
getDeclaredField
- Specified by:
getDeclaredFieldin interfaceNavigator<TypeMirror,TypeElement, VariableElement, ExecutableElement>
-
getDeclaredMethods
- Specified by:
getDeclaredMethodsin interfaceNavigator<TypeMirror,TypeElement, VariableElement, ExecutableElement>
-
getDeclaringClassForField
- Specified by:
getDeclaringClassForFieldin interfaceNavigator<TypeMirror,TypeElement, VariableElement, ExecutableElement>
-
getDeclaringClassForMethod
- Specified by:
getDeclaringClassForMethodin interfaceNavigator<TypeMirror,TypeElement, VariableElement, ExecutableElement>
-
getFieldType
- Specified by:
getFieldTypein interfaceNavigator<TypeMirror,TypeElement, VariableElement, ExecutableElement>
-
getFieldName
- Specified by:
getFieldNamein interfaceNavigator<TypeMirror,TypeElement, VariableElement, ExecutableElement>
-
getMethodName
- Specified by:
getMethodNamein interfaceNavigator<TypeMirror,TypeElement, VariableElement, ExecutableElement>
-
getReturnType
- Specified by:
getReturnTypein interfaceNavigator<TypeMirror,TypeElement, VariableElement, ExecutableElement>
-
getMethodParameters
- Specified by:
getMethodParametersin interfaceNavigator<TypeMirror,TypeElement, VariableElement, ExecutableElement>
-
isStaticMethod
- Specified by:
isStaticMethodin interfaceNavigator<TypeMirror,TypeElement, VariableElement, ExecutableElement>
-
isFinalMethod
- Specified by:
isFinalMethodin interfaceNavigator<TypeMirror,TypeElement, VariableElement, ExecutableElement>
-
isSubClassOf
- Specified by:
isSubClassOfin interfaceNavigator<TypeMirror,TypeElement, VariableElement, ExecutableElement>
-
ref
- Specified by:
refin interfaceNavigator<TypeMirror,TypeElement, VariableElement, ExecutableElement>
-
use
- Specified by:
usein interfaceNavigator<TypeMirror,TypeElement, VariableElement, ExecutableElement>
-
asDecl
- Specified by:
asDeclin interfaceNavigator<TypeMirror,TypeElement, VariableElement, ExecutableElement>
-
asDecl
- Specified by:
asDeclin interfaceNavigator<TypeMirror,TypeElement, VariableElement, ExecutableElement>
-
erasure
- Specified by:
erasurein interfaceNavigator<TypeMirror,TypeElement, VariableElement, ExecutableElement>
-
isAbstract
- Specified by:
isAbstractin interfaceNavigator<TypeMirror,TypeElement, VariableElement, ExecutableElement>
-
isFinal
- Specified by:
isFinalin interfaceNavigator<TypeMirror,TypeElement, VariableElement, ExecutableElement>
-
getEnumConstants
- Specified by:
getEnumConstantsin interfaceNavigator<TypeMirror,TypeElement, VariableElement, ExecutableElement>
-
getVoidType
- Specified by:
getVoidTypein interfaceNavigator<TypeMirror,TypeElement, VariableElement, ExecutableElement>
-
getPackageName
- Specified by:
getPackageNamein interfaceNavigator<TypeMirror,TypeElement, VariableElement, ExecutableElement>
-
loadObjectFactory
- Specified by:
loadObjectFactoryin interfaceNavigator<TypeMirror,TypeElement, VariableElement, ExecutableElement>
-
isBridgeMethod
- Specified by:
isBridgeMethodin interfaceNavigator<TypeMirror,TypeElement, VariableElement, ExecutableElement>
-
isOverriding
- Specified by:
isOverridingin interfaceNavigator<TypeMirror,TypeElement, VariableElement, ExecutableElement>
-
isInterface
- Specified by:
isInterfacein interfaceNavigator<TypeMirror,TypeElement, VariableElement, ExecutableElement>
-
isTransient
- Specified by:
isTransientin interfaceNavigator<TypeMirror,TypeElement, VariableElement, ExecutableElement>
-
isInnerClass
- Specified by:
isInnerClassin interfaceNavigator<TypeMirror,TypeElement, VariableElement, ExecutableElement>
-
isSameType
- Specified by:
isSameTypein interfaceNavigator<TypeMirror,TypeElement, VariableElement, ExecutableElement>
-
isArray
- Specified by:
isArrayin interfaceNavigator<TypeMirror,TypeElement, VariableElement, ExecutableElement>
-
isArrayButNotByteArray
- Specified by:
isArrayButNotByteArrayin interfaceNavigator<TypeMirror,TypeElement, VariableElement, ExecutableElement>
-
getComponentType
- Specified by:
getComponentTypein interfaceNavigator<TypeMirror,TypeElement, VariableElement, ExecutableElement>
-
getTypeArgument
- Specified by:
getTypeArgumentin interfaceNavigator<TypeMirror,TypeElement, VariableElement, ExecutableElement>
-
isParameterizedType
- Specified by:
isParameterizedTypein interfaceNavigator<TypeMirror,TypeElement, VariableElement, ExecutableElement>
-
isPrimitive
- Specified by:
isPrimitivein interfaceNavigator<TypeMirror,TypeElement, VariableElement, ExecutableElement>
-
getPrimitive
- Specified by:
getPrimitivein interfaceNavigator<TypeMirror,TypeElement, VariableElement, ExecutableElement>
-
getClassLocation
- Specified by:
getClassLocationin interfaceNavigator<TypeMirror,TypeElement, VariableElement, ExecutableElement>
-
getFieldLocation
- Specified by:
getFieldLocationin interfaceNavigator<TypeMirror,TypeElement, VariableElement, ExecutableElement>
-
getMethodLocation
- Specified by:
getMethodLocationin interfaceNavigator<TypeMirror,TypeElement, VariableElement, ExecutableElement>
-
hasDefaultConstructor
- Specified by:
hasDefaultConstructorin interfaceNavigator<TypeMirror,TypeElement, VariableElement, ExecutableElement>
-
isStaticField
- Specified by:
isStaticFieldin interfaceNavigator<TypeMirror,TypeElement, VariableElement, ExecutableElement>
-
isPublicMethod
- Specified by:
isPublicMethodin interfaceNavigator<TypeMirror,TypeElement, VariableElement, ExecutableElement>
-
isPublicField
- Specified by:
isPublicFieldin interfaceNavigator<TypeMirror,TypeElement, VariableElement, ExecutableElement>
-
isEnum
- Specified by:
isEnumin interfaceNavigator<TypeMirror,TypeElement, VariableElement, ExecutableElement>
-