Class TokenBundle
Inheritance
System.Object
TokenBundle
Implements
System.Collections.IEnumerable
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 class TokenBundle : Token, IEnumerable<PrioritizedToken>, IEnumerable
Constructors
Declaration
public TokenBundle(Token t, int priority)
Parameters
Type |
Name |
Description |
Token |
t |
|
System.Int32 |
priority |
|
Declaration
public TokenBundle(IList<PrioritizedToken> items)
Parameters
Properties
Declaration
public int Count { get; }
Property Value
Type |
Description |
System.Int32 |
|
Declaration
public override bool IsPlaceable { get; }
Property Value
Type |
Description |
System.Boolean |
|
Overrides
Declaration
public override bool IsSubstitutable { get; }
Property Value
Type |
Description |
System.Boolean |
|
Overrides
Declaration
public PrioritizedToken this[int index] { get; }
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
Property Value
Methods
Declaration
public override void AcceptSegmentElementVisitor(ISegmentElementVisitor visitor)
Parameters
Overrides
Declaration
public void Add(Token t, int priority)
Parameters
Type |
Name |
Description |
Token |
t |
|
System.Int32 |
priority |
|
Declaration
public void Add(Token t, int priority, bool keepDuplicates)
Parameters
Type |
Name |
Description |
Token |
t |
|
System.Int32 |
priority |
|
System.Boolean |
keepDuplicates |
|
Declaration
public bool Contains(Token t)
Parameters
Type |
Name |
Description |
Token |
t |
|
Returns
Type |
Description |
System.Boolean |
|
Declaration
public override SegmentElement Duplicate()
Returns
Overrides
Declaration
Returns
Declaration
public IEnumerator<PrioritizedToken> GetEnumerator()
Returns
Declaration
public override SegmentElement.Similarity GetSimilarity(SegmentElement other)
Parameters
Returns
Overrides
Declaration
protected override TokenType GetTokenType()
Returns
Overrides
Declaration
public void SortByDecreasingPriority()
Explicit Interface Implementations
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
Type |
Description |
System.Collections.IEnumerator |
|
Implements
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable