Package gw.internal.gosu.parser
Class GosuIndustrialParkImpl
- java.lang.Object
-
- gw.config.BaseService
-
- gw.internal.gosu.parser.GosuIndustrialParkImpl
-
- All Implemented Interfaces:
IService
,IGosuShop
,IPluginHost
public class GosuIndustrialParkImpl extends BaseService implements IGosuShop
-
-
Constructor Summary
Constructors Constructor Description GosuIndustrialParkImpl()
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface gw.plugin.IPluginHost
getInterface
-
-
-
-
Method Detail
-
createSymbolTable
public ISymbolTable createSymbolTable()
- Specified by:
createSymbolTable
in interfaceIGosuShop
-
createSymbolTable
public ISymbolTable createSymbolTable(boolean bDefineCommonSymbols)
- Specified by:
createSymbolTable
in interfaceIGosuShop
-
createTemplateHost
public ITemplateHost createTemplateHost()
- Specified by:
createTemplateHost
in interfaceIGosuShop
-
getConstructorInfoFactory
public IConstructorInfoFactory getConstructorInfoFactory()
- Specified by:
getConstructorInfoFactory
in interfaceIGosuShop
-
getAnnotationInfoFactory
public IAnnotationInfoFactory getAnnotationInfoFactory()
- Specified by:
getAnnotationInfoFactory
in interfaceIGosuShop
-
createLengthProperty
public IPropertyInfo createLengthProperty(ITypeInfo typeInfo)
- Specified by:
createLengthProperty
in interfaceIGosuShop
-
getNullExpressionInstance
public INullExpression getNullExpressionInstance()
- Specified by:
getNullExpressionInstance
in interfaceIGosuShop
-
getForceThrower
public GosuExceptionUtil.IForceThrower getForceThrower()
- Specified by:
getForceThrower
in interfaceIGosuShop
-
createFunctionType
public IFunctionType createFunctionType(IMethodInfo mi)
- Specified by:
createFunctionType
in interfaceIGosuShop
-
createSymbol
public ISymbol createSymbol(CharSequence name, IType type, Object value)
- Specified by:
createSymbol
in interfaceIGosuShop
-
createSymbol
public ISymbol createSymbol(CharSequence name, IType type, IStackProvider stackProvider)
- Specified by:
createSymbol
in interfaceIGosuShop
-
createDynamicFunctionSymbol
public ISymbol createDynamicFunctionSymbol(ISymbolTable symbolTable, String strMemberName, IFunctionType functionType, List<ISymbol> params, IExpression value)
- Specified by:
createDynamicFunctionSymbol
in interfaceIGosuShop
-
createEnhancementIndex
public IEnhancementIndex createEnhancementIndex(GosuClassTypeLoader loader)
- Specified by:
createEnhancementIndex
in interfaceIGosuShop
-
createClass
public IGosuClass createClass(String strNamespace, String strRelativeName, GosuClassTypeLoader loader, ISourceFileHandle sourceFile, ITypeUsesMap typeUsesMap)
- Specified by:
createClass
in interfaceIGosuShop
-
createProgram
public IGosuProgram createProgram(String strNamespace, String strRelativeName, GosuClassTypeLoader loader, ISourceFileHandle sourceFile, ITypeUsesMap typeUsesMap, ISymbolTable symTable)
- Specified by:
createProgram
in interfaceIGosuShop
-
createProgramForEval
public IGosuProgram createProgramForEval(String strNamespace, String strRelativeName, GosuClassTypeLoader loader, ISourceFileHandle sourceFile, ITypeUsesMap typeUsesMap, ISymbolTable symTable)
- Specified by:
createProgramForEval
in interfaceIGosuShop
-
createEnhancement
public IGosuEnhancement createEnhancement(String strNamespace, String strRelativeName, GosuClassTypeLoader loader, ISourceFileHandle sourceFile, ITypeUsesMap typeUsesMap)
- Specified by:
createEnhancement
in interfaceIGosuShop
-
createTemplate
public ITemplateType createTemplate(String strNamespace, String strRelativeName, GosuClassTypeLoader loader, ISourceFileHandle sourceFile, ITypeUsesMap typeUsesMap, ISymbolTable symTable)
- Specified by:
createTemplate
in interfaceIGosuShop
-
createFileSystemGosuClassRepository
public IFileSystemGosuClassRepository createFileSystemGosuClassRepository(IModule module, IDirectory[] files)
- Specified by:
createFileSystemGosuClassRepository
in interfaceIGosuShop
-
createFileSystemGosuClassRepository
public IFileSystemGosuClassRepository createFileSystemGosuClassRepository(IModule module, IDirectory[] files, String[] extensions)
- Specified by:
createFileSystemGosuClassRepository
in interfaceIGosuShop
-
createTypeUsesMap
public ITypeUsesMap createTypeUsesMap(List<String> specialTypeUses)
- Specified by:
createTypeUsesMap
in interfaceIGosuShop
-
getPropertyInfo
public IPropertyInfo getPropertyInfo(IType classBean, String strProperty, IFeatureFilter filter, IParserPart parser, IScriptabilityModifier scriptabilityConstraint) throws ParseException
- Specified by:
getPropertyInfo
in interfaceIGosuShop
- Throws:
ParseException
-
getProperties
public List<? extends IPropertyInfo> getProperties(ITypeInfo beanInfo, IType classSource)
- Specified by:
getProperties
in interfaceIGosuShop
-
isDescriptorHidden
public boolean isDescriptorHidden(IAttributedFeatureInfo pi)
- Specified by:
isDescriptorHidden
in interfaceIGosuShop
-
getMethods
public List<? extends IMethodInfo> getMethods(ITypeInfo beanInfo, IType ownersIntrinsicType)
- Specified by:
getMethods
in interfaceIGosuShop
-
createStandardParserState
public StandardParserState createStandardParserState(IParsedElement rootParsedElement, String scriptSrc, boolean b)
- Specified by:
createStandardParserState
in interfaceIGosuShop
-
createEvaluationException
public EvaluationException createEvaluationException(String msg)
- Specified by:
createEvaluationException
in interfaceIGosuShop
-
createModule
public IModule createModule(IExecutionEnvironment execEnv, String strMemberName)
- Specified by:
createModule
in interfaceIGosuShop
-
getGosuClassFrom
public IGosuClass getGosuClassFrom(IType fromType)
- Specified by:
getGosuClassFrom
in interfaceIGosuShop
-
createGlobalModule
public IModule createGlobalModule(IExecutionEnvironment execEnv)
- Specified by:
createGlobalModule
in interfaceIGosuShop
-
createClassPath
public IClassPath createClassPath(IModule module, boolean includeAllClasses)
- Specified by:
createClassPath
in interfaceIGosuShop
-
getPureGenericType
public IType getPureGenericType(IType type)
- Specified by:
getPureGenericType
in interfaceIGosuShop
-
createClassInfo
public IJavaClassInfo createClassInfo(Class aClass, IModule module)
- Specified by:
createClassInfo
in interfaceIGosuShop
-
createMetaType
public IMetaType createMetaType(IType type, boolean literal)
- Specified by:
createMetaType
in interfaceIGosuShop
-
createPropertyDelegate
public IPropertyInfo createPropertyDelegate(IFeatureInfo container, IPropertyInfo prop)
- Specified by:
createPropertyDelegate
in interfaceIGosuShop
-
getJavaDocFactory
public IJavaDocFactory getJavaDocFactory()
- Specified by:
getJavaDocFactory
in interfaceIGosuShop
-
getTypeInfoFactory
public ITypeInfoFactory getTypeInfoFactory()
- Specified by:
getTypeInfoFactory
in interfaceIGosuShop
-
getDefaultEntityAccess
public IEntityAccess getDefaultEntityAccess()
- Specified by:
getDefaultEntityAccess
in interfaceIGosuShop
-
createSimpleTemplateHost
public ITemplateHost createSimpleTemplateHost()
- Specified by:
createSimpleTemplateHost
in interfaceIGosuShop
-
createSourceCodeTokenizer
public ISourceCodeTokenizer createSourceCodeTokenizer(CharSequence code)
- Specified by:
createSourceCodeTokenizer
in interfaceIGosuShop
-
createSourceCodeTokenizer
public ISourceCodeTokenizer createSourceCodeTokenizer(CharSequence code, boolean bTemplate)
- Specified by:
createSourceCodeTokenizer
in interfaceIGosuShop
-
createSourceCodeTokenizer
public ISourceCodeTokenizer createSourceCodeTokenizer(Reader reader)
- Specified by:
createSourceCodeTokenizer
in interfaceIGosuShop
-
createTemplateInstructor
public ITokenizerInstructor createTemplateInstructor(ISourceCodeTokenizer tokenizer)
- Specified by:
createTemplateInstructor
in interfaceIGosuShop
-
createCommnoSymbolScope
public IScope createCommnoSymbolScope()
- Specified by:
createCommnoSymbolScope
in interfaceIGosuShop
-
createIdentifierExpression
public IIdentifierExpression createIdentifierExpression()
- Specified by:
createIdentifierExpression
in interfaceIGosuShop
-
generateTemplate
public void generateTemplate(Reader readerTemplate, Writer writerOut, ISymbolTable symbolTable) throws TemplateParseException
- Specified by:
generateTemplate
in interfaceIGosuShop
- Throws:
TemplateParseException
-
createTemplateTokenizerInstructor
public ITokenizerInstructor createTemplateTokenizerInstructor(ISourceCodeTokenizer tokenizer)
- Specified by:
createTemplateTokenizerInstructor
in interfaceIGosuShop
-
getGosuClassSymbolTable
public ISymbolTable getGosuClassSymbolTable()
- Specified by:
getGosuClassSymbolTable
in interfaceIGosuShop
-
getBlockToInterfaceConversionClass
public IGosuClass getBlockToInterfaceConversionClass(IType typeToCoerceTo, IType enclosingType)
- Specified by:
getBlockToInterfaceConversionClass
in interfaceIGosuShop
-
getIRTypeResolver
public IRTypeResolver getIRTypeResolver()
- Specified by:
getIRTypeResolver
in interfaceIGosuShop
-
getIRClassCompiler
public IRClassCompiler getIRClassCompiler()
- Specified by:
getIRClassCompiler
in interfaceIGosuShop
-
getLengthAccessor
public IPropertyAccessor getLengthAccessor()
- Specified by:
getLengthAccessor
in interfaceIGosuShop
-
createPathEntryFromModuleFile
public GosuPathEntry createPathEntryFromModuleFile(IFile f)
- Specified by:
createPathEntryFromModuleFile
in interfaceIGosuShop
-
getDeclaredMethods
public Method[] getDeclaredMethods(Class cls)
- Specified by:
getDeclaredMethods
in interfaceIGosuShop
-
isAnnotationAllowedMultipleTimes
public boolean isAnnotationAllowedMultipleTimes(IFeatureInfo fi, IAnnotationInfo annotationInfo)
- Specified by:
isAnnotationAllowedMultipleTimes
in interfaceIGosuShop
-
createReducedDynamicFunctionSymbol
public IReducedDynamicFunctionSymbol createReducedDynamicFunctionSymbol(IDynamicFunctionSymbol symbol)
- Specified by:
createReducedDynamicFunctionSymbol
in interfaceIGosuShop
-
updateReloadClassesIndicator
public byte[] updateReloadClassesIndicator(List<String> changedTypes, String strScript)
- Specified by:
updateReloadClassesIndicator
in interfaceIGosuShop
-
generateJavaStub
public String generateJavaStub(IGosuClass gsClass)
- Specified by:
generateJavaStub
in interfaceIGosuShop
-
-