public class GosuClass extends InnerClassCapableType implements IGosuClassInternal
IGosuClassInternal.UtilIGosuClass.ProxyUtil| Modifier and Type | Field and Description |
|---|---|
protected GosuClassParseInfo |
_parseInfo |
ANONYMOUS_PREFIX, PROXY_PREFIX, SUPER_PROXY_CLASS_PREFIX| Modifier | Constructor and Description |
|---|---|
protected |
GosuClass(IGosuClass genericClass,
IType[] typeParams) |
protected |
GosuClass(IGosuClass genericClass,
IType[] typeParams,
boolean bCopyState) |
|
GosuClass(String strNamespace,
String strRelativeName,
GosuClassTypeLoader classTypeLoader,
ISourceFileHandle sourceFile,
ITypeUsesMap typeUsesMap) |
getLiteralMetaType, getMetaType, getTheRefclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetJavaNameprotected transient GosuClassParseInfo _parseInfo
public GosuClass(String strNamespace, String strRelativeName, GosuClassTypeLoader classTypeLoader, ISourceFileHandle sourceFile, ITypeUsesMap typeUsesMap)
protected GosuClass(IGosuClass genericClass, IType[] typeParams)
protected GosuClass(IGosuClass genericClass, IType[] typeParams, boolean bCopyState)
public GosuClassParseInfo getParseInfo()
getParseInfo in interface ICompilableTypeInternalgetParseInfo in interface IGosuClassInternalpublic boolean hasAssertions()
hasAssertions in interface ICompilableTypeInternalpublic void setHasAssertions(boolean bHasAssertions)
setHasAssertions in interface IGosuClassInternalpublic Object dontEverCallThis()
dontEverCallThis in interface IGosuClassInternalpublic void copyGenericState(boolean bCopyHierarchy)
copyGenericState in interface IGosuClassInternalpublic void copyHierarchyInfo()
copyHierarchyInfo in interface IGosuClassInternalpublic String getDisplayName()
getDisplayName in interface ITypepublic String getRelativeName()
getRelativeName in interface ITypepublic String getNamespace()
getNamespace in interface ITypepublic void setNamespace(String namespace)
setNamespace in interface IGosuClasspublic GosuClassTypeLoader getTypeLoader()
getTypeLoader in interface IGosuClassInternalgetTypeLoader in interface ICompilableTypegetTypeLoader in interface ITypepublic IType getSupertype()
getSupertype in interface ITypepublic IGosuClassInternal getGenericType()
getGenericType in interface ITypepublic boolean isInterface()
isInterface in interface ITypepublic void setInterface(boolean bInterface)
setInterface in interface IGosuClassInternalpublic boolean isStructure()
isStructure in interface IGosuClasspublic void setStructure(boolean bStructure)
setStructure in interface IGosuClassInternalpublic void setEnum()
setEnum in interface IGosuClassInternalpublic List<String> getEnumConstants()
getEnumConstants in interface IEnumDatapublic List<IEnumValue> getEnumValues()
getEnumValues in interface IEnumDatapublic IEnumValue getEnumValue(String strName)
getEnumValue in interface IEnumDatapublic IType[] getInterfaces()
getInterfaces in interface ITypepublic void addInterface(IType type)
addInterface in interface IGosuClassInternalpublic IJavaType getJavaType()
getJavaType in interface IGosuClasspublic void setJavaType(IJavaType javaType)
setJavaType in interface IGosuClassInternalpublic IType findProxiedClassInHierarchy()
findProxiedClassInHierarchy in interface IGosuClasspublic boolean isParameterizedType()
isParameterizedType in interface ITypepublic boolean isGenericType()
isGenericType in interface ITypepublic GenericTypeVariable[] getGenericTypeVariables()
getGenericTypeVariables in interface ITypepublic IGosuClassInternal getParameterizedType(IType... paramTypes)
getParameterizedType in interface ITypeprotected IGosuClassInternal makeCopy(IType... paramTypes)
public IType[] getTypeParameters()
getTypeParameters in interface ITypepublic Set<IType> getAllTypesInHierarchy()
getAllTypesInHierarchy in interface ITypepublic boolean isPrimitive()
isPrimitive in interface ITypepublic IType getArrayType()
getArrayType in interface ITypepublic Object makeArrayInstance(int iLength)
makeArrayInstance in interface ITypepublic Object getArrayComponent(Object array, int iIndex) throws IllegalArgumentException, ArrayIndexOutOfBoundsException
getArrayComponent in interface ITypeIllegalArgumentExceptionArrayIndexOutOfBoundsExceptionpublic void setArrayComponent(Object array, int iIndex, Object value) throws IllegalArgumentException, ArrayIndexOutOfBoundsException
setArrayComponent in interface ITypeIllegalArgumentExceptionArrayIndexOutOfBoundsExceptionpublic int getArrayLength(Object array) throws IllegalArgumentException
getArrayLength in interface ITypeIllegalArgumentExceptionpublic IType getComponentType()
getComponentType in interface ITypepublic boolean isAssignableFrom(IType type)
isAssignableFrom in interface ITypepublic boolean isStrictGenerics()
isStrictGenerics in interface IParameterizableTypepublic boolean isStatic()
isStatic in interface ICompilableTypepublic ModifierInfo getModifierInfo()
getModifierInfo in interface IGosuClasspublic void setModifierInfo(ModifierInfo modifierInfo)
setModifierInfo in interface IGosuClassInternalpublic int getModifiers()
getModifiers in interface ITypepublic void markStatic()
markStatic in interface IGosuClassInternalpublic boolean isAbstract()
isAbstract in interface ITypepublic GosuClassTypeInfo getTypeInfo()
getTypeInfo in interface ICompilableTypegetTypeInfo in interface IGosuClassgetTypeInfo in interface ITypepublic boolean hasAncestorBeenUpdated()
public void unloadTypeInfo()
unloadTypeInfo in interface ITypepublic Object readResolve() throws ObjectStreamException
readResolve in interface ITypeObjectStreamExceptionpublic String getId()
public String getSource()
getSource in interface ICompilableTypeInternalgetSource in interface IGosuClasspublic boolean isStale()
isStale in interface IGosuClassInternalpublic int getTypeInfoChecksum()
getTypeInfoChecksum in interface IGosuClassInternalpublic boolean isProxy()
isProxy in interface IGosuClassInternalprotected ITypeRef getOrCreateTypeReference()
public boolean isSubClass(IType gsSubType)
isSubClass in interface IGosuClasspublic boolean isCompiled()
isCompiled in interface IGosuClasspublic List<DynamicFunctionSymbol> getConstructorFunctions()
getConstructorFunctions in interface IGosuClassInternalpublic DynamicFunctionSymbol getConstructorFunction(String name)
getConstructorFunction in interface IGosuClassInternalpublic DynamicFunctionSymbol getDefaultConstructor()
getDefaultConstructor in interface IGosuClassInternalpublic List<DynamicFunctionSymbol> getStaticFunctions()
getStaticFunctions in interface IGosuClassInternalpublic Map<CharSequence,IGosuClassInternal> getInnerClassesMap()
getInnerClassesMap in interface IGosuClasspublic List<IGosuClassInternal> getInnerClasses()
getInnerClasses in interface IHasInnerClassgetInnerClasses in interface IGosuClasspublic Map<CharSequence,? extends IGosuClass> getKnownInnerClassesWithoutCompiling()
getKnownInnerClassesWithoutCompiling in interface IGosuClasspublic IGosuClass getBlock(int i)
getBlock in interface ICompilableTypepublic void addInnerClass(IGosuClassInternal innerGsClass)
addInnerClass in interface IGosuClassInternalpublic void removeInnerClass(IGosuClassInternal innerGsClass)
removeInnerClass in interface IGosuClassInternalpublic IType resolveRelativeInnerClass(String strRelativeInnerClassName, boolean bForce)
resolveRelativeInnerClass in interface IHasInnerClassresolveRelativeInnerClass in class InnerClassCapableTypepublic List<DynamicFunctionSymbol> getMemberFunctions()
getMemberFunctions in interface IGosuClasspublic DynamicFunctionSymbol getMemberFunction(IFunctionType funcType, String signature, boolean bContravariant)
getMemberFunction in interface IGosuClassInternalpublic List<DynamicFunctionSymbol> getMemberFunctions(String names)
getMemberFunctions in interface ICompilableTypeInternalgetMemberFunctions in interface IGosuClassInternalpublic DynamicFunctionSymbol getMemberFunction(IFunctionType funcType, boolean bContravariant)
public DynamicPropertySymbol getStaticProperty(String name)
getStaticProperty in interface ICompilableTypeInternalgetStaticProperty in interface IGosuClassInternalpublic List<DynamicPropertySymbol> getStaticProperties()
getStaticProperties in interface IGosuClassInternalpublic List<DynamicPropertySymbol> getMemberProperties()
getMemberProperties in interface IGosuClassInternalpublic DynamicPropertySymbol getMemberProperty(String name)
getMemberProperty in interface ICompilableTypeInternalgetMemberProperty in interface IGosuClassInternalgetMemberProperty in interface IGosuClasspublic List<IVarStatement> getStaticFields()
getStaticFields in interface ICompilableTypeInternalgetStaticFields in interface IGosuClassInternalpublic VarStatement getStaticField(String name)
getStaticField in interface IGosuClassInternalpublic Map<CharSequence,ISymbol> getMemberFieldIndexByName()
getMemberFieldIndexByName in interface IGosuClassInternalpublic List<IVarStatement> getMemberFields()
getMemberFields in interface ICompilableTypeInternalgetMemberFields in interface IGosuClasspublic Map<String,VarStatement> getMemberFieldsMap()
getMemberFieldsMap in interface IGosuClasspublic Symbol getStaticThisSymbol()
getStaticThisSymbol in interface IGosuClassInternalpublic Map<String,ICapturedSymbol> getCapturedSymbols()
getCapturedSymbols in interface ICompilableTypeInternalgetCapturedSymbols in interface IGosuClassInternalpublic ICapturedSymbol getCapturedSymbol(String strName)
getCapturedSymbol in interface ICompilableTypeInternalgetCapturedSymbol in interface IGosuClassInternalpublic void addCapturedSymbol(ICapturedSymbol sym)
addCapturedSymbol in interface ICompilableTypeInternaladdCapturedSymbol in interface IGosuClassInternalpublic boolean ensureDefaultConstructor(ISymbolTable symbolTable, GosuParser parser)
ensureDefaultConstructor in interface IGosuClassInternalpublic ClassStatement getClassStatement()
getClassStatement in interface ICompilableType
NOTE: Because GosuClass is lazily compiled, the ClassStatement returned is
NOT guaranteed to be fully compiled by this method, and may return only the
declarations of the class. If you wish to access the fully compiled ClassStatement
you must call compileDefinitionsIfNeeded().
public ClassStatement getClassStatementWithoutCompile()
getClassStatementWithoutCompile in interface IGosuClasspublic void setSuperType(IType superType)
setSuperType in interface IGosuClassInternalpublic void setEnclosingType(IType enclosingType)
setEnclosingType in interface IGosuClasspublic IType getEnclosingTypeReference()
getEnclosingTypeReference in interface IGosuClasspublic boolean isAnonymous()
isAnonymous in interface ICompilableTypepublic int getDepth()
getDepth in interface ICompilableTypeInternalgetDepth in interface IGosuClassInternalpublic void compileDefinitionsIfNeeded()
compileDefinitionsIfNeeded in interface IGosuClassInternalpublic void compileDefinitionsIfNeeded(boolean bForce)
compileDefinitionsIfNeeded in interface ICompilableTypeInternalcompileDefinitionsIfNeeded in interface IGosuClassInternalpublic void compileDeclarationsIfNeeded()
compileDeclarationsIfNeeded in interface ICompilableTypeInternalcompileDeclarationsIfNeeded in interface IGosuClassInternalpublic void forceTypeInfoInitialization()
forceTypeInfoInitialization in interface IGosuClassInternalpublic void syncGenericAndParameterizedClasses()
syncGenericAndParameterizedClasses in interface IGosuClassInternalpublic Collection<IGosuClassInternal> getParameterizedTypes()
getParameterizedTypes in interface IGosuClassInternalpublic void setAnnotations(List<IGosuAnnotation> annotations)
setAnnotations in interface IGosuClassInternalpublic IType getEnclosingNonBlockType()
getEnclosingNonBlockType in interface ICompilableTypeInternalgetEnclosingNonBlockType in interface IGosuClassInternalpublic void compileHeaderIfNeeded()
compileHeaderIfNeeded in interface ICompilableTypeInternalcompileHeaderIfNeeded in interface IGosuClassInternalpublic gw.internal.gosu.parser.CompilationState getCompilationState()
getCompilationState in interface IGosuClasspublic boolean isCompilingHeader()
isCompilingHeader in interface IGosuClasspublic void setCompilingHeader(boolean bCompilingHeader)
setCompilingHeader in interface IGosuClassInternalpublic boolean isHeaderCompiled()
isHeaderCompiled in interface IGosuClasspublic void setHeaderCompiled()
setHeaderCompiled in interface IGosuClassInternalpublic boolean isCompilingDeclarations()
isCompilingDeclarations in interface IGosuClasspublic void setCompilingDeclarations(boolean bCompilingDeclarations)
setCompilingDeclarations in interface IGosuClassInternalpublic boolean isDeclarationsCompiled()
isDeclarationsCompiled in interface IGosuClasspublic boolean isDeclarationsBypassed()
isDeclarationsBypassed in interface IGosuClasspublic void setDeclarationsBypassed()
setDeclarationsBypassed in interface IGosuClassInternalpublic boolean isInnerDeclarationsCompiled()
isInnerDeclarationsCompiled in interface IGosuClasspublic void setDeclarationsCompiled()
setDeclarationsCompiled in interface IGosuClassInternalpublic void setInnerDeclarationsCompiled()
setInnerDeclarationsCompiled in interface IGosuClassInternalpublic boolean isCompilingDefinitions()
isCompilingDefinitions in interface IGosuClasspublic boolean shouldFullyCompileAnnotations()
shouldFullyCompileAnnotations in interface ICompilableTypeInternalpublic void setCompilingDefinitions(boolean bCompilingDefinitions)
setCompilingDefinitions in interface IGosuClassInternalpublic boolean isDefinitionsCompiled()
isDefinitionsCompiled in interface IGosuClasspublic void setDefinitionsCompiled()
setDefinitionsCompiled in interface IGosuClassInternalpublic ISourceFileHandle getSourceFileHandle()
getSourceFileHandle in interface IFileRepositoryBasedTypepublic List<IType> getLoadedInnerClasses()
getLoadedInnerClasses in interface IHasInnerClasspublic ClassType getClassType()
getClassType in interface IFileRepositoryBasedTypepublic List<? extends IGosuAnnotation> getGosuAnnotations()
getGosuAnnotations in interface ICompilableTypeInternalgetGosuAnnotations in interface IGosuClassInternalpublic GosuClassParseInfo createNewParseInfo()
createNewParseInfo in interface IGosuClassInternalpublic boolean isTestClass()
isTestClass in interface IGosuClasspublic IGosuClassInternal getInnerClass(CharSequence relativeName)
getInnerClass in interface IHasInnerClassgetInnerClass in interface IGosuClasspublic VarStatement getMemberField(String charSequence)
getMemberField in interface ICompilableTypeInternalgetMemberField in interface IGosuClassInternalpublic boolean shouldKeepDebugInfo()
shouldKeepDebugInfo in interface IGosuClasspublic IGosuClassInternal getSuperClass()
getSuperClass in interface IGosuClassInternalpublic ICompilableTypeInternal getEnclosingType()
getEnclosingType in interface ICompilableTypeInternalgetEnclosingType in interface ICompilableTypegetEnclosingType in interface ITypepublic boolean hasBackingClass()
hasBackingClass in interface IGosuClasspublic void unloadBackingClass()
unloadBackingClass in interface IGosuClasspublic Class<?> getBackingClass()
getBackingClass in interface IHasJavaClasspublic boolean isCompilable()
isCompilable in interface ICompilablepublic byte[] compile()
compile in interface ICompilablepublic ISymbol getExternalSymbol(String strName)
getExternalSymbol in interface ICompilableTypepublic void putClassMembers(GosuParser owner, ISymbolTable table, IGosuClassInternal gsContextClass, boolean bStatic)
putClassMembers in interface ICompilableTypeInternalputClassMembers in interface IGosuClassInternalpublic void putClassMembers(GosuClassTypeLoader loader, GosuParser owner, ISymbolTable table, IGosuClassInternal gsContextClass, boolean bStatic)
putClassMembers in interface ICompilableTypeInternalputClassMembers in interface IGosuClassInternalpublic void putClassMembers(GosuClassTypeLoader loader, GosuParser owner, ISymbolTable table, IGosuClassInternal gsContextClass, boolean bStatic, boolean bStaticImport)
putClassMembers in interface IGosuClassInternalpublic boolean isAccessible(IGosuClassInternal compilingClass, AbstractDynamicSymbol ads)
isAccessible in interface IGosuClassInternalpublic void setParseResultsException(ParseResultsException pe)
setParseResultsException in interface IGosuClassInternalpublic boolean hasError()
hasError in interface IGosuClasspublic boolean hasWarnings()
hasWarnings in interface IGosuClasspublic ParseResultsException getParseResultsException()
getParseResultsException in interface IGosuClasspublic int compareTo(Object o)
compareTo in interface Comparablepublic boolean shouldResolve()
shouldResolve in interface IGosuClassInternalpublic ITypeUsesMap getTypeUsesMap()
getTypeUsesMap in interface ICompilableTypepublic void setTypeUsesMap(ITypeUsesMap usesMap)
setTypeUsesMap in interface IGosuClassInternalpublic void assignTypeUsesMap(GosuParser parser)
assignTypeUsesMap in interface ICompilableTypeInternalassignTypeUsesMap in interface IGosuClassInternalpublic void setEditorParser(GosuParser parser)
setEditorParser in interface IGosuClassInternalpublic void setCreateEditorParser(boolean bEditorParser)
setCreateEditorParser in interface IGosuClasspublic boolean isCreateEditorParser()
isCreateEditorParser in interface ICompilableTypeInternalisCreateEditorParser in interface IGosuClassInternalpublic int getAnonymousInnerClassCount()
getAnonymousInnerClassCount in interface ICompilableTypeInternalpublic GosuParser getParser()
getParser in interface ICompilableTypeprotected GosuParser getOrCreateParser(CompiledGosuClassSymbolTable symbolTable)
public void addDelegateImpls(ISymbolTable symTable, GosuClassParser parser)
addDelegateImpls in interface IGosuClassInternalpublic List<IFunctionType> getUnimplementedMethods()
getUnimplementedMethods in interface IGosuClassInternalpublic List<IFunctionType> getUnimplementedMethods(List<IFunctionType> unimpled, IGosuClassInternal implClass, boolean bAcceptAbstract)
getUnimplementedMethods in interface IGosuClassInternalpublic static List<IFunctionType> getUnimplementedMethods(IGosuClass gsIface, IGosuClass implClass, List<IFunctionType> unimpled, boolean ensurePublic, boolean bAcceptAbstract)
public void setFullDescription(String description)
setFullDescription in interface IGosuClassInternalpublic String getFullDescription()
getFullDescription in interface IGosuClassInternalpublic List<? extends IType> getSubtypes()
getSubtypes in interface IGosuClasspublic boolean isDiscarded()
isDiscarded in interface ITypepublic void setDiscarded(boolean bDiscarded)
setDiscarded in interface ITypepublic boolean isCompoundType()
isCompoundType in interface ITypepublic Set<IType> getCompoundTypeComponents()
getCompoundTypeComponents in interface ITypepublic boolean isCannotCaptureSymbols()
isCannotCaptureSymbols in interface IGosuClassInternalpublic void setCannotCaptureSymbols(boolean bCannotCaptureSymbols)
setCannotCaptureSymbols in interface IGosuClassInternalpublic List<IGosuClass> getBlocks()
getBlocks in interface IGosuClassInternalgetBlocks in interface IGosuClasspublic int getBlockCount()
getBlockCount in interface ICompilableTypeInternalgetBlockCount in interface IGosuClassInternalpublic void addBlock(IBlockClass block)
addBlock in interface ICompilableTypeInternaladdBlock in interface IGosuClassInternalpublic void removeBlock(IBlockClass block)
removeBlock in interface ICompilableTypeInternalremoveBlock in interface IGosuClassInternalpublic void assignTypeVarsFromTypeParams(IType[] typeParams)
public List<ITypeVariableDefinition> getTypeVarDefs()
public void setGenericTypeVariables(List<ITypeVariableDefinition> typeVarExprList)
setGenericTypeVariables in interface IGosuClassInternalpublic IFunctionStatement getFunctionStatement(IMethodInfo method)
getFunctionStatement in interface IGosuClasspublic INameInDeclaration getPropertyDeclaration(String name)
getPropertyDeclaration in interface IGosuClasspublic IConstructorStatement getConstructorStatement(IConstructorInfo ctor)
getConstructorStatement in interface IGosuClasspublic IType[] getLoaderParameterizedTypes()
getLoaderParameterizedTypes in interface IParameterizableTypepublic IFile[] getSourceFiles()
getSourceFiles in interface ITypepublic boolean isAnnotation()
isAnnotation in interface ICanBeAnnotationCopyright © 2016. All rights reserved.