Package gw.internal.gosu.template
Class GosuTemplateType
java.lang.Object
gw.lang.reflect.AbstractType
gw.lang.reflect.InnerClassCapableType
gw.internal.gosu.parser.GosuClass
gw.internal.gosu.parser.GosuProgram
gw.internal.gosu.template.GosuTemplateType
- All Implemented Interfaces:
ICompilableTypeInternal,IGosuClassInternal,IGosuProgramInternal,IGosuTemplateInternal,IParameterizableType,IFileRepositoryBasedType,IHasInnerClass,ICompilableType,IGosuClass,IGosuProgram,ITemplateType,ICanBeAnnotation,IEnhanceableType,IEnumData,IEnumType,IHasJavaClass,IType,Serializable,Comparable
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface gw.lang.reflect.gs.IGosuClass
IGosuClass.ProxyUtilNested classes/interfaces inherited from interface gw.internal.gosu.parser.IGosuClassInternal
IGosuClassInternal.UtilNested classes/interfaces inherited from interface gw.lang.reflect.gs.IGosuProgram
IGosuProgram.Runner -
Field Summary
FieldsFields inherited from class gw.internal.gosu.parser.GosuClass
_parseInfoFields inherited from interface gw.lang.reflect.gs.IGosuClass
ANONYMOUS_PREFIX, PROXY_PREFIX, SUPER_PROXY_CLASS_PREFIXFields inherited from interface gw.lang.reflect.gs.IGosuProgram
NAME_PREFIX, PACKAGE, PACKAGE_PLUS_DOTFields inherited from interface gw.lang.reflect.IType
EMPTY_ARRAY, EMPTY_TYPE_ARRAY, EMPTY_TYPE_LIST -
Constructor Summary
ConstructorsConstructorDescriptionGosuTemplateType(String strNamespace, String strRelativeName, GosuClassTypeLoader classTypeLoader, ISourceFileHandle sourceFile, ITypeUsesMap typeUsesMap, ISymbolTable symTable) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidvoidaddTemplateEntryPoints(ISymbolTable symTable, GosuClassParser parser) Make an array type from this type.protected GosuParsergetOrCreateParser(CompiledGosuClassSymbolTable symbolTable) IType[]getParameterTypes(IType[] delegateParamTypes) Returns the type representing the supertype of this type.booleanisFinal()True if this type cannot be extended.booleanReturns true if this ia a Generic Type.Methods inherited from class gw.internal.gosu.parser.GosuProgram
addCapturedProgramSymbols, addExecuteEntryPoint, addProgramEntryPoint, allowsUses, assign, createNewParseInfo, evaluate, evaluateRoot, getAdditionalDFSDecls, getContextType, getEnclosingEvalExpression, getExpectedReturnType, getExpression, getExternalSymbol, getParseInfo, getProgramInstance, getReturnType, getStatement, getSymbolTable, getTokenizerInstructor, isAnonymous, isExpression, isGenRootExprAccess, isLhsExpression, isParsingExecutableProgramStatements, isStatementsOnly, isThrowaway, setAdditionalDFSDecls, setAllowUses, setAnonymous, setContextType, setCtxInferenceMgr, setEnclosingEvalExpression, setExpectedReturnType, setExpression, setGenRootExprAccess, setParsingExecutableProgramStatements, setStatement, setStatementsOnly, setThrowaway, setTokenizerInstructor, unloadBackingClassMethods inherited from class gw.internal.gosu.parser.GosuClass
addBlock, addCapturedSymbol, addDelegateImpls, addInnerClass, addInterface, assignTypeUsesMap, assignTypeVarsFromTypeParams, compareTo, compile, compileDeclarationsIfNeeded, compileDefinitionsIfNeeded, compileDefinitionsIfNeeded, compileHeaderIfNeeded, copyGenericState, copyHierarchyInfo, dontEverCallThis, ensureDefaultConstructor, findProxiedClassInHierarchy, forceTypeInfoInitialization, getAllTypesInHierarchy, getAnonymousInnerClassCount, getArrayComponent, getArrayLength, getBackingClass, getBlock, getBlockCount, getBlocks, getCapturedSymbol, getCapturedSymbols, getClassStatement, getClassStatementWithoutCompile, getCompilationState, getComponentType, getCompoundTypeComponents, getConstructorFunction, getConstructorFunctions, getConstructorStatement, getDefaultConstructor, getDepth, getDisplayName, getEnclosingNonBlockType, getEnclosingType, getEnclosingTypeReference, getEnumConstants, getEnumValue, getEnumValues, getFullDescription, getFunctionalInterface, getFunctionStatement, getGenericType, getGenericTypeVariables, getGosuAnnotations, getId, getInnerClass, getInnerClasses, getInnerClassesMap, getInterfaces, getJavaType, getKnownInnerClassesWithoutCompiling, getLoadedInnerClasses, getLoaderParameterizedTypes, getMemberField, getMemberFieldIndexByName, getMemberFields, getMemberFieldsMap, getMemberFunction, getMemberFunction, getMemberFunctions, getMemberFunctions, getMemberProperties, getMemberProperty, getModifiers, getName, getNamespace, getOrCreateTypeReference, getOrCreateTypeReference, getParameterizedType, getParameterizedTypes, getParser, getParseResultsException, getPropertyDeclaration, getRelativeName, getSource, getSourceFileHandle, getSourceFiles, getStaticField, getStaticFields, getStaticFunctions, getStaticProperties, getStaticProperty, getStaticThisSymbol, getSubtypes, getSuperClass, getTypeInfo, getTypeInfoChecksum, getTypeLoader, getTypeParameters, getTypeUsesMap, getTypeVarDefs, getUnimplementedMethods, getUnimplementedMethods, getUnimplementedMethods, hasAncestorBeenUpdated, hasAssertions, hasBackingClass, hasError, hasWarnings, isAbstract, isAccessible, isAnnotation, isArray, isAssignableFrom, isCannotCaptureSymbols, isCompilable, isCompiled, isCompilingDeclarations, isCompilingDefinitions, isCompilingHeader, isCompoundType, isCreateEditorParser, isDeclarationsBypassed, isDeclarationsCompiled, isDefinitionsCompiled, isDiscarded, isEnum, isHeaderCompiled, isInnerDeclarationsCompiled, isInterface, isMutable, isParameterizedType, isPrimitive, isProxy, isStale, isStatic, isStrictGenerics, isStructure, isSubClass, isTestClass, isValid, makeArrayInstance, makeCopy, markStatic, putClassMembers, putClassMembers, putClassMembers, readResolve, removeBlock, removeInnerClass, resolveRelativeInnerClass, setAnnotations, setArrayComponent, setCannotCaptureSymbols, setCompilingDeclarations, setCompilingDefinitions, setCompilingHeader, setCreateEditorParser, setDeclarationsBypassed, setDeclarationsCompiled, setDefinitionsCompiled, setDiscarded, setEditorParser, setEnclosingType, setEnum, setFullDescription, setGenericTypeVariables, setHasAssertions, setHeaderCompiled, setInnerDeclarationsCompiled, setInterface, setJavaType, setModifierInfo, setNamespace, setParseResultsException, setStructure, setSuperType, setTypeUsesMap, shouldFullyCompileAnnotations, shouldKeepDebugInfo, shouldResolve, syncGenericAndParameterizedClasses, toString, unloadTypeInfoMethods inherited from class gw.lang.reflect.AbstractType
getLiteralMetaType, getMetaType, getTheRefMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Comparable
compareToMethods inherited from interface gw.lang.reflect.ICanBeAnnotation
isAnnotationMethods inherited from interface gw.lang.reflect.gs.ICompilableType
getBlock, getClassStatement, getExternalSymbol, getParser, getTypeUsesMap, isAnonymous, isStaticMethods inherited from interface gw.internal.gosu.parser.ICompilableTypeInternal
getAnonymousInnerClassCount, getEnclosingType, getMemberFields, getSource, hasAssertions, shouldFullyCompileAnnotationsMethods inherited from interface gw.lang.reflect.IEnumData
getEnumConstants, getEnumValue, getEnumValuesMethods inherited from interface gw.lang.parser.IFileRepositoryBasedType
getJavaNameMethods inherited from interface gw.lang.reflect.gs.IGosuClass
findProxiedClassInHierarchy, getClassStatementWithoutCompile, getCompilationState, getConstructorStatement, getEnclosingTypeReference, getFunctionStatement, getInnerClass, getInnerClasses, getInnerClassesMap, getJavaType, getKnownInnerClassesWithoutCompiling, getMemberFields, getMemberFieldsMap, getMemberFunctions, getParseResultsException, getPropertyDeclaration, getSource, getSubtypes, getTypeInfo, hasBackingClass, hasError, hasWarnings, isCompiled, isCompilingDeclarations, isCompilingDefinitions, isCompilingHeader, isDeclarationsBypassed, isDeclarationsCompiled, isDefinitionsCompiled, isHeaderCompiled, isInnerDeclarationsCompiled, isStructure, isSubClass, isTestClass, setCreateEditorParser, setEnclosingType, setNamespace, shouldKeepDebugInfo, unloadBackingClassMethods inherited from interface gw.internal.gosu.parser.IGosuClassInternal
addBlock, addCapturedSymbol, addDelegateImpls, addInnerClass, addInterface, assignTypeUsesMap, compileDeclarationsIfNeeded, compileDefinitionsIfNeeded, compileDefinitionsIfNeeded, compileHeaderIfNeeded, copyGenericState, copyHierarchyInfo, createNewParseInfo, dontEverCallThis, ensureDefaultConstructor, forceTypeInfoInitialization, getBlockCount, getBlocks, getCapturedSymbol, getCapturedSymbols, getConstructorFunction, getConstructorFunctions, getDefaultConstructor, getDepth, getEnclosingNonBlockType, getFullDescription, getGosuAnnotations, getMemberField, getMemberFieldIndexByName, getMemberFunction, getMemberFunction, getMemberFunctions, getMemberProperties, getMemberProperty, getParameterizedTypes, getParseInfo, getStaticField, getStaticFields, getStaticFunctions, getStaticProperties, getStaticProperty, getStaticThisSymbol, getSuperClass, getTypeInfoChecksum, getTypeLoader, getUnimplementedMethods, getUnimplementedMethods, isAccessible, isCannotCaptureSymbols, isCreateEditorParser, isProxy, isStale, markStatic, putClassMembers, putClassMembers, putClassMembers, removeBlock, removeInnerClass, setAnnotations, setCannotCaptureSymbols, setCompilingDeclarations, setCompilingDefinitions, setCompilingHeader, setDeclarationsBypassed, setDeclarationsCompiled, setDefinitionsCompiled, setEditorParser, setEnum, setFullDescription, setGenericTypeVariables, setHasAssertions, setHeaderCompiled, setInnerDeclarationsCompiled, setInterface, setJavaType, setModifierInfo, setParseResultsException, setStructure, setSuperType, setTypeUsesMap, shouldResolve, syncGenericAndParameterizedClassesMethods inherited from interface gw.lang.reflect.gs.IGosuProgram
assign, evaluate, evaluateRoot, getContextType, getEnclosingEvalExpression, getExpectedReturnType, getExpression, getProgramInstance, getReturnType, getStatement, isExpression, isLhsExpression, setEnclosingEvalExpressionMethods inherited from interface gw.internal.gosu.parser.IGosuProgramInternal
addCapturedProgramSymbols, addExecuteEntryPoint, addProgramEntryPoint, allowsUses, getAdditionalDFSDecls, getSymbolTable, getTokenizerInstructor, isGenRootExprAccess, isParsingExecutableProgramStatements, isStatementsOnly, isThrowaway, setAdditionalDFSDecls, setAllowUses, setAnonymous, setContextType, setCtxInferenceMgr, setExpectedReturnType, setExpression, setGenRootExprAccess, setParsingExecutableProgramStatements, setStatement, setStatementsOnly, setThrowaway, setTokenizerInstructorMethods inherited from interface gw.lang.parser.IHasInnerClass
getLoadedInnerClasses, resolveRelativeInnerClassMethods inherited from interface gw.lang.reflect.IHasJavaClass
getBackingClassMethods inherited from interface gw.internal.gosu.parser.IParameterizableType
getLoaderParameterizedTypes, isStrictGenericsMethods inherited from interface gw.lang.reflect.gs.ITemplateType
getSourceFileHandleMethods inherited from interface gw.lang.reflect.IType
compile, getAllTypesInHierarchy, getArrayComponent, getArrayLength, getComponentType, getCompoundTypeComponents, getDisplayName, getFunctionalInterface, getGenericType, getGenericTypeVariables, getInterfaces, getLiteralMetaType, getMetaType, getModifiers, getName, getNamespace, getParameterizedType, getRelativeName, getSourceFiles, getTypeParameters, isAbstract, isArray, isAssignableFrom, isCompilable, isCompoundType, isDiscarded, isDynamic, isEnum, isInterface, isMutable, isParameterizedType, isPrimitive, isValid, makeArrayInstance, readResolve, setArrayComponent, setDiscarded, unloadTypeInfo
-
Field Details
-
_gen
-
_modifierInfo
-
-
Constructor Details
-
GosuTemplateType
public GosuTemplateType(String strNamespace, String strRelativeName, GosuClassTypeLoader classTypeLoader, ISourceFileHandle sourceFile, ITypeUsesMap typeUsesMap, ISymbolTable symTable)
-
-
Method Details
-
addProgramInterfaces
protected void addProgramInterfaces()- Overrides:
addProgramInterfacesin classGosuProgram
-
getArrayType
Description copied from interface:ITypeMake an array type from this type. E.g., String -> String[]- Specified by:
getArrayTypein interfaceIType- Overrides:
getArrayTypein classGosuClass
-
getSupertype
Description copied from interface:ITypeReturns the type representing the supertype of this type. Returns null if this type has no supertype.- Specified by:
getSupertypein interfaceIType- Overrides:
getSupertypein classGosuClass
-
isFinal
public boolean isFinal()Description copied from interface:ITypeTrue if this type cannot be extended. -
isGenericType
public boolean isGenericType()Description copied from interface:ITypeReturns true if this ia a Generic Type.- Specified by:
isGenericTypein interfaceIType- Overrides:
isGenericTypein classGosuClass- See Also:
-
getModifierInfo
- Specified by:
getModifierInfoin interfaceIGosuClass- Overrides:
getModifierInfoin classGosuClass
-
getTemplateGenerator
- Specified by:
getTemplateGeneratorin interfaceITemplateType
-
getOrCreateParser
- Overrides:
getOrCreateParserin classGosuProgram
-
addTemplateEntryPoints
- Specified by:
addTemplateEntryPointsin interfaceIGosuTemplateInternal
-
getParameterTypes
-
getClassType
- Specified by:
getClassTypein interfaceIFileRepositoryBasedType- Overrides:
getClassTypein classGosuProgram
-