Class: Udb::AlwaysFalseCondition
- Inherits:
-
AbstractCondition
- Object
- AbstractCondition
- Udb::AlwaysFalseCondition
- 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:) ⇒ 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:) ⇒ LogicNode
- #to_logic_tree_internal ⇒ LogicNode
- #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)
1487 1488 1489 |
# File 'lib/udb/condition.rb', line 1487 def initialize(cfg_arch) @cfg_arch = cfg_arch end |
Instance Method Details
#&(other) ⇒ AbstractCondition
1564 1565 1566 |
# File 'lib/udb/condition.rb', line 1564 def &(other) self end |
#-@ ⇒ AbstractCondition
1574 1575 1576 |
# File 'lib/udb/condition.rb', line 1574 def -@ AlwaysTrueCondition.new(@cfg_arch) end |
#compatible?(_other) ⇒ Boolean
1508 |
# File 'lib/udb/condition.rb', line 1508 def compatible?(_other) = false |
#empty? ⇒ Boolean
1492 |
# File 'lib/udb/condition.rb', line 1492 def empty? = true |
#has_extension_requirement? ⇒ Boolean
1531 |
# File 'lib/udb/condition.rb', line 1531 def has_extension_requirement? = false |
#has_param? ⇒ Boolean
1537 |
# File 'lib/udb/condition.rb', line 1537 def has_param? = false |
#implied_extension_conflicts(expand: true) ⇒ Array<ConditionalExtensionRequirement>
1560 |
# File 'lib/udb/condition.rb', line 1560 def implied_extension_conflicts(expand: true) = [] |
#implied_extension_requirements(expand: true) ⇒ Array<ConditionalExtensionRequirement>
1557 |
# File 'lib/udb/condition.rb', line 1557 def implied_extension_requirements(expand: true) = [] |
#minimize(expand: true) ⇒ AbstractCondition
1534 |
# File 'lib/udb/condition.rb', line 1534 def minimize(expand: true) = self |
#partial_eval(ext_reqs: [], expand: true) ⇒ AbstractCondition
1522 |
# File 'lib/udb/condition.rb', line 1522 def partial_eval(ext_reqs: [], expand: true) = self |
#partially_evaluate_for_params(cfg_arch, expand:) ⇒ AbstractCondition
1519 |
# File 'lib/udb/condition.rb', line 1519 def partially_evaluate_for_params(cfg_arch, expand:) = self |
#satisfiability_depends_on_ext_req?(ext_req, include_requirements: false) ⇒ Boolean
1528 |
# File 'lib/udb/condition.rb', line 1528 def satisfiability_depends_on_ext_req?(ext_req, include_requirements: false) = false |
#satisfiable? ⇒ Boolean
1579 |
# File 'lib/udb/condition.rb', line 1579 def satisfiable? = false |
#satisfied_by_cfg_arch?(_cfg_arch) ⇒ SatisfiedResult
1516 |
# File 'lib/udb/condition.rb', line 1516 def satisfied_by_cfg_arch?(_cfg_arch) = SatisfiedResult::No |
#satisfied_by_ext_req?(ext_req, include_requirements: false) ⇒ Boolean
1525 |
# File 'lib/udb/condition.rb', line 1525 def satisfied_by_ext_req?(ext_req, include_requirements: false) = false |
#to_asciidoc ⇒ String
1554 |
# File 'lib/udb/condition.rb', line 1554 def to_asciidoc = "false" |
#to_h ⇒ Hash{String => T.untyped}, Boolean
1511 1512 1513 |
# File 'lib/udb/condition.rb', line 1511 def to_h false end |
#to_idl(cfg_arch) ⇒ String
1540 |
# File 'lib/udb/condition.rb', line 1540 def to_idl(cfg_arch) = "-> false;" |
#to_logic_tree(expand:) ⇒ LogicNode
1495 1496 1497 |
# File 'lib/udb/condition.rb', line 1495 def to_logic_tree(expand:) LogicNode::False end |
#to_logic_tree_internal ⇒ LogicNode
1503 1504 1505 |
# File 'lib/udb/condition.rb', line 1503 def to_logic_tree_internal LogicNode::False end |
#to_s(expand: false) ⇒ String
1543 |
# File 'lib/udb/condition.rb', line 1543 def to_s(expand: false) = "false" |
#to_s_pretty ⇒ String
1546 1547 1548 |
# File 'lib/udb/condition.rb', line 1546 def to_s_pretty "never" end |
#to_s_with_value(cfg_arch, expand: false) ⇒ String
1551 |
# File 'lib/udb/condition.rb', line 1551 def to_s_with_value(cfg_arch, expand: false) = "false" |
#unsatisfiable? ⇒ Boolean
1582 |
# File 'lib/udb/condition.rb', line 1582 def unsatisfiable? = true |
#|(other) ⇒ AbstractCondition
1569 1570 1571 |
# File 'lib/udb/condition.rb', line 1569 def |(other) Condition.disjunction([self, other], @cfg_arch) end |