Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
ToStringLiteral.cs
1
using
Waher.Content.Semantic.Model.Literals
;
2
using
Waher.Script.Abstraction.Elements
;
3
using
Waher.Script.Model
;
4
5
namespace
Waher.Script.Persistence.SPARQL.Functions.TypeConversion
6
{
10
public
class
ToStringLiteral
:
SemanticConversionFunction
11
{
15
public
ToStringLiteral
()
16
: base()
17
{
18
}
19
27
public
ToStringLiteral
(
ScriptNode
Argument
,
int
Start
,
int
Length
,
Expression
Expression
)
28
: base(
Argument
,
Start
,
Length
,
Expression
)
29
{
30
}
31
40
public
override
ScriptNode
CreateFunction
(
ScriptNode
Argument
,
int
Start
,
int
Length
,
Expression
Expression
)
41
{
42
return
new
ToStringLiteral
(
Argument
,
Start
,
Length
,
Expression
);
43
}
44
48
public
override
string
FunctionName
=>
StringLiteral
.
TypeUri
;
49
55
public
override
IElement
Convert
(
object
Value)
56
{
57
return
new
StringLiteral
(Value?.
ToString
() ??
string
.Empty);
58
}
59
}
60
}
Waher.Content.Semantic.Model.Literals.StringLiteral
Represents a string literal.
Definition:
StringLiteral.cs:12
Waher.Content.Semantic.Model.Literals.StringLiteral.TypeUri
const string TypeUri
http://www.w3.org/2001/XMLSchema#string
Definition:
StringLiteral.cs:48
Waher.Script.Expression
Class managing a script expression.
Definition:
Expression.cs:39
Waher.Script.Model.FunctionOneVariable.Argument
ScriptNode Argument
Function argument.
Definition:
FunctionOneVariable.cs:33
Waher.Script.Model.ScriptNode
Base class for all nodes in a parsed script tree.
Definition:
ScriptNode.cs:69
Waher.Script.Model.ScriptNode.Length
int Length
Length of expression covered by node.
Definition:
ScriptNode.cs:101
Waher.Script.Model.ScriptNode.ToString
override string ToString()
Definition:
ScriptNode.cs:359
Waher.Script.Model.ScriptNode.Start
int Start
Start position in script expression.
Definition:
ScriptNode.cs:92
Waher.Script.Persistence.SPARQL.Functions.TypeConversion.SemanticConversionFunction
Abstract base class for semantic conversion functions.
Definition:
SemanticConversionFunction.cs:12
Waher.Script.Persistence.SPARQL.Functions.TypeConversion.ToStringLiteral
Converts a value to a string literal.
Definition:
ToStringLiteral.cs:11
Waher.Script.Persistence.SPARQL.Functions.TypeConversion.ToStringLiteral.ToStringLiteral
ToStringLiteral()
Converts a value to a string literal.
Definition:
ToStringLiteral.cs:15
Waher.Script.Persistence.SPARQL.Functions.TypeConversion.ToStringLiteral.ToStringLiteral
ToStringLiteral(ScriptNode Argument, int Start, int Length, Expression Expression)
Converts a value to a string literal.
Definition:
ToStringLiteral.cs:27
Waher.Script.Persistence.SPARQL.Functions.TypeConversion.ToStringLiteral.Convert
override IElement Convert(object Value)
Converts an object to the desired type.
Definition:
ToStringLiteral.cs:55
Waher.Script.Persistence.SPARQL.Functions.TypeConversion.ToStringLiteral.FunctionName
override string FunctionName
Name of the function
Definition:
ToStringLiteral.cs:48
Waher.Script.Persistence.SPARQL.Functions.TypeConversion.ToStringLiteral.CreateFunction
override ScriptNode CreateFunction(ScriptNode Argument, int Start, int Length, Expression Expression)
Creates a function node.
Definition:
ToStringLiteral.cs:40
Waher.Script.Abstraction.Elements.IElement
Basic interface for all types of elements.
Definition:
IElement.cs:20
Waher.Content.Semantic.Model.Literals
Definition:
Base64Literal.cs:6
Waher.Script.Abstraction.Elements
Definition:
AbelianGroupElement.cs:5
Waher.Script.Model
Definition:
BinaryBooleanOperator.cs:8
Waher.Script.Persistence.SPARQL.Functions.TypeConversion
Definition:
SemanticConversionFunction.cs:7
IoTGateway
Script
Waher.Script.Persistence
SPARQL
Functions
TypeConversion
ToStringLiteral.cs
Generated by
1.9.5