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:
createNewParseInfo
in interfaceIGosuClassInternal
- Overrides:
createNewParseInfo
in classGosuClass
-
getParseInfo
public GosuProgramParseInfo getParseInfo()
- Specified by:
getParseInfo
in interfaceICompilableTypeInternal
- Specified by:
getParseInfo
in interfaceIGosuClassInternal
- Overrides:
getParseInfo
in classGosuClass
-
getSymbolTable
public ISymbolTable getSymbolTable()
- Specified by:
getSymbolTable
in interfaceIGosuProgramInternal
-
addProgramEntryPoint
public void addProgramEntryPoint(ISymbolTable symTable, GosuClassParser parser)
- Specified by:
addProgramEntryPoint
in interfaceIGosuProgramInternal
-
addExecuteEntryPoint
public void addExecuteEntryPoint(ISymbolTable symTable, GosuClassParser parser)
- Specified by:
addExecuteEntryPoint
in interfaceIGosuProgramInternal
-
addCapturedProgramSymbols
public void addCapturedProgramSymbols(ISymbolTable classCompilationSymTable)
- Specified by:
addCapturedProgramSymbols
in interfaceIGosuProgramInternal
-
isAnonymous
public boolean isAnonymous()
- Specified by:
isAnonymous
in interfaceICompilableType
- Overrides:
isAnonymous
in classGosuClass
-
isThrowaway
public boolean isThrowaway()
- Specified by:
isThrowaway
in interfaceIGosuProgramInternal
-
setThrowaway
public void setThrowaway(boolean throwaway)
- Specified by:
setThrowaway
in interfaceIGosuProgramInternal
-
setAllowUses
public void setAllowUses(boolean b)
- Specified by:
setAllowUses
in interfaceIGosuProgramInternal
-
allowsUses
public boolean allowsUses()
- Specified by:
allowsUses
in interfaceIGosuProgramInternal
-
setCtxInferenceMgr
public void setCtxInferenceMgr(Object ctxInferenceMgr)
- Specified by:
setCtxInferenceMgr
in interfaceIGosuProgramInternal
-
getExternalSymbol
public ISymbol getExternalSymbol(String strName)
- Specified by:
getExternalSymbol
in interfaceICompilableType
- Overrides:
getExternalSymbol
in classGosuClass
-
setExpression
public void setExpression(Expression expr)
- Specified by:
setExpression
in interfaceIGosuProgramInternal
-
getExpression
public IExpression getExpression()
- Specified by:
getExpression
in interfaceIGosuProgram
-
setStatement
public void setStatement(Statement stmt)
- Specified by:
setStatement
in interfaceIGosuProgramInternal
-
getStatement
public IStatement getStatement()
- Specified by:
getStatement
in interfaceIGosuProgram
-
isExpression
public boolean isExpression()
- Specified by:
isExpression
in interfaceIGosuProgram
-
isLhsExpression
public boolean isLhsExpression()
- Specified by:
isLhsExpression
in interfaceIGosuProgram
-
getEnclosingEvalExpression
public IParsedElement getEnclosingEvalExpression()
- Specified by:
getEnclosingEvalExpression
in interfaceIGosuProgram
-
setEnclosingEvalExpression
public void setEnclosingEvalExpression(IParsedElement evalExprOrAnyExpr)
- Specified by:
setEnclosingEvalExpression
in interfaceIGosuProgram
-
evaluate
public Object evaluate(IExternalSymbolMap externalSymbols)
- Specified by:
evaluate
in interfaceIGosuProgram
-
evaluateRoot
public Object evaluateRoot(IExternalSymbolMap externalSymbols)
- Specified by:
evaluateRoot
in interfaceIGosuProgram
-
assign
public void assign(Object value)
- Specified by:
assign
in interfaceIGosuProgram
-
setGenRootExprAccess
public void setGenRootExprAccess(boolean bGenRootExprAccess)
- Specified by:
setGenRootExprAccess
in interfaceIGosuProgramInternal
-
isGenRootExprAccess
public boolean isGenRootExprAccess()
- Specified by:
isGenRootExprAccess
in interfaceIGosuProgramInternal
-
getTokenizerInstructor
public ITokenizerInstructor getTokenizerInstructor()
- Specified by:
getTokenizerInstructor
in interfaceIGosuProgramInternal
-
setTokenizerInstructor
public void setTokenizerInstructor(ITokenizerInstructor ti)
- Specified by:
setTokenizerInstructor
in interfaceIGosuProgramInternal
-
getAdditionalDFSDecls
public ISymbolTable getAdditionalDFSDecls()
- Specified by:
getAdditionalDFSDecls
in interfaceIGosuProgramInternal
-
setAdditionalDFSDecls
public void setAdditionalDFSDecls(ISymbolTable symbolTable)
- Specified by:
setAdditionalDFSDecls
in interfaceIGosuProgramInternal
-
getOrCreateParser
protected GosuParser getOrCreateParser(CompiledGosuClassSymbolTable symbolTable)
- Overrides:
getOrCreateParser
in classGosuClass
-
getExpectedReturnType
public IType getExpectedReturnType()
- Specified by:
getExpectedReturnType
in interfaceIGosuProgram
-
setExpectedReturnType
public void setExpectedReturnType(IType expectedReturnType)
- Specified by:
setExpectedReturnType
in interfaceIGosuProgramInternal
-
getReturnType
public IType getReturnType()
- Specified by:
getReturnType
in interfaceIGosuProgram
-
getProgramInstance
public IProgramInstance getProgramInstance()
- Specified by:
getProgramInstance
in interfaceIGosuProgram
-
unloadBackingClass
public void unloadBackingClass()
- Specified by:
unloadBackingClass
in interfaceIGosuClass
- Overrides:
unloadBackingClass
in classGosuClass
-
setAnonymous
public void setAnonymous(boolean b)
- Specified by:
setAnonymous
in interfaceIGosuProgramInternal
-
setStatementsOnly
public void setStatementsOnly(boolean bStatementsOnly)
- Specified by:
setStatementsOnly
in interfaceIGosuProgramInternal
-
isStatementsOnly
public boolean isStatementsOnly()
- Specified by:
isStatementsOnly
in interfaceIGosuProgramInternal
-
setContextType
public void setContextType(IType contextType)
- Specified by:
setContextType
in interfaceIGosuProgramInternal
-
getContextType
public IType getContextType()
- Specified by:
getContextType
in interfaceIGosuProgram
-
isParsingExecutableProgramStatements
public boolean isParsingExecutableProgramStatements()
- Specified by:
isParsingExecutableProgramStatements
in interfaceIGosuProgramInternal
-
setParsingExecutableProgramStatements
public void setParsingExecutableProgramStatements(boolean b)
- Specified by:
setParsingExecutableProgramStatements
in interfaceIGosuProgramInternal
-
getClassType
public ClassType getClassType()
- Specified by:
getClassType
in interfaceIFileRepositoryBasedType
- Overrides:
getClassType
in classGosuClass
-
-