public abstract class JavaSourceType extends AbstractJavaClassInfo implements IJavaClassType, ITypeInfoResolver
IJavaClassInfo.Util| Modifier and Type | Field and Description |
|---|---|
protected Map<String,Object> |
_cache |
protected IJavaClassConstructor[] |
_constructors |
protected JavaSourceType |
_enclosingClass |
protected IJavaClassField[] |
_fields |
protected String |
_fullyQualifiedName |
protected IJavaClassType[] |
_genericInterfaces |
protected IJavaClassType |
_genericSuperClass |
protected IModule |
_gosuModule |
protected List<String> |
_importList |
protected IJavaClassInfo[] |
_innerClasses |
protected IJavaClassInfo[] |
_interfaces |
protected IJavaClassMethod[] |
_methods |
protected JavaSourceModifierList |
_modifiersList |
protected String |
_namespace |
protected String |
_simpleName |
protected IJavaClassTypeVariable[] |
_typeParameters |
static int |
IGNORE_INTERFACES |
static int |
IGNORE_NONE |
static int |
IGNORE_SUPERCLASS |
EMPTY_ARRAY, ERROR_TYPE, NULL_TYPELOCK| Modifier | Constructor and Description |
|---|---|
protected |
JavaSourceType(com.sun.source.tree.ClassTree typeDecl,
JavaSourceType enclosingClass)
For inner classes.
|
protected |
JavaSourceType(ISourceFileHandle fileHandle,
com.sun.source.tree.CompilationUnitTree compilationUnitTree,
com.sun.source.tree.ClassTree typeDecl,
List<? extends com.sun.source.tree.ImportTree> imports,
com.sun.source.util.SourcePositions sourcePositions,
IModule gosuModule)
For top level classes.
|
equals, equals, hashCode, hashCode, isAssignableFrom, isAssignableFromfindInnerSourceType, getLocationInfoclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetDeclaredField, getFieldgetLocationInfopublic static final int IGNORE_NONE
public static final int IGNORE_INTERFACES
public static final int IGNORE_SUPERCLASS
protected IModule _gosuModule
protected String _fullyQualifiedName
protected String _namespace
protected String _simpleName
protected JavaSourceType _enclosingClass
protected IJavaClassField[] _fields
protected IJavaClassMethod[] _methods
protected JavaSourceModifierList _modifiersList
protected IJavaClassInfo[] _innerClasses
protected IJavaClassConstructor[] _constructors
protected IJavaClassInfo[] _interfaces
protected IJavaClassType _genericSuperClass
protected IJavaClassTypeVariable[] _typeParameters
protected IJavaClassType[] _genericInterfaces
protected JavaSourceType(ISourceFileHandle fileHandle, com.sun.source.tree.CompilationUnitTree compilationUnitTree, com.sun.source.tree.ClassTree typeDecl, List<? extends com.sun.source.tree.ImportTree> imports, com.sun.source.util.SourcePositions sourcePositions, IModule gosuModule)
protected JavaSourceType(com.sun.source.tree.ClassTree typeDecl,
JavaSourceType enclosingClass)
public static IJavaClassInfo createTopLevel(ISourceFileHandle fileHandle, IModule gosuModule)
public static IJavaClassInfo createTopLevel(ISourceFileHandle fileHandle, IModule gosuModule, DiagnosticCollector<JavaFileObject> errorHandler)
public static IJavaClassType createType(ITypeInfoResolver typeResolver, com.sun.source.tree.Tree tree)
public static IJavaClassType createType(ITypeInfoResolver typeResolver, String typeName, int ignoreFlags)
protected void makeImportList(List<? extends com.sun.source.tree.ImportTree> imports)
public IModule getModule()
getModule in interface IJavaClassTypegetModule in interface ITypeInfoResolverpublic String getNameSignature()
getNameSignature in interface IJavaClassInfopublic String getRelativeName()
getRelativeName in interface IJavaClassInfopublic String getDisplayName()
getDisplayName in interface IJavaClassInfopublic String getSimpleName()
getSimpleName in interface IJavaClassTypepublic boolean isArray()
isArray in interface IJavaClassInfopublic String getName()
getName in interface IJavaClassTypepublic IJavaClassInfo[] getInterfaces()
getInterfaces in interface IJavaClassInfopublic static String getTypeName(com.sun.source.tree.Tree tree)
public IJavaClassType[] getGenericInterfaces()
getGenericInterfaces in interface IJavaClassInfopublic IJavaClassInfo getSuperclass()
getSuperclass in interface IJavaClassInfopublic IJavaClassType getGenericSuperclass()
getGenericSuperclass in interface IJavaClassInfopublic void initMethodsAndConstructors()
public IJavaClassMethod[] getDeclaredMethods()
getDeclaredMethods in interface IJavaClassInfopublic IJavaClassConstructor[] getDeclaredConstructors()
getDeclaredConstructors in interface IJavaClassInfopublic IJavaClassConstructor getConstructor(IJavaClassInfo... paramTypes) throws NoSuchMethodException
getConstructor in interface IJavaClassInfoNoSuchMethodExceptionpublic IJavaClassField[] getDeclaredFields()
getDeclaredFields in interface IJavaClassInfopublic IJavaClassField[] getFields()
getFields in interface IJavaClassInfopublic Object[] getEnumConstants()
getEnumConstants in interface IJavaClassInfopublic IJavaPropertyDescriptor[] getPropertyDescriptors()
getPropertyDescriptors in interface IJavaClassInfoprotected IJavaPropertyDescriptor[] initPropertyDescriptors()
public IType getJavaType()
getJavaType in interface IJavaClassInfopublic void setJavaType(IJavaType javaType)
public IJavaClassTypeVariable[] getTypeParameters()
getTypeParameters in interface IJavaClassInfopublic IClassDocNode createClassDocNode()
createClassDocNode in interface IJavaClassInfopublic boolean hasCustomBeanInfo()
hasCustomBeanInfo in interface IJavaClassInfopublic boolean isVisibleViaFeatureDescriptor(IScriptabilityModifier constraint)
isVisibleViaFeatureDescriptor in interface IJavaClassInfopublic boolean isHiddenViaFeatureDescriptor()
isHiddenViaFeatureDescriptor in interface IJavaClassInfopublic IJavaClassInfo getComponentType()
getComponentType in interface IJavaClassInfopublic int getModifiers()
getModifiers in interface IJavaClassInfopublic IModifierList getModifierList()
public IType getEnclosingType()
getEnclosingType in interface IJavaClassInfopublic String getNamespace()
getNamespace in interface IJavaClassTypepublic IJavaClassInfo getArrayType()
getArrayType in interface IJavaClassInfopublic IJavaClassInfo[] getDeclaredClasses()
getDeclaredClasses in interface IJavaClassInfopublic Class getBackingClass()
getBackingClass in interface IJavaClassInfopublic IJavaClassInfo getInnerClass(String relativeName)
public IType getActualType(TypeVarToTypeMap typeMap)
getActualType in interface IJavaClassTypepublic IType getActualType(TypeVarToTypeMap typeMap, boolean bKeepTypeVars)
getActualType in interface IJavaClassTypepublic IJavaClassType getConcreteType()
getConcreteType in interface IJavaClassTypepublic boolean isClass()
public boolean isInterface()
isInterface in interface IJavaClassInfopublic Object newInstance() throws InstantiationException, IllegalAccessException
newInstance in interface IJavaClassInfoInstantiationExceptionIllegalAccessExceptionpublic IJavaClassMethod getMethod(String methodName, IJavaClassInfo... paramTypes) throws NoSuchMethodException
getMethod in interface IJavaClassInfoNoSuchMethodExceptionpublic IJavaClassMethod getDeclaredMethod(String methodName, IJavaClassInfo... paramTypes) throws NoSuchMethodException
getDeclaredMethod in interface IJavaClassInfoNoSuchMethodExceptionpublic IJavaMethodDescriptor[] getMethodDescriptors()
getMethodDescriptors in interface IJavaClassInfopublic boolean isEnum()
isEnum in interface IJavaClassInfopublic boolean isPrimitive()
isPrimitive in interface IJavaClassInfopublic boolean isAnnotation()
isAnnotation in interface IJavaClassInfopublic boolean isPublic()
isPublic in interface IJavaClassInfopublic boolean isProtected()
isProtected in interface IJavaClassInfopublic boolean isPrivate()
isPrivate in interface IJavaClassInfopublic boolean isInternal()
isInternal in interface IJavaClassInfopublic IJavaClassType resolveType(String relativeName, int ignoreFlags)
resolveType in interface ITypeInfoResolverpublic IJavaClassType resolveType(String relativeName, IJavaClassInfo whosAskin, int ignoreFlags)
resolveType in interface ITypeInfoResolverpublic IJavaClassType resolveImport(String relativeName)
resolveImport in interface ITypeInfoResolverpublic IJavaClassInfo getEnclosingClass()
getEnclosingClass in interface IJavaAnnotatedElementgetEnclosingClass in class JavaSourceElementpublic IJavaClassInfo getDeclaringClass()
getDeclaringClass in class JavaSourceElementpublic JavaSourceType getDeepestClassAtOffset(int offset)
getDeepestClassAtOffset in interface IJavaClassInfopublic boolean isAnnotationPresent(Class<? extends Annotation> annotationClass)
isAnnotationPresent in interface IJavaAnnotatedElementpublic IAnnotationInfo getAnnotation(Class annotationClass)
getAnnotation in interface IJavaAnnotatedElementpublic IAnnotationInfo[] getDeclaredAnnotations()
getDeclaredAnnotations in interface IJavaAnnotatedElementpublic TypeUsesMap getTypeUsesMap()
public ISourceFileHandle getSourceFileHandle()
getSourceFileHandle in interface IJavaClassInfopublic boolean isCompilable()
isCompilable in interface IJavaClassInfopublic byte[] compile()
compile in interface IJavaClassInfopublic com.sun.source.tree.ClassTree getTree()
getTree in class JavaSourceElementpublic com.sun.source.tree.CompilationUnitTree getCompilationUnitTree()
getCompilationUnitTree in class JavaSourceElementpublic com.sun.source.util.SourcePositions getSourcePositions()
getSourcePositions in class JavaSourceElementpublic int getStartPosition()
getStartPosition in class JavaSourceElementpublic int getEndPosition()
getEndPosition in class JavaSourceElementCopyright © 2017. All rights reserved.