Class: Archsight::Query::AST::IncomingDirectRelation
- Defined in:
- lib/archsight/query/ast.rb
Overview
Incoming direct 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.
-
#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) ⇒ IncomingDirectRelation
constructor
A new instance of IncomingDirectRelation.
Constructor Details
#initialize(target, verbs = nil, exclude_verbs = false) ⇒ IncomingDirectRelation
Returns a new instance of IncomingDirectRelation.
188 189 190 191 192 |
# File 'lib/archsight/query/ast.rb', line 188 def initialize(target, verbs = nil, exclude_verbs = false) @target = target # KindTarget or InstanceTarget @verbs = verbs # Array of verb strings, or nil for "all verbs" @exclude_verbs = exclude_verbs # true = denylist, false = allowlist end |
Instance Attribute Details
#exclude_verbs ⇒ Object (readonly)
Returns the value of attribute exclude_verbs.
186 187 188 |
# File 'lib/archsight/query/ast.rb', line 186 def exclude_verbs @exclude_verbs end |
#target ⇒ Object (readonly)
Returns the value of attribute target.
186 187 188 |
# File 'lib/archsight/query/ast.rb', line 186 def target @target end |
#verbs ⇒ Object (readonly)
Returns the value of attribute verbs.
186 187 188 |
# File 'lib/archsight/query/ast.rb', line 186 def verbs @verbs end |
Instance Method Details
#accept(visitor) ⇒ Object
194 195 196 |
# File 'lib/archsight/query/ast.rb', line 194 def accept(visitor) visitor.visit_incoming_direct_relation(self) end |