EmptyTagImpl Class

The default implementation of empty EmptyTags.

C#
public sealed class EmptyTagImpl : BaseTagImpl<EmptyTag>, EmptyTag
Inheritance
Implements

Constructors

EmptyTagImpl(string)

Initializes a new instance of the EmptyTagImpl class.

Properties

Name
Name (Inherited from BaseTagImpl<T>)
Kind (Inherited from AbstractNode)

Methods

Accept(NodeVisitor)

Description copied from class: AbstractNode

Description copied from interface: Node

Returns the object associated this node that is created with the specified visitor.

GetKind()

Description copied from class: AbstractNode

Gets the kind of this node.

Create(Func<TagStruct, TagStruct>)

Description copied from class: BaseTagImpl

Gets a new element with the modifying function.

CreateAddingAttributes(IEnumerable<(string Name, string Value)>)

Description copied from class: BaseTagImpl

Gets a new element with adding the specified attributes.

AddAttributes((string Name, string Value)[])

Description copied from interface: BaseTag

Gets a new BaseTag<T> object with the specified attribute that has the specified value.

(Inherited from BaseTagImpl<T>)
AddClass(string[])

Description copied from interface: BaseTag

Gets a new BaseTag<T> object with the class attribute that has both the values of this object and the specified values.

(Inherited from BaseTagImpl<T>)
AddEmptyAttributes(string[])

Description copied from interface: BaseTag

Gets a new BaseTag<T> object with the specified empty attribute.

(Inherited from BaseTagImpl<T>)
WithClass(string[])

Description copied from interface: BaseTag

Gets a new BaseTag<T> object with the class attribute that has the specified values.

(Inherited from BaseTagImpl<T>)
WithId(string)

Description copied from interface: BaseTag

Gets a new BaseTag<T> object with the id attribute that has the specified value.

(Inherited from BaseTagImpl<T>)
Create(Func<TagStruct, TagStruct>)

Gets a new element with the modifying function.

(Inherited from BaseTagImpl<T>)
CreateAddingAttributes(IEnumerable<(string Name, string Value)>)

Gets a new element with adding the specified attributes.

(Inherited from BaseTagImpl<T>)
Accept(NodeVisitor)

Description copied from interface: Node

Returns the object associated this node that is created with the specified visitor.

(Inherited from AbstractNode)
ToString() (Inherited from AbstractNode)
ToString(FormatOptions)

Description copied from interface: Node

Returns the string representing the current object, formatting it with the spcified FormatOptions.

(Inherited from AbstractNode)
GetKind()

Gets the kind of this node.

(Inherited from AbstractNode)
Equals(object) (Inherited from object)
GetHashCode() (Inherited from object)
GetType() (Inherited from object)
MemberwiseClone() (Inherited from object)

Constructors Detail

EmptyTagImpl(string)

Initializes a new instance of the EmptyTagImpl class.

C#
public EmptyTagImpl(string name)

Parameters

name
string

The name of this tag.

Properties Detail

Name

C#
public override string Name { get; }

Property Value

Implements

Methods Detail

Accept(NodeVisitor)

Description copied from class: AbstractNode

Description copied from interface: Node

Returns the object associated this node that is created with the specified visitor.

C#
public override void Accept(NodeVisitor visitor)

Parameters

visitor
NodeVisitor

Implements

See Also

    Description copied from class: AbstractNode

    Description copied from interface: Node

  • NodeVisitor

GetKind()

Description copied from class: AbstractNode

Gets the kind of this node.

C#
protected override NodeKind GetKind()

Returns

Description copied from class: AbstractNode

The kind of this node.

Create(Func<TagStruct, TagStruct>)

Description copied from class: BaseTagImpl

Gets a new element with the modifying function.

C#
protected override EmptyTag Create(Func<TagStruct, TagStruct> modify)

Parameters

Returns

Description copied from class: BaseTagImpl

A new element.

CreateAddingAttributes(IEnumerable<(string Name, string Value)>)

Description copied from class: BaseTagImpl

Gets a new element with adding the specified attributes.

C#
protected override EmptyTag CreateAddingAttributes(IEnumerable<(string Name, string Value)> attributes)

Parameters

Returns

Description copied from class: BaseTagImpl

A new element.