Class LiteralToken
Token which represents Literals.
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: VDS.RDF.Parsing.Tokens
Assembly: dotNetRDF.dll
Syntax
public class LiteralToken : BaseToken, IToken
Constructors
| Improve this Doc View SourceLiteralToken(String, Int32, Int32, Int32)
Creates a new Literal Token.
Declaration
public LiteralToken(string value, int line, int start, int end)
Parameters
Type | Name | Description |
---|---|---|
System.String | value | Literal Value including the Quote deliminators. |
System.Int32 | line | Line the Literal occurs on. |
System.Int32 | start | Column the Literal starts at. |
System.Int32 | end | Column the Literal ends at. |
LiteralToken(String, Int32, Int32, Int32, Int32)
Creates a new Literal Token.
Declaration
public LiteralToken(string value, int startLine, int endLine, int start, int end)
Parameters
Type | Name | Description |
---|---|---|
System.String | value | Literal Value including the Quote deliminators. |
System.Int32 | startLine | Line the Literal starts on. |
System.Int32 | endLine | Line the Literal ends on. |
System.Int32 | start | Column the Literal starts at. |
System.Int32 | end | Column the Literal ends at. |
Remarks
Most syntaxes use different deliminators for multiline literals and will usually use a LongLiteralToken instead but some formats like CSV only use quotes for multiline literals and use no delimitors for single line literals.