Class IntToken
Token type for integer tokens. This handles both Int32 and Int64.
Inherited Members
Namespace: RTools_NTS.Util
Assembly: NetTopologySuite.dll
Syntax
public class IntToken : Token
Constructors
| Edit this page View SourceIntToken(int)
Constructor with the specified value.
Declaration
public IntToken(int i)
Parameters
Type | Name | Description |
---|---|---|
int | i |
IntToken(int, int)
Constructor with the specified value and line number.
Declaration
public IntToken(int i, int line)
Parameters
Type | Name | Description |
---|---|---|
int | i | |
int | line |
IntToken(long)
Constructor with the specified value.
Declaration
public IntToken(long i)
Parameters
Type | Name | Description |
---|---|---|
long | i |
IntToken(long, int)
Constructor for a 64 bit int
Declaration
public IntToken(long l, int line)
Parameters
Type | Name | Description |
---|---|---|
long | l | |
int | line |
IntToken(string)
Constructor with the specified value.
Declaration
public IntToken(string s)
Parameters
Type | Name | Description |
---|---|---|
string | s |
IntToken(string, int)
Constructor with the specified value and line number.
Declaration
public IntToken(string s, int line)
Parameters
Type | Name | Description |
---|---|---|
string | s | |
int | line |
Properties
| Edit this page View SourceStringValue
Override, see base Token
Declaration
public override string StringValue { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Methods
| Edit this page View SourceEquals(object)
Override, see base Token
Declaration
public override bool Equals(object other)
Parameters
Type | Name | Description |
---|---|---|
object | other |
Returns
Type | Description |
---|---|
bool |
Overrides
| Edit this page View SourceGetHashCode()
Override, see base Token
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int |
Overrides
| Edit this page View SourceParseHex(string, int)
Parse a string known to be a hex string. This is faster than Parse which doesn't assume the number is Hex. This will throw an exception if the input number isn't hex.
Declaration
public static IntToken ParseHex(string s, int lineNumber)
Parameters
Type | Name | Description |
---|---|---|
string | s | The hex number as a string. |
int | lineNumber | The line where this token was found. |
Returns
Type | Description |
---|---|
IntToken | A new IntToken set to the value in the input string. |
ToDebugString()
Override, see base Token
Declaration
public override string ToDebugString()
Returns
Type | Description |
---|---|
string |
Overrides
| Edit this page View SourceToString()
Override, see base Token
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string |