Class Token
Inheritance
System.Object
Token
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: Sdl.LanguagePlatform.Core.dll
public abstract class Token : SegmentElement
Constructors
Declaration
Declaration
public Token(Token other)
Parameters
Type |
Name |
Description |
Token |
other |
|
Declaration
public Token(string text)
Parameters
Type |
Name |
Description |
System.String |
text |
|
Properties
Declaration
public CultureInfo Culture { get; set; }
Property Value
Type |
Description |
System.Globalization.CultureInfo |
|
Declaration
public virtual bool IsPlaceable { get; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public bool IsPunctuation { get; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public virtual bool IsSubstitutable { get; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public bool IsWhitespace { get; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public bool IsWord { get; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public SegmentRange Span { get; set; }
Property Value
Text
Declaration
public virtual string Text { get; set; }
Property Value
Type |
Description |
System.String |
|
TokenizationContext
Declaration
public TokenizationContext TokenizationContext { get; set; }
Property Value
Declaration
public TokenType Type { get; set; }
Property Value
Methods
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
System.Object.Equals(System.Object)
Declaration
protected SegmentElement.Similarity GetBundleSimilarity(SegmentElement other)
Parameters
Returns
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Overrides
System.Object.GetHashCode()
Declaration
protected abstract TokenType GetTokenType()
Returns
Declaration
public override int GetWeakHashCode()
Returns
Type |
Description |
System.Int32 |
|
Overrides
Declaration
protected virtual void SetTokenType(TokenType tokenType)
Parameters