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
public class GosuProgram extends GosuClass implements IGosuProgramInternal
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface gw.lang.reflect.gs.IGosuClass
IGosuClass.ProxyUtil
-
Nested classes/interfaces inherited from interface gw.internal.gosu.parser.IGosuClassInternal
IGosuClassInternal.Util
-
Nested classes/interfaces inherited from interface gw.lang.reflect.gs.IGosuProgram
IGosuProgram.Runner
-
-
Field Summary
-
Fields inherited from class gw.internal.gosu.parser.GosuClass
_parseInfo
-
Fields inherited from interface gw.lang.reflect.gs.IGosuClass
ANONYMOUS_PREFIX, PROXY_PREFIX, SUPER_PROXY_CLASS_PREFIX
-
Fields inherited from interface gw.lang.reflect.gs.IGosuProgram
NAME_PREFIX, PACKAGE, PACKAGE_PLUS_DOT
-
Fields inherited from interface gw.lang.reflect.IType
EMPTY_ARRAY, EMPTY_TYPE_ARRAY, EMPTY_TYPE_LIST
-
-
Constructor Summary
Constructors Constructor Description GosuProgram(String strNamespace, String strRelativeName, GosuClassTypeLoader classTypeLoader, ISourceFileHandle sourceFile, ITypeUsesMap typeUsesMap, ISymbolTable symTable)
-
Method Summary
-
Methods 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, 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, unloadTypeInfo
-
Methods inherited from class gw.lang.reflect.AbstractType
getLiteralMetaType, getMetaType, getTheRef
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
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, getParser, getTypeUsesMap, 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
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
-
Methods 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, syncGenericAndParameterizedClasses
-
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
-
-
-
-
Constructor Detail
-
GosuProgram
public GosuProgram(String strNamespace, String strRelativeName, GosuClassTypeLoader classTypeLoader, ISourceFileHandle sourceFile, ITypeUsesMap typeUsesMap, ISymbolTable symTable)
-
-
Method Detail
-
addProgramInterfaces
protected void addProgramInterfaces()
-
createNewParseInfo
public 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!- Specified by:
createNewParseInfoin interfaceIGosuClassInternal- Overrides:
createNewParseInfoin classGosuClass
-
getParseInfo
public GosuProgramParseInfo getParseInfo()
- Specified by:
getParseInfoin interfaceICompilableTypeInternal- Specified by:
getParseInfoin interfaceIGosuClassInternal- Overrides:
getParseInfoin classGosuClass
-
getSymbolTable
public ISymbolTable getSymbolTable()
- Specified by:
getSymbolTablein interfaceIGosuProgramInternal
-
addProgramEntryPoint
public void addProgramEntryPoint(ISymbolTable symTable, GosuClassParser parser)
- Specified by:
addProgramEntryPointin interfaceIGosuProgramInternal
-
addExecuteEntryPoint
public void addExecuteEntryPoint(ISymbolTable symTable, GosuClassParser parser)
- Specified by:
addExecuteEntryPointin interfaceIGosuProgramInternal
-
addCapturedProgramSymbols
public void addCapturedProgramSymbols(ISymbolTable classCompilationSymTable)
- 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
public void setCtxInferenceMgr(Object ctxInferenceMgr)
- Specified by:
setCtxInferenceMgrin interfaceIGosuProgramInternal
-
getExternalSymbol
public ISymbol getExternalSymbol(String strName)
- Specified by:
getExternalSymbolin interfaceICompilableType- Overrides:
getExternalSymbolin classGosuClass
-
setExpression
public void setExpression(Expression expr)
- Specified by:
setExpressionin interfaceIGosuProgramInternal
-
getExpression
public IExpression getExpression()
- Specified by:
getExpressionin interfaceIGosuProgram
-
setStatement
public void setStatement(Statement stmt)
- Specified by:
setStatementin interfaceIGosuProgramInternal
-
getStatement
public IStatement getStatement()
- Specified by:
getStatementin interfaceIGosuProgram
-
isExpression
public boolean isExpression()
- Specified by:
isExpressionin interfaceIGosuProgram
-
isLhsExpression
public boolean isLhsExpression()
- Specified by:
isLhsExpressionin interfaceIGosuProgram
-
getEnclosingEvalExpression
public IParsedElement getEnclosingEvalExpression()
- Specified by:
getEnclosingEvalExpressionin interfaceIGosuProgram
-
setEnclosingEvalExpression
public void setEnclosingEvalExpression(IParsedElement evalExprOrAnyExpr)
- Specified by:
setEnclosingEvalExpressionin interfaceIGosuProgram
-
evaluate
public Object evaluate(IExternalSymbolMap externalSymbols)
- Specified by:
evaluatein interfaceIGosuProgram
-
evaluateRoot
public Object evaluateRoot(IExternalSymbolMap externalSymbols)
- Specified by:
evaluateRootin interfaceIGosuProgram
-
assign
public void assign(Object value)
- Specified by:
assignin interfaceIGosuProgram
-
setGenRootExprAccess
public void setGenRootExprAccess(boolean bGenRootExprAccess)
- Specified by:
setGenRootExprAccessin interfaceIGosuProgramInternal
-
isGenRootExprAccess
public boolean isGenRootExprAccess()
- Specified by:
isGenRootExprAccessin interfaceIGosuProgramInternal
-
getTokenizerInstructor
public ITokenizerInstructor getTokenizerInstructor()
- Specified by:
getTokenizerInstructorin interfaceIGosuProgramInternal
-
setTokenizerInstructor
public void setTokenizerInstructor(ITokenizerInstructor ti)
- Specified by:
setTokenizerInstructorin interfaceIGosuProgramInternal
-
getAdditionalDFSDecls
public ISymbolTable getAdditionalDFSDecls()
- Specified by:
getAdditionalDFSDeclsin interfaceIGosuProgramInternal
-
setAdditionalDFSDecls
public void setAdditionalDFSDecls(ISymbolTable symbolTable)
- Specified by:
setAdditionalDFSDeclsin interfaceIGosuProgramInternal
-
getOrCreateParser
protected GosuParser getOrCreateParser(CompiledGosuClassSymbolTable symbolTable)
- Overrides:
getOrCreateParserin classGosuClass
-
getExpectedReturnType
public IType getExpectedReturnType()
- Specified by:
getExpectedReturnTypein interfaceIGosuProgram
-
setExpectedReturnType
public void setExpectedReturnType(IType expectedReturnType)
- Specified by:
setExpectedReturnTypein interfaceIGosuProgramInternal
-
getReturnType
public IType getReturnType()
- Specified by:
getReturnTypein interfaceIGosuProgram
-
getProgramInstance
public IProgramInstance 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
-
setContextType
public void setContextType(IType contextType)
- Specified by:
setContextTypein interfaceIGosuProgramInternal
-
getContextType
public IType getContextType()
- Specified by:
getContextTypein interfaceIGosuProgram
-
isParsingExecutableProgramStatements
public boolean isParsingExecutableProgramStatements()
- Specified by:
isParsingExecutableProgramStatementsin interfaceIGosuProgramInternal
-
setParsingExecutableProgramStatements
public void setParsingExecutableProgramStatements(boolean b)
- Specified by:
setParsingExecutableProgramStatementsin interfaceIGosuProgramInternal
-
getClassType
public ClassType getClassType()
- Specified by:
getClassTypein interfaceIFileRepositoryBasedType- Overrides:
getClassTypein classGosuClass
-
-