Class: Archsight::Query::AST::AnnotationInCondition
- Defined in:
- lib/archsight/query/ast.rb
Overview
Annotation “in” condition: annotation_path in (value1, value2, …)
Instance Attribute Summary collapse
-
#path ⇒ Object
readonly
Returns the value of attribute path.
-
#values ⇒ Object
readonly
Returns the value of attribute values.
Instance Method Summary collapse
- #accept(visitor) ⇒ Object
-
#initialize(path, values) ⇒ AnnotationInCondition
constructor
A new instance of AnnotationInCondition.
Constructor Details
#initialize(path, values) ⇒ AnnotationInCondition
Returns a new instance of AnnotationInCondition.
86 87 88 89 |
# File 'lib/archsight/query/ast.rb', line 86 def initialize(path, values) @path = path # String (e.g., "repository/artifacts") @values = values # Array of StringValue end |
Instance Attribute Details
#path ⇒ Object (readonly)
Returns the value of attribute path.
84 85 86 |
# File 'lib/archsight/query/ast.rb', line 84 def path @path end |
#values ⇒ Object (readonly)
Returns the value of attribute values.
84 85 86 |
# File 'lib/archsight/query/ast.rb', line 84 def values @values end |
Instance Method Details
#accept(visitor) ⇒ Object
91 92 93 |
# File 'lib/archsight/query/ast.rb', line 91 def accept(visitor) visitor.visit_annotation_in_condition(self) end |