Class Literal
Inheritance
System.Object
Literal
Assembly: Steeltoe.Common.Expression.dll
Syntax
public abstract class Literal : SpelNode, ISpelNode
Constructors
|
Edit this page
View Source
Literal(String, Int32, Int32)
Declaration
protected Literal(string originalValue, int startPos, int endPos)
Parameters
Type |
Name |
Description |
System.String |
originalValue |
|
System.Int32 |
startPos |
|
System.Int32 |
endPos |
|
Properties
|
Edit this page
View Source
OriginalValue
Declaration
public string OriginalValue { get; }
Property Value
Type |
Description |
System.String |
|
Methods
|
Edit this page
View Source
GetIntLiteral(String, Int32, Int32, NumberStyles)
Declaration
public static Literal GetIntLiteral(string numberToken, int startPos, int endPos, NumberStyles radix)
Parameters
Type |
Name |
Description |
System.String |
numberToken |
|
System.Int32 |
startPos |
|
System.Int32 |
endPos |
|
NumberStyles |
radix |
|
Returns
|
Edit this page
View Source
GetLiteralValue()
Declaration
public abstract ITypedValue GetLiteralValue()
Returns
Type |
Description |
ITypedValue |
|
|
Edit this page
View Source
GetLongLiteral(String, Int32, Int32, NumberStyles)
Declaration
public static Literal GetLongLiteral(string numberToken, int startPos, int endPos, NumberStyles radix)
Parameters
Type |
Name |
Description |
System.String |
numberToken |
|
System.Int32 |
startPos |
|
System.Int32 |
endPos |
|
NumberStyles |
radix |
|
Returns
|
Edit this page
View Source
GetNumberLiteral(String)
Declaration
public static string GetNumberLiteral(string numberToken)
Parameters
Type |
Name |
Description |
System.String |
numberToken |
|
Returns
Type |
Description |
System.String |
|
|
Edit this page
View Source
GetRealLiteral(String, Int32, Int32, Boolean)
Declaration
public static Literal GetRealLiteral(string numberToken, int startPos, int endPos, bool isFloat)
Parameters
Type |
Name |
Description |
System.String |
numberToken |
|
System.Int32 |
startPos |
|
System.Int32 |
endPos |
|
System.Boolean |
isFloat |
|
Returns
|
Edit this page
View Source
GetValueInternal(ExpressionState)
Declaration
public override ITypedValue GetValueInternal(ExpressionState state)
Parameters
Returns
Type |
Description |
ITypedValue |
|
Overrides
|
Edit this page
View Source
ToString()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
|
Edit this page
View Source
ToStringAST()
Declaration
public override string ToStringAST()
Returns
Type |
Description |
System.String |
|
Overrides
Implements