public class ScopeContext extends java.lang.Object implements CommonScopes
Constructor and Description |
---|
ScopeContext(PyChartScope chart) |
Modifier and Type | Method and Description |
---|---|
PyChartScope |
getChartScope() |
PyChartScope |
getPrevious()
Returns the previous step's scope, in the context of a transition who has an active step preceeding it.
|
PyChartScope |
getRoot()
Goes up the chart scope's parent chain to find the root scope.
|
PyChartScope |
getStepOrPrevious()
This returns the "step" scope, regardless of whether it represents the current step, in the context of an
executing step, or "previous step", in the context of a transition.
|
PyChartScope |
getStepScope()
Returns the current step's scope, in the context of the step.
|
java.util.Optional<PyChartScope> |
locate(java.lang.String id) |
ScopeContext |
setChartScope(PyChartScope chart) |
ScopeContext |
setPreviousScope(PyChartScope stepScope) |
ScopeContext |
setStepScope(PyChartScope step) |
public ScopeContext(PyChartScope chart)
public ScopeContext setStepScope(PyChartScope step)
public ScopeContext setPreviousScope(PyChartScope stepScope)
public ScopeContext setChartScope(PyChartScope chart)
public PyChartScope getChartScope()
public PyChartScope getStepScope()
public PyChartScope getPrevious()
public PyChartScope getStepOrPrevious()
public PyChartScope getRoot()
public java.util.Optional<PyChartScope> locate(java.lang.String id)