Show / Hide Table of Contents

Class LiteralToken

Token which represents Literals.

Inheritance
object
BaseToken
LiteralToken
Implements
IToken
Inherited Members
BaseToken._tokentype
BaseToken._startline
BaseToken._endline
BaseToken._startpos
BaseToken._endpos
BaseToken._value
BaseToken.TokenType
BaseToken.Value
BaseToken.StartLine
BaseToken.EndLine
BaseToken.StartPosition
BaseToken.EndPosition
BaseToken.Length
BaseToken.ToString()
BaseToken.GetHashCode()
object.Equals(object)
object.Equals(object, object)
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
Namespace: VDS.RDF.Parsing.Tokens
Assembly: dotNetRdf.dll
Syntax
public class LiteralToken : BaseToken, IToken

Constructors

| Edit this page View Source

LiteralToken(string, int, int, int)

Creates a new Literal Token.

Declaration
public LiteralToken(string value, int line, int start, int end)
Parameters
Type Name Description
string value

Literal Value including the Quote deliminators.

int line

Line the Literal occurs on.

int start

Column the Literal starts at.

int end

Column the Literal ends at.

| Edit this page View Source

LiteralToken(string, int, int, int, int)

Creates a new Literal Token.

Declaration
public LiteralToken(string value, int startLine, int endLine, int start, int end)
Parameters
Type Name Description
string value

Literal Value including the Quote deliminators.

int startLine

Line the Literal starts on.

int endLine

Line the Literal ends on.

int start

Column the Literal starts at.

int 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.

Implements

IToken

Extension Methods

Extensions.ToSafeString(object)
Extensions.AsEnumerable<T>(T)
  • Edit this page
  • View Source
In this article
  • Constructors
    • LiteralToken(string, int, int, int)
    • LiteralToken(string, int, int, int, int)
  • Implements
  • Extension Methods
Back to top Generated by DocFX