public final class OdiProjectExpressionContext extends java.lang.Object implements IExpressionContext
SnpsExpressionTags relative to an
|Constructor and Description|
Create a new
Create a new
|Modifier and Type||Method and Description|
Obtains the expression tags relative to this context.
public OdiProjectExpressionContext(OdiProject pProject)
OdiProjectExpressionContext. By using this constructor, the expression context will see the variables/sequences/userfunctions using the getters from the project only. Therefore it will not see new objects added from another transaction.
pProject- a project
public OdiProjectExpressionContext(OdiProject pProject, IOdiVariableFinder pOdiVariableFinder, IOdiSequenceFinder pOdiSequenceFinder, IOdiUserFunctionFinder pOdiUserFunctionFinder)
OdiProjectExpressionContext. By using this constructor, the expression context will retrieve the objects through the finders rather than getting them from the project. Therefore you will see new objects added from other transactions, but you will not see the ones that have been added in this transaction unless flush() on the entity manager is called.
pProject- the project for which we want the context
pOdiVariableFinder- to find variables in the project
pOdiSequenceFinder- to find sequences in the project
pOdiUserFunctionFinder- to find user functions in the project
public com.sunopsis.language.parser.SnpsExpressionTag getSnpsExpressionTags(com.sunopsis.language.SnpsLanguage pSnpsLanguage)