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
LOCKFields 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) intgetName()booleanbooleanbooleanisAnnotationPresent(Class<? extends Annotation> annotationClass) Returns true if an annotation for the specified type is present on this element, else false.booleanisArray()booleanisAssignableFrom(IJavaClassInfo aClass) booleanisEnum()booleanbooleanbooleanbooleanbooleanbooleanbooleanisPublic()booleanisVisibleViaFeatureDescriptor(IScriptabilityModifier constraint) resolveImport(String relativeName) resolveType(String relativeName, int ignoreFlags) resolveType(String relativeName, IJavaClassInfo whosAskin, int ignoreFlags) voidsetJavaType(IJavaType javaType) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface gw.lang.reflect.java.IJavaAnnotatedElement
getLocationInfoMethods inherited from interface gw.lang.reflect.java.IJavaClassInfo
compile, equals, getDeclaredField, getDeepestClassAtOffset, getField, hashCode, isCompilableMethods inherited from interface gw.lang.reflect.java.IJavaClassType
isAssignableFrom
-
Constructor Details
-
ErrorJavaClassInfo
public ErrorJavaClassInfo()
-
-
Method Details
-
isAnnotationPresent
Description copied from interface:IJavaAnnotatedElementReturns 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:
isAnnotationPresentin 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:IJavaAnnotatedElementReturns this element's annotation for the specified type if such an annotation is present, else null.- Specified by:
getAnnotationin 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:IJavaAnnotatedElementReturns 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:
getDeclaredAnnotationsin interfaceIJavaAnnotatedElement- Returns:
- All annotations directly present on this element
-
isAnnotation
public boolean isAnnotation()- Specified by:
isAnnotationin interfaceIJavaClassInfo
-
isInterface
public boolean isInterface()- Specified by:
isInterfacein interfaceIJavaClassInfo
-
getActualType
- Specified by:
getActualTypein interfaceIJavaClassType
-
getActualType
- Specified by:
getActualTypein interfaceIJavaClassType
-
getConcreteType
- Specified by:
getConcreteTypein interfaceIJavaClassType
-
getName
- Specified by:
getNamein interfaceIJavaClassType
-
getNameSignature
- Specified by:
getNameSignaturein interfaceIJavaClassInfo
-
getMethod
public IJavaClassMethod getMethod(String methodName, IJavaClassInfo... paramTypes) throws NoSuchMethodException - Specified by:
getMethodin interfaceIJavaClassInfo- Throws:
NoSuchMethodException
-
getDeclaredMethod
public IJavaClassMethod getDeclaredMethod(String methodName, IJavaClassInfo... params) throws NoSuchMethodException - Specified by:
getDeclaredMethodin interfaceIJavaClassInfo- Throws:
NoSuchMethodException
-
getDeclaredMethods
- Specified by:
getDeclaredMethodsin interfaceIJavaClassInfo
-
newInstance
- Specified by:
newInstancein interfaceIJavaClassInfo- Throws:
InstantiationExceptionIllegalAccessException
-
getEnumConstants
- Specified by:
getEnumConstantsin interfaceIJavaClassInfo
-
getJavaType
- Specified by:
getJavaTypein interfaceIJavaClassInfo
-
setJavaType
-
getInterfaces
- Specified by:
getInterfacesin interfaceIJavaClassInfo
-
getSuperclass
- Specified by:
getSuperclassin interfaceIJavaClassInfo
-
getTypeParameters
- Specified by:
getTypeParametersin interfaceIJavaClassInfo
-
getDeclaredFields
- Specified by:
getDeclaredFieldsin interfaceIJavaClassInfo
-
getDeclaredConstructors
- Specified by:
getDeclaredConstructorsin interfaceIJavaClassInfo
-
getConstructor
- Specified by:
getConstructorin interfaceIJavaClassInfo- Throws:
NoSuchMethodException
-
createClassDocNode
- Specified by:
createClassDocNodein interfaceIJavaClassInfo
-
getPropertyDescriptors
- Specified by:
getPropertyDescriptorsin interfaceIJavaClassInfo
-
getMethodDescriptors
- Specified by:
getMethodDescriptorsin interfaceIJavaClassInfo
-
hasCustomBeanInfo
public boolean hasCustomBeanInfo()- Specified by:
hasCustomBeanInfoin interfaceIJavaClassInfo
-
getRelativeName
- Specified by:
getRelativeNamein interfaceIJavaClassInfo
-
getDisplayName
- Specified by:
getDisplayNamein interfaceIJavaClassInfo
-
getSimpleName
- Specified by:
getSimpleNamein interfaceIJavaClassType
-
isVisibleViaFeatureDescriptor
- Specified by:
isVisibleViaFeatureDescriptorin interfaceIJavaClassInfo
-
isHiddenViaFeatureDescriptor
public boolean isHiddenViaFeatureDescriptor()- Specified by:
isHiddenViaFeatureDescriptorin interfaceIJavaClassInfo
-
getFields
- Specified by:
getFieldsin interfaceIJavaClassInfo
-
isArray
public boolean isArray()- Specified by:
isArrayin interfaceIJavaClassInfo- Specified by:
isArrayin interfaceIJavaClassType
-
getComponentType
- Specified by:
getComponentTypein interfaceIJavaClassInfo- Specified by:
getComponentTypein interfaceIJavaClassType
-
isEnum
public boolean isEnum()- Specified by:
isEnumin interfaceIJavaClassInfo
-
getModifiers
public int getModifiers()- Specified by:
getModifiersin interfaceIJavaClassInfo
-
isPrimitive
public boolean isPrimitive()- Specified by:
isPrimitivein interfaceIJavaClassInfo
-
getEnclosingType
- Specified by:
getEnclosingTypein interfaceIJavaClassInfo
-
getNamespace
- Specified by:
getNamespacein interfaceIJavaClassType
-
getGenericInterfaces
- Specified by:
getGenericInterfacesin interfaceIJavaClassInfo
-
getGenericSuperclass
- Specified by:
getGenericSuperclassin interfaceIJavaClassInfo
-
getArrayType
- Specified by:
getArrayTypein interfaceIJavaClassInfo
-
getDeclaredClasses
- Specified by:
getDeclaredClassesin interfaceIJavaClassInfo
-
isAssignableFrom
- Specified by:
isAssignableFromin interfaceIJavaClassInfo
-
isPublic
public boolean isPublic()- Specified by:
isPublicin interfaceIJavaClassInfo
-
isProtected
public boolean isProtected()- Specified by:
isProtectedin interfaceIJavaClassInfo
-
isInternal
public boolean isInternal()- Specified by:
isInternalin interfaceIJavaClassInfo
-
isPrivate
public boolean isPrivate()- Specified by:
isPrivatein interfaceIJavaClassInfo
-
getBackingClass
- Specified by:
getBackingClassin interfaceIJavaClassInfo
-
getSourceFileHandle
- Specified by:
getSourceFileHandlein interfaceIJavaClassInfo
-
resolveType
- Specified by:
resolveTypein interfaceITypeInfoResolver
-
resolveType
- Specified by:
resolveTypein interfaceITypeInfoResolver
-
resolveImport
- Specified by:
resolveImportin interfaceITypeInfoResolver
-
getModule
- Specified by:
getModulein interfaceIJavaClassType- Specified by:
getModulein interfaceITypeInfoResolver
-
getEnclosingClass
- Specified by:
getEnclosingClassin interfaceIJavaAnnotatedElement
-