Class: Archsight::Query::AST::QueryNode
- Defined in:
- lib/archsight/query/ast.rb
Overview
Root query node with optional kind filter
Instance Attribute Summary collapse
-
#expression ⇒ Object
readonly
Returns the value of attribute expression.
-
#kind_filter ⇒ Object
readonly
Returns the value of attribute kind_filter.
Instance Method Summary collapse
- #accept(visitor) ⇒ Object
-
#initialize(kind_filter, expression) ⇒ QueryNode
constructor
A new instance of QueryNode.
Constructor Details
#initialize(kind_filter, expression) ⇒ QueryNode
Returns a new instance of QueryNode.
16 17 18 19 |
# File 'lib/archsight/query/ast.rb', line 16 def initialize(kind_filter, expression) @kind_filter = kind_filter # String or nil @expression = expression # Expression node end |
Instance Attribute Details
#expression ⇒ Object (readonly)
Returns the value of attribute expression.
14 15 16 |
# File 'lib/archsight/query/ast.rb', line 14 def expression @expression end |
#kind_filter ⇒ Object (readonly)
Returns the value of attribute kind_filter.
14 15 16 |
# File 'lib/archsight/query/ast.rb', line 14 def kind_filter @kind_filter end |
Instance Method Details
#accept(visitor) ⇒ Object
21 22 23 |
# File 'lib/archsight/query/ast.rb', line 21 def accept(visitor) visitor.visit_query(self) end |