Package com.yahoo.tensor.functions
Interface ToStringContext<NAMETYPE extends Name>
- All Known Implementing Classes:
ToStringContext.EmptyStringContext
public interface ToStringContext<NAMETYPE extends Name>
A context which is passed down to all nested functions when returning a string representation.
- Author:
- bratseth
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
-
Method Summary
Modifier and TypeMethodDescriptionstatic <NAMETYPE extends Name>
ToStringContext<NAMETYPE>empty()
getBinding
(String name) Returns the name an identifier is bound to, or null if not bound in this contextparent()
Returns the parent context of this (the context we're in scope of when this is created), or null if this is the root.default Optional<TypeContext<NAMETYPE>>
Returns the context used to resolve types in this, if present.
-
Method Details
-
empty
-
getBinding
Returns the name an identifier is bound to, or null if not bound in this context -
typeContext
Returns the context used to resolve types in this, if present. In some functions serialization depends on type information. -
parent
ToStringContext<NAMETYPE> parent()Returns the parent context of this (the context we're in scope of when this is created), or null if this is the root.
-