Show / Hide Table of Contents

Class BaseToken

Base Implementation of IToken used by all derived tokens for ease of implementation.

Inheritance
object
BaseToken
ATToken
AbsKeywordToken
AddKeywordToken
AllKeywordToken
AllToken
AndToken
AsKeywordToken
AscKeywordToken
AskKeywordToken
AssignmentToken
AvgKeywordToken
BNodeKeywordToken
BOFToken
BaseDirectiveToken
BindKeywordToken
BindingsKeywordToken
BitwiseOrToken
BlankNodeCollectionToken
BlankNodeToken
BlankNodeWithIDToken
BoundKeywordToken
CallKeywordToken
CeilKeywordToken
ClearKeywordToken
CoalesceKeywordToken
CommaToken
CommentToken
ConcatKeywordToken
ConstructKeywordToken
CopyKeywordToken
CountKeywordToken
CreateKeywordToken
CustomKeywordDefinitionToken
CustomKeywordToken
DataKeywordToken
DataTypeKeywordToken
DataTypeToken
DayKeywordToken
DefaultKeywordToken
DeleteKeywordToken
DescKeywordToken
DescribeKeywordToken
DistinctKeywordToken
DivideToken
DotToken
DropKeywordToken
EOFToken
EOLToken
EncodeForUriKeywordToken
EndAnnotationToken
EndQuoteToken
EqualityToken
ExclamationToken
ExistsKeywordToken
FilterKeywordToken
FloorKeywordToken
ForAllQuantifierToken
ForSomeQuantifierToken
FromKeywordToken
FromNamedKeywordToken
GraphKeywordToken
GraphLiteralToken
GreaterThanOrEqualToToken
GreaterThanToken
GroupByKeywordToken
GroupConcatKeywordToken
HashToken
HatHatToken
HatToken
HavingKeywordToken
HoursKeywordToken
IfKeywordToken
ImpliedByToken
ImpliesToken
InKeywordToken
InsertKeywordToken
IntoKeywordToken
IriKeywordToken
IsBlankKeywordToken
IsIriKeywordToken
IsLiteralKeywordToken
IsNumericKeywordToken
IsTripleKeywordToken
IsUriKeywordToken
KeywordAToken
KeywordDirectiveToken
KeywordIsToken
KeywordOfToken
LCaseKeywordToken
LangKeywordToken
LangMatchesKeywordToken
LanguageSpecifierToken
LeftBracketToken
LeftCurlyBracketToken
LeftSquareBracketToken
LengthKeywordToken
LessThanOrEqualToToken
LessThanToken
LetKeywordToken
LimitKeywordToken
LiteralToken
LiteralWithDataTypeToken
LiteralWithLanguageSpecifierToken
LoadKeywordToken
LongLiteralToken
MD5KeywordToken
MaxKeywordToken
MedianKeywordToken
MinKeywordToken
MinusKeywordToken
MinusToken
MinutesKeywordToken
ModeKeywordToken
MonthKeywordToken
MoveKeywordToken
MultiplyToken
NamedKeywordToken
NegationToken
NotEqualsToken
NotExistsKeywordToken
NotInKeywordToken
NowKeywordToken
NumericMaxKeywordToken
NumericMinKeywordToken
ObjectKeywordToken
OffsetKeywordToken
OptionalKeywordToken
OrToken
OrderByKeywordToken
PathToken
PlainLiteralToken
PlusToken
PredicateKeywordToken
PrefixDirectiveToken
PrefixToken
QNameToken
QuestionToken
QuotedTripleToken
RandKeywordToken
ReducedKeywordToken
RegexKeywordToken
ReplaceKeywordToken
RightBracketToken
RightCurlyBracketToken
RightSquareBracketToken
RoundKeywordToken
SameTermKeywordToken
SampleKeywordToken
SecondsKeywordToken
SelectKeywordToken
SemicolonToken
SeparatorKeywordToken
ServiceKeywordToken
Sha1KeywordToken
Sha224KeywordToken
Sha256KeywordToken
Sha384KeywordToken
Sha512KeywordToken
SilentKeywordToken
StartAnnotationToken
StartQuoteToken
StrAfterKeywordToken
StrBeforeKeywordToken
StrContainsKeywordToken
StrDtKeywordToken
StrEndsKeywordToken
StrKeywordToken
StrLangKeywordToken
StrLenKeywordToken
StrStartsKeywordToken
StrUUIDKeywordToken
SubStrKeywordToken
SubjectKeywordToken
SumKeywordToken
TZKeywordToken
TabToken
TimezoneKeywordToken
ToKeywordToken
TripleKeywordToken
UCaseKeywordToken
UUIDKeywordToken
UndefKeywordToken
UnderscoreToken
UnionKeywordToken
UnsaidKeywordToken
UriKeywordToken
UriToken
UsingKeywordToken
ValuesKeywordToken
VariableToken
WhereKeywordToken
WithKeywordToken
YearKeywordToken
Implements
IToken
Inherited Members
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 abstract class BaseToken : IToken

Constructors

| Edit this page View Source

BaseToken(int, string, int, int, int, int)

Creates a Token and fills in its Values.

Declaration
protected BaseToken(int tokenType, string value, int startLine, int endLine, int startPos, int endPos)
Parameters
Type Name Description
int tokenType

Integer denoting the Tokens Type.

string value

String value that the Token represents (if any).

int startLine

Line at which the Token starts.

int endLine

Line at which the Token ends.

int startPos

Column at which the Token starts.

int endPos

Column at which the Token ends.

Remarks

All the derived classes use this Constructor to fill in the basic values of a Token.

Fields

| Edit this page View Source

_endline

Variables for representing the Type and Position of the Token.

Declaration
protected int _endline
Field Value
Type Description
int
| Edit this page View Source

_endpos

Variables for representing the Type and Position of the Token.

Declaration
protected int _endpos
Field Value
Type Description
int
| Edit this page View Source

_startline

Variables for representing the Type and Position of the Token.

Declaration
protected int _startline
Field Value
Type Description
int
| Edit this page View Source

_startpos

Variables for representing the Type and Position of the Token.

Declaration
protected int _startpos
Field Value
Type Description
int
| Edit this page View Source

_tokentype

Variables for representing the Type and Position of the Token.

Declaration
protected int _tokentype
Field Value
Type Description
int
| Edit this page View Source

_value

Variable containg the value of the Token.

Declaration
protected string _value
Field Value
Type Description
string

Properties

| Edit this page View Source

EndLine

Gets the Line at which this Token Ends.

Declaration
public int EndLine { get; }
Property Value
Type Description
int
| Edit this page View Source

EndPosition

Gets the Column at which this Token Ends.

Declaration
public int EndPosition { get; }
Property Value
Type Description
int
| Edit this page View Source

Length

Gets the Length of the Tokens Value.

Declaration
public int Length { get; }
Property Value
Type Description
int
| Edit this page View Source

StartLine

Gets the Line at which this Token Starts.

Declaration
public int StartLine { get; }
Property Value
Type Description
int
| Edit this page View Source

StartPosition

Gets the Column at which this Token Starts.

Declaration
public int StartPosition { get; }
Property Value
Type Description
int
| Edit this page View Source

TokenType

Gets an arbitrary integer which indicates the Type of the Token.

Declaration
public int TokenType { get; }
Property Value
Type Description
int
| Edit this page View Source

Value

Gets the String Value which this Token represents (if any).

Declaration
public string Value { get; }
Property Value
Type Description
string

Methods

| Edit this page View Source

GetHashCode()

Gets a Hash Code for a Token.

Declaration
public override int GetHashCode()
Returns
Type Description
int
Overrides
object.GetHashCode()
| Edit this page View Source

ToString()

Gets a String representation of the Token Type and Value.

Declaration
public override string ToString()
Returns
Type Description
string
Overrides
object.ToString()

Implements

IToken

Extension Methods

Extensions.ToSafeString(object)
Extensions.AsEnumerable<T>(T)
  • Edit this page
  • View Source
In this article
  • Constructors
    • BaseToken(int, string, int, int, int, int)
  • Fields
    • _endline
    • _endpos
    • _startline
    • _startpos
    • _tokentype
    • _value
  • Properties
    • EndLine
    • EndPosition
    • Length
    • StartLine
    • StartPosition
    • TokenType
    • Value
  • Methods
    • GetHashCode()
    • ToString()
  • Implements
  • Extension Methods
Back to top Generated by DocFX