org.eclipse.xtend.backend.common
Interface ExecutionContext

All Known Implementing Classes:
ExecutionContextImpl

public interface ExecutionContext

Author:
Arno Haase (http://www.haase-consulting.com)

Method Summary
 AdviceContext getAdviceContext()
           
 ContributionStateContext getContributionStateContext()
           
 CreationCache getCreationCache()
           
 FunctionDefContext getFunctionDefContext()
           
 FunctionInvoker getFunctionInvoker()
           
 java.util.List<ExecutionListener> getGlobalExecutionListeners()
          This list of "global" ExecutionListeners allows the registration of listeners that are notified of the evaluation of any expression.
 LocalVarContext getLocalVarContext()
           
 java.util.List<StacktraceEntry> getStacktrace()
          Maintaining the stack trace requires expensive operations during regular operation - it can not be done retrospectively.
 BackendTypesystem getTypesystem()
           
 boolean isLogStacktrace()
           
 void logNullDeRef(SourcePos pos)
           
 void setAdviceContext(AdviceContext ctx)
           
 void setFunctionDefContext(FunctionDefContext ctx)
           
 void setLocalVarContext(LocalVarContext ctx)
           
 

Method Detail

getLocalVarContext

LocalVarContext getLocalVarContext()

setLocalVarContext

void setLocalVarContext(LocalVarContext ctx)

getTypesystem

BackendTypesystem getTypesystem()

getFunctionDefContext

FunctionDefContext getFunctionDefContext()

setFunctionDefContext

void setFunctionDefContext(FunctionDefContext ctx)

getFunctionInvoker

FunctionInvoker getFunctionInvoker()

getCreationCache

CreationCache getCreationCache()

getAdviceContext

AdviceContext getAdviceContext()

setAdviceContext

void setAdviceContext(AdviceContext ctx)

logNullDeRef

void logNullDeRef(SourcePos pos)

isLogStacktrace

boolean isLogStacktrace()

getStacktrace

java.util.List<StacktraceEntry> getStacktrace()
Maintaining the stack trace requires expensive operations during regular operation - it can not be done retrospectively. Therefore the stacktrace is maintained only if the isLogStacktrace flag is set, otherwise this method returns an empty list.


getContributionStateContext

ContributionStateContext getContributionStateContext()

getGlobalExecutionListeners

java.util.List<ExecutionListener> getGlobalExecutionListeners()
This list of "global" ExecutionListeners allows the registration of listeners that are notified of the evaluation of any expression. This is in addition to the list of listeners registered per expression node.
Listeners registered per node are notified *before* (pre) these global listeners.