Package gw.lang.reflect.java
Class ErrorJavaClassInfo
java.lang.Object
gw.lang.reflect.java.ErrorJavaClassInfo
- All Implemented Interfaces:
IJavaAnnotatedElement
,IJavaClassInfo
,IJavaClassType
,ITypeInfoResolver
,Serializable
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface gw.lang.reflect.java.IJavaClassInfo
IJavaClassInfo.Util
-
Field Summary
Fields inherited from interface gw.lang.reflect.java.IJavaClassInfo
LOCK
Fields inherited from interface gw.lang.reflect.java.IJavaClassType
EMPTY_ARRAY, ERROR_TYPE, NULL_TYPE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetActualType
(TypeVarToTypeMap typeMap) getActualType
(TypeVarToTypeMap typeMap, boolean bKeepTypeVars) getAnnotation
(Class<? extends Annotation> annotationClass) Returns this element's annotation for the specified type if such an annotation is present, else null.getConstructor
(IJavaClassInfo... params) Returns all annotations that are directly present on this element.getDeclaredMethod
(String methodName, IJavaClassInfo... params) Object[]
getMethod
(String methodName, IJavaClassInfo... paramTypes) int
getName()
boolean
boolean
boolean
isAnnotationPresent
(Class<? extends Annotation> annotationClass) Returns true if an annotation for the specified type is present on this element, else false.boolean
isArray()
boolean
isAssignableFrom
(IJavaClassInfo aClass) boolean
isEnum()
boolean
boolean
boolean
boolean
boolean
boolean
boolean
isPublic()
boolean
isVisibleViaFeatureDescriptor
(IScriptabilityModifier constraint) resolveImport
(String relativeName) resolveType
(String relativeName, int ignoreFlags) resolveType
(String relativeName, IJavaClassInfo whosAskin, int ignoreFlags) void
setJavaType
(IJavaType javaType) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface gw.lang.reflect.java.IJavaAnnotatedElement
getLocationInfo
Methods inherited from interface gw.lang.reflect.java.IJavaClassInfo
compile, equals, getDeclaredField, getDeepestClassAtOffset, getField, hashCode, isCompilable
Methods inherited from interface gw.lang.reflect.java.IJavaClassType
isAssignableFrom
-
Constructor Details
-
ErrorJavaClassInfo
public ErrorJavaClassInfo()
-
-
Method Details
-
isAnnotationPresent
Description copied from interface:IJavaAnnotatedElement
Returns true if an annotation for the specified type is present on this element, else false. This method is designed primarily for convenient access to marker annotations.- Specified by:
isAnnotationPresent
in interfaceIJavaAnnotatedElement
- Parameters:
annotationClass
- the Class object corresponding to the annotation type- Returns:
- true if an annotation for the specified annotation type is present on this element, else false
-
getAnnotation
Description copied from interface:IJavaAnnotatedElement
Returns this element's annotation for the specified type if such an annotation is present, else null.- Specified by:
getAnnotation
in interfaceIJavaAnnotatedElement
- Parameters:
annotationClass
- the Class object corresponding to the annotation type- Returns:
- this element's annotation for the specified annotation type if present on this element, else null
-
getDeclaredAnnotations
Description copied from interface:IJavaAnnotatedElement
Returns all annotations that are directly present on this element. Unlike the other methods in this interface, this method ignores inherited annotations. (Returns an array of length zero if no annotations are directly present on this element.) The caller of this method is free to modify the returned array; it will have no effect on the arrays returned to other callers.- Specified by:
getDeclaredAnnotations
in interfaceIJavaAnnotatedElement
- Returns:
- All annotations directly present on this element
-
isAnnotation
public boolean isAnnotation()- Specified by:
isAnnotation
in interfaceIJavaClassInfo
-
isInterface
public boolean isInterface()- Specified by:
isInterface
in interfaceIJavaClassInfo
-
getActualType
- Specified by:
getActualType
in interfaceIJavaClassType
-
getActualType
- Specified by:
getActualType
in interfaceIJavaClassType
-
getConcreteType
- Specified by:
getConcreteType
in interfaceIJavaClassType
-
getName
- Specified by:
getName
in interfaceIJavaClassType
-
getNameSignature
- Specified by:
getNameSignature
in interfaceIJavaClassInfo
-
getMethod
public IJavaClassMethod getMethod(String methodName, IJavaClassInfo... paramTypes) throws NoSuchMethodException - Specified by:
getMethod
in interfaceIJavaClassInfo
- Throws:
NoSuchMethodException
-
getDeclaredMethod
public IJavaClassMethod getDeclaredMethod(String methodName, IJavaClassInfo... params) throws NoSuchMethodException - Specified by:
getDeclaredMethod
in interfaceIJavaClassInfo
- Throws:
NoSuchMethodException
-
getDeclaredMethods
- Specified by:
getDeclaredMethods
in interfaceIJavaClassInfo
-
newInstance
- Specified by:
newInstance
in interfaceIJavaClassInfo
- Throws:
InstantiationException
IllegalAccessException
-
getEnumConstants
- Specified by:
getEnumConstants
in interfaceIJavaClassInfo
-
getJavaType
- Specified by:
getJavaType
in interfaceIJavaClassInfo
-
setJavaType
-
getInterfaces
- Specified by:
getInterfaces
in interfaceIJavaClassInfo
-
getSuperclass
- Specified by:
getSuperclass
in interfaceIJavaClassInfo
-
getTypeParameters
- Specified by:
getTypeParameters
in interfaceIJavaClassInfo
-
getDeclaredFields
- Specified by:
getDeclaredFields
in interfaceIJavaClassInfo
-
getDeclaredConstructors
- Specified by:
getDeclaredConstructors
in interfaceIJavaClassInfo
-
getConstructor
- Specified by:
getConstructor
in interfaceIJavaClassInfo
- Throws:
NoSuchMethodException
-
createClassDocNode
- Specified by:
createClassDocNode
in interfaceIJavaClassInfo
-
getPropertyDescriptors
- Specified by:
getPropertyDescriptors
in interfaceIJavaClassInfo
-
getMethodDescriptors
- Specified by:
getMethodDescriptors
in interfaceIJavaClassInfo
-
hasCustomBeanInfo
public boolean hasCustomBeanInfo()- Specified by:
hasCustomBeanInfo
in interfaceIJavaClassInfo
-
getRelativeName
- Specified by:
getRelativeName
in interfaceIJavaClassInfo
-
getDisplayName
- Specified by:
getDisplayName
in interfaceIJavaClassInfo
-
getSimpleName
- Specified by:
getSimpleName
in interfaceIJavaClassType
-
isVisibleViaFeatureDescriptor
- Specified by:
isVisibleViaFeatureDescriptor
in interfaceIJavaClassInfo
-
isHiddenViaFeatureDescriptor
public boolean isHiddenViaFeatureDescriptor()- Specified by:
isHiddenViaFeatureDescriptor
in interfaceIJavaClassInfo
-
getFields
- Specified by:
getFields
in interfaceIJavaClassInfo
-
isArray
public boolean isArray()- Specified by:
isArray
in interfaceIJavaClassInfo
- Specified by:
isArray
in interfaceIJavaClassType
-
getComponentType
- Specified by:
getComponentType
in interfaceIJavaClassInfo
- Specified by:
getComponentType
in interfaceIJavaClassType
-
isEnum
public boolean isEnum()- Specified by:
isEnum
in interfaceIJavaClassInfo
-
getModifiers
public int getModifiers()- Specified by:
getModifiers
in interfaceIJavaClassInfo
-
isPrimitive
public boolean isPrimitive()- Specified by:
isPrimitive
in interfaceIJavaClassInfo
-
getEnclosingType
- Specified by:
getEnclosingType
in interfaceIJavaClassInfo
-
getNamespace
- Specified by:
getNamespace
in interfaceIJavaClassType
-
getGenericInterfaces
- Specified by:
getGenericInterfaces
in interfaceIJavaClassInfo
-
getGenericSuperclass
- Specified by:
getGenericSuperclass
in interfaceIJavaClassInfo
-
getArrayType
- Specified by:
getArrayType
in interfaceIJavaClassInfo
-
getDeclaredClasses
- Specified by:
getDeclaredClasses
in interfaceIJavaClassInfo
-
isAssignableFrom
- Specified by:
isAssignableFrom
in interfaceIJavaClassInfo
-
isPublic
public boolean isPublic()- Specified by:
isPublic
in interfaceIJavaClassInfo
-
isProtected
public boolean isProtected()- Specified by:
isProtected
in interfaceIJavaClassInfo
-
isInternal
public boolean isInternal()- Specified by:
isInternal
in interfaceIJavaClassInfo
-
isPrivate
public boolean isPrivate()- Specified by:
isPrivate
in interfaceIJavaClassInfo
-
getBackingClass
- Specified by:
getBackingClass
in interfaceIJavaClassInfo
-
getSourceFileHandle
- Specified by:
getSourceFileHandle
in interfaceIJavaClassInfo
-
resolveType
- Specified by:
resolveType
in interfaceITypeInfoResolver
-
resolveType
- Specified by:
resolveType
in interfaceITypeInfoResolver
-
resolveImport
- Specified by:
resolveImport
in interfaceITypeInfoResolver
-
getModule
- Specified by:
getModule
in interfaceIJavaClassType
- Specified by:
getModule
in interfaceITypeInfoResolver
-
getEnclosingClass
- Specified by:
getEnclosingClass
in interfaceIJavaAnnotatedElement
-