public class CompoundExpressionContext extends java.lang.Object implements IExpressionContext
IExpressionContext that chains a sequence of one or more IExpressionContexts.
 
 A compound expression string context calls each IExpressionContext in sequence.
| Constructor and Description | 
|---|
CompoundExpressionContext()
Create an empty  
CompoundExpressionContext. | 
CompoundExpressionContext(boolean pIsCachingEnabled)  | 
CompoundExpressionContext(IExpressionContext[] pContexts)
Create a  
CompoundExpressionContext with a given initial context
 sequence. | 
CompoundExpressionContext(IExpressionContext[] pContexts,
                         boolean pIsCachingEnabled)  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
addExpressionContext(IExpressionContext pContext)
Add the given context to the end of the context sequence of this object. 
 | 
IExpressionContext | 
getExpressionContext(int pIndex)
Obtains the expression context at the given index. 
 | 
int | 
getExpressionContextCount()
Returns the expression context count. 
 | 
com.sunopsis.language.parser.SnpsExpressionTag[] | 
getSnpsExpressionTags(com.sunopsis.language.SnpsLanguage pSnpsLanguage)
Obtains the expression tags relative to this context. 
 | 
void | 
setExpressionContext(int pIndex,
                    IExpressionContext pContext)
Replace the given context for the specified index in this object. 
 | 
public CompoundExpressionContext()
CompoundExpressionContext.public CompoundExpressionContext(boolean pIsCachingEnabled)
public CompoundExpressionContext(IExpressionContext[] pContexts)
CompoundExpressionContext with a given initial context
 sequence.pContexts - the initial context sequencepublic CompoundExpressionContext(IExpressionContext[] pContexts, boolean pIsCachingEnabled)
public com.sunopsis.language.parser.SnpsExpressionTag[] getSnpsExpressionTags(com.sunopsis.language.SnpsLanguage pSnpsLanguage)
IExpressionContextgetSnpsExpressionTags in interface IExpressionContextpSnpsLanguage - the language that will be used when manipulating the expression tags 
 (i.e. when building the Expression)public void addExpressionContext(IExpressionContext pContext)
pContext - a contextpublic void setExpressionContext(int pIndex,
                                 IExpressionContext pContext)
pIndex - the indexpContext - the contextjava.lang.IndexOutOfBoundsException - if pIndex is out of rangepublic int getExpressionContextCount()
public IExpressionContext getExpressionContext(int pIndex)
pIndex - expression's index