Class AbstractLogicalIntrinsic
Base class for tags that evaluate to a boolean result, i.e. those that can be used in conditions.
Inheritance
Inherited Members
Namespace: Firefly.CloudFormationParser.Intrinsics.Abstractions
Assembly: Firefly.CloudFormationParser.dll
Syntax
public abstract class AbstractLogicalIntrinsic : AbstractArrayIntrinsic, IIntrinsic, IEnumerable<object>, IEnumerable
Constructors
| Improve this Doc View SourceAbstractLogicalIntrinsic()
Initializes a new instance of the AbstractLogicalIntrinsic class.
Declaration
protected AbstractLogicalIntrinsic()
AbstractLogicalIntrinsic(Object)
Initializes a new instance of the AbstractLogicalIntrinsic class.
Declaration
protected AbstractLogicalIntrinsic(object value)
Parameters
Type | Name | Description |
---|---|---|
Object | value | The value. |
AbstractLogicalIntrinsic(Object, Boolean)
Initializes a new instance of the AbstractLogicalIntrinsic class.
Declaration
protected AbstractLogicalIntrinsic(object value, bool useLongForm)
Parameters
Type | Name | Description |
---|---|---|
Object | value | The value. |
Boolean | useLongForm | If set to |
Properties
| Improve this Doc View SourceOperands
Gets or sets the operands.
Declaration
public IEnumerable<object> Operands { get; }
Property Value
Type | Description |
---|---|
IEnumerable<Object> | The operands. |
Methods
| Improve this Doc View SourceGetConditionIntrinsics()
Returns a list of all condition intrinsics as operands in this and child intrinsics.
Declaration
public IList<ConditionIntrinsic> GetConditionIntrinsics()
Returns
Type | Description |
---|---|
IList<ConditionIntrinsic> | A list of condition intrinsics |
GetReferencedObjects(ITemplate)
Gets a list of referenced resources and/or parameters in this expression
Declaration
public override IEnumerable<string> GetReferencedObjects(ITemplate template)
Parameters
Type | Name | Description |
---|---|---|
ITemplate | template | Reference to the template being processed |
Returns
Type | Description |
---|---|
IEnumerable<String> | List of references |
Overrides
| Improve this Doc View SourceSetValue(IEnumerable<Object>)
Sets the values for the intrinsic.
This is a list of objects, whose length depends on the number of properties (usually list elements) supported by the intrinsic.
Each element depending on the intrinsic, may be a scalar value, another intrinsic or another list of items e.g. for !Join
or !Select
Declaration
protected override void SetValue(IEnumerable<object> values)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<Object> | values | Values to assign to the intrinsic |
Overrides
| Improve this Doc View SourceToString()
Converts to string.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String | A String that represents this instance. |