CTX - the temporary state contextpublic interface IWithExtendedContext<CTX>
StructureUtility.withContext(IStructureElement) in case you need to record some
temporary states that don't need to live in your main context, which would usually live for the whole lifetime of the
structure than just during structure check. Usually just save some few bytes, but becomes non-trivial if you need to
record too much stuff.
You will have to reset the context yourself though. The API can't guess when the old context becomes invalid.
| Modifier and Type | Method and Description |
|---|---|
CTX |
getCurrentContext() |
CTX getCurrentContext()