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 void
addStatusMessage(StatusMessage message)
void
enter(EglTemplate template)
void
exit()
ContentTypeRepository
getContentTypeRepository()
EglTemplate
getCurrentTemplate()
IEolContext
getDelegate()
IEglModule
getModule()
EglOperationFactory
getOperationFactory()
IOutputBuffer
getOutputBuffer()
CompositePartitioner
getPartitioner()
List<StatusMessage>
getStatusMessages()
EglTemplateFactory
getTemplateFactory()
Template
getTrace()
void
setContentTypeRepository(ContentTypeRepository repository)
void
setDelegate(IEolContext delegate)
Copies state references (excluding variables) from the context.void
setOperationContributorRegistry(OperationContributorRegistry ocr)
void
setPartitioner(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:IEglContext
Copies 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:
setDelegate
in interfaceIEglContext
- Parameters:
delegate
- The parent context.
-
getDelegate
public IEolContext getDelegate()
- Specified by:
getDelegate
in interfaceIEglContext
- Returns:
-
getTemplateFactory
public EglTemplateFactory getTemplateFactory()
- Specified by:
getTemplateFactory
in interfaceIEglContext
-
getPartitioner
public CompositePartitioner getPartitioner()
- Specified by:
getPartitioner
in interfaceIEglContext
-
setPartitioner
public void setPartitioner(CompositePartitioner partitioner)
- Specified by:
setPartitioner
in interfaceIEglContext
-
getContentTypeRepository
public ContentTypeRepository getContentTypeRepository()
- Specified by:
getContentTypeRepository
in interfaceIEglContext
-
setContentTypeRepository
public void setContentTypeRepository(ContentTypeRepository repository)
- Specified by:
setContentTypeRepository
in interfaceIEglContext
-
addStatusMessage
public void addStatusMessage(StatusMessage message)
- Specified by:
addStatusMessage
in interfaceIEglContext
-
getStatusMessages
public List<StatusMessage> getStatusMessages()
- Specified by:
getStatusMessages
in interfaceIEglContext
-
enter
public void enter(EglTemplate template)
- Specified by:
enter
in interfaceIEglContext
-
exit
public void exit()
- Specified by:
exit
in interfaceIEglContext
-
getOutputBuffer
public IOutputBuffer getOutputBuffer()
- Specified by:
getOutputBuffer
in interfaceIEglContext
-
getTrace
public Template getTrace()
- Specified by:
getTrace
in interfaceIEglContext
-
getCurrentTemplate
public EglTemplate getCurrentTemplate()
- Specified by:
getCurrentTemplate
in interfaceIEglContext
-
getModule
public IEglModule getModule()
- Specified by:
getModule
in interfaceIEglContext
- Specified by:
getModule
in interfaceIEolContext
- Overrides:
getModule
in classEolContext
-
getOperationFactory
public EglOperationFactory getOperationFactory()
- Specified by:
getOperationFactory
in interfaceIEolContext
- Overrides:
getOperationFactory
in classEolContext
-
-