Interface NTxResolutionContext
- All Superinterfaces:
net.thevpc.nuts.log.NLogger
- All Known Subinterfaces:
NTxRendererContext
public interface NTxResolutionContext
extends net.thevpc.nuts.log.NLogger
-
Field Summary
Fields inherited from interface net.thevpc.nuts.log.NLogger
NULL, STDERR, STDOUT, STDTRACE -
Method Summary
Modifier and TypeMethodDescriptioncopy()def()document()doWithChild(NTxNode newPush, Consumer<NTxResolutionContext> newContext) doWithChild(NTxNode newPush, NTxNodeDef d, Consumer<NTxResolutionContext> newContext) doWithElement(net.thevpc.nuts.elem.NElement newPush, Consumer<NTxResolutionContext> newContext) doWithSibling(NTxNode newPush, Consumer<NTxResolutionContext> newContext) doWithSibling(NTxNode newPush, NTxNodeDef d, Consumer<NTxResolutionContext> newContext) net.thevpc.nuts.elem.NElementelement()engine()net.thevpc.nuts.util.NOptional<net.thevpc.nuts.elem.NElement> evalExpression(net.thevpc.nuts.elem.NElement expression) net.thevpc.nuts.util.NOptional<NTxNode> findNodeByProperty(String propertyName, Predicate<net.thevpc.nuts.elem.NElement> propertyValueFilter) net.thevpc.nuts.util.NOptional<NTxFunction> getFunction(String name) net.thevpc.nuts.util.NOptional<NTxNodeDef> getNamedDef(String name) net.thevpc.nuts.util.NOptional<NTxVar> net.thevpc.nuts.util.NOptional<net.thevpc.nuts.elem.NElement> getVarValue(String name) booleaninPage()booleanisDef()log()voidnode()parent()NTxNode[]path()popNode()removeFunction(String name) removeNamedDef(String name) resolveNode(NTxNode parent) net.thevpc.nuts.io.NPathresolvePath(net.thevpc.nuts.elem.NElement path) setDef(NTxNodeDef def) setElement(net.thevpc.nuts.elem.NElement element) setFunction(NTxFunction value) setInPage(boolean isInPage) setNamedDef(NTxNodeDef value) update currentsource()uid()withDef(NTxNodeDef def) withElement(net.thevpc.nuts.elem.NElement element) withFunction(NTxFunction value) withInPage(boolean isInPage) withItemParser(NTxItemParser itemParser) withNamedDef(NTxNodeDef value) withParentOnly(NTxNode parent) withRemoveFunction(String name) withRemoveNamedDef(String name) create new contextMethods inherited from interface net.thevpc.nuts.log.NLogger
log
-
Method Details
-
uid
String uid() -
itemParser
NTxItemParser itemParser() -
document
NTxDocument document() -
engine
NTxEngine engine() -
log
-
copy
NTxResolutionContext copy() -
doWithElement
NTxResolutionContext doWithElement(net.thevpc.nuts.elem.NElement newPush, Consumer<NTxResolutionContext> newContext) -
doWithChild
-
doWithChild
NTxResolutionContext doWithChild(NTxNode newPush, NTxNodeDef d, Consumer<NTxResolutionContext> newContext) -
doWithSibling
-
doWithSibling
NTxResolutionContext doWithSibling(NTxNode newPush, NTxNodeDef d, Consumer<NTxResolutionContext> newContext) -
pushNode
-
popNode
NTxResolutionContext popNode() -
setNode
-
resolveNode
-
setElement
-
withNode
-
withElement
-
setInPage
-
withInPage
-
element
net.thevpc.nuts.elem.NElement element() -
log
NTxLogger log() -
path
NTxNode[] path() -
node
NTxNode node() -
parent
NTxNode parent() -
source
NTxSource source() -
def
NTxNodeDef def() -
inPage
boolean inPage() -
compiledPage
NTxCompiledPage compiledPage() -
compiledDocument
NTxCompiledDocument compiledDocument() -
withParentOnly
-
setDef
-
setPath
-
withParentOnly
NTxResolutionContext withParentOnly() -
withDef
-
setVar
update current- Parameters:
name-value-- Returns:
-
withVar
create new context- Parameters:
name-value-- Returns:
-
withRemoveNamedDef
-
removeNamedDef
-
setNamedDef
-
withNamedDef
-
getNamedDef
-
getVar
-
getVarValue
-
withRemoveFunction
-
removeFunction
-
getFunction
-
setFunction
-
withFunction
-
withItemParser
-
isDef
boolean isDef() -
evalExpression
net.thevpc.nuts.util.NOptional<net.thevpc.nuts.elem.NElement> evalExpression(net.thevpc.nuts.elem.NElement expression) -
resolvePath
net.thevpc.nuts.io.NPath resolvePath(net.thevpc.nuts.elem.NElement path) -
documentFactory
NTxDocumentFactory documentFactory() -
pushContext
NTxResolutionContext pushContext() -
parentContext
NTxResolutionContext parentContext() -
popContext
NTxResolutionContext popContext() -
findNodeByProperty
-