Package gw.internal.gosu.parser
Interface IGosuClassInternal
- All Superinterfaces:
Comparable
,ICanBeAnnotation
,ICompilableType
,ICompilableTypeInternal
,IEnhanceableType
,IEnumData
,IEnumType
,IFileRepositoryBasedType
,IGosuClass
,IHasInnerClass
,IHasJavaClass
,IParameterizableType
,IType
,Serializable
- All Known Subinterfaces:
IGosuEnhancementInternal
,IGosuProgramInternal
,IGosuTemplateInternal
- All Known Implementing Classes:
BlockClass
,GosuClass
,GosuClassFragment
,GosuEnhancement
,GosuProgram
,GosuTemplateType
,SyntheticClass
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface gw.lang.reflect.gs.IGosuClass
IGosuClass.ProxyUtil
-
Field Summary
Fields inherited from interface gw.lang.reflect.gs.IGosuClass
ANONYMOUS_PREFIX, PROXY_PREFIX, SUPER_PROXY_CLASS_PREFIX
Fields inherited from interface gw.lang.reflect.IType
EMPTY_ARRAY, EMPTY_TYPE_ARRAY, EMPTY_TYPE_LIST
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addBlock
(IBlockClass block) void
void
addDelegateImpls
(ISymbolTable symTable, GosuClassParser parser) void
addInnerClass
(IGosuClassInternal innerGsClass) void
addInterface
(IType type) void
assignTypeUsesMap
(GosuParser parser) void
void
void
compileDefinitionsIfNeeded
(boolean bForce) void
void
copyGenericState
(boolean bCopyHierarchy) void
When changing the places from which this method is called run pc's gw.smoketest.pc.job.common.effectivetime.VisibleEffectiveTimeTest cause it will break!boolean
ensureDefaultConstructor
(ISymbolTable symbolTable, GosuParser parser) void
int
getCapturedSymbol
(String strName) getConstructorFunction
(String name) int
getDepth()
List<? extends IGosuAnnotation>
getMemberField
(String charSequence) getMemberFunction
(IFunctionType funcType, boolean bContravariant) getMemberFunction
(IFunctionType ifaceFuncType, String name, boolean bContravariant) getMemberFunctions
(String names) getMemberProperty
(String name) getStaticField
(String name) getStaticProperty
(String name) int
Returns the type loader responsible for loading this intrinsic type.getUnimplementedMethods
(List<IFunctionType> unimpled, IGosuClassInternal implClass, boolean bAcceptAbstract) boolean
isAccessible
(IGosuClassInternal compilingClass, AbstractDynamicSymbol ads) boolean
boolean
boolean
isProxy()
boolean
isStale()
void
void
putClassMembers
(GosuParser owner, ISymbolTable table, IGosuClassInternal gsContextClass, boolean bStatic) void
putClassMembers
(GosuClassTypeLoader loader, GosuParser owner, ISymbolTable table, IGosuClassInternal gsContextClass, boolean bStatic) void
putClassMembers
(GosuClassTypeLoader loader, GosuParser owner, ISymbolTable table, IGosuClassInternal gsContextClass, boolean bStatic, boolean bStaticImport) void
removeBlock
(IBlockClass block) void
removeInnerClass
(IGosuClassInternal innerGsClass) void
setAnnotations
(List<IGosuAnnotation> annotations) void
setCannotCaptureSymbols
(boolean val) void
setCompilingDeclarations
(boolean bCompilingDeclarations) void
setCompilingDefinitions
(boolean bCompilingDefinitions) void
setCompilingHeader
(boolean bCompilingHeader) void
void
void
void
setEditorParser
(GosuParser parser) void
setEnum()
void
setFullDescription
(String description) void
setGenericTypeVariables
(List<ITypeVariableDefinition> typeVarLiteralList) void
setHasAssertions
(boolean bHasAssertions) void
void
void
setInterface
(boolean bInterface) void
setJavaType
(IJavaType javaType) void
setModifierInfo
(ModifierInfo modifierInfo) void
void
setStructure
(boolean bStructure) void
setSuperType
(IType superType) void
setTypeUsesMap
(ITypeUsesMap usesMap) boolean
void
Methods inherited from interface java.lang.Comparable
compareTo
Methods inherited from interface gw.lang.reflect.ICanBeAnnotation
isAnnotation
Methods inherited from interface gw.lang.reflect.gs.ICompilableType
getBlock, getClassStatement, getExternalSymbol, getParser, getTypeUsesMap, isAnonymous, isStatic
Methods inherited from interface gw.internal.gosu.parser.ICompilableTypeInternal
getAnonymousInnerClassCount, getEnclosingType, getMemberFields, getSource, hasAssertions, shouldFullyCompileAnnotations
Methods inherited from interface gw.lang.reflect.IEnumData
getEnumConstants, getEnumValue, getEnumValues
Methods inherited from interface gw.lang.parser.IFileRepositoryBasedType
getClassType, getJavaName, getSourceFileHandle
Methods inherited from interface gw.lang.reflect.gs.IGosuClass
findProxiedClassInHierarchy, getClassStatementWithoutCompile, getCompilationState, getConstructorStatement, getEnclosingTypeReference, getFunctionStatement, getInnerClass, getInnerClasses, getInnerClassesMap, getJavaType, getKnownInnerClassesWithoutCompiling, getMemberFields, getMemberFieldsMap, getMemberFunctions, getModifierInfo, getParseResultsException, getPropertyDeclaration, getSource, getSubtypes, getTypeInfo, hasBackingClass, hasError, hasWarnings, isCompiled, isCompilingDeclarations, isCompilingDefinitions, isCompilingHeader, isDeclarationsBypassed, isDeclarationsCompiled, isDefinitionsCompiled, isHeaderCompiled, isInnerDeclarationsCompiled, isStructure, isSubClass, isTestClass, setCreateEditorParser, setEnclosingType, setNamespace, shouldKeepDebugInfo, unloadBackingClass
Methods inherited from interface gw.lang.parser.IHasInnerClass
getLoadedInnerClasses, resolveRelativeInnerClass
Methods inherited from interface gw.lang.reflect.IHasJavaClass
getBackingClass
Methods inherited from interface gw.internal.gosu.parser.IParameterizableType
getLoaderParameterizedTypes, isStrictGenerics
Methods inherited from interface gw.lang.reflect.IType
compile, getAllTypesInHierarchy, getArrayComponent, getArrayLength, getArrayType, getComponentType, getCompoundTypeComponents, getDisplayName, getFunctionalInterface, getGenericType, getGenericTypeVariables, getInterfaces, getLiteralMetaType, getMetaType, getModifiers, getName, getNamespace, getParameterizedType, getRelativeName, getSourceFiles, getSupertype, getTypeParameters, isAbstract, isArray, isAssignableFrom, isCompilable, isCompoundType, isDiscarded, isDynamic, isEnum, isFinal, isGenericType, isInterface, isMutable, isParameterizedType, isPrimitive, isValid, makeArrayInstance, readResolve, setArrayComponent, setDiscarded, unloadTypeInfo
-
Method Details
-
copyGenericState
void copyGenericState(boolean bCopyHierarchy) -
copyHierarchyInfo
void copyHierarchyInfo() -
assignTypeUsesMap
- Specified by:
assignTypeUsesMap
in interfaceICompilableTypeInternal
-
getUnimplementedMethods
List<IFunctionType> getUnimplementedMethods(List<IFunctionType> unimpled, IGosuClassInternal implClass, boolean bAcceptAbstract) -
setJavaType
-
forceTypeInfoInitialization
void forceTypeInfoInitialization() -
getDepth
int getDepth()- Specified by:
getDepth
in interfaceICompilableTypeInternal
-
getTypeInfoChecksum
int getTypeInfoChecksum() -
getParameterizedTypes
Collection<IGosuClassInternal> getParameterizedTypes() -
setAnnotations
-
getEnclosingNonBlockType
IType getEnclosingNonBlockType()- Specified by:
getEnclosingNonBlockType
in interfaceICompilableTypeInternal
-
getGosuAnnotations
List<? extends IGosuAnnotation> getGosuAnnotations()- Specified by:
getGosuAnnotations
in interfaceICompilableTypeInternal
-
createNewParseInfo
GosuClassParseInfo createNewParseInfo()When changing the places from which this method is called run pc's gw.smoketest.pc.job.common.effectivetime.VisibleEffectiveTimeTest cause it will break! -
getParseInfo
GosuClassParseInfo getParseInfo()- Specified by:
getParseInfo
in interfaceICompilableTypeInternal
-
setGenericTypeVariables
-
setModifierInfo
-
setInterface
void setInterface(boolean bInterface) -
setStructure
void setStructure(boolean bStructure) -
setEnum
void setEnum() -
addInterface
-
markStatic
void markStatic() -
isProxy
boolean isProxy() -
getConstructorFunctions
List<DynamicFunctionSymbol> getConstructorFunctions() -
getConstructorFunction
-
getDefaultConstructor
DynamicFunctionSymbol getDefaultConstructor() -
getStaticFunctions
List<DynamicFunctionSymbol> getStaticFunctions() -
getMemberFunctions
- Specified by:
getMemberFunctions
in interfaceICompilableTypeInternal
-
getMemberFunction
-
addInnerClass
-
removeInnerClass
-
getMemberFunction
DynamicFunctionSymbol getMemberFunction(IFunctionType ifaceFuncType, String name, boolean bContravariant) -
getStaticProperty
- Specified by:
getStaticProperty
in interfaceICompilableTypeInternal
-
getStaticProperties
List<DynamicPropertySymbol> getStaticProperties() -
getMemberProperties
List<DynamicPropertySymbol> getMemberProperties() -
getMemberProperty
- Specified by:
getMemberProperty
in interfaceICompilableTypeInternal
- Specified by:
getMemberProperty
in interfaceIGosuClass
-
getStaticFields
List<IVarStatement> getStaticFields()- Specified by:
getStaticFields
in interfaceICompilableTypeInternal
-
getStaticField
-
getMemberFieldIndexByName
Map<CharSequence,ISymbol> getMemberFieldIndexByName() -
getStaticThisSymbol
Symbol getStaticThisSymbol() -
getCapturedSymbols
Map<String,ICapturedSymbol> getCapturedSymbols()- Specified by:
getCapturedSymbols
in interfaceICompilableTypeInternal
-
getCapturedSymbol
- Specified by:
getCapturedSymbol
in interfaceICompilableTypeInternal
-
addCapturedSymbol
- Specified by:
addCapturedSymbol
in interfaceICompilableTypeInternal
-
ensureDefaultConstructor
-
setSuperType
-
compileDefinitionsIfNeeded
void compileDefinitionsIfNeeded() -
compileDefinitionsIfNeeded
void compileDefinitionsIfNeeded(boolean bForce) - Specified by:
compileDefinitionsIfNeeded
in interfaceICompilableTypeInternal
-
compileDeclarationsIfNeeded
void compileDeclarationsIfNeeded()- Specified by:
compileDeclarationsIfNeeded
in interfaceICompilableTypeInternal
-
compileHeaderIfNeeded
void compileHeaderIfNeeded()- Specified by:
compileHeaderIfNeeded
in interfaceICompilableTypeInternal
-
setCompilingHeader
void setCompilingHeader(boolean bCompilingHeader) -
setHeaderCompiled
void setHeaderCompiled() -
setCompilingDeclarations
void setCompilingDeclarations(boolean bCompilingDeclarations) -
setDeclarationsCompiled
void setDeclarationsCompiled() -
setDeclarationsBypassed
void setDeclarationsBypassed() -
setInnerDeclarationsCompiled
void setInnerDeclarationsCompiled() -
setCompilingDefinitions
void setCompilingDefinitions(boolean bCompilingDefinitions) -
setDefinitionsCompiled
void setDefinitionsCompiled() -
getMemberField
- Specified by:
getMemberField
in interfaceICompilableTypeInternal
-
getSuperClass
IGosuClassInternal getSuperClass() -
putClassMembers
void putClassMembers(GosuParser owner, ISymbolTable table, IGosuClassInternal gsContextClass, boolean bStatic) - Specified by:
putClassMembers
in interfaceICompilableTypeInternal
-
putClassMembers
void putClassMembers(GosuClassTypeLoader loader, GosuParser owner, ISymbolTable table, IGosuClassInternal gsContextClass, boolean bStatic) - Specified by:
putClassMembers
in interfaceICompilableTypeInternal
-
putClassMembers
void putClassMembers(GosuClassTypeLoader loader, GosuParser owner, ISymbolTable table, IGosuClassInternal gsContextClass, boolean bStatic, boolean bStaticImport) -
isAccessible
-
setParseResultsException
-
shouldResolve
boolean shouldResolve() -
setEditorParser
-
syncGenericAndParameterizedClasses
void syncGenericAndParameterizedClasses() -
addDelegateImpls
-
getUnimplementedMethods
List<IFunctionType> getUnimplementedMethods() -
setFullDescription
-
getFullDescription
String getFullDescription() -
dontEverCallThis
Object dontEverCallThis() -
isStale
boolean isStale()- Returns:
- True if this type is no longer current or has been unloaded.
-
isCannotCaptureSymbols
boolean isCannotCaptureSymbols() -
setCannotCaptureSymbols
void setCannotCaptureSymbols(boolean val) -
getBlocks
List<IGosuClass> getBlocks()- Specified by:
getBlocks
in interfaceIGosuClass
-
getBlockCount
int getBlockCount()- Specified by:
getBlockCount
in interfaceICompilableTypeInternal
-
addBlock
- Specified by:
addBlock
in interfaceICompilableTypeInternal
-
removeBlock
- Specified by:
removeBlock
in interfaceICompilableTypeInternal
-
getTypeLoader
GosuClassTypeLoader getTypeLoader()Description copied from interface:IType
Returns the type loader responsible for loading this intrinsic type.- Specified by:
getTypeLoader
in interfaceICompilableType
- Specified by:
getTypeLoader
in interfaceIType
-
isCreateEditorParser
boolean isCreateEditorParser()- Specified by:
isCreateEditorParser
in interfaceICompilableTypeInternal
-
setTypeUsesMap
-
setHasAssertions
void setHasAssertions(boolean bHasAssertions)
-