Class EglContext
- java.lang.Object
-
- org.eclipse.epsilon.eol.execute.context.EolContext
-
- org.eclipse.epsilon.egl.execute.context.EglContext
-
- All Implemented Interfaces:
IEglContext,IEolContext
- Direct Known Subclasses:
MockContext
public class EglContext extends EolContext implements IEglContext
-
-
Field Summary
-
Fields inherited from class org.eclipse.epsilon.eol.execute.context.EolContext
assertionsEnabled, asyncStatementsQueue, classpathNativeTypeDelegate, errorStream, executorFactory, extendedProperties, frameStack, introspectionManager, methodContributorRegistry, modelRepository, module, nativeTypeDelegates, operationFactory, outputStream, prettyPrinterManager, profilingEnabled, userInput, warningStream
-
-
Constructor Summary
Constructors Constructor Description EglContext()EglContext(EglTemplateFactory templateFactory)EglContext(IEglContext other)Copy constructor, intended for internal use only.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddStatusMessage(StatusMessage message)voidenter(EglTemplate template)voidexit()ContentTypeRepositorygetContentTypeRepository()EglTemplategetCurrentTemplate()IEolContextgetDelegate()IEglModulegetModule()EglOperationFactorygetOperationFactory()IOutputBuffergetOutputBuffer()CompositePartitionergetPartitioner()List<StatusMessage>getStatusMessages()EglTemplateFactorygetTemplateFactory()TemplategetTrace()voidsetContentTypeRepository(ContentTypeRepository repository)voidsetDelegate(IEolContext delegate)Copies state references (excluding variables) from the context.voidsetOperationContributorRegistry(OperationContributorRegistry ocr)voidsetPartitioner(CompositePartitioner partitioner)-
Methods inherited from class org.eclipse.epsilon.eol.execute.context.EolContext
dispose, getAsyncStatementsQueue, getErrorStream, getExecutorFactory, getExtendedProperties, getFrameStack, getIntrospectionManager, getModelRepository, getNativeTypeDelegates, getOperationContributorRegistry, getOutputStream, getPrettyPrinterManager, getUserInput, getWarningStream, isAssertionsEnabled, isProfilingEnabled, setAssertionsEnabled, setErrorStream, setExecutorFactory, setExtendedProperties, setFrameStack, setIntrospectionManager, setModelRepository, setModule, setNativeTypeDelegates, setOperationFactory, setOutputStream, setPrettyPrinterManager, setProfilingEnabled, setUserInput, setWarningStream
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.eclipse.epsilon.egl.execute.context.IEglContext
formatWith, getPartitioningProblems, newOutputBuffer, usePartitionerFor
-
Methods inherited from interface org.eclipse.epsilon.eol.execute.context.IEolContext
dispose, getAsyncStatementsQueue, getErrorStream, getExecutorFactory, getExtendedProperties, getFrameStack, getIntrospectionManager, getModelRepository, getNativeTypeDelegates, getOperationContributorRegistry, getOutputStream, getPrettyPrinterManager, getUserInput, getWarningStream, isAssertionsEnabled, isProfilingEnabled, setAssertionsEnabled, setErrorStream, setExecutorFactory, setExtendedProperties, setFrameStack, setIntrospectionManager, setModelRepository, setModule, setNativeTypeDelegates, setOperationFactory, setOutputStream, setPrettyPrinterManager, setProfilingEnabled, setUserInput, setWarningStream
-
-
-
-
Constructor Detail
-
EglContext
public EglContext()
-
EglContext
public EglContext(EglTemplateFactory templateFactory)
-
EglContext
public EglContext(IEglContext other)
Copy constructor, intended for internal use only.- Parameters:
other- The base context.- Since:
- 1.6
-
-
Method Detail
-
setOperationContributorRegistry
public void setOperationContributorRegistry(OperationContributorRegistry ocr)
-
setDelegate
public void setDelegate(IEolContext delegate)
Description copied from interface:IEglContextCopies state references (excluding variables) from the context. The copying may be performed lazily and is shallow. This is mainly useful if EGL is being invoked from EGX, which has a different context.- Specified by:
setDelegatein interfaceIEglContext- Parameters:
delegate- The parent context.
-
getDelegate
public IEolContext getDelegate()
- Specified by:
getDelegatein interfaceIEglContext- Returns:
-
getTemplateFactory
public EglTemplateFactory getTemplateFactory()
- Specified by:
getTemplateFactoryin interfaceIEglContext
-
getPartitioner
public CompositePartitioner getPartitioner()
- Specified by:
getPartitionerin interfaceIEglContext
-
setPartitioner
public void setPartitioner(CompositePartitioner partitioner)
- Specified by:
setPartitionerin interfaceIEglContext
-
getContentTypeRepository
public ContentTypeRepository getContentTypeRepository()
- Specified by:
getContentTypeRepositoryin interfaceIEglContext
-
setContentTypeRepository
public void setContentTypeRepository(ContentTypeRepository repository)
- Specified by:
setContentTypeRepositoryin interfaceIEglContext
-
addStatusMessage
public void addStatusMessage(StatusMessage message)
- Specified by:
addStatusMessagein interfaceIEglContext
-
getStatusMessages
public List<StatusMessage> getStatusMessages()
- Specified by:
getStatusMessagesin interfaceIEglContext
-
enter
public void enter(EglTemplate template)
- Specified by:
enterin interfaceIEglContext
-
exit
public void exit()
- Specified by:
exitin interfaceIEglContext
-
getOutputBuffer
public IOutputBuffer getOutputBuffer()
- Specified by:
getOutputBufferin interfaceIEglContext
-
getTrace
public Template getTrace()
- Specified by:
getTracein interfaceIEglContext
-
getCurrentTemplate
public EglTemplate getCurrentTemplate()
- Specified by:
getCurrentTemplatein interfaceIEglContext
-
getModule
public IEglModule getModule()
- Specified by:
getModulein interfaceIEglContext- Specified by:
getModulein interfaceIEolContext- Overrides:
getModulein classEolContext
-
getOperationFactory
public EglOperationFactory getOperationFactory()
- Specified by:
getOperationFactoryin interfaceIEolContext- Overrides:
getOperationFactoryin classEolContext
-
-