Package gw.internal.gosu.parser
Class GosuProgram
java.lang.Object
gw.lang.reflect.AbstractType
gw.lang.reflect.InnerClassCapableType
gw.internal.gosu.parser.GosuClass
gw.internal.gosu.parser.GosuProgram
- All Implemented Interfaces:
ICompilableTypeInternal,IGosuClassInternal,IGosuProgramInternal,IParameterizableType,IFileRepositoryBasedType,IHasInnerClass,ICompilableType,IGosuClass,IGosuProgram,ICanBeAnnotation,IEnhanceableType,IEnumData,IEnumType,IHasJavaClass,IType,Serializable,Comparable
- Direct Known Subclasses:
GosuTemplateType
- 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
FieldsModifier and TypeFieldDescriptionprivate booleanprivate booleanprivate booleanprivate booleanprivate booleanprivate ITypeprivate ContextInferenceManagerprivate ITypeprivate IProgramInstanceprivate booleanprivate ITokenizerInstructorFields 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
ConstructorsConstructorDescriptionGosuProgram(String strNamespace, String strRelativeName, GosuClassTypeLoader classTypeLoader, ISourceFileHandle sourceFile, ITypeUsesMap typeUsesMap, ISymbolTable symTable) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCapturedProgramSymbols(ISymbolTable classCompilationSymTable) voidaddExecuteEntryPoint(ISymbolTable symTable, GosuClassParser parser) voidaddProgramEntryPoint(ISymbolTable symTable, GosuClassParser parser) private voidaddProgramInstanceMethod(ISymbolTable symTable, GosuClassParser parser, IJavaType cls, String strMethod, IType params) protected voidbooleanvoidprivate booleanprivate IProgramInstanceWhen changing the places from which this method is called run pc's gw.smoketest.pc.job.common.effectivetime.VisibleEffectiveTimeTest cause it will break!evaluate(IExternalSymbolMap externalSymbols) evaluateRoot(IExternalSymbolMap externalSymbols) getExternalSymbol(String strName) protected GosuParsergetOrCreateParser(CompiledGosuClassSymbolTable symbolTable) booleanbooleanbooleanbooleanbooleanbooleanbooleanprivate ObjectrunProgram(IExternalSymbolMap externalSymbols) voidsetAdditionalDFSDecls(ISymbolTable symbolTable) voidsetAllowUses(boolean b) voidsetAnonymous(boolean b) voidsetContextType(IType contextType) voidsetCtxInferenceMgr(Object ctxInferenceMgr) voidsetEnclosingEvalExpression(IParsedElement evalExprOrAnyExpr) voidsetExpectedReturnType(IType expectedReturnType) voidsetExpression(Expression expr) voidsetGenRootExprAccess(boolean bGenRootExprAccess) voidsetParsingExecutableProgramStatements(boolean b) voidsetStatement(Statement stmt) voidsetStatementsOnly(boolean bStatementsOnly) voidsetThrowaway(boolean throwaway) voidvoidMethods 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, getArrayType, 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, getModifierInfo, getModifiers, getName, getNamespace, getOrCreateTypeReference, getOrCreateTypeReference, getParameterizedType, getParameterizedTypes, getParser, getParseResultsException, getPropertyDeclaration, getRelativeName, getSource, getSourceFileHandle, getSourceFiles, getStaticField, getStaticFields, getStaticFunctions, getStaticProperties, getStaticProperty, getStaticThisSymbol, getSubtypes, getSuperClass, getSupertype, 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, isFinal, isGenericType, isHeaderCompiled, isInnerDeclarationsCompiled, isInterface, isMutable, isObjectMethod, 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, getParser, getTypeUsesMap, 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
getJavaName, getSourceFileHandleMethods 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, shouldKeepDebugInfoMethods inherited from interface gw.internal.gosu.parser.IGosuClassInternal
addBlock, addCapturedSymbol, addDelegateImpls, addInnerClass, addInterface, assignTypeUsesMap, compileDeclarationsIfNeeded, compileDefinitionsIfNeeded, compileDefinitionsIfNeeded, compileHeaderIfNeeded, copyGenericState, copyHierarchyInfo, dontEverCallThis, ensureDefaultConstructor, forceTypeInfoInitialization, getBlockCount, getBlocks, getCapturedSymbol, getCapturedSymbols, getConstructorFunction, getConstructorFunctions, getDefaultConstructor, getDepth, getEnclosingNonBlockType, getFullDescription, getGosuAnnotations, getMemberField, getMemberFieldIndexByName, getMemberFunction, getMemberFunction, getMemberFunctions, getMemberProperties, getMemberProperty, getParameterizedTypes, 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.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.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
-
Field Details
-
_expectedReturnType
-
_bGenRootExprAccess
private boolean _bGenRootExprAccess -
_tokenizerInstructor
-
_anonymous
private boolean _anonymous -
_throwaway
private boolean _throwaway -
_bStatementsOnly
private boolean _bStatementsOnly -
_contextType
-
_ctxInferenceMgr
-
_bParsingExecutableProgramStmts
private boolean _bParsingExecutableProgramStmts -
_allowUses
private boolean _allowUses
-
-
Constructor Details
-
GosuProgram
public GosuProgram(String strNamespace, String strRelativeName, GosuClassTypeLoader classTypeLoader, ISourceFileHandle sourceFile, ITypeUsesMap typeUsesMap, ISymbolTable symTable)
-
-
Method Details
-
addProgramInterfaces
protected void addProgramInterfaces() -
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!- Specified by:
createNewParseInfoin interfaceIGosuClassInternal- Overrides:
createNewParseInfoin classGosuClass
-
getParseInfo
- Specified by:
getParseInfoin interfaceICompilableTypeInternal- Specified by:
getParseInfoin interfaceIGosuClassInternal- Overrides:
getParseInfoin classGosuClass
-
getSymbolTable
- Specified by:
getSymbolTablein interfaceIGosuProgramInternal
-
addProgramEntryPoint
- Specified by:
addProgramEntryPointin interfaceIGosuProgramInternal
-
addProgramInstanceMethod
private void addProgramInstanceMethod(ISymbolTable symTable, GosuClassParser parser, IJavaType cls, String strMethod, IType params) -
addExecuteEntryPoint
- Specified by:
addExecuteEntryPointin interfaceIGosuProgramInternal
-
addCapturedProgramSymbols
- Specified by:
addCapturedProgramSymbolsin interfaceIGosuProgramInternal
-
isAnonymous
public boolean isAnonymous()- Specified by:
isAnonymousin interfaceICompilableType- Overrides:
isAnonymousin classGosuClass
-
isThrowaway
public boolean isThrowaway()- Specified by:
isThrowawayin interfaceIGosuProgramInternal
-
setThrowaway
public void setThrowaway(boolean throwaway) - Specified by:
setThrowawayin interfaceIGosuProgramInternal
-
setAllowUses
public void setAllowUses(boolean b) - Specified by:
setAllowUsesin interfaceIGosuProgramInternal
-
allowsUses
public boolean allowsUses()- Specified by:
allowsUsesin interfaceIGosuProgramInternal
-
setCtxInferenceMgr
- Specified by:
setCtxInferenceMgrin interfaceIGosuProgramInternal
-
getExternalSymbol
- Specified by:
getExternalSymbolin interfaceICompilableType- Overrides:
getExternalSymbolin classGosuClass
-
setExpression
- Specified by:
setExpressionin interfaceIGosuProgramInternal
-
getExpression
- Specified by:
getExpressionin interfaceIGosuProgram
-
setStatement
- Specified by:
setStatementin interfaceIGosuProgramInternal
-
getStatement
- Specified by:
getStatementin interfaceIGosuProgram
-
isExpression
public boolean isExpression()- Specified by:
isExpressionin interfaceIGosuProgram
-
isLhsExpression
public boolean isLhsExpression()- Specified by:
isLhsExpressionin interfaceIGosuProgram
-
getEnclosingEvalExpression
- Specified by:
getEnclosingEvalExpressionin interfaceIGosuProgram
-
setEnclosingEvalExpression
- Specified by:
setEnclosingEvalExpressionin interfaceIGosuProgram
-
evaluate
- Specified by:
evaluatein interfaceIGosuProgram
-
evaluateRoot
- Specified by:
evaluateRootin interfaceIGosuProgram
-
assign
- Specified by:
assignin interfaceIGosuProgram
-
setGenRootExprAccess
public void setGenRootExprAccess(boolean bGenRootExprAccess) - Specified by:
setGenRootExprAccessin interfaceIGosuProgramInternal
-
isGenRootExprAccess
public boolean isGenRootExprAccess()- Specified by:
isGenRootExprAccessin interfaceIGosuProgramInternal
-
getTokenizerInstructor
- Specified by:
getTokenizerInstructorin interfaceIGosuProgramInternal
-
setTokenizerInstructor
- Specified by:
setTokenizerInstructorin interfaceIGosuProgramInternal
-
getAdditionalDFSDecls
- Specified by:
getAdditionalDFSDeclsin interfaceIGosuProgramInternal
-
setAdditionalDFSDecls
- Specified by:
setAdditionalDFSDeclsin interfaceIGosuProgramInternal
-
getOrCreateParser
- Overrides:
getOrCreateParserin classGosuClass
-
getExpectedReturnType
- Specified by:
getExpectedReturnTypein interfaceIGosuProgram
-
setExpectedReturnType
- Specified by:
setExpectedReturnTypein interfaceIGosuProgramInternal
-
getReturnType
- Specified by:
getReturnTypein interfaceIGosuProgram
-
getProgramInstance
- Specified by:
getProgramInstancein interfaceIGosuProgram
-
unloadBackingClass
public void unloadBackingClass()- Specified by:
unloadBackingClassin interfaceIGosuClass- Overrides:
unloadBackingClassin classGosuClass
-
setAnonymous
public void setAnonymous(boolean b) - Specified by:
setAnonymousin interfaceIGosuProgramInternal
-
setStatementsOnly
public void setStatementsOnly(boolean bStatementsOnly) - Specified by:
setStatementsOnlyin interfaceIGosuProgramInternal
-
isStatementsOnly
public boolean isStatementsOnly()- Specified by:
isStatementsOnlyin interfaceIGosuProgramInternal
-
createNewInstance
-
runProgram
-
setContextType
- Specified by:
setContextTypein interfaceIGosuProgramInternal
-
getContextType
- Specified by:
getContextTypein interfaceIGosuProgram
-
isParsingExecutableProgramStatements
public boolean isParsingExecutableProgramStatements()- Specified by:
isParsingExecutableProgramStatementsin interfaceIGosuProgramInternal
-
setParsingExecutableProgramStatements
public void setParsingExecutableProgramStatements(boolean b) - Specified by:
setParsingExecutableProgramStatementsin interfaceIGosuProgramInternal
-
getClassType
- Specified by:
getClassTypein interfaceIFileRepositoryBasedType- Overrides:
getClassTypein classGosuClass
-