Package eu.bandm.tscore.base
Class Timelesses
java.lang.Object
eu.bandm.tscore.base.Timelesses
Utility class to read timeless tscore values and interpret them
in different domains.
-
Field Summary
FieldsModifier and TypeFieldDescription -
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic voidasEnumeration(Class<E> cls) static voidstatic <T,D> T filterError(MessageReceiver<SimpleMessage<D>> msg, String name, T deflt, T value) findInList(Timeless host, List<Object> coordinates) findInList(List<Timeless> list, List<Object> coordinates) static TimelessFinds a text value or an assignment with the given text contents.static TextvaluefindTextvalue(List<Timeless> list, String text) findToplevel(Container container, String topId) findToplevel(Part part, String topId) findToplevel(TimeScape ts, String topId) findToplevel(Vox vox, String topId) Deliver the entry (instance of TimeLess) at the given coordinates.static <T> TgetTl(Container container, Function<@Opt Timeless, @Opt T> conversion, String topId, Object... subCoordinates) Deliver the entry at the given coordinates.static <T> TgetTl(Container container, Function<@Opt Timeless, @Opt T> conversion, String topId, List<Object> subCoordinates) static <T> Tstatic <T> T
-
Field Details
-
asIs
-
asList
-
asFlag
-
asString
-
asFloat
-
asInteger
-
asRational
-
-
Method Details
-
addTl
-
addTl
-
copyTop
-
filterError
public static <T,D> T filterError(MessageReceiver<SimpleMessage<D>> msg, String name, T deflt, @Opt T value) -
getTl
@Opt public static <T> T getTl(Container container, Function<@Opt Timeless, @Opt T> conversion, String topId, Object... subCoordinates) Deliver the entry at the given coordinates. The conversion is plugged in as function. Any conversion error (eg. "asString" applied to a list, or vice versa) is signalled by a null result. -
getTl
-
getTl
-
getTl
-
getTl
Deliver the entry (instance of TimeLess) at the given coordinates. Result can be a Textvalue or a FIXME ???? , an Assignment, or a Parameterlist. -
getTl
-
findToplevel
-
findToplevel
-
findToplevel
-
findToplevel
-
findKey
Finds a text value or an assignment with the given text contents. (Ignores all sub-lists, which can be addressed only numerically when on top-level) -
findTextvalue
-
findInList
-
findInList
-
asFlag
-
asString
-
asEnumeration
-