Class: Archsight::Query::AST::OutgoingTransitiveRelation
- Defined in:
- lib/archsight/query/ast.rb
Overview
Outgoing transitive relation: ~> Kind or ~> “InstanceName” With optional verb filter: ~verb> or ~!verb>
Instance Attribute Summary collapse
-
#exclude_verbs ⇒ Object
readonly
Returns the value of attribute exclude_verbs.
-
#max_depth ⇒ Object
readonly
Returns the value of attribute max_depth.
-
#target ⇒ Object
readonly
Returns the value of attribute target.
-
#verbs ⇒ Object
readonly
Returns the value of attribute verbs.
Instance Method Summary collapse
- #accept(visitor) ⇒ Object
-
#initialize(target, verbs = nil, exclude_verbs = false, max_depth = 10) ⇒ OutgoingTransitiveRelation
constructor
A new instance of OutgoingTransitiveRelation.
Constructor Details
#initialize(target, verbs = nil, exclude_verbs = false, max_depth = 10) ⇒ OutgoingTransitiveRelation
Returns a new instance of OutgoingTransitiveRelation.
171 172 173 174 175 176 |
# File 'lib/archsight/query/ast.rb', line 171 def initialize(target, verbs = nil, exclude_verbs = false, max_depth = 10) @target = target @verbs = verbs # Array of verb strings, or nil for "all verbs" @exclude_verbs = exclude_verbs # true = denylist, false = allowlist @max_depth = max_depth end |
Instance Attribute Details
#exclude_verbs ⇒ Object (readonly)
Returns the value of attribute exclude_verbs.
169 170 171 |
# File 'lib/archsight/query/ast.rb', line 169 def exclude_verbs @exclude_verbs end |
#max_depth ⇒ Object (readonly)
Returns the value of attribute max_depth.
169 170 171 |
# File 'lib/archsight/query/ast.rb', line 169 def max_depth @max_depth end |
#target ⇒ Object (readonly)
Returns the value of attribute target.
169 170 171 |
# File 'lib/archsight/query/ast.rb', line 169 def target @target end |
#verbs ⇒ Object (readonly)
Returns the value of attribute verbs.
169 170 171 |
# File 'lib/archsight/query/ast.rb', line 169 def verbs @verbs end |
Instance Method Details
#accept(visitor) ⇒ Object
178 179 180 |
# File 'lib/archsight/query/ast.rb', line 178 def accept(visitor) visitor.visit_outgoing_transitive_relation(self) end |