Class JavaSourceUnresolvedClass
- java.lang.Object
-
- gw.lang.reflect.java.JavaSourceElement
-
- gw.lang.reflect.java.AbstractJavaClassInfo
-
- gw.internal.gosu.parser.java.classinfo.JavaSourceUnresolvedClass
-
- All Implemented Interfaces:
IJavaAnnotatedElement,IJavaClassInfo,IJavaClassType,ITypeInfoResolver,java.io.Serializable
public class JavaSourceUnresolvedClass extends AbstractJavaClassInfo implements IJavaClassType, ITypeInfoResolver
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface gw.lang.reflect.java.IJavaClassInfo
IJavaClassInfo.Util
-
-
Field Summary
Fields Modifier and Type Field Description private ISourceFileHandle_fileHandleprivate IModule_gosuModuleprivate java.lang.String_namespaceprivate java.lang.String_simpleName-
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 Constructor Description JavaSourceUnresolvedClass(ISourceFileHandle fileHandle, IModule gosuModule)
-
Method Summary
-
Methods inherited from class gw.lang.reflect.java.AbstractJavaClassInfo
equals, equals, hashCode, hashCode, isAssignableFrom, isAssignableFrom
-
Methods inherited from class gw.lang.reflect.java.JavaSourceElement
findInnerSourceType, getCompilationUnitTree, getDeclaringClass, getEndPosition, getLocationInfo, getSourcePositions, getStartPosition
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, 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, getDeclaredField, getDeepestClassAtOffset, getField, isCompilable
-
Methods inherited from interface gw.lang.reflect.java.IJavaClassType
isAssignableFrom
-
-
-
-
Field Detail
-
_simpleName
private java.lang.String _simpleName
-
_namespace
private java.lang.String _namespace
-
_gosuModule
private IModule _gosuModule
-
_fileHandle
private ISourceFileHandle _fileHandle
-
-
Constructor Detail
-
JavaSourceUnresolvedClass
public JavaSourceUnresolvedClass(ISourceFileHandle fileHandle, IModule gosuModule)
-
-
Method Detail
-
getName
public java.lang.String getName()
- Specified by:
getNamein interfaceIJavaClassType
-
getSimpleName
public java.lang.String getSimpleName()
- Specified by:
getSimpleNamein interfaceIJavaClassType
-
getNameSignature
public java.lang.String getNameSignature()
- Specified by:
getNameSignaturein interfaceIJavaClassInfo
-
getRelativeName
public java.lang.String getRelativeName()
- Specified by:
getRelativeNamein interfaceIJavaClassInfo
-
getDisplayName
public java.lang.String getDisplayName()
- Specified by:
getDisplayNamein interfaceIJavaClassInfo
-
isArray
public boolean isArray()
- Specified by:
isArrayin interfaceIJavaClassInfo- Specified by:
isArrayin interfaceIJavaClassType
-
isEnum
public boolean isEnum()
- Specified by:
isEnumin interfaceIJavaClassInfo
-
isPrimitive
public boolean isPrimitive()
- Specified by:
isPrimitivein interfaceIJavaClassInfo
-
isAnnotation
public boolean isAnnotation()
- Specified by:
isAnnotationin interfaceIJavaClassInfo
-
isInterface
public boolean isInterface()
- Specified by:
isInterfacein 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
-
newInstance
public java.lang.Object newInstance() throws java.lang.InstantiationException, java.lang.IllegalAccessException- Specified by:
newInstancein interfaceIJavaClassInfo- Throws:
java.lang.InstantiationExceptionjava.lang.IllegalAccessException
-
getMethod
public IJavaClassMethod getMethod(java.lang.String methodName, IJavaClassInfo... paramTypes) throws java.lang.NoSuchMethodException
- Specified by:
getMethodin interfaceIJavaClassInfo- Throws:
java.lang.NoSuchMethodException
-
getDeclaredMethod
public IJavaClassMethod getDeclaredMethod(java.lang.String methodName, IJavaClassInfo... params) throws java.lang.NoSuchMethodException
- Specified by:
getDeclaredMethodin interfaceIJavaClassInfo- Throws:
java.lang.NoSuchMethodException
-
getDeclaredMethods
public IJavaClassMethod[] getDeclaredMethods()
- Specified by:
getDeclaredMethodsin interfaceIJavaClassInfo
-
getMethodDescriptors
public IJavaMethodDescriptor[] getMethodDescriptors()
- Specified by:
getMethodDescriptorsin interfaceIJavaClassInfo
-
getInterfaces
public IJavaClassInfo[] getInterfaces()
- Specified by:
getInterfacesin interfaceIJavaClassInfo
-
getGenericInterfaces
public IJavaClassType[] getGenericInterfaces()
- Specified by:
getGenericInterfacesin interfaceIJavaClassInfo
-
getSuperclass
public IJavaClassInfo getSuperclass()
- Specified by:
getSuperclassin interfaceIJavaClassInfo
-
getGenericSuperclass
public IJavaClassType getGenericSuperclass()
- Specified by:
getGenericSuperclassin interfaceIJavaClassInfo
-
getDeclaredFields
public IJavaClassField[] getDeclaredFields()
- Specified by:
getDeclaredFieldsin interfaceIJavaClassInfo
-
getFields
public IJavaClassField[] getFields()
- Specified by:
getFieldsin interfaceIJavaClassInfo
-
getEnumConstants
public java.lang.Object[] getEnumConstants()
- Specified by:
getEnumConstantsin interfaceIJavaClassInfo
-
getPropertyDescriptors
public IJavaPropertyDescriptor[] getPropertyDescriptors()
- Specified by:
getPropertyDescriptorsin interfaceIJavaClassInfo
-
getDeclaredConstructors
public IJavaClassConstructor[] getDeclaredConstructors()
- Specified by:
getDeclaredConstructorsin interfaceIJavaClassInfo
-
getConstructor
public IJavaClassConstructor getConstructor(IJavaClassInfo... params) throws java.lang.NoSuchMethodException
- Specified by:
getConstructorin interfaceIJavaClassInfo- Throws:
java.lang.NoSuchMethodException
-
getJavaType
public IType getJavaType()
- Specified by:
getJavaTypein interfaceIJavaClassInfo
-
setJavaType
public void setJavaType(IJavaType javaType)
-
getTypeParameters
public IJavaClassTypeVariable[] getTypeParameters()
- Specified by:
getTypeParametersin interfaceIJavaClassInfo
-
createClassDocNode
public IClassDocNode createClassDocNode()
- Specified by:
createClassDocNodein interfaceIJavaClassInfo
-
hasCustomBeanInfo
public boolean hasCustomBeanInfo()
- Specified by:
hasCustomBeanInfoin interfaceIJavaClassInfo
-
isVisibleViaFeatureDescriptor
public boolean isVisibleViaFeatureDescriptor(IScriptabilityModifier constraint)
- Specified by:
isVisibleViaFeatureDescriptorin interfaceIJavaClassInfo
-
isHiddenViaFeatureDescriptor
public boolean isHiddenViaFeatureDescriptor()
- Specified by:
isHiddenViaFeatureDescriptorin interfaceIJavaClassInfo
-
getComponentType
public IJavaClassInfo getComponentType()
- Specified by:
getComponentTypein interfaceIJavaClassInfo- Specified by:
getComponentTypein interfaceIJavaClassType
-
getModifiers
public int getModifiers()
- Specified by:
getModifiersin interfaceIJavaClassInfo
-
getEnclosingType
public IType getEnclosingType()
- Specified by:
getEnclosingTypein interfaceIJavaClassInfo
-
getArrayType
public IJavaClassInfo getArrayType()
- Specified by:
getArrayTypein interfaceIJavaClassInfo
-
getDeclaredClasses
public IJavaClassInfo[] getDeclaredClasses()
- Specified by:
getDeclaredClassesin interfaceIJavaClassInfo
-
getBackingClass
public java.lang.Class getBackingClass()
- Specified by:
getBackingClassin interfaceIJavaClassInfo
-
getSourceFileHandle
public ISourceFileHandle getSourceFileHandle()
- Specified by:
getSourceFileHandlein interfaceIJavaClassInfo
-
isAnnotationPresent
public boolean isAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation> annotationClass)
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
public IAnnotationInfo getAnnotation(java.lang.Class<? extends java.lang.annotation.Annotation> annotationClass)
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
public IAnnotationInfo[] 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
-
getTree
public com.sun.source.tree.Tree getTree()
- Specified by:
getTreein classJavaSourceElement
-
getEnclosingClass
public IJavaClassInfo getEnclosingClass()
- Specified by:
getEnclosingClassin interfaceIJavaAnnotatedElement- Specified by:
getEnclosingClassin classJavaSourceElement
-
getActualType
public IType getActualType(TypeVarToTypeMap typeMap)
- Specified by:
getActualTypein interfaceIJavaClassType
-
getActualType
public IType getActualType(TypeVarToTypeMap typeMap, boolean bKeepTypeVars)
- Specified by:
getActualTypein interfaceIJavaClassType
-
getConcreteType
public IJavaClassType getConcreteType()
- Specified by:
getConcreteTypein interfaceIJavaClassType
-
resolveType
public IJavaClassType resolveType(java.lang.String relativeName, int ignoreFlags)
- Specified by:
resolveTypein interfaceITypeInfoResolver
-
resolveType
public IJavaClassType resolveType(java.lang.String relativeName, IJavaClassInfo whosAskin, int ignoreFlags)
- Specified by:
resolveTypein interfaceITypeInfoResolver
-
resolveImport
public IJavaClassType resolveImport(java.lang.String relativeName)
- Specified by:
resolveImportin interfaceITypeInfoResolver
-
getModule
public IModule getModule()
- Specified by:
getModulein interfaceIJavaClassType- Specified by:
getModulein interfaceITypeInfoResolver
-
getNamespace
public java.lang.String getNamespace()
- Specified by:
getNamespacein interfaceIJavaClassType
-
-