C# 클래스 RTools.Util.IntToken

Token type for integer tokens. This handles both Int32 and Int64.
상속: Token
파일 보기 프로젝트 열기: PaulMineau/AIMA.Net 1 사용 예제들

공개 메소드들

메소드 설명
Equals ( object other ) : bool

Override, see base Token

GetHashCode ( ) : int

Override, see base Token

IntToken ( int i ) : System

Constructor with the specified value.

IntToken ( int i, int line ) : System

Constructor with the specified value and line number.

IntToken ( long i ) : System

Constructor with the specified value.

IntToken ( long l, int line ) : System

Constructor for a 64 bit int

IntToken ( string s ) : System

Constructor with the specified value.

IntToken ( string s, int line ) : System

Constructor with the specified value and line number.

ParseHex ( string s, int lineNumber ) : IntToken

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.

ToDebugString ( ) : string

Override, see base Token

ToString ( ) : string

Override, see base Token

비공개 메소드들

메소드 설명
Parse ( string s ) : void

Convert the input string to an integer, if possible

메소드 상세

Equals() 공개 메소드

Override, see base Token
public Equals ( object other ) : bool
other object
리턴 bool

GetHashCode() 공개 메소드

Override, see base Token
public GetHashCode ( ) : int
리턴 int

IntToken() 공개 메소드

Constructor with the specified value.
public IntToken ( int i ) : System
i int
리턴 System

IntToken() 공개 메소드

Constructor with the specified value and line number.
public IntToken ( int i, int line ) : System
i int
line int
리턴 System

IntToken() 공개 메소드

Constructor with the specified value.
public IntToken ( long i ) : System
i long
리턴 System

IntToken() 공개 메소드

Constructor for a 64 bit int
public IntToken ( long l, int line ) : System
l long
line int
리턴 System

IntToken() 공개 메소드

Constructor with the specified value.
public IntToken ( string s ) : System
s string
리턴 System

IntToken() 공개 메소드

Constructor with the specified value and line number.
public IntToken ( string s, int line ) : System
s string
line int
리턴 System

ParseHex() 공개 정적인 메소드

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.
public static ParseHex ( string s, int lineNumber ) : IntToken
s string The hex number as a string.
lineNumber int The line where this token was found.
리턴 IntToken

ToDebugString() 공개 메소드

Override, see base Token
public ToDebugString ( ) : string
리턴 string

ToString() 공개 메소드

Override, see base Token
public ToString ( ) : string
리턴 string