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 ([email protected])
-
Constructor Summary
-
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) boolean
boolean
isAbstract
(TypeElement clazz) boolean
isArray
(TypeMirror type) boolean
boolean
isBridgeMethod
(ExecutableElement method) boolean
boolean
isFinal
(TypeElement clazz) boolean
boolean
isInnerClass
(TypeElement clazz) boolean
isInterface
(TypeElement clazz) boolean
isOverriding
(ExecutableElement method, TypeElement base) boolean
isParameterizedType
(TypeMirror typeMirror) boolean
boolean
boolean
boolean
isSameType
(TypeMirror t1, TypeMirror t2) boolean
boolean
boolean
isSubClassOf
(TypeMirror sub, TypeMirror sup) boolean
loadObjectFactory
(TypeElement referencePoint, String packageName) use
(TypeElement t)
-
Constructor Details
-
ApNavigator
-
-
Method Details
-
getSuperClass
- Specified by:
getSuperClass
in interfaceNavigator<TypeMirror,
TypeElement, VariableElement, ExecutableElement>
-
getBaseClass
- Specified by:
getBaseClass
in interfaceNavigator<TypeMirror,
TypeElement, VariableElement, ExecutableElement>
-
getClassName
- Specified by:
getClassName
in interfaceNavigator<TypeMirror,
TypeElement, VariableElement, ExecutableElement>
-
getTypeName
- Specified by:
getTypeName
in interfaceNavigator<TypeMirror,
TypeElement, VariableElement, ExecutableElement>
-
getClassShortName
- Specified by:
getClassShortName
in interfaceNavigator<TypeMirror,
TypeElement, VariableElement, ExecutableElement>
-
getDeclaredFields
- Specified by:
getDeclaredFields
in interfaceNavigator<TypeMirror,
TypeElement, VariableElement, ExecutableElement>
-
getDeclaredField
- Specified by:
getDeclaredField
in interfaceNavigator<TypeMirror,
TypeElement, VariableElement, ExecutableElement>
-
getDeclaredMethods
- Specified by:
getDeclaredMethods
in interfaceNavigator<TypeMirror,
TypeElement, VariableElement, ExecutableElement>
-
getDeclaringClassForField
- Specified by:
getDeclaringClassForField
in interfaceNavigator<TypeMirror,
TypeElement, VariableElement, ExecutableElement>
-
getDeclaringClassForMethod
- Specified by:
getDeclaringClassForMethod
in interfaceNavigator<TypeMirror,
TypeElement, VariableElement, ExecutableElement>
-
getFieldType
- Specified by:
getFieldType
in interfaceNavigator<TypeMirror,
TypeElement, VariableElement, ExecutableElement>
-
getFieldName
- Specified by:
getFieldName
in interfaceNavigator<TypeMirror,
TypeElement, VariableElement, ExecutableElement>
-
getMethodName
- Specified by:
getMethodName
in interfaceNavigator<TypeMirror,
TypeElement, VariableElement, ExecutableElement>
-
getReturnType
- Specified by:
getReturnType
in interfaceNavigator<TypeMirror,
TypeElement, VariableElement, ExecutableElement>
-
getMethodParameters
- Specified by:
getMethodParameters
in interfaceNavigator<TypeMirror,
TypeElement, VariableElement, ExecutableElement>
-
isStaticMethod
- Specified by:
isStaticMethod
in interfaceNavigator<TypeMirror,
TypeElement, VariableElement, ExecutableElement>
-
isFinalMethod
- Specified by:
isFinalMethod
in interfaceNavigator<TypeMirror,
TypeElement, VariableElement, ExecutableElement>
-
isSubClassOf
- Specified by:
isSubClassOf
in interfaceNavigator<TypeMirror,
TypeElement, VariableElement, ExecutableElement>
-
ref
- Specified by:
ref
in interfaceNavigator<TypeMirror,
TypeElement, VariableElement, ExecutableElement>
-
use
- Specified by:
use
in interfaceNavigator<TypeMirror,
TypeElement, VariableElement, ExecutableElement>
-
asDecl
- Specified by:
asDecl
in interfaceNavigator<TypeMirror,
TypeElement, VariableElement, ExecutableElement>
-
asDecl
- Specified by:
asDecl
in interfaceNavigator<TypeMirror,
TypeElement, VariableElement, ExecutableElement>
-
erasure
- Specified by:
erasure
in interfaceNavigator<TypeMirror,
TypeElement, VariableElement, ExecutableElement>
-
isAbstract
- Specified by:
isAbstract
in interfaceNavigator<TypeMirror,
TypeElement, VariableElement, ExecutableElement>
-
isFinal
- Specified by:
isFinal
in interfaceNavigator<TypeMirror,
TypeElement, VariableElement, ExecutableElement>
-
getEnumConstants
- Specified by:
getEnumConstants
in interfaceNavigator<TypeMirror,
TypeElement, VariableElement, ExecutableElement>
-
getVoidType
- Specified by:
getVoidType
in interfaceNavigator<TypeMirror,
TypeElement, VariableElement, ExecutableElement>
-
getPackageName
- Specified by:
getPackageName
in interfaceNavigator<TypeMirror,
TypeElement, VariableElement, ExecutableElement>
-
loadObjectFactory
- Specified by:
loadObjectFactory
in interfaceNavigator<TypeMirror,
TypeElement, VariableElement, ExecutableElement>
-
isBridgeMethod
- Specified by:
isBridgeMethod
in interfaceNavigator<TypeMirror,
TypeElement, VariableElement, ExecutableElement>
-
isOverriding
- Specified by:
isOverriding
in interfaceNavigator<TypeMirror,
TypeElement, VariableElement, ExecutableElement>
-
isInterface
- Specified by:
isInterface
in interfaceNavigator<TypeMirror,
TypeElement, VariableElement, ExecutableElement>
-
isTransient
- Specified by:
isTransient
in interfaceNavigator<TypeMirror,
TypeElement, VariableElement, ExecutableElement>
-
isInnerClass
- Specified by:
isInnerClass
in interfaceNavigator<TypeMirror,
TypeElement, VariableElement, ExecutableElement>
-
isSameType
- Specified by:
isSameType
in interfaceNavigator<TypeMirror,
TypeElement, VariableElement, ExecutableElement>
-
isArray
- Specified by:
isArray
in interfaceNavigator<TypeMirror,
TypeElement, VariableElement, ExecutableElement>
-
isArrayButNotByteArray
- Specified by:
isArrayButNotByteArray
in interfaceNavigator<TypeMirror,
TypeElement, VariableElement, ExecutableElement>
-
getComponentType
- Specified by:
getComponentType
in interfaceNavigator<TypeMirror,
TypeElement, VariableElement, ExecutableElement>
-
getTypeArgument
- Specified by:
getTypeArgument
in interfaceNavigator<TypeMirror,
TypeElement, VariableElement, ExecutableElement>
-
isParameterizedType
- Specified by:
isParameterizedType
in interfaceNavigator<TypeMirror,
TypeElement, VariableElement, ExecutableElement>
-
isPrimitive
- Specified by:
isPrimitive
in interfaceNavigator<TypeMirror,
TypeElement, VariableElement, ExecutableElement>
-
getPrimitive
- Specified by:
getPrimitive
in interfaceNavigator<TypeMirror,
TypeElement, VariableElement, ExecutableElement>
-
getClassLocation
- Specified by:
getClassLocation
in interfaceNavigator<TypeMirror,
TypeElement, VariableElement, ExecutableElement>
-
getFieldLocation
- Specified by:
getFieldLocation
in interfaceNavigator<TypeMirror,
TypeElement, VariableElement, ExecutableElement>
-
getMethodLocation
- Specified by:
getMethodLocation
in interfaceNavigator<TypeMirror,
TypeElement, VariableElement, ExecutableElement>
-
hasDefaultConstructor
- Specified by:
hasDefaultConstructor
in interfaceNavigator<TypeMirror,
TypeElement, VariableElement, ExecutableElement>
-
isStaticField
- Specified by:
isStaticField
in interfaceNavigator<TypeMirror,
TypeElement, VariableElement, ExecutableElement>
-
isPublicMethod
- Specified by:
isPublicMethod
in interfaceNavigator<TypeMirror,
TypeElement, VariableElement, ExecutableElement>
-
isPublicField
- Specified by:
isPublicField
in interfaceNavigator<TypeMirror,
TypeElement, VariableElement, ExecutableElement>
-
isEnum
- Specified by:
isEnum
in interfaceNavigator<TypeMirror,
TypeElement, VariableElement, ExecutableElement>
-