Package net.nuke24.tscript34.p0010
Class IndirectValueTags
java.lang.Object
net.nuke24.tscript34.p0010.IndirectValueTags
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe tagged object itself, with no semantics whatsoever aside from being equal only to itself and nothing elsestatic final intA sequence defined by some number of subsequences to be concatenated together get() should return a Pair, an array, or a List.static final intstatic final intstatic final intstatic final intstatic final intIndirect value is some representation of a functional expression (probably some TOGVM-compatible thing) that can be unambiguously evaluated to provide the value.static final intstatic final intValue is a list represented by a cons pair.static final intstatic final intA concept named by URIReference#getUri(), the 'reference', which is probably, but not necessarily, a String.static final intSupplier#get() returns the literal value, which must be interpreted as exactly itself, even if it is itself an IndirectValue.static final intSupplier#get() returns the literal value, which must be interpreted as exactly itself, even if it is itself an IndirectValue.static final intA concept named by URIReference#getUri(), the 'reference', which is probably, but not necessarily, a String.static final intstatic final intstatic final intstatic final intstatic final intstatic final intList (represented as a Pair, String[], Object[], or List) of [data, datatype URI, ...] as per https://www.nuke24.net/docs/2023/TS34EncodedDatatype.html. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
NULL
public static final int NULL- See Also:
-
TRUE
public static final int TRUE- See Also:
-
FALSE
public static final int FALSE- See Also:
-
ANONYMOUS_CONCEPT
public static final int ANONYMOUS_CONCEPTThe tagged object itself, with no semantics whatsoever aside from being equal only to itself and nothing else- See Also:
-
PURE_REFERENCE
public static final int PURE_REFERENCEA concept named by URIReference#getUri(), the 'reference', which is probably, but not necessarily, a String. Has the connotation that this concept cannot be meaningfully represented any more concretely than by this name. Useful for representing, e.g. your cousin Bob using a URN. 'resolving' a PURE_REFERENCE-tagged IndirectValue can be expected to return the same IndirectValue. Similar to 'keywords' in Scheme, except that the reference does not include the ':' or '#:' which distinguishes keywords from symbols in scheme.- See Also:
-
REFERENCE
public static final int REFERENCEA concept named by URIReference#getUri(), the 'reference', which is probably, but not necessarily, a String. Semantics are identical to those of PURE_REFERENCE with the exception that REFERENCE leaves open the possibility of 'resolving' the value, though the result may be simply a PURE_REFERENCE with the same name!- See Also:
-
QUOTED_LITERAL
public static final int QUOTED_LITERALSupplier#get() returns the literal value, which must be interpreted as exactly itself, even if it is itself an IndirectValue. Objects referenced by this object should, however, be treated to the usual 'IndirectValue should be interpreted specially' rule.- See Also:
-
QUOTED_LITERAL_RECURSIVE
public static final int QUOTED_LITERAL_RECURSIVESupplier#get() returns the literal value, which must be interpreted as exactly itself, even if it is itself an IndirectValue. Any objects contained within should *also* be interpreted as literally themself, even if they are IndirectValue instances. This may be tricky to implement, as it may require a flag to be passed to functions that process these objects.- See Also:
-
EMPTY_LIST
public static final int EMPTY_LIST- See Also:
-
LINKED_LIST
public static final int LINKED_LISTValue is a list represented by a cons pair. Pair#getLeft() returns the head, Pair#getRight() returns the tail e.g. (first . (second . (third . ()) Empty list can be represented by the symbol "http://www.w3.org/1999/02/22-rdf-syntax-ns#nil"- See Also:
-
CONCATENATION
public static final int CONCATENATIONA sequence defined by some number of subsequences to be concatenated together get() should return a Pair, an array, or a List.- See Also:
-
SR_UNDEFINED
public static final int SR_UNDEFINED- See Also:
-
SR_PAIR
public static final int SR_PAIR- See Also:
-
SR_ARRAY
public static final int SR_ARRAY- See Also:
-
SR_LIST
public static final int SR_LIST- See Also:
-
ET_UNDEFINED
public static final int ET_UNDEFINED- See Also:
-
ET_BYTE
public static final int ET_BYTE- See Also:
-
ET_CHAR
public static final int ET_CHAR- See Also:
-
TS34_ENCODED
public static final int TS34_ENCODEDList (represented as a Pair, String[], Object[], or List) of [data, datatype URI, ...] as per https://www.nuke24.net/docs/2023/TS34EncodedDatatype.html. First element is the encoded representation of the value. It will often be, but does not need to be, a String. Remaining elements name encodings that have been applied, from outermost to innermost. i.e. in order such that unapplying the encodings in order would return the original value. e.g., the following all represent the same thing, the number 123: - ("data:,123" . ("http://ns.nuke24.net/Datatypes/URIResource" . ("http://www.w3.org/2001/XMLSchema#decimal" . ()))) - ("123" . ("http://www.w3.org/2001/XMLSchema#decimal" . ())) - (123 . ()) - String[] { "data:,123", "http://ns.nuke24.net/Datatypes/URIResource", "http://www.w3.org/2001/XMLSchema#decimal"} - Arrays.asList("123","http://www.w3.org/2001/XMLSchema#decimal")- See Also:
-
EXPRESSION_VALUE
public static final int EXPRESSION_VALUEIndirect value is some representation of a functional expression (probably some TOGVM-compatible thing) that can be unambiguously evaluated to provide the value.- See Also:
-
-
Constructor Details
-
IndirectValueTags
public IndirectValueTags()
-