Class: Udb::AlwaysTrueCondition
- Inherits:
-
AbstractCondition
- Object
- AbstractCondition
- Udb::AlwaysTrueCondition
- Extended by:
- T::Sig
- Defined in:
- lib/udb/condition.rb
Instance Method Summary collapse
- #&(other) ⇒ AbstractCondition
- #-@ ⇒ AbstractCondition
- #compatible?(_other) ⇒ Boolean
- #empty? ⇒ Boolean
- #has_extension_requirement? ⇒ Boolean
- #has_param? ⇒ Boolean
- #implied_extension_conflicts(expand: true) ⇒ Array<ConditionalExtensionRequirement>
- #implied_extension_requirements(expand: true) ⇒ Array<ConditionalExtensionRequirement>
- #initialize(cfg_arch) constructor
- #minimize(expand: true) ⇒ AbstractCondition
- #partial_eval(ext_reqs: [], expand: true) ⇒ AbstractCondition
- #partially_evaluate_for_params(cfg_arch, expand: false) ⇒ AbstractCondition
- #satisfiability_depends_on_ext_req?(ext_req, include_requirements: false) ⇒ Boolean
- #satisfiable? ⇒ Boolean
- #satisfied_by_cfg_arch?(_cfg_arch) ⇒ SatisfiedResult
- #satisfied_by_ext_req?(ext_req, include_requirements: false) ⇒ Boolean
- #to_asciidoc ⇒ String
- #to_h ⇒ Hash{String => T.untyped}, Boolean
- #to_idl(cfg_arch) ⇒ String
- #to_logic_tree(expand: false) ⇒ LogicNode
- #to_logic_tree_internal ⇒ LogicNode private
- #to_s(expand: false) ⇒ String
- #to_s_pretty ⇒ String
- #to_s_with_value(cfg_arch, expand: false) ⇒ String
- #unsatisfiable? ⇒ Boolean
- #|(other) ⇒ AbstractCondition
Constructor Details
#initialize(cfg_arch)
1384 1385 1386 |
# File 'lib/udb/condition.rb', line 1384 def initialize(cfg_arch) @cfg_arch = cfg_arch end |
Instance Method Details
#&(other) ⇒ AbstractCondition
1461 1462 1463 |
# File 'lib/udb/condition.rb', line 1461 def &(other) Condition.conjunction([self, other], @cfg_arch) end |
#-@ ⇒ AbstractCondition
1471 1472 1473 |
# File 'lib/udb/condition.rb', line 1471 def -@ AlwaysFalseCondition.new(@cfg_arch) end |
#compatible?(_other) ⇒ Boolean
1406 |
# File 'lib/udb/condition.rb', line 1406 def compatible?(_other) = true |
#empty? ⇒ Boolean
1389 |
# File 'lib/udb/condition.rb', line 1389 def empty? = true |
#has_extension_requirement? ⇒ Boolean
1429 |
# File 'lib/udb/condition.rb', line 1429 def has_extension_requirement? = false |
#has_param? ⇒ Boolean
1435 |
# File 'lib/udb/condition.rb', line 1435 def has_param? = false |
#implied_extension_conflicts(expand: true) ⇒ Array<ConditionalExtensionRequirement>
1458 |
# File 'lib/udb/condition.rb', line 1458 def implied_extension_conflicts(expand: true) = [] |
#implied_extension_requirements(expand: true) ⇒ Array<ConditionalExtensionRequirement>
1455 |
# File 'lib/udb/condition.rb', line 1455 def implied_extension_requirements(expand: true) = [] |
#minimize(expand: true) ⇒ AbstractCondition
1432 |
# File 'lib/udb/condition.rb', line 1432 def minimize(expand: true) = self |
#partial_eval(ext_reqs: [], expand: true) ⇒ AbstractCondition
1420 |
# File 'lib/udb/condition.rb', line 1420 def partial_eval(ext_reqs: [], expand: true) = self |
#partially_evaluate_for_params(cfg_arch, expand: false) ⇒ AbstractCondition
1417 |
# File 'lib/udb/condition.rb', line 1417 def partially_evaluate_for_params(cfg_arch, expand: false) = self |
#satisfiability_depends_on_ext_req?(ext_req, include_requirements: false) ⇒ Boolean
1426 |
# File 'lib/udb/condition.rb', line 1426 def satisfiability_depends_on_ext_req?(ext_req, include_requirements: false) = false |
#satisfiable? ⇒ Boolean
1476 |
# File 'lib/udb/condition.rb', line 1476 def satisfiable? = true |
#satisfied_by_cfg_arch?(_cfg_arch) ⇒ SatisfiedResult
1414 |
# File 'lib/udb/condition.rb', line 1414 def satisfied_by_cfg_arch?(_cfg_arch) = SatisfiedResult::Yes |
#satisfied_by_ext_req?(ext_req, include_requirements: false) ⇒ Boolean
1423 |
# File 'lib/udb/condition.rb', line 1423 def satisfied_by_ext_req?(ext_req, include_requirements: false) = false |
#to_asciidoc ⇒ String
1452 |
# File 'lib/udb/condition.rb', line 1452 def to_asciidoc = "true" |
#to_h ⇒ Hash{String => T.untyped}, Boolean
1409 1410 1411 |
# File 'lib/udb/condition.rb', line 1409 def to_h true end |
#to_idl(cfg_arch) ⇒ String
1438 |
# File 'lib/udb/condition.rb', line 1438 def to_idl(cfg_arch) = "-> true;" |
#to_logic_tree(expand: false) ⇒ LogicNode
1392 1393 1394 |
# File 'lib/udb/condition.rb', line 1392 def to_logic_tree(expand: false) LogicNode::True end |
#to_logic_tree_internal ⇒ LogicNode
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
1401 1402 1403 |
# File 'lib/udb/condition.rb', line 1401 def to_logic_tree_internal LogicNode::True end |
#to_s(expand: false) ⇒ String
1441 |
# File 'lib/udb/condition.rb', line 1441 def to_s(expand: false) = "true" |
#to_s_pretty ⇒ String
1444 1445 1446 |
# File 'lib/udb/condition.rb', line 1444 def to_s_pretty "always" end |
#to_s_with_value(cfg_arch, expand: false) ⇒ String
1449 |
# File 'lib/udb/condition.rb', line 1449 def to_s_with_value(cfg_arch, expand: false) = "true" |
#unsatisfiable? ⇒ Boolean
1479 |
# File 'lib/udb/condition.rb', line 1479 def unsatisfiable? = false |
#|(other) ⇒ AbstractCondition
1466 1467 1468 |
# File 'lib/udb/condition.rb', line 1466 def |(other) self end |