Show / Hide Table of Contents

Class StringLiteralToken

will take any string literal enclosed by double quotes. use back slash to escape.
Check the GetStringEscape function for escapable chars

Inheritance
System.Object
StringLiteralToken
DoubleQuoteStringLiteralToken
SingleDoubleQuoteStringLiteralToken
SingleQuoteStringLiteralToken
Implements
IOperandToken
IStringLiteralToken
IToken
Namespace: Albatross.Expression.Tokens
Assembly: Albatross.Expression.dll
Syntax
public abstract class StringLiteralToken : IOperandToken, IStringLiteralToken, IToken

Fields

EscapeChar

Declaration
public const char EscapeChar = '\\'
Field Value
Type Description
System.Char

Properties

Boundary

Declaration
public abstract char Boundary { get; }
Property Value
Type Description
System.Char

Group

Declaration
public string Group { get; }
Property Value
Type Description
System.String

Name

Declaration
public string Name { get; protected set; }
Property Value
Type Description
System.String

Methods

Clone()

Declaration
public abstract IToken Clone()
Returns
Type Description
IToken

EvalText(String)

Declaration
public string EvalText(string format)
Parameters
Type Name Description
System.String format
Returns
Type Description
System.String

EvalValue(Func<String, Object>)

Declaration
public object EvalValue(Func<string, object> context)
Parameters
Type Name Description
System.Func<System.String, System.Object> context
Returns
Type Description
System.Object

Match(String, Int32, out Int32)

Declaration
public virtual bool Match(string expression, int start, out int next)
Parameters
Type Name Description
System.String expression
System.Int32 start
System.Int32 next
Returns
Type Description
System.Boolean

ToString()

Declaration
public override string ToString()
Returns
Type Description
System.String
Overrides
System.Object.ToString()

Implements

IOperandToken
IStringLiteralToken
IToken

Extension Methods

Extensions.ConvertToBoolean(Object)
Extensions.IsVariable(IToken)
Back to top Generated by DocFX