![]() | AttributeBuilder Class |
[This is preliminary documentation and is subject to change.]
Namespace: Llvm.NET.Values
public sealed class AttributeBuilder : IDisposable
The AttributeBuilder type exposes the following members.
Name | Description | |
---|---|---|
![]() | AttributeBuilder | Creates a new empty AttributeBuilder instance |
![]() | AttributeBuilder(AttributeValue) | Creates a new AttributeBuilder with a given AttributeValue |
![]() | AttributeBuilder(AttributeSet, FunctionAttributeIndex) | Creates a new AttributeBuilder from a single index of an existing AttributeSet |
Name | Description | |
---|---|---|
![]() | Add(String) | Adds a target dependent string attribute to a builder |
![]() | Add(AttributeKind) | Adds a new boolean attribute to this builder |
![]() | Add(AttributeValue) | Adds an AttributeValue to a builder |
![]() | Add(String, String) | Adds a target dependent attribute to the builder |
![]() | Contains(String) | Checks if this builder contains a given target dependent attribute |
![]() | Contains(AttributeKind) | Checks if this builder contains a given boolean attribute |
![]() | Dispose | Destroys the underlying native builder |
![]() | Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) |
![]() | GetHashCode | Serves as the default hash function. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | HasAttributes | Checks if the builder contains any of the attributes in a given AttributeSet |
![]() | Merge | Merges the contents of another AttributeBuilder into this one |
![]() | Overlaps | Checks if this builder overlaps the attributes in another builder |
![]() | Remove(String) | Removes a target dependent attribute from this builder |
![]() | Remove(AttributeBuilder) | Removes the attributes of another builder from this one |
![]() | Remove(AttributeKind) | Removes a boolean attribute from the builder |
![]() | Remove(AttributeSet, FunctionAttributeIndex) | Removes attributes specified in an AttributeSet |
![]() | ToAttributeSet(FunctionAttributeIndex) | Converts the contents of this builder to an immutable AttributeSet |
![]() | ToAttributeSet(FunctionAttributeIndex, Context) | Converts the contents of this builder to an immutable AttributeSet |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
This class is used to build immutable AttributeSet instances.
Manipulator methods of this class return the instance of the class. This allows use in fluent style coding scenarios. (see: https://en.wikipedia.org/wiki/Fluent_interface )
![]() |
---|
It is important to keep in mind that an AttributeBuilder is dimensionless, that is, AttributeSet does not contain or store a FunctionAttributeIndex value. The index is applied only when creating the AttributeSet in ToAttributeSet(FunctionAttributeIndex) |